:root {
    --tide-ink: #254133;
    --tide-moss: #536b5b;
    --tide-tint: #e5ebdd;
    --tide-paper: #f8f5ed;
    --tide-rule: #bfc9b7;
    --tide-leaf: #174c3e;
    --tide-serif: Georgia, 'Times New Roman', serif;
    --tide-inset: clamp(1rem, 5vw, 5.5rem);
}
* { box-sizing: border-box; }
body.tideleaf-vellum { background: var(--tide-paper); color: var(--tide-ink); margin: 0; font-family: system-ui, sans-serif; line-height: 1.62; }
.tideleaf-vellum a { color: var(--tide-leaf); }
.tideleaf-vellum :focus-visible { outline: 3px solid #9b521f; outline-offset: 4px; }
.tideleaf-vellum h1, .tideleaf-vellum h2, .tideleaf-vellum h3, .tideleaf-stamp { font-family: var(--tide-serif); font-weight: 400; }
.tideleaf-vellum h2 { font-size: clamp(2rem, 4.1vw, 4.4rem); line-height: .99; letter-spacing: -.042em; margin: .2em 0 .45em; }
.tideleaf-vellum h3 { font-size: clamp(1.5rem, 2.6vw, 2.6rem); line-height: 1.13; margin: 0; }
.tideleaf-leap { position: fixed; left: 1rem; top: 1rem; transform: translateY(-250%); padding: .65em 1em; background: white; z-index: 6; }
.tideleaf-leap:focus { transform: none; }
.tideleaf-mast { padding: 0 var(--tide-inset); margin: 0 auto; max-width: 105rem; }
.tideleaf-mastline { min-height: 6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--tide-rule); }
.tideleaf-stamp { display: inline-block; font-size: clamp(1.8rem, 4.3vw, 2.8rem); line-height: 1; text-decoration: none; white-space: nowrap; letter-spacing: -.08em; }
.tideleaf-stamp em { font-weight: 400; color: #5b735d; }
.tideleaf-mooring { color: var(--tide-moss); letter-spacing: .12em; font-size: .67rem; text-transform: uppercase; }
.tideleaf-counter-nav { border-bottom: 1px solid var(--tide-rule); padding: .65rem 0; }
.tideleaf-counter-nav, .tideleaf-counter-nav ul { display: flex; gap: .65rem 1.7rem; flex-wrap: wrap; list-style: none; margin: 0; }
.tideleaf-counter-nav ul { padding: 0; }
.tideleaf-counter-nav a { font-size: .82rem; text-decoration: none; }
.tideleaf-counter-nav a:hover { text-decoration: underline; }
.tideleaf-opening, .tideleaf-shelf-rise, .tideleaf-measure, .tideleaf-picture-story, .tideleaf-wrap-table, .tideleaf-doorway { max-width: 105rem; margin: 0 auto; padding-inline: var(--tide-inset); }
.tideleaf-opening { display: flex; align-items: center; gap: clamp(2.5rem,7vw,7.4rem); padding-block: clamp(2rem, 5vw, 5rem) clamp(3rem, 7vw, 7rem); }
.tideleaf-opening-copy { flex: 1 1 44%; min-width: 0; }
.tideleaf-overline { text-transform: uppercase; letter-spacing: .14em; font-size: .67rem; font-weight: 700; color: var(--tide-moss); margin: 0 0 .9rem; }
.tideleaf-opening h1 { font-size: clamp(3.1rem,7.4vw,8.3rem); line-height: .87; letter-spacing: -.082em; margin: .11em 0 .25em; }
.tideleaf-opening h1 em { color: #5b735d; font-weight: 400; }
.tideleaf-standfirst { max-width: 31em; margin-bottom: 1.55rem; }
.tideleaf-opening-photo { flex: 1 0 42%; margin: 0; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.tideleaf-opening-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--tide-tint); }
.tideleaf-opening-photo figcaption { font-size: .75rem; color: var(--tide-moss); margin-top: .6rem; }
.tideleaf-pot-chart { padding: 1rem; border: 1px solid var(--tide-rule); background: #eef0e5; max-width: 32rem; }
.tideleaf-pot-chart label { font-size: .79rem; font-weight: 700; display: block; margin-bottom: .35rem; }
.tideleaf-pot-chart select { width: 100%; color: var(--tide-ink); border: 1px solid var(--tide-moss); border-radius: 0; background: var(--tide-paper); padding: .67rem .48rem; font: inherit; }
.tideleaf-readout { display: flex; flex-wrap: wrap; padding-top: .8rem; gap: .45rem 1.65rem; }
.tideleaf-readout span, .tideleaf-readout strong { display: block; }
.tideleaf-readout span { color: var(--tide-moss); font-size: .67rem; text-transform: uppercase; letter-spacing: .08em; }
.tideleaf-readout strong { font-family: var(--tide-serif); font-weight: 400; font-size: clamp(1.3rem,3.2vw,2rem); line-height: 1.18; }
.tideleaf-readout p { flex-basis: 100%; margin: .2rem 0 0; font-size: .79rem; }
.tideleaf-shelf-rise { display: flex; gap: clamp(1rem,5vw,5rem); padding-block: clamp(3rem,7vw,7rem); background: #e5ebdd; align-items: start; }
.tideleaf-shelf-rise > div:first-child { flex-basis: 30%; }
.tideleaf-shelf-rows { flex: 1; }
.tideleaf-shelf-rows a { display: flex; gap: 1.2rem; align-items: baseline; justify-content: space-between; padding: .8rem .4rem; border-bottom: 1px solid #a7b6a0; text-decoration: none; }
.tideleaf-shelf-rows a:first-child { border-top: 1px solid #a7b6a0; }
.tideleaf-shelf-rows a:hover { background: #d9e3d2; }
.tideleaf-shelf-rows b { font-family: var(--tide-serif); font-weight: 400; font-size: clamp(1.2rem,2.8vw,2rem); }
.tideleaf-shelf-rows span { margin-inline: auto .2em; font-size: .82rem; }
.tideleaf-shelf-rows i { font-style: normal; }
.tideleaf-measure { display: flex; gap: clamp(2rem,9vw,11rem); padding-block: clamp(4rem, 9vw, 9rem); }
.tideleaf-rule-rail { flex: 0 1 28rem; align-self: flex-start; position: sticky; top: 2rem; }
.tideleaf-rule-marks { position: relative; width: 75%; padding: 0 0 0 2.5rem; list-style: none; }
.tideleaf-rule-marks::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 1.7rem; background: repeating-linear-gradient(to bottom, var(--tide-rule) 0 1px, transparent 1px 10px); border-right: 1px solid var(--tide-rule); }
.tideleaf-rule-marks li { padding: .44em .75em; height: 3.1rem; color: #536b5b; display: flex; align-items: center; transition: background .25s; }
.tideleaf-rule-marks .tideleaf-current-mark { background: #dce8d4; color: #193e2f; font-weight: 700; }
.tideleaf-ruler-stops { flex: 1; max-width: 37rem; }
.tideleaf-ruler-stops article { padding: 1.3rem 0 4.15rem; min-height: 15rem; border-top: 1px solid var(--tide-rule); }
.tideleaf-ruler-stops p { max-width: 41ch; }
.tideleaf-thread { display: inline-block; width: fit-content; font-size: .92rem; font-weight: 700; text-underline-offset: .24em; }
.tideleaf-thread span { padding-left: .28rem; }
.tideleaf-picture-story { background: #e3dfd0; display: flex; align-items: center; gap: clamp(2rem,7vw,7rem); padding-block: clamp(2rem,6vw,6rem); }
.tideleaf-picture-story figure, .tideleaf-wrap-table figure { margin: 0; flex: 1 0 46%; }
.tideleaf-picture-story img, .tideleaf-wrap-table img { display: block; width: 100%; aspect-ratio: 1.2; object-fit: cover; }
.tideleaf-wrap-table { display: flex; align-items: center; gap: clamp(2rem,8vw,9rem); padding-block: clamp(4rem,9vw,8rem); }
.tideleaf-doorway { padding-block: clamp(2.8rem,6vw,5rem); background: #e5ebdd; display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }
.tideleaf-doorway p { margin-bottom: 0; max-width: 52ch; }
.tideleaf-last-pour { max-width: 105rem; margin: 0 auto; padding: 3rem var(--tide-inset); display: flex; gap: clamp(1.8rem,7vw,7rem); border-top: 1px solid var(--tide-rule); }
.tideleaf-end-mark { min-width: 11rem; }
.tideleaf-end-mark p, .tideleaf-end-mark > a:last-child { font-size: .85rem; }
.tideleaf-end-index { width: 100%; columns: 3 10rem; column-gap: 1rem; }
.tideleaf-end-index a { display: block; width: fit-content; font-size: .85rem; padding-block: .17rem; break-inside: avoid; text-underline-offset: .22em; }
.tideleaf-ledger { max-width: 91rem; margin: 0 auto; padding: 4.5rem var(--tide-inset) 7rem; display: flex; gap: min(9vw,9rem); }
.tideleaf-ledger-gutter { flex: 0 1 13rem; font-size: .8rem; padding-top: 1rem; }
.tideleaf-folio { max-width: 45rem; flex: 1; }
.tideleaf-folio h1, .tideleaf-mislaid h1 { margin: 0 0 1.3rem; font-size: clamp(3rem, 6vw, 6.5rem); line-height: .95; letter-spacing: -.06em; }
.tideleaf-folio h2 { font-size: clamp(1.9rem,3vw,2.8rem); margin-top: 1.4em; }
.tideleaf-folio p { margin: 0 0 1.05em; }
.tideleaf-mislaid { max-width: 85rem; margin: 0 auto; padding: clamp(3rem,9vw,9rem) var(--tide-inset); }
.tideleaf-mislaid-note { padding: clamp(1.3rem,5vw,4rem); border: 1px solid var(--tide-rule); background: var(--tide-tint); }
.tideleaf-mislaid-note p { max-width: 43ch; }
@media (max-width: 57rem) {
    .tideleaf-opening { gap: 2rem; }
    .tideleaf-shelf-rise { display: block; }
    .tideleaf-shelf-rise h2 { max-width: 15ch; }
    .tideleaf-measure { gap: 2rem; }
}
@media (max-width: 43rem) {
    .tideleaf-mastline { min-height: 4.25rem; }
    .tideleaf-opening,.tideleaf-measure,.tideleaf-picture-story,.tideleaf-wrap-table,.tideleaf-doorway,.tideleaf-ledger,.tideleaf-last-pour { display: block; }
    .tideleaf-opening-photo { margin-top: 2rem; }
    .tideleaf-opening-photo img { aspect-ratio: 5 / 4; }
    .tideleaf-rule-rail { position: static; }
    .tideleaf-rule-marks { display: flex; padding: 0; column-gap: .4rem; width: 100%; }
    .tideleaf-rule-marks::before { content: none; }
    .tideleaf-ruler-stops article { min-height: auto; padding-bottom: 1.5rem; }
    .tideleaf-picture-story figure,.tideleaf-wrap-table figure { margin: 1.65rem 0; }
    .tideleaf-doorway a,.tideleaf-end-index,.tideleaf-folio { margin-top: 1.4rem; }
}
@media (max-width: 25rem) {
    .tideleaf-shelf-rows a { flex-wrap: wrap; gap: .15rem .4rem; }
    .tideleaf-shelf-rows span { flex-basis: 81%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .tideleaf-rule-marks li { transition: none; } }
