/* GGWBF design system, applied to the July 2026 layout. Literata and IBM Plex Sans; paper, ink and brass.
   Shared byte-identical by yankee1906.org and ggwbf.org. foundation.css adds the Foundation's green brass. */
@font-face { font-family: "Literata"; src: url("fonts/Literata-Variable.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/Literata-Italic-Variable.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-Variable.woff2") format("woff2"); font-weight: 100 700; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-Italic-Variable.woff2") format("woff2"); font-weight: 100 700; font-stretch: 75% 100%; font-style: italic; font-display: swap; }

/* ----------------------------------------------------------
   1. TOKENS
   ---------------------------------------------------------- */
:root {
    /* paper & ink — light (drafting room) */
    --paper:        #FEFEFC;
    --paper-2:      #FAF8F3;
    --paper-3:      #F4F0E7;
    --ink:          #1E262C;
    --ink-body:     #2C363D;
    --ink-2:        #4C5860;
    --ink-3:        #6E7A82;
    --brass:        #93702B;
    --brass-2:      #B08A3C;
    --sea:          #33565E;
    --red:          #9C3E2E;
    --line:         rgba(30, 38, 44, 0.16);
    --line-strong:  rgba(30, 38, 44, 0.42);
    --line-faint:   rgba(30, 38, 44, 0.08);
    --shadow:       none;
    --shadow-soft:  none;
    --photo-filter: none;

    /* type */
    --f-display: "Literata", Georgia, "Times New Roman", serif;
    --f-text:    "Literata", Georgia, "Times New Roman", serif;
    --f-ui:      "IBM Plex Sans", system-ui, -apple-system, sans-serif;
    --f-mono:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;

    /* measure & rhythm */
    --measure: 64ch;
    --gutter: clamp(1.25rem, 4vw, 4rem);
    --site-max: 1560px;
    --header-h: 4.25rem;

    /* legacy aliases — lexicon/quiz stylesheets consume these */
    --main:              var(--ink);
    --secondary:         var(--brass);
    --secondary-visited: var(--sea);
    --divider:           var(--line);
    --text-body:         var(--ink-body);
    --text-light:        var(--ink-3);
    --bg:                var(--paper);
}

[data-theme="dark"] {
    /* deep field — pale linework */
    --paper:        #10181F;
    --paper-2:      #17222B;
    --paper-3:      #0A1117;
    --ink:          #EAE4D4;
    --ink-body:     #D6D0BF;
    --ink-2:        #AFAC9C;
    --ink-3:        #83898C;
    --brass:        #C79B4B;
    --brass-2:      #D9B265;
    --sea:          #8FB6BE;
    --red:          #C0604E;
    --line:         rgba(234, 228, 212, 0.16);
    --line-strong:  rgba(234, 228, 212, 0.45);
    --line-faint:   rgba(234, 228, 212, 0.07);
    --shadow:       none;
    --shadow-soft:  none;
    --photo-filter: brightness(0.94) saturate(0.96);
}

/* ----------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--paper);
    color: var(--ink-body);
    font-family: var(--f-text);
    font-size: 1.0625rem;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color 0.35s ease, color 0.35s ease;
}

img { max-width: 100%; display: block; filter: var(--photo-filter); }

a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--brass); }

::selection { background: var(--brass); color: var(--paper); }

em.yn, .yn { font-style: italic; }

/* type helpers */
.eyebrow {
    font-family: var(--f-ui);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brass);
}

.anno {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.hl-navy { color: var(--ink); font-weight: 600; }

/* quiet dictionary links — the lexicon easter eggs */
.anno a, .dim-value a {
    color: var(--sea);
    border-bottom: 1px dotted color-mix(in srgb, var(--sea) 60%, transparent);
    padding-bottom: 1px;
}
.anno a:hover, .dim-value a:hover { color: var(--brass); border-bottom-color: var(--brass); }
.aside-note { display: block; margin-top: 2rem; letter-spacing: 0.1em; }

/* the drafting rule — hairline with end ticks */
.dim-rule {
    position: relative;
    height: 1px;
    background: var(--line-strong);
    margin: 1.4rem 0;
}
.dim-rule::before, .dim-rule::after {
    content: "";
    position: absolute;
    top: -4px;
    width: 1px;
    height: 9px;
    background: var(--line-strong);
}
.dim-rule::before { left: 0; }
.dim-rule::after { right: 0; }

/* ruler tick strip — used atop bands */
.ticks {
    height: 7px;
    background-image:
        repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 12px),
        repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 60px);
    background-size: auto 4px, auto 7px;
    background-repeat: repeat-x;
    background-position: bottom left, bottom left;
    opacity: 0.55;
}

/* ----------------------------------------------------------
   3. HEADER
   ---------------------------------------------------------- */
#site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: background-color 0.35s ease;
}
#site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(0,0,0,0.25); }

.header-inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-brand { display: flex; align-items: baseline; gap: 0.7rem; color: var(--ink); }
.header-brand:hover { color: var(--ink); }

.header-wordmark {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 1.5rem;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1;
    white-space: nowrap;
}
/* The transom treatment: YANKEE stretched wide, as painted on the boat */
.wm-name {
    display: inline-block;
    letter-spacing: 0.06em;
    transform: scaleX(1.4);
    transform-origin: 0 62%;
}
.header-wordmark .wm-year {
    font-weight: 340;
    color: var(--ink-2);
    letter-spacing: 0.06em;
    margin-left: 2.75em;
}

.header-right { display: flex; align-items: center; gap: 1.4rem; }

.header-nav { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.header-nav a {
    font-family: var(--f-ui);
    font-size: 0.76rem;
    font-weight: 550;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-2);
    padding: 0.4rem 0;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.header-nav a:hover { color: var(--ink); border-bottom-color: var(--brass); }
.header-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--line-strong); }

.header-nav .nav-cta a {
    border: 1px solid var(--ink);
    color: var(--ink);
    padding: 0.55rem 1.15rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.header-nav .nav-cta a:hover { background: var(--ink); color: var(--paper); border-bottom-color: var(--ink); }

/* toggles */
.nav-toggle, .theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    background: none;
    border: 1px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    color: var(--ink-2);
}
.nav-toggle:hover, .theme-toggle:hover { color: var(--ink); border-color: var(--line); }
.nav-toggle svg, .theme-toggle svg {
    width: 1.15rem; height: 1.15rem;
    fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
}
.nav-toggle { display: none; }
.nav-toggle .icon-x { display: none; }
#site-header.nav-open .icon-x { display: block; }
#site-header.nav-open .icon-hamburger { display: none; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* mobile menu */
.mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    background: var(--paper);
}
.mobile-menu ul { list-style: none; padding: 0.75rem var(--gutter) 1.4rem; }
.mobile-menu a {
    display: block;
    padding: 0.85rem 0;
    font-family: var(--f-ui);
    font-size: 0.85rem;
    font-weight: 550;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-2);
    border-bottom: 1px solid var(--line-faint);
}
.mobile-menu a:hover { color: var(--ink); }
.mobile-menu .mobile-cta a { color: var(--brass); border-bottom: none; }
.mobile-menu.open { display: block; }

/* ----------------------------------------------------------
   4. BUTTONS
   ---------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--f-ui);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.95rem 1.7rem;
    border: 1px solid var(--ink);
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn-brass { border-color: var(--brass); color: var(--brass); }
.btn-brass:hover { background: var(--brass); color: #fff; }
[data-theme="dark"] .btn:hover { color: var(--paper-3); }
[data-theme="dark"] .btn-solid { color: var(--paper-3); }
[data-theme="dark"] .btn-solid:hover { color: #10181F; }

.link-arrow {
    font-family: var(--f-ui);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brass);
    border-bottom: 1px solid color-mix(in srgb, var(--brass) 40%, transparent);
    padding-bottom: 2px;
}
.link-arrow:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ----------------------------------------------------------
   5. HERO (homepage)
   ---------------------------------------------------------- */
.hero {
    position: relative;
    padding: calc(var(--header-h) + clamp(2.5rem, 7vh, 5.5rem)) 0 0;
    overflow: hidden;
}
.hero-lines {
    position: absolute;
    top: 4rem;
    left: -6%;
    width: 70%;
    min-width: min(640px, 100%);
    color: var(--ink);
    opacity: 0.10;
    pointer-events: none;
    z-index: 0;
}
[data-theme="dark"] .hero-lines { opacity: 0.14; }

/* The lines draw themselves in, then stay gently adrift — like
   fairing curves on a lofting floor. Nearly subliminal by design. */
@keyframes hl-draw { to { stroke-dashoffset: 0; } }
@keyframes hl-fade { to { opacity: 1; } }
@keyframes hl-sway {
    from { transform: translateY(-3.5px); }
    to   { transform: translateY(3.5px); }
}
@keyframes hl-march { to { stroke-dashoffset: -260; } }

.hero-lines .hl-curve {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;   /* reveal comes from the path's END — so paths are authored right→left to draw left→right */
    animation:
        hl-draw 3s cubic-bezier(0.5, 0, 0.15, 1) forwards,
        hl-sway 13s ease-in-out infinite alternate;
}
.hero-lines .hl-curve:nth-of-type(1) { animation-delay: 0.2s, -1s; }
.hero-lines .hl-curve:nth-of-type(2) { animation-delay: 0.45s, -4s; animation-duration: 3s, 15s; }
.hero-lines .hl-curve:nth-of-type(3) { animation-delay: 0.7s, -8s; animation-duration: 3s, 12s; }
.hero-lines .hl-curve:nth-of-type(4) { animation-delay: 0.95s, -11s; animation-duration: 3s, 16s; }
.hero-lines .hl-curve:nth-of-type(5) { animation-delay: 1.5s, -3s; animation-duration: 3.4s, 18s; }
.hero-lines .hl-curve:nth-of-type(6) { animation-delay: 1.75s, -9s; animation-duration: 3.4s, 14s; }

.hero-lines .hl-station {
    opacity: 0;
    animation: hl-fade 1.6s ease-out forwards;
}
.hero-lines .hl-station:nth-of-type(1) { animation-delay: 1.3s; }
.hero-lines .hl-station:nth-of-type(2) { animation-delay: 1.5s; }
.hero-lines .hl-station:nth-of-type(3) { animation-delay: 1.7s; }
.hero-lines .hl-station:nth-of-type(4) { animation-delay: 1.9s; }

.hero-lines .hl-water {
    opacity: 0;
    animation:
        hl-fade 2s ease-out 2.1s forwards,
        hl-march 60s linear 2.1s infinite;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: minmax(30rem, 44rem) 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: end;
}

.hero-copy { padding-bottom: 1rem; }

.hero-anno { margin-bottom: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }

.hero-title {
    font-family: var(--f-display);
    font-optical-sizing: auto;
    font-weight: 380;
    font-size: clamp(3.2rem, 6.2vw, 6.4rem);
    line-height: 0.98;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0 0 2rem;
    text-wrap: balance;
}
.hero-title em { font-style: italic; font-weight: 340; }

.hero-lede {
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
    line-height: 1.65;
    max-width: 36em;
    color: var(--ink-body);
    margin-bottom: 2.6rem;
}
.hero-lede em { font-style: italic; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: center; }

.hero-figure { position: relative; }
.hero-figure .figure-frame {
    border: 1px solid var(--line-strong);
    padding: 0.6rem;
    background: var(--paper-2);
    box-shadow: var(--shadow);
}
.hero-figure img { width: 100%; height: auto; }
.hero-figure figcaption {
    margin-top: 0.8rem;
    font-family: var(--f-mono);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.hero-foot {
    position: relative;
    z-index: 1;
    margin-top: clamp(2.25rem, 5vh, 4rem);
    border-top: 1px solid var(--line);
    background: var(--paper-3);
}

/* dimension strip — vessel particulars as drawing annotations */
.dim-strip {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 1.1rem var(--gutter);
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 3rem;
    align-items: baseline;
}
.dim-strip .dim { display: flex; align-items: baseline; gap: 0.7rem; }
.dim-strip .dim-label {
    font-family: var(--f-ui);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.dim-strip .dim-value {
    font-family: var(--f-mono);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--ink);
    white-space: nowrap;
}

/* ----------------------------------------------------------
   6. SHEETS (major page sections)
   ---------------------------------------------------------- */
main { display: block; }

.sheet {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: clamp(3.25rem, 7vh, 5.5rem) var(--gutter) 0;
}

.sheet-head { margin-bottom: clamp(1.8rem, 3.2vh, 2.6rem); max-width: 56rem; }
.sheet-head .sheet-no {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brass);
    display: block;
    margin-bottom: 1rem;
}
.sheet-title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(2rem, 3.4vw, 3.3rem);
    line-height: 1.06;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-wrap: balance;
}
.sheet-title em { font-weight: 350; }
.sheet-deck {
    margin-top: 1.2rem;
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    font-style: italic;
    color: var(--ink-2);
    max-width: 40em;
}

.sheet-body { max-width: var(--measure); }
.sheet-body p + p, .prose p + p { margin-top: 1.15em; }
.prose { max-width: var(--measure); }
.prose a { border-bottom: 1px solid color-mix(in srgb, var(--sea) 35%, transparent); }
.prose a:hover { border-bottom-color: var(--brass); }

/* split layouts — text at a wide-reading measure, figure fills to the sheet edge */
.split {
    display: grid;
    grid-template-columns: minmax(0, 44rem) minmax(0, 1fr);
    gap: clamp(2rem, 3vw, 3.25rem);
    align-items: start;
}
.split.split-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 44rem); }
.split > .sticky-col { position: sticky; top: calc(var(--header-h) + 2rem); }
.split .prose, .split .sheet-body {
    max-width: none;
    font-size: 1.125rem;
    line-height: 1.75;
}

/* portrait images: tall frame, filled edge to edge — crop from the top,
   keep the bottom of the image anchored to the frame */
.figure-portrait .figure-frame img {
    width: 100%;
    height: clamp(34rem, 52vw, 56rem);
    object-fit: cover;
    object-position: center bottom;
}
@media (max-width: 1179px) {
    .figure-portrait .figure-frame img { height: auto; object-fit: unset; }
}

/* ----------------------------------------------------------
   6b. EDITORIAL FURNITURE — drop caps, pull quotes, fact chips
   ---------------------------------------------------------- */
.dropcap::first-letter {
    font-family: var(--f-display);
    font-weight: 500;
    font-style: normal; /* upright versal even in italic openers — no letterform crash */
    font-size: 4.35em;
    line-height: 0.8;
    float: left;
    padding: 0.04em 0.14em 0 0;
    color: var(--brass);
}
/* where supported, initial-letter gives exact two-line metrics:
   cap top aligned with line 1, base on the baseline of line 2 */
@supports (initial-letter: 2) or (-webkit-initial-letter: 2) {
    .dropcap::first-letter {
        float: none;
        font-size: unset;
        line-height: unset;
        padding: 0 0.16em 0 0;
        -webkit-initial-letter: 2;
        initial-letter: 2;
    }
}
/* the phrase after a versal is set in spaced caps (Bringhurst) */
.dc-lead {
    text-transform: uppercase;
    font-size: 0.82em;
    letter-spacing: 0.04em;
    font-weight: 500;
    color: var(--ink);
}

.pullquote {
    position: relative;
    margin: 2.1rem 0;
    padding: 1.3rem 0 1.15rem;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}
.pullquote::before, .pullquote::after {
    content: "";
    position: absolute;
    left: 0;
    width: 1px;
    height: 8px;
    background: var(--line-strong);
}
.pullquote::before { top: -4px; }
.pullquote::after { bottom: -4px; }
.pullquote p {
    font-family: var(--f-display);
    font-size: clamp(1.45rem, 1.9vw, 1.85rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.28;
    color: var(--ink);
    margin: 0;
    text-wrap: balance;
}
.pullquote .attrib {
    display: block;
    font-family: var(--f-mono);
    font-style: normal;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-top: 0.7rem;
}

/* drafting-style timeline — ticked rule with dated events, two tidy rows */
.timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 1.25rem;
    row-gap: 1.75rem;
    margin-top: 0.5rem;
}
@media (max-width: 1179px) { .timeline { grid-template-columns: repeat(3, 1fr); } }  /* remapped 1100 -> 1179 (2026-07-30) */
@media (max-width: 640px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
.tl-item { position: relative; padding: 1rem 0.5rem 0 0; border-top: 1px solid var(--line-strong); }
.tl-item::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 1px;
    height: 10px;
    background: var(--line-strong);
}
.tl-year {
    display: block;
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--brass);
}
.tl-label {
    display: block;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--ink-2);
    margin-top: 0.3rem;
}

/* the hub's sail-plan sidebar: generous drawings, thin frames */
.history-overview .split > .sticky-col figure { max-width: 32rem; }
.history-overview .split > .sticky-col .plate { padding: 0.55rem; }

/* three text leads sitting above the context figures */
.context-leads {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.6rem;
}
.context-leads .lead-kicker {
    display: block;
    font-family: var(--f-mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 0.5rem;
}
.context-leads p { font-size: 0.98rem; line-height: 1.62; }
@media (max-width: 900px) { .context-leads { grid-template-columns: 1fr; } }

/* three-up context figure strip */
.context-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}
.context-grid figure { margin: 0; }
.context-grid .figure-frame img { width: 100%; height: 300px; object-fit: cover; }
@media (max-width: 900px) {
    .context-grid { grid-template-columns: 1fr; }
    .context-grid .figure-frame img { height: 240px; }
}

.fact-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }
.fact-chip {
    font-family: var(--f-mono);
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-2);
    border: 1px solid var(--line);
    background: var(--paper-2);
    padding: 0.38rem 0.65rem;
    white-space: nowrap;
}

/* ----------------------------------------------------------
   7. FIGURES
   ---------------------------------------------------------- */
figure.figure-historic, .figure { margin: 2.4rem 0; }
.figure-frame {
    border: 1px solid var(--line-strong);
    padding: 0.55rem;
    background: var(--paper-2);
    box-shadow: var(--shadow-soft);
}
.figure-frame img { width: 100%; height: auto; }
figcaption {
    margin-top: 0.8rem;
    font-family: var(--f-text);
    font-size: 0.86rem;
    font-style: italic;
    line-height: 1.55;
    color: var(--ink-2);
}
figcaption .fig-no,
.lightbox-caption .fig-no {
    font-family: var(--f-mono);
    font-style: normal;
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brass);
    margin-right: 0.6rem;
}

/* line-art plate — drawing mounted on paper */
.plate {
    border: 1px solid var(--line-strong);
    background: var(--paper-2);
    padding: clamp(1.2rem, 2.5vw, 2.4rem);
    position: relative;
}
.plate img { mix-blend-mode: multiply; width: 100%; }
/* flush frames — drawings that carry their own printed border need no mat
   (repeated selector outranks page-specific padding overrides, e.g. the
   history overview's .sticky-col .plate rule) */
.figure-frame.frame-flush, .plate.frame-flush,
.history-overview .split > .sticky-col .plate.frame-flush { padding: 0; }
.figure-frame.frame-flush img, .plate.frame-flush img { display: block; }
[data-theme="dark"] .plate { background: #EAE4D4; border-color: rgba(234,228,212,0.5); }
.plate .plate-stamp {
    position: absolute;
    right: 1rem;
    bottom: 0.8rem;
    font-family: var(--f-mono);
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6E7A82;
}

/* ----------------------------------------------------------
   8. LOGBOOK
   ---------------------------------------------------------- */
.log-tease {
    border-top: 1px solid var(--line);
    background: var(--paper-2);
}
.log-tease-inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 1.4rem var(--gutter);
    display: flex;
    align-items: center;
    gap: 2rem;
}
.log-tease .anno { color: var(--brass); white-space: nowrap; }
.log-tease-text {
    font-size: 1rem;
    color: var(--ink-body);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.log-tease-text em { font-style: italic; }
.log-tease .link-arrow { white-space: nowrap; }

/* full page */
.page-top {
    padding: calc(var(--header-h) + clamp(3rem, 8vh, 5.5rem)) 0 0;
}
/* where the closing divider was dropped (crew, logbook), the lede
   ends the block — keep the gap the divider used to provide */
.page-top-inner > .page-lede:last-child { margin-bottom: 2.9rem; }
.page-top-inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.page-eyebrow-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    align-items: baseline;
    margin-bottom: 1.6rem;
}
.page-title {
    font-family: var(--f-display);
    font-weight: 380;
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 1.4rem;
    text-wrap: balance;
}
.page-title em { font-weight: 340; }
.page-lede {
    font-size: clamp(1.08rem, 1.35vw, 1.25rem);
    line-height: 1.65;
    color: var(--ink-body);
    max-width: 44em;
}

.log-entries {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: clamp(3rem, 6vh, 5rem) var(--gutter) 0;
}
.log-entry {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 4.5rem);
    padding: clamp(2.5rem, 5vh, 4rem) 0;
    border-top: 1px solid var(--line);
}
.log-date-col { text-align: left; }
.log-no {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--brass);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}
.log-date {
    font-family: var(--f-mono);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    display: block;
}
.log-place {
    font-family: var(--f-mono);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-top: 0.5rem;
    display: block;
    line-height: 1.7;
}
.log-body h2 {
    font-family: var(--f-display);
    font-weight: 430;
    font-size: clamp(1.6rem, 2.4vw, 2.3rem);
    line-height: 1.12;
    color: var(--ink);
    margin-bottom: 1.1rem;
}
.log-body { max-width: 72ch; }
.log-body p + p { margin-top: 1.1em; }
.log-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.8rem 0;
}
.log-photos figure { margin: 0; }
.log-photos img { width: 100%; height: 300px; object-fit: cover; }
.log-next {
    border-top: 1px solid var(--line);
    padding: 2rem 0 0;
    display: flex;
    gap: 1.5rem;
    align-items: baseline;
    flex-wrap: wrap;
}

/* ----------------------------------------------------------
   9. GALLERY + LIGHTBOX
   ---------------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.gallery-grid .gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: zoom-in;
    border: 1px solid var(--line);
    background: var(--paper-2);
    padding: 0.35rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-grid .gallery-img:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }

.gallery-item { margin: 0; }
.gallery-item figcaption {
    margin-top: 0.55rem;
    font-size: 0.8rem;
    line-height: 1.5;
}

.lightbox-caption {
    position: absolute;
    left: 50%;
    bottom: 2.9rem;
    transform: translateX(-50%);
    max-width: min(72ch, 86vw);
    text-align: center;
    font-family: var(--f-text);
    font-style: italic;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(242, 236, 223, 0.85);
}
.lightbox-caption .fig-no { color: var(--brass); }

.lightbox-overlay {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(12, 16, 20, 0.93);
    display: none;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-img { max-width: 88vw; max-height: 78vh; margin-bottom: 4.5rem; object-fit: contain; box-shadow: 0 30px 90px rgba(0,0,0,0.6); }
.lightbox-close, .lightbox-arrow {
    position: absolute;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 2.8rem; height: 2.8rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #EAE4D4;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.lightbox-close:hover, .lightbox-arrow:hover { border-color: #EAE4D4; background: rgba(255,255,255,0.08); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-arrow svg, .lightbox-close svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
    position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
    font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.2em; color: #B9B39F;
}

/* ----------------------------------------------------------
   10. CARDS & BANDS
   ---------------------------------------------------------- */
.card {
    border: 1px solid var(--line);
    background: var(--paper-2);
    padding: clamp(1.6rem, 3vw, 2.4rem);
}
.card-heading {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 1.35rem;
    color: var(--ink);
    margin-bottom: 0.9rem;
}
.card p { font-size: 0.98rem; }
.card p + p { margin-top: 0.9em; }

.status-card { border-left: 3px solid var(--brass); }
.status-flag {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brass);
    border: 1px solid color-mix(in srgb, var(--brass) 50%, transparent);
    padding: 0.35rem 0.7rem;
    margin-bottom: 1.1rem;
}

/* archive story cards */
.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.story-card {
    border: 1px solid var(--line);
    background: var(--paper-2);
    display: flex;
    flex-direction: column;
    color: var(--ink-body);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--line-strong); color: var(--ink-body); }
.story-card img { width: 100%; height: 220px; object-fit: cover; }
.story-card .story-text { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.story-card .anno { color: var(--brass); }
.story-card h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.28rem; line-height: 1.2; color: var(--ink); }
.story-card p { font-size: 0.94rem; line-height: 1.6; }
.story-card .story-more { margin-top: auto; padding-top: 0.9rem; }

/* follow / give bands */
.band {
    border-top: 1px solid var(--line);
    background: var(--paper-3);
    margin-top: clamp(3.25rem, 7vh, 5.5rem);
}
.band-inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: clamp(3.5rem, 7vh, 5.5rem) var(--gutter);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 6rem);
    align-items: start;
}
.band-block h2 {
    font-family: var(--f-display);
    font-weight: 420;
    font-size: clamp(1.7rem, 2.6vw, 2.5rem);
    line-height: 1.1;
    color: var(--ink);
    margin: 1rem 0 1.1rem;
    text-wrap: balance;
}
.band-block p { max-width: 34em; }
.band-block p + p { margin-top: 0.9em; }
.band-actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.band-note {
    margin-top: 1.1rem;
    font-size: 0.86rem;
    font-style: italic;
    color: var(--ink-2);
}
.legal-line {
    font-family: var(--f-ui);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--ink-3);
    margin-top: 1.4rem;
}

/* ----------------------------------------------------------
   11. SUPPORT — PHASES
   ---------------------------------------------------------- */
.phase-list { border-top: 1px solid var(--line); margin-top: 2.5rem; }
.phase-item {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr) 11rem;
    gap: 1.5rem 2rem;
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}
.phase-num {
    font-family: var(--f-mono);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--ink-3);
    line-height: 1;
}
.phase-funded-item .phase-num { color: var(--brass); }
.phase-title {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.phase-desc { font-size: 0.97rem; line-height: 1.65; max-width: 58ch; }
.phase-milestone {
    margin-top: 0.6rem;
    font-size: 0.88rem;
    font-style: italic;
    color: var(--sea);
}
.phase-milestone::before { content: "→ "; color: var(--brass); font-style: normal; }
.phase-cost {
    font-family: var(--f-mono);
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    white-space: nowrap;
    justify-self: end;
    text-align: right;
}
.phase-funded {
    display: block;
    font-family: var(--f-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brass);
    margin-top: 0.45rem;
}
.phase-estimate-note {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
    font-style: italic;
    color: var(--ink-2);
}

.campaign-callout {
    margin: 2.5rem 0;
    border: 1px solid var(--line-strong);
    background: var(--paper-2);
    padding: 1.8rem 2rem;
}
.campaign-callout .callout-figure {
    font-family: var(--f-mono);
    font-size: 1.15rem;
    color: var(--ink);
}
.campaign-callout p + p { margin-top: 0.5rem; font-size: 0.92rem; color: var(--ink-2); }

.give-method { border-top: 1px solid var(--line); padding: 1.8rem 0; }
.give-method:first-of-type { border-top: none; }
.give-method-label {
    font-family: var(--f-ui);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 0.7rem;
}
.mailing-address {
    font-family: var(--f-mono);
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--ink);
    border-left: 2px solid var(--line-strong);
    padding-left: 1.2rem;
    margin-top: 0.9rem;
}
.tax-box {
    margin-top: 2.2rem;
    border: 1px dashed var(--line-strong);
    padding: 1.4rem 1.6rem;
    font-size: 0.92rem;
}
.tax-box p + p { margin-top: 0.4rem; }

/* ----------------------------------------------------------
   12. BOARD / PEOPLE
   ---------------------------------------------------------- */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}
.board-member {
    border: 1px solid var(--line);
    background: var(--paper-2);
    padding: 1.5rem 1.6rem;
}
.board-name { font-family: var(--f-display); font-weight: 500; font-size: 1.18rem; color: var(--ink); }
.board-role {
    font-family: var(--f-ui);
    font-size: 0.66rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brass);
    margin: 0.35rem 0 0.8rem;
}
.board-bio { font-size: 0.92rem; line-height: 1.62; }
.board-email { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.04em; margin-top: 0.8rem; }
.advisor-list { list-style: none; margin-top: 1.4rem; border-top: 1px solid var(--line); max-width: 44rem; }
.advisor-list li {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line-faint);
    font-size: 0.95rem;
}
.advisor-list .advisor-role { color: var(--ink-2); font-style: italic; text-align: right; }

/* ----------------------------------------------------------
   13. FAQ / LONG-FORM DOC
   ---------------------------------------------------------- */
.doc-layout {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: clamp(2.5rem, 5vh, 4rem) var(--gutter) 0;
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 6rem);
    align-items: start;
}
.doc-toc {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    border-left: 1px solid var(--line);
    padding-left: 1.4rem;
    max-height: calc(100vh - var(--header-h) - 4rem);
    overflow-y: auto;
}
.doc-toc .anno { display: block; margin-bottom: 1rem; color: var(--brass); }
.doc-toc a {
    display: block;
    font-family: var(--f-ui);
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--ink-2);
    padding: 0.32rem 0;
}
.doc-toc a:hover { color: var(--ink); }
.doc-article { max-width: var(--measure); }
.doc-article h2 {
    font-family: var(--f-display);
    font-weight: 440;
    font-size: clamp(1.5rem, 2.1vw, 1.9rem);
    line-height: 1.2;
    color: var(--ink);
    margin: 3rem 0 1.1rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
    scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.doc-article h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.doc-article ul, .doc-article ol { padding-left: 1.4rem; margin: 1em 0; }
.doc-article li + li { margin-top: 0.5em; }
.doc-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
}
.doc-article th {
    font-family: var(--f-ui);
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    color: var(--ink-2);
    border-bottom: 1px solid var(--line-strong);
    padding: 0.6rem 0.8rem 0.6rem 0;
}
.doc-article td { border-bottom: 1px solid var(--line-faint); padding: 0.65rem 0.8rem 0.65rem 0; }
.doc-article td:last-child, .doc-article th:last-child { text-align: right; white-space: nowrap; }
.doc-meta { font-size: 0.9rem; font-style: italic; color: var(--ink-2); margin-bottom: 2rem; }

/* ----------------------------------------------------------
   14. HISTORY — HUB & CHAPTERS
   ---------------------------------------------------------- */
.history-subnav {
    border-top: 1px solid var(--line-faint);
    background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.history-subnav-inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.subnav-prev, .subnav-next {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-2);
    white-space: nowrap;
}
.subnav-prev:hover, .subnav-next:hover { color: var(--brass); }
.subnav-disabled { opacity: 0.35; pointer-events: none; }
.subnav-center { position: relative; }
.subnav-current {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: none;
    border: 1px solid transparent;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    font-family: var(--f-ui);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
}
.subnav-current:hover, .subnav-current.open { border-color: var(--line); }
/* long chapter titles truncate rather than overflow on narrow screens */
.subnav-center { min-width: 0; }
.subnav-current { min-width: 0; max-width: 100%; }
.subnav-current .subnav-current-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.subnav-chevron { width: 0.7rem; height: 0.7rem; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 0.2s ease; }
.subnav-current.open .subnav-chevron { transform: rotate(180deg); }
.history-toc-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 24rem;
    max-height: 65vh;
    overflow-y: auto;
    background: var(--paper-2);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    padding: 0.6rem 0;
    z-index: 90;
}
.history-toc-dropdown.open { display: block; }
.toc-item {
    display: block;
    padding: 0.55rem 1.3rem;
    font-family: var(--f-text);
    font-size: 0.92rem;
    color: var(--ink-body);
}
.toc-item:hover { background: var(--paper-3); color: var(--ink); }
.toc-item.toc-active { color: var(--brass); }
.toc-chapter-num { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-3); display: inline-block; width: 2.4rem; }
.toc-divider { height: 1px; background: var(--line); margin: 0.5rem 0; }

.history-hero-wrap {
    padding: calc(var(--header-h) + 1.5rem) 0 0;
    max-width: none;
    margin: 0;
}
.history-hero-wrap.with-subnav { padding-top: calc(var(--header-h) + 1.5rem + 1rem); }
.history-hero-frame {
    border: 0;
    padding: 0;
    position: relative;
    background: var(--paper);
    box-shadow: none;
}
/* tilt-shift at the foot, matching the homepage hero */
.history-hero-frame::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 16%;
    pointer-events: none;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 100%);
    mask-image: linear-gradient(to top, #000 10%, transparent 100%);
}
.history-hero-img {
    display: block;
    width: 100%;
    /* Boat-safe crop: rig + Alcatraz sit in a centered 1155×1026 zone of the
       2200×1406 photo. Safe while box AR is between 1155/1406 (≈0.82) and
       2200/1026 (≈2.14). Preferred height leaves room below the fold for the
       overview heading; the 100vw/2.14 floor is the exact limit of the safe
       crop, so on short viewports the hero compresses to it instead of
       pushing the first section off screen. */
    height: clamp(calc(100vw / 2.14), calc(100vh - var(--header-h) - 20rem), calc(100vw * 1406 / 1155));
    object-fit: cover;
    object-position: 50% 50%;
}
.hero-caption {
    position: absolute;
    right: clamp(0.8rem, 2vw, 1.6rem);
    bottom: 0.7rem;
    z-index: 2;
    margin: 0;
    font-family: var(--f-mono);
    font-size: 0.62rem;
    font-style: normal;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.history-overview {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: clamp(3rem, 6vh, 4.5rem) var(--gutter) 0;
}
.history-overview-intro { max-width: var(--measure); margin-bottom: 3.5rem; }

.history-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}
.history-chapter-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid var(--line);
    background: var(--paper-2);
    padding: 1.6rem 1.7rem 1.8rem;
    color: var(--ink-body);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.history-chapter-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--line-strong); color: var(--ink-body); }
.chapter-card-num {
    font-family: var(--f-mono);
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brass);
}
.chapter-card-title {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 1.3rem;
    line-height: 1.18;
    color: var(--ink);
}
.chapter-card-years {
    font-family: var(--f-ui);
    font-size: 0.7rem;
    font-weight: 550;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.chapter-card-desc { font-size: 0.92rem; line-height: 1.6; margin-top: 0.3rem; }
.card-appendix { background: var(--paper-3); }

/* chapter pages */
.chapter-body {
    max-width: 47rem;
    margin: 0 auto;
    padding: calc(var(--header-h) + 3rem + clamp(2.5rem, 6vh, 4.5rem)) var(--gutter) 0;
}
.chapter-title-block { margin-bottom: 3rem; }
.chapter-eyebrow {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 1.1rem;
}
.eyebrow-divider { color: var(--ink-3); padding: 0 0.3rem; }
.chapter-heading {
    font-family: var(--f-display);
    font-weight: 390;
    font-size: clamp(2.4rem, 4.2vw, 3.8rem);
    line-height: 1.02;
    color: var(--ink);
    margin-bottom: 1.2rem;
    text-wrap: balance;
}
.chapter-deck {
    font-size: clamp(1.08rem, 1.4vw, 1.25rem);
    font-style: italic;
    line-height: 1.6;
    color: var(--ink-2);
}
.content-text { margin-bottom: 1.15em; }
.content-heading {
    font-family: var(--f-display);
    font-weight: 390;
    font-size: clamp(2.2rem, 3.8vw, 3.4rem);
    line-height: 1.05;
    color: var(--ink);
    margin-bottom: 0.9rem;
}
.content-eyebrow {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 0.8rem;
}
.content-deck {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--ink-2);
    margin-bottom: 1.6rem;
}
.content-subheading {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    color: var(--ink);
    margin: 2.6rem 0 1.1rem;
}
.chapter-xref { border-bottom: 1px solid color-mix(in srgb, var(--sea) 35%, transparent); }

.chapter-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    border-top: 1px solid var(--line);
    margin-top: 3.5rem;
    padding: 2rem 0 0;
}
.chapter-nav-link { display: flex; flex-direction: column; gap: 0.4rem; max-width: 46%; }
.chapter-nav-next { text-align: right; margin-left: auto; }
.chapter-nav-label {
    font-family: var(--f-mono);
    font-size: 0.64rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.chapter-nav-title { font-family: var(--f-display); font-weight: 500; font-size: 1.06rem; color: var(--ink); line-height: 1.3; }
.chapter-nav-link:hover .chapter-nav-title { color: var(--brass); }

.appendix-section { margin: 2.8rem 0; }
.table-scroll { overflow-x: auto; }
.appendix-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 1.2rem 0; }
.appendix-table th {
    font-family: var(--f-ui);
    font-size: 0.66rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    color: var(--ink-2);
    border-bottom: 1px solid var(--line-strong);
    padding: 0.55rem 1rem 0.55rem 0;
}
.appendix-table td { border-bottom: 1px solid var(--line-faint); padding: 0.6rem 1rem 0.6rem 0; vertical-align: top; }
.factcheck-item { margin: 1.2em 0; }
.source-category { margin-top: 1.6em; }
.source-list { padding-left: 1.3rem; }
.source-list li + li { margin-top: 0.45em; }
.colophon { font-size: 0.88rem; font-style: italic; color: var(--ink-2); border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; }
.back-link {
    display: inline-block;
    margin: 3rem 0 0;
    font-family: var(--f-mono);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.back-link:hover { color: var(--brass); }

/* ----------------------------------------------------------
   15. PAGE HEADER (interior pages)
   Legacy .page-header / .page-heading / .page-deck removed
   2026-07-30 (no usage on either site or in the Atlas build).
   .page-deck-rule and .page-lede remain in service.
   ---------------------------------------------------------- */
.page-deck-rule { margin-top: 2rem; }
.page-lede { font-size: 1.1rem; }

/* ----------------------------------------------------------
   16. FOOTER — the title block
   ---------------------------------------------------------- */
footer {
    margin-top: clamp(3.5rem, 8vh, 6rem);
    border-top: 1px solid var(--line-strong);
    background: var(--paper-3);
}
.footer-inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 var(--gutter) 2.5rem;
}
.title-block {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-left: 1px solid var(--line-strong);
    border-right: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}
.title-block .tb-cell {
    padding: 0.9rem 1.1rem 1rem;
    border-right: 1px solid var(--line);
    min-width: 0;
}
.title-block .tb-cell:last-child { border-right: none; }
.tb-label {
    display: block;
    font-family: var(--f-ui);
    font-size: 0.56rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 0.35rem;
}
.tb-value {
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* long org names abbreviate on small screens (tb-full/tb-short pairs) */
.tb-short { display: none; }
.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
    gap: clamp(2rem, 4vw, 4.5rem);
    padding: 3rem 0 2.5rem;
}
.footer-wordmark {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 1.7rem;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--ink);
    display: block;
    margin-bottom: 0.4rem;
}
.footer-tag {
    font-family: var(--f-mono);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
    display: block;
    margin-bottom: 1.4rem;
}
.footer-closer { font-size: 0.92rem; line-height: 1.65; max-width: 34em; }
.footer-col-head {
    font-family: var(--f-ui);
    font-size: 0.66rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 1rem;
}
.footer-nav-list { list-style: none; }
.footer-nav-list li { margin-bottom: 0.55rem; }
.footer-nav-list a { font-family: var(--f-text); font-size: 0.95rem; color: var(--ink-body); }
.footer-nav-list a:hover { color: var(--brass); }
.footer-contact p { font-size: 0.92rem; margin-bottom: 0.5rem; }
.footer-contact a { font-family: var(--f-mono); font-size: 0.82rem; }
.footer-lexi {
    font-size: 0.92rem;
    font-style: italic;
    color: var(--ink-2);
    margin: 0 0 1.5rem;
    max-width: 72ch;
}
.footer-lexi em { color: var(--ink); }
.footer-lexi .anno-tag {
    font-family: var(--f-mono);
    font-style: normal;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brass);
    margin-right: 0.7rem;
}
.footer-lexi a {
    color: var(--sea);
    border-bottom: 1px dotted color-mix(in srgb, var(--sea) 60%, transparent);
}
.footer-lexi a:hover { color: var(--brass); border-bottom-color: var(--brass); }

.footer-legal {
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem 2rem;
}
.footer-org, .footer-text {
    font-family: var(--f-ui);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--ink-3);
}
.footer-tagline { font-size: 0.92rem; font-style: italic; color: var(--ink-2); }

/* ----------------------------------------------------------
   17. FORMS (follow the work)
   ---------------------------------------------------------- */
.follow-form { display: flex; gap: 0; max-width: 30rem; margin-top: 1.6rem; }
.follow-form input {
    flex: 1;
    min-width: 0;
    font-family: var(--f-mono);
    font-size: 0.9rem;
    padding: 0.9rem 1.1rem;
    background: var(--paper-2);
    border: 1px solid var(--ink);
    border-right: none;
    color: var(--ink);
    outline: none;
}
.follow-form input::placeholder { color: var(--ink-3); }
.follow-form input:focus { border-color: var(--brass); }
.follow-form .btn { border-left: none; }

/* ----------------------------------------------------------
   17b. TWO-COLUMN CONTENT AREA (lexicon landing)
   ---------------------------------------------------------- */
.content-area {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: clamp(2rem, 4vh, 3rem) var(--gutter) 0;
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: start;
}
.main-col { min-width: 0; }
.sidebar { position: sticky; top: calc(var(--header-h) + 2rem); }
.sidebar-inner {
    border: 1px solid var(--line);
    background: var(--paper-2);
    padding: 1.7rem 1.8rem;
    margin-bottom: 1.25rem;
}
.sidebar-heading {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: 0.8rem;
}
.sidebar-text { font-size: 0.94rem; margin-bottom: 0.8em; }
/* .sidebar-contact / .sidebar-cta removed 2026-07-30 (unused) */
@media (max-width: 1179px) {
    .content-area { grid-template-columns: 1fr; }
    .sidebar { position: static; }
}

/* ----------------------------------------------------------
   18. REVEAL ANIMATION
   ---------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation: none !important; }
    .hero-lines .hl-curve { stroke-dasharray: none; stroke-dashoffset: 0; }
    .hero-lines .hl-station, .hero-lines .hl-water { opacity: 1; }
}

/* ----------------------------------------------------------
   19. RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 1179px) {
    .split, .split.split-flip { grid-template-columns: 1fr; }
    .split > .sticky-col { position: static; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-figure { order: -1; margin-bottom: 2.25rem; }
    /* the homepage masthead reads copy-first: keep the plan figure after the text when narrow */
    .hero-masthead-figure { order: 0; margin-bottom: 0; }
    .doc-layout { grid-template-columns: 1fr; }
    .doc-toc { position: static; border-left: none; padding-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; max-height: none; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .title-block { grid-template-columns: repeat(3, 1fr); }
    .title-block .tb-cell { border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px) {
    .header-nav { display: none; }
    .nav-toggle { display: inline-flex; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid .gallery-img { height: 240px; }
    .story-grid { grid-template-columns: 1fr; }
    .band-inner { grid-template-columns: 1fr; }
    .log-entry { grid-template-columns: 1fr; gap: 1.2rem; }
    .log-date-col { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; align-items: baseline; }
    .log-place { margin-top: 0; }
    .phase-item { grid-template-columns: 3rem minmax(0, 1fr); }
    .phase-cost { grid-column: 2; justify-self: start; text-align: left; }
    .board-grid { grid-template-columns: 1fr; }
    .subnav-prev, .subnav-next { font-size: 0.62rem; }
    .history-toc-dropdown { min-width: 88vw; }
}

@media (max-width: 640px) {
    /* footer title block: long org names swap to their abbreviations */
    .tb-full { display: none; }
    .tb-short { display: inline; }
}

@media (max-width: 560px) {
    :root { --header-h: 3.75rem; }
    body { font-size: 1rem; }
    .header-wordmark { font-size: 1.2rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-grid .gallery-img { height: 260px; }
    .dim-strip { gap: 0.7rem 1.6rem; }
    .log-photos img { height: 220px; }
    .footer-main { grid-template-columns: 1fr; }
    .title-block { grid-template-columns: repeat(2, 1fr); }
    .follow-form { flex-direction: column; }
    .follow-form input { border-right: 1px solid var(--ink); }
    .follow-form .btn { border-left: 1px solid var(--ink); justify-content: center; }
    .advisor-list li { flex-direction: column; gap: 0.1rem; }
    .advisor-list .advisor-role { text-align: left; }
    .chapter-nav { flex-direction: column; gap: 1.6rem; }
    .chapter-nav-link { max-width: 100%; }
    .chapter-nav-next { text-align: left; margin-left: 0; }
}

@media (min-width: 1800px) {
    :root { --site-max: 1720px; }
    body { font-size: 1.125rem; }
}

/* ----------------------------------------------------------
   20. PRINT
   ---------------------------------------------------------- */
@media print {
    #site-header, .theme-toggle, .nav-toggle, .band, .lightbox-overlay, .hero-ctas, .log-tease { display: none !important; }
    body { background: #fff; color: #111; font-size: 11pt; }
    .hero, .page-top, .chapter-body { padding-top: 1rem; }
    footer { background: none; }
    a { color: inherit; }
}


/* ----------------------------------------------------------
   21. SUPPORT — GIVING-FIRST HERO, WAYS TO GIVE, MUSTER ROLL
   (renumbered from a duplicate "14" 2026-07-30)
   ---------------------------------------------------------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: end; }
.hero-grid .figure { margin: 0; }

.give-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2.4rem; }
.btn-lg { font-size: 1rem; padding: 1.05rem 2.3rem; letter-spacing: 0.06em; }

.bona-fides {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 2rem;
    margin-top: 2.2rem; padding: 1.05rem 1.4rem;
    border: 1px solid var(--brass); background: var(--paper-2);
}
.bona-fides .bf-main {
    font-family: var(--f-mono); font-size: 0.95rem; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--brass); font-weight: 500;
}
.bona-fides .bf-etc {
    font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--ink-2);
}

.hero-milestone-strip {
    display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.4rem;
    margin-top: 1.2rem; padding: 0.7rem 1.1rem;
    border: 1px solid var(--line); background: var(--paper-3);
    font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--ink-2);
}
.hero-milestone-strip .ok { color: var(--brass); }

.give-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.give-grid-2 { grid-template-columns: repeat(2, 1fr); }  /* crew.html — four cards, 2×2 */
.give-card {
    border: 1px solid var(--line); background: var(--paper-2);
    padding: 1.8rem 1.9rem 1.9rem; display: flex; flex-direction: column;
}
.give-card .card-heading { font-size: 1.3rem; margin-bottom: 0.7rem; }
.give-card p { font-size: 1.02rem; line-height: 1.7; }
.give-card .btn { align-self: flex-start; }
.give-card-foot { margin-top: auto; padding-top: 1.2rem; }

/* Muster Roll ledger */
.muster-intro { max-width: 44rem; }
.muster { border-top: 1px solid var(--line-strong); }
.muster-tier { border-bottom: 1px solid var(--line); padding: 1.6rem 0.1rem 1.7rem; }
.muster-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.muster-name { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; color: var(--ink); }
.muster-name .muster-level {
    font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--brass); display: block; margin-bottom: 0.35rem;
}
.muster-amount { font-family: var(--f-mono); font-size: 1.05rem; color: var(--ink); white-space: nowrap; }
.muster-gifts { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.muster-gifts li {
    position: relative; padding-left: 1.6rem; margin-top: 0.5rem;
    font-size: 0.99rem; line-height: 1.6; color: var(--ink-body);
}
.muster-gifts li::before {
    content: "\2713"; position: absolute; left: 0.1rem; top: 0;
    color: var(--brass); font-size: 0.85rem;
}
.muster-gifts li.plus { color: var(--ink-3); font-style: italic; }
.muster-gifts li.plus::before { content: "+"; font-style: normal; }
.tier-note { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 1.4rem; line-height: 1.9; }

/* narrow tables beside plates */
.support-split { display: grid; grid-template-columns: minmax(0, 48rem) minmax(0, 1fr); gap: clamp(2.5rem, 4vw, 5rem); align-items: start; }
.support-split > .side { position: sticky; top: 6.5rem; }
.support-split .phase-list { margin-top: 1.5rem; }
.support-split .phase-item { grid-template-columns: 3.6rem minmax(0, 1fr) 8.5rem; gap: 1.2rem 1.4rem; padding: 1.4rem 0; }
.support-split .campaign-callout { margin: 1.75rem 0 0; }

@media (max-width: 1179px) {
    .hero-grid { grid-template-columns: 1fr; align-items: start; }
    .support-split { grid-template-columns: 1fr; }
    .support-split > .side { position: static; }
    .give-grid { grid-template-columns: repeat(2, 1fr); }  /* remapped 1100 -> 1179, merged (2026-07-30) */
}
@media (max-width: 640px) {
    .give-grid, .give-grid-2 { grid-template-columns: 1fr; }
    .give-actions .btn { width: 100%; justify-content: center; }
    .muster-head { flex-direction: column; gap: 0.2rem; }
    .support-split .phase-item { grid-template-columns: 3rem minmax(0,1fr); }
    .support-split .phase-cost { grid-column: 2; justify-self: start; text-align: left; }
}


/* ----------------------------------------------------------
   22. SUBSCRIBE — WEEKLY LOGBOOK EMAIL
   (renumbered from a duplicate "15" 2026-07-30)
   ---------------------------------------------------------- */
.subscribe-band {
    border-top: 1px solid var(--brass);
    border-bottom: 1px solid var(--brass);
    background: var(--paper-2);
    padding: clamp(2.2rem, 4.5vh, 3.2rem) clamp(1.5rem, 6vw, 6rem);
}
.subscribe-inner {
    max-width: var(--max-w, 96rem); margin: 0 auto;
    display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 1fr);
    gap: 2rem 4rem; align-items: center;
}
.subscribe-inner h2 {
    font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    color: var(--ink); margin: 0.5rem 0 0.6rem;
}
.subscribe-inner p { color: var(--ink-body); font-size: 1.02rem; line-height: 1.65; }
.subscribe-inner p + p { margin-top: 1em; }
.subscribe-form { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.subscribe-form input[type="email"] {
    flex: 1 1 16rem;
    font-family: var(--f-mono); font-size: 0.95rem; color: var(--ink);
    background: var(--paper); border: 1px solid var(--line-strong);
    padding: 1rem 1.2rem; outline: none; border-radius: 0;
}
.subscribe-form input[type="email"]:focus { border-color: var(--brass); }
.subscribe-form .btn { flex: none; }

/* crew sign-on — interest checkboxes, posted as list tags */
.crew-signon-form .signon-tags {
    flex-basis: 100%;
    border: 0;
    padding: 0;
    margin: 0 0 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.6rem;
    align-items: center;
}
.crew-signon-form .signon-tags legend {
    float: left;   /* keeps the legend inline with the chips */
    padding: 0;
    margin-right: 0.6rem;
    font-family: var(--f-mono);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.crew-signon-form .tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--line-strong);
    background: var(--paper-2);
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    user-select: none;
}
.crew-signon-form .tag-chip input { accent-color: var(--brass); margin: 0; }
.crew-signon-form .tag-chip:has(input:checked) {
    border-color: var(--brass);
    background: var(--paper);
}
/* four watches head — text left, company photo right (crew) */
.watches-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(240px, 24vw, 380px);
    column-gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
    margin-bottom: clamp(2.5rem, 5vh, 4rem);
}
.watches-fig { margin: 0; }
@media (max-width: 900px) {  /* remapped 820 -> 900 (2026-07-30) */
    .watches-head { grid-template-columns: 1fr; }
    .watches-fig { max-width: 24rem; margin-top: 2rem; }
}

/* the one rule of the yard — set off like a notice tacked to the shed */
.yard-rule {
    margin-top: 2rem;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--line-strong);
    border-left: 3px solid var(--brass);
    background: var(--paper-2);
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--ink-body);
}
.yard-rule strong {
    display: block;
    margin-bottom: 0.25rem;
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
}
@media (max-width: 1179px) { .subscribe-inner { grid-template-columns: 1fr; } }  /* remapped 1100 -> 1179 (2026-07-30) */

.band-form .subscribe-form { margin-top: 1.4rem; }


/* ----------------------------------------------------------
   23. TYPOGRAPHY — orphan/widow control, hyphenation, balance
   (renumbered from a duplicate "16" 2026-07-30)
   ---------------------------------------------------------- */
/* Pretty wrapping avoids single-word last lines and improves
   rag balance on the final lines of paragraphs (Bringhurst-ish). */
p, li, dd, figcaption, blockquote {
    text-wrap: pretty;
}
/* Headings, decks, and pulls balance across their lines. */
h1, h2, h3, h4,
.page-title, .sheet-title, .chapter-heading, .card-heading,
.page-lede, .sheet-deck, .chapter-deck,
.pullquote p, .tier-name, .muster-name {
    text-wrap: balance;
}
/* Discreet auto-hyphenation in running prose only — never in
   UI labels, mono annotations, addresses, or headings. */
.prose p, .content-text, .log-body p, .give-card p,
.card p, .board-bio, .page-lede, .sheet-deck, .chapter-deck,
figcaption, .phase-desc, .tier-benefits, .muster-gifts li {
    hyphens: auto;
    -webkit-hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
}
.anno, .fact-chip, .mailing-address, .btn, .eyebrow,
.log-date-col span, .dim-strip, .title-block, code, pre {
    hyphens: manual;
    -webkit-hyphens: manual;
    text-wrap: initial;
}

/* ============================================================
   HERO — image banner + editorial masthead (staging redesign)
   Wide photo up top, anchored low so the boat holds on very wide
   screens; identity + lead statement on paper below, with faint
   lofting lines drifting behind.
   ============================================================ */
.hero-banner { padding: 0; overflow: visible; }
.hero-banner .hero-media {
    position: relative;
    width: 100%;
    padding-top: var(--header-h);
    background: var(--paper);
}
.hero-banner .hero-photo {
    display: block;
    width: 100%;
    /* Boat-safe crop: the schooner sits in a centered 1260×1000 zone of the
       2400×1371 image. With object-fit: cover + centered object-position the
       crop stays safe while the box aspect ratio is between 1260/1371 (≈0.919)
       and 2400/1000 (2.4). We clamp to 100vw/2.0 to keep ~100px of image
       breathing room above and below the boat (lower divisor = more margin,
       taller hero; 2.4 = boat exactly grazes the crop). */
    height: clamp(calc(100vw / 2.0), clamp(46vh, 60vh, 40rem), calc(100vw * 1371 / 1260));
    object-fit: cover;
    object-position: 50% 50%;   /* boat zone centered; margins trim evenly */
}
/* tilt-shift — soft graduated blur band at the foot of the photo */
.hero-banner .hero-media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 16%;
    pointer-events: none;
    z-index: 1;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 100%);
    mask-image: linear-gradient(to top, #000 10%, transparent 100%);
}
.hero-banner .hero-credit {
    position: absolute;
    right: clamp(0.8rem, 2vw, 1.6rem);
    bottom: 0.7rem;
    font-family: var(--f-mono);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
    z-index: 2;   /* above the tilt-shift bands */
}

/* masthead — editorial text block on paper */
.hero-masthead {
    position: relative;
    background: var(--paper);
    overflow: hidden;
}
.hero-masthead-inner {
    position: relative;
    z-index: 1;
    max-width: var(--site-max);
    margin: 0 auto;
    padding: clamp(2.2rem, 5vh, 3.6rem) var(--gutter) clamp(1.8rem, 4vh, 2.8rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(200px, 34vw, 32rem);
    column-gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}
/* the brass tick spans both columns */
.hero-masthead-inner::before { grid-column: 1 / -1; }
.hero-masthead-figure { margin: 0; }
/* brass title-block tick above the identity row */
.hero-masthead-inner::before {
    content: "";
    display: block;
    width: 3.25rem;
    height: 2px;
    background: var(--brass);
    margin-bottom: 1.5rem;
}
.hero-banner .hero-anno {
    margin-bottom: 1.7rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.6rem;
}
.hero-lead {
    max-width: 46rem;
    margin: 0 0 2.1rem;
    font-family: var(--f-prose);
    font-size: clamp(1.08rem, 1.4vw, 1.28rem);
    line-height: 1.62;
    color: var(--ink-body);
    text-wrap: pretty;
}
.hero-lead .lead-in {
    display: block;
    font-family: var(--f-display);
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 380;
    font-size: clamp(2.2rem, 4.2vw, 3.3rem);
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 0.9rem;
}
.hero-lead .lead-in em,
.hero-lead .lead-in .yn { font-style: italic; }
/* keep the headline on a single line on standard desktop widths */
@media (min-width: 960px) {
    .hero-lead .lead-in { white-space: nowrap; }
}
.hero-banner .hero-foot {
    position: relative;
    z-index: 1;
    margin-top: 0;
    border-top: 1px solid var(--line);
}
/* accessibility helper */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {  /* remapped 820 -> 900 (2026-07-30) */
    .hero-banner .hero-photo { height: clamp(calc(100vw / 2.0), clamp(38vh, 46vh, 24rem), calc(100vw * 1371 / 1260)); }
    .hero-masthead-inner { grid-template-columns: 1fr; }
    .hero-masthead-figure { max-width: 22rem; margin-top: 2rem; }
    .hero-lead { font-size: clamp(1.02rem, 3.6vw, 1.18rem); }
    .hero-lead .lead-in { font-size: clamp(2rem, 8.5vw, 2.9rem); }
}


/* ============================================================
   §W. WIDE-VIEWPORT DRAFTING-MARGIN LAYOUT (July 29, 2026)
   At desk widths every sheet becomes a two-column drawing: the
   sheet head moves into a sticky left margin rail and the content
   takes the remaining width. Long prose can flow two-up with
   .prose-cols. Matches the treatment on ggwbf.org.
   ============================================================ */
@media (min-width: 1240px) {
    .sheet {
        display: grid;
        grid-template-columns: minmax(14rem, 19rem) minmax(0, 1fr);
        column-gap: clamp(3rem, 5vw, 6rem);
    }
    .sheet > * { grid-column: 2; min-width: 0; }
    .sheet > .sheet-head {
        grid-column: 1;
        grid-row: 1 / 99;
        position: sticky;
        top: calc(var(--header-h) + 2.5rem);
        align-self: start;
        margin-bottom: 0;
        border-top: 2px solid var(--ink);
        padding-top: 1.15rem;
        max-width: none;
    }
    .sheet .sheet-title { font-size: clamp(1.55rem, 1.9vw, 2.15rem); line-height: 1.14; }
    .sheet .sheet-deck { font-size: 0.98rem; margin-top: 0.9rem; }
    .sheet .prose { max-width: 66ch; }
    .sheet .prose-cols {
        columns: 2;
        column-gap: clamp(2.6rem, 3.5vw, 4.5rem);
        max-width: none;
        orphans: 2;
        widows: 2;
    }
    .prose-cols figure, .prose-cols blockquote { break-inside: avoid; }
    /* splits keep their text measure; the figure takes what remains */
    .sheet .split { grid-template-columns: minmax(0, 42rem) minmax(16rem, 1fr); }
}

/* ----------------------------------------------------------
   GGWBF DESIGN SYSTEM LAYER (November 2026)
   The July layout stays; this layer brings the type, colour and
   details to the design system and takes out the drafting-room
   ornament: eyebrows, sheet and figure numbers, drop caps,
   ruler ticks, the footer title block, passe-partout frames.
   ---------------------------------------------------------- */
:root { --yankee-gold: #93702B; --image-line: rgba(30, 38, 44, 0.24); }
[data-theme="dark"] { --yankee-gold: #C79B4B; --image-line: rgba(234, 228, 212, 0.2); }

body { font-size: 1.125rem; line-height: 1.6; font-weight: 300; font-variant-numeric: oldstyle-nums proportional-nums; font-feature-settings: "liga", "kern"; }
strong, b { font-weight: 600; }
h1, h2, h3, h4 { font-family: var(--f-display); }

/* Display type: Literata, tight, never heavy */
.page-title, .sheet-title, .chapter-heading, .content-heading, .hero-title {
    font-weight: 400; letter-spacing: -0.035em; line-height: 1.05;
}
.page-title em, .sheet-title em, .chapter-heading em, .content-heading em, .hero-title em { font-weight: 400; }
.sheet-title { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.card-heading, .story-card h3, .board-name, .chapter-card-title, .phase-title, .project-name { font-weight: 500; letter-spacing: -0.015em; }
.page-lede, .sheet-deck, .chapter-deck, .content-deck { font-weight: 300; }

/* Labels: IBM Plex Sans, lining figures, modest tracking */
.anno, .tb-label, .footer-col-head, .footer-tag, .dim-label, .dim-value, .log-date, .log-no, .log-place,
.toc-chapter-num, .status-flag, .anno-tag, .chapter-card-num, .chapter-card-years, .phase-num, .phase-cost,
.lightbox-counter, .tl-year, .muster-amount, .board-role, .board-email, .lexicon-filter-label, .tag-chip, .fact-chip {
    font-family: var(--f-ui);
    font-variant-numeric: lining-nums tabular-nums;
    font-style: normal;
}
.header-nav a, .mobile-menu a, .btn, .link-arrow { font-weight: 500; }
.anno { font-weight: 400; color: var(--ink-3); }

/* Ornament out */
.eyebrow, .sheet-no, .fig-no, .crit-no, .q-eyebrow, .eyebrow-divider + .eyebrow,
.title-block, .ticks, .dim-rule, .hero-lines, .pullquote::before, .pullquote::after { display: none !important; }
.dropcap::first-letter { all: unset; }
.dc-lead { all: unset; }
.hero-lead .lead-in { font-family: inherit; font-size: inherit; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--ink); }

/* What used to sit above a heading now sits below it, as a plain line */
.chapter-title-block { display: flex; flex-direction: column; }
.chapter-title-block .chapter-heading { order: 1; }
.chapter-title-block .chapter-eyebrow { order: 2; }
.chapter-title-block .chapter-deck { order: 3; }
.chapter-eyebrow, .content-eyebrow {
    font-family: var(--f-ui); font-size: 0.85rem; font-weight: 400; letter-spacing: 0; text-transform: none;
    color: var(--ink-3); margin: 0.6rem 0 0.9rem; font-variant-numeric: lining-nums;
}
.history-overview-intro { display: flex; flex-direction: column; }
.history-overview-intro > * { order: 3; }
.history-overview-intro > .content-heading { order: 1; }
.history-overview-intro > .content-eyebrow { order: 2; }
div:has(> .page-eyebrow-row) { display: flex; flex-direction: column; }
div:has(> .page-eyebrow-row) > * { order: 4; }
div:has(> .page-eyebrow-row) > .page-title { order: 1; }
div:has(> .page-eyebrow-row) > .page-lede { order: 2; }
div:has(> .page-eyebrow-row) > .page-eyebrow-row { order: 3; margin: 0 0 1.6rem; }
.page-eyebrow-row:empty { display: none; }
.hero-masthead-copy { display: flex; flex-direction: column; }
.hero-masthead-copy > * { order: 3; }
.hero-masthead-copy > .hero-lead { order: 1; margin-bottom: 1.2rem; }
.hero-masthead-copy > .hero-anno { order: 2; margin: 0 0 2rem; }
.lead-kicker { font-family: var(--f-display); font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; text-transform: none; color: var(--ink); }
.status-flag { font-size: 0.85rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--brass); }
.anno-tag { font-size: 0.8rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.footer-tag { font-size: 0.85rem; letter-spacing: 0; text-transform: none; }

/* Images: one hairline, no mat, no shadow */
.figure-frame { border: 0; padding: 0; background: none; box-shadow: none; }
.figure-frame img, .gallery-img, .hero-figure img, .plate img, .log-photos img, .history-hero-img {
    outline: 1px solid var(--image-line); outline-offset: -1px;
}
.hero-banner .hero-photo { outline: 0; }
figcaption { font-family: var(--f-ui); font-style: normal; font-size: 0.82rem; line-height: 1.5; color: var(--ink-3); }
figcaption em, figcaption .yn { font-style: italic; }

/* Square corners, no shadows anywhere */
*, *::before, *::after { box-shadow: none !important; }
#site-header.scrolled { box-shadow: 0 1px 0 var(--line) !important; }
.nav-toggle, .theme-toggle { border-radius: 0; }

/* Yankee logotype: official vector, 1906 always in Yankee gold */
.header-logotype { display: block; line-height: 0; }
.header-logotype svg { height: 19px; width: auto; display: block; fill: var(--ink); }
.footer-wordmark svg { height: 26px; width: auto; display: block; fill: var(--ink); }
.wm-vector .wm-date { fill: var(--yankee-gold); }
@media (max-width: 560px) { .header-logotype svg { height: 15px; } }

/* Header and footer grounds */
#site-header { background: color-mix(in srgb, var(--paper-2) 92%, transparent); }
footer { border-top: 2px solid var(--ink); }
.footer-main { padding-top: 3.5rem; }

/* Figures run lining in tables and facts */
table, .dim-strip, .tb-value, .phase-cost, .muster-amount { font-variant-numeric: lining-nums tabular-nums; }

/* Photographs sit unmatted; drawings keep a paper ground with a hairline */
.gallery-grid .gallery-img { border: 0; padding: 0; background: none; }
.gallery-grid .gallery-img:hover, .story-card:hover { transform: none; }
.plate { border: 1px solid var(--image-line); }
.plate .plate-stamp { display: none; }
.hero-masthead-inner::before { display: none; }

/* Card meta goes under the title, not above it */
.story-card .story-text .anno { order: 2; color: var(--ink-3); font-size: 0.8rem; letter-spacing: 0; text-transform: none; }
.story-card .story-text h3 { order: 1; }
.story-card .story-text p { order: 3; }
.story-card .story-text .story-more { order: 4; }

/* No accent stripe on cards; status reads as a plain line */
.status-card { border-left: 1px solid var(--line); }
.status-flag { border: 0; padding: 0; background: none; }

/* Fact chips read as a quiet run of facts, not pills */
.fact-chips { gap: 0.3rem 1.4rem; }
.fact-chip { border: 0; padding: 0; background: none; font-size: 0.85rem; letter-spacing: 0; text-transform: none; color: var(--ink-2); }

/* Giving levels: the level name leads, its rating follows */
.muster-name { display: flex; flex-direction: column-reverse; }
.muster-name .muster-level { font-family: var(--f-ui); font-size: 0.8rem; letter-spacing: 0; text-transform: none; color: var(--ink-3); margin: 0.3rem 0 0; font-weight: 400; }
.tax-box { border: 1px solid var(--line); }
.bona-fides { border: 1px solid var(--line); }
.bf-main { font-family: var(--f-ui); font-variant-numeric: lining-nums; }
.bf-etc { text-transform: none; letter-spacing: 0; font-family: var(--f-ui); }
.status-card { display: flex; flex-direction: column; }
.status-card > * { order: 3; }
.status-card > .card-heading { order: 1; }
.status-card > .status-flag { order: 2; margin: 0.2rem 0 0.9rem; }
div:has(> .page-eyebrow-row) > .page-eyebrow-row { margin-top: 0.9rem; }
.log-tease .anno { color: var(--ink-3); }
@media (max-width: 720px) {
    .log-tease-inner { flex-wrap: wrap; }
    .log-tease-text { white-space: normal; overflow: visible; text-overflow: clip; flex-basis: 100%; }
}
.log-entry .log-no { color: var(--ink-3); }
/* Two-card rows set inline stack on phones */
@media (max-width: 760px) { .split[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; } }
/* Header tabs a size up; the bar keeps its height (Hans, Nov 18) */
.header-nav a { font-size: 0.86rem; }
.header-nav .nav-cta a { padding: 0.5rem 1.1rem; }
/* Hans, Nov 18: tabs larger again; the logotype uses the Medium (24 pt) drawing */
.header-nav a { font-size: 0.88rem; }   /* Hans, Nov 19: slightly smaller */
.header-nav { gap: 1.8rem; }
/* Hans, Nov 18: logotype 25% larger in the header */
.header-logotype svg { height: 24px; }
@media (max-width: 560px) { .header-logotype svg { height: 17px; } }
/* Home page, from the Yankee Media Guide (Nov 18): the thesis line heads the hero */
.hero-headline {
    font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 4.2vw, 3.3rem);
    line-height: 1.05; letter-spacing: -0.035em; color: var(--ink); margin: 0 0 1.1rem; text-wrap: balance;
}
.hero-masthead-copy > .hero-headline { order: 0; }
.hero-masthead-copy > .hero-lead { order: 1; margin-bottom: 1.1rem; }
.hero-masthead-copy > .hero-ctas { order: 2; margin-top: 0.9rem; }
.sheet-head .sheet-deck { font-style: normal; }
.hero-masthead-figure .figure-frame { border: 0; padding: 0; background: none; }
.hero-masthead-figure figcaption { text-transform: none; letter-spacing: 0; font-size: 0.82rem; color: var(--ink-3); margin-top: 0.6rem; }

/* ----------------------------------------------------------
   Beyond the system (Hans, Nov 18): more colour and small
   embellishments; softer buttons; the thesis line in italic.
   ---------------------------------------------------------- */
:root { --gold-tint: color-mix(in srgb, var(--brass) 13%, var(--paper)); --gold-tint-2: color-mix(in srgb, var(--brass) 22%, var(--paper));
        --band-warm: color-mix(in srgb, var(--brass) 6%, var(--paper-2)); --band-sea: color-mix(in srgb, var(--sea) 8%, var(--paper)); }

/* Buttons: quiet, sentence case, a gold tint instead of a black slab */
.btn, .btn-lg {
    font-family: var(--f-ui); font-size: 0.95rem; font-weight: 500; letter-spacing: 0; text-transform: none;
    padding: 0.7rem 1.25rem; border: 1px solid color-mix(in srgb, var(--brass) 45%, transparent);
    color: var(--ink); background: transparent; border-radius: 2px;
}
.btn:hover { background: var(--gold-tint); color: var(--ink); border-color: var(--brass); }
.btn-solid { background: var(--gold-tint); border-color: color-mix(in srgb, var(--brass) 60%, transparent); color: var(--ink); }
.btn-solid:hover { background: var(--gold-tint-2); border-color: var(--brass); color: var(--ink); }
[data-theme="dark"] .btn:hover, [data-theme="dark"] .btn-solid, [data-theme="dark"] .btn-solid:hover { color: var(--ink); }
.link-arrow { font-size: 0.95rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.link-arrow:hover { color: var(--brass); border-bottom-color: var(--brass); }

/* The thesis line */
.hero-headline { font-style: italic; font-weight: 400; letter-spacing: -0.03em; }
.hero-headline .stop { color: var(--brass); font-style: normal; }
.hero-headline::after { content: ""; display: block; width: 3.5rem; height: 2px; background: var(--brass); margin-top: 1.2rem; }

/* Section heads: a short gold rule in place of the heavy ink line */
.sheet-head::before { content: ""; display: block; width: 2.75rem; height: 2px; background: var(--brass); margin-bottom: 1.1rem; }
@media (min-width: 1240px) { .sheet > .sheet-head { border-top: 0; padding-top: 0; } }
.sheet-title { font-style: normal; }

/* Home page bands: warm paper for her history, a sea wash for the work */
#history, #work {
    border-image: conic-gradient(var(--band) 0 0) fill 0 / / 0 100vmax;
    padding-bottom: clamp(3.25rem, 7vh, 5.5rem); margin-top: clamp(2.5rem, 5vh, 4rem);
}
#history { --band: var(--band-warm); }
#work { --band: var(--band-sea); }
#gallery { padding-bottom: clamp(3rem, 6vh, 4.5rem); }

/* One line in each section set apart, in larger italic */
.prose .pull {
    font-style: italic; font-size: 1.28em; line-height: 1.45; color: var(--ink);
    margin: 2rem 0; padding-top: 1.1rem; position: relative;
}
.prose .pull::before { content: ""; position: absolute; top: 0; left: 0; width: 2rem; height: 1px; background: var(--brass); }
.prose .pull em { font-style: normal; }

/* Photographs: a warm hairline, captions a touch warmer */
#history .figure-frame img, #work .figure-frame img, .hero-masthead-figure img { outline-color: color-mix(in srgb, var(--brass) 35%, transparent); }
.gallery-item figcaption { transition: color 0.2s ease; }
.gallery-item:hover figcaption { color: var(--brass); }
#work { margin-top: 0; }
:root { --band-sea: color-mix(in srgb, var(--sea) 11%, var(--paper)); }
footer { border-top: 2px solid var(--brass); }
/* Hans, Nov 18: the sea-green wash read sickly; a clear pale Bay blue instead */
:root { --band-sea: #EDF2F7; }
[data-theme="dark"] { --band-sea: #132230; }
[data-theme="dark"] { --band-warm: #1B1E23; }
/* Hans, Nov 18: bands alternate. Hero and work on plain paper; history and gallery on the warm band */
#work { border-image: none; }
#gallery {
    --band: var(--band-warm); border-image: conic-gradient(var(--band) 0 0) fill 0 / / 0 100vmax;
    margin-top: 0; padding-bottom: clamp(3.25rem, 7vh, 5.5rem);
}
/* Hans, Nov 18: on wide screens the hero text keeps close to the Beeston photograph */
@media (min-width: 900px) {
    .hero-masthead-inner { grid-template-columns: minmax(0, 38rem) clamp(200px, 34vw, 32rem); justify-content: start; column-gap: clamp(2.5rem, 4vw, 4rem); }
}
/* Hans, Nov 18: no white gaps between the home page bands or above the footer */
#history { margin-top: 0; }
main:has(> #gallery:last-child) + footer { margin-top: 0; }

/* Home page, wide screens: the hero lines up with the sections below,
   its text over their text column and its picture over their pictures,
   leaving the title margin open (Hans Nov 18) */
@media (min-width: 1240px) {
  body.home .hero-masthead-inner {
    padding-left: calc(var(--gutter) + 19rem + clamp(3rem, 5vw, 6rem));
    grid-template-columns: minmax(0, 42rem) minmax(16rem, 1fr);
    column-gap: clamp(2rem, 3vw, 3.25rem);
    justify-content: stretch;
  }
}
/* the yard pictures beside the Foundation text */
#work .sticky-col { position: static; display: grid; gap: 1.6rem; }
#work .sticky-col .figure { margin: 0; }
#work .figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
#work .figure-pair .figure-frame img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: auto; }
#work .figure-pair figcaption { font-size: 0.85em; }
/* warm bands at half strength, halfway to the page paper (Hans Nov 18) */
#history, #gallery { --band: color-mix(in srgb, var(--band-warm) 50%, var(--paper)); }

/* Hans, Nov 18: saturate the embellishments. A richer gilt for the
   rules and accents, and a few more places for it */
:root { --gilt: #A9781A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --gilt: #DDA843; } }
[data-theme="dark"] { --gilt: #DDA843; }
:root { --gold-tint: color-mix(in srgb, var(--gilt) 18%, var(--paper)); --gold-tint-2: color-mix(in srgb, var(--gilt) 30%, var(--paper)); }
.hero-headline .stop { color: inherit; }
.hero-headline::after { background: var(--gilt); height: 3px; width: 4rem; }
.sheet-head::before { background: var(--gilt); height: 3px; width: 3rem; }
.prose .pull::before { background: var(--gilt); height: 2px; width: 2.5rem; }
footer { border-top: 3px solid var(--gilt); }
.btn, .btn-lg { border-color: color-mix(in srgb, var(--gilt) 60%, transparent); }
.btn-solid { border-color: var(--gilt); }
.btn:hover, .btn-solid:hover { border-color: var(--gilt); }
.link-arrow { color: var(--gilt); border-bottom-color: color-mix(in srgb, var(--gilt) 45%, transparent); }
.link-arrow:hover { color: var(--ink); border-bottom-color: var(--gilt); }
/* Support in the header: the same gold tint as the buttons */
.header-nav .nav-cta a { background: var(--gold-tint); border: 1px solid var(--gilt); color: var(--ink); }
.header-nav .nav-cta a:hover { background: var(--gold-tint-2); color: var(--ink); border-color: var(--gilt); }
.header-nav a:hover { border-bottom-color: var(--gilt); }
/* A gilt hairline under the header */
#site-header { border-bottom-color: color-mix(in srgb, var(--gilt) 45%, transparent); }
/* Photographs: a gilt hairline */
#history .figure-frame img, #work .figure-frame img, .hero-masthead-figure img, .gallery-grid .gallery-img { outline-color: color-mix(in srgb, var(--gilt) 50%, transparent); }
.gallery-item:hover figcaption { color: var(--gilt); }
/* Hans, Nov 18: the header takes the footer's paper */
#site-header { background: color-mix(in srgb, var(--paper-3) 94%, transparent); }
/* Hans, Nov 18: in the hero only, the gutter moves left and the picture grows */
@media (min-width: 1240px) {
  body.home .hero-masthead-inner { grid-template-columns: minmax(0, 32rem) minmax(16rem, 1fr); }
}
/* Hans, Nov 18: archive pictures stacked beside her history */
#history .sticky-col { position: static; display: grid; gap: 1.6rem; }
#history .sticky-col .figure { margin: 0; }
/* a picture set in the text column */
.prose .figure-inline { margin: 2.2rem 0; }
.prose .figure-inline figcaption { font-size: 0.82rem; }
/* Hans, Nov 18: the 1941 photograph at its own proportions, not a tall crop */
body.home #history .figure-portrait .figure-frame img { height: auto; object-fit: unset; }
/* Hans, Nov 18: the Logbook invitation in the hero, set as a pull line */
.hero-masthead-copy > .hero-pull {
    font-style: italic; font-size: 1.28em; line-height: 1.42; color: var(--ink);
    position: relative; padding-top: 1.1rem; margin-top: 1.6rem; margin-bottom: 1.4rem;
}
.hero-masthead-copy > .hero-pull::before { content: ""; position: absolute; top: 0; left: 0; width: 2.5rem; height: 2px; background: var(--gilt); }
/* Hans, Nov 18: the Foundation's name in Foundation green, medium weight, as a link */
:root { --fdn-green: #3f7d86; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --fdn-green: #8fb6be; } }
[data-theme="dark"] { --fdn-green: #8fb6be; }
a.fdn-link { color: var(--fdn-green); font-weight: 500; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--fdn-green) 35%, transparent); }
a.fdn-link:hover { border-bottom-color: var(--fdn-green); }
/* Hans, Nov 18: buttons inside running text keep their own gilt border
   (the prose link underline was tinting their bottom edge green) */
.prose a.btn, .prose a.btn:hover { border-bottom-color: inherit; }
.prose a.btn { border-bottom-color: color-mix(in srgb, var(--gilt) 60%, transparent); }
.prose a.btn-solid, .prose a.btn:hover, .prose a.btn-solid:hover { border-bottom-color: var(--gilt); }
/* Hans, Nov 18: no underline on the Foundation name link */
.prose a.fdn-link, .prose a.fdn-link:hover, a.fdn-link, a.fdn-link:hover { border-bottom: 0; text-decoration: none; }
a.fdn-link:hover { color: var(--gilt); }

/* Yankee footer: the Foundation's name in two lines, and the closer as a mission statement (Hans, Nov 18) */
a.footer-fdn { display: block; margin-bottom: 0.9rem; color: var(--ink); text-decoration: none; border: 0; font-family: var(--f-display); text-transform: uppercase; line-height: 1.1; }
a.footer-fdn .ff-l1 { display: block; font-size: 2.1rem; font-weight: 500; letter-spacing: 0.04em; }
a.footer-fdn .ff-l2 { display: block; font-size: 1.02rem; font-weight: 400; letter-spacing: 0.13em; margin-top: 0.3rem; }
a.footer-fdn:hover { color: var(--gilt); }
a.footer-fdn ~ .footer-closer { font-family: var(--f-display); font-size: 1.22rem; line-height: 1.5; max-width: 26em; color: var(--ink); margin-top: 1.3rem; text-wrap: pretty; }
a.footer-fdn ~ .footer-closer::before { content: ""; display: block; width: 3rem; border-top: 2px solid var(--gilt); margin-bottom: 1rem; }
.footer-tag.footer-place { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 0; }

/* ---- ggwbf.css ---- */
/* ----------------------------------------------------------
   ggwbf.org (worker ggwbf, November 2026)
   The Foundation's pages in the approved home-page manner:
   margin titles, columns, alternating half-strength bands,
   pull lines and credited pictures, with the Foundation's
   green brass where the Yankee site uses Yankee gold.
   Theme tokens are scoped to pages that load foundation.css;
   everything else is scoped to body.fdn.
   ---------------------------------------------------------- */

/* The accent: green brass in place of gilt, on Foundation pages only */
:root:has(link[href*="foundation.css"]) { --gilt: #3f7d86; }
[data-theme="dark"]:has(link[href*="foundation.css"]) { --gilt: #8fb6be; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):has(link[href*="foundation.css"]) { --gilt: #8fb6be; }
}

/* Bands: every section closes with the same air it opens with,
   and alternate sections take the warm paper at half strength */
body.fdn main > .sheet { padding-bottom: clamp(3.25rem, 7vh, 5.5rem); }
/* the same warm paper as the Yankee site (there the tint comes from gold brass) */
body.fdn main > .sheet.band-warm {
    --band: color-mix(in srgb, color-mix(in srgb, #93702B 6%, var(--paper-2)) 50%, var(--paper));
    border-image: conic-gradient(var(--band) 0 0) fill 0 / / 0 100vmax;
}
[data-theme="dark"] body.fdn main > .sheet.band-warm { --band: color-mix(in srgb, #1B1E23 50%, var(--paper)); }
body.fdn main { overflow-x: clip; }
/* margin titles carry the short green rule only, as on the Yankee home page */
body.fdn .sheet > .sheet-head { border-top: 0; padding-top: 0; }
body.fdn footer { margin-top: 0; }

/* Titles stay roman; a boat's name inside one keeps its italic */
body.fdn .sheet-title em, body.fdn .page-title em { font-style: italic; }
body.fdn .sheet-title { text-wrap: balance; }

/* Page heads on the inner pages: the title, a green rule, the lede */
body.fdn .page-top { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vh, 4.5rem)); }
body.fdn .page-title {
    font-size: clamp(2.3rem, 4.4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em;
    font-style: italic; margin-bottom: 0;
}
body.fdn .page-title::after { content: ""; display: block; width: 4rem; height: 3px; background: var(--gilt); margin: 1.2rem 0 1.4rem; }
body.fdn .page-lede { font-size: clamp(1.12rem, 1.4vw, 1.28rem); line-height: 1.6; max-width: 38em; color: var(--ink); }
body.fdn .page-top-inner > .page-lede:last-child { margin-bottom: clamp(2.2rem, 5vh, 3.4rem); }
body.fdn .page-top + .sheet { border-top: 1px solid color-mix(in srgb, var(--gilt) 30%, transparent); border-image: none; }
@media (min-width: 1240px) {
    /* the page head lines up with the text column, leaving the title margin open */
    body.fdn .page-top-inner { padding-left: calc(var(--gutter) + 19rem + clamp(3rem, 5vw, 6rem)); }
}

/* Home hero: second paragraph and buttons sit a little apart */
body.fdn-home .hero-masthead-copy > .hero-lead + .hero-lead { margin-top: 0; }
body.fdn-home .hero-masthead-figure figcaption .yn { font-style: italic; }
body.fdn-home .hero { padding-bottom: clamp(1rem, 3vh, 2rem); }

/* Text and pictures in columns; pictures stack beside the text */
body.fdn .split > .sticky-col { position: static; display: grid; gap: 1.6rem; }
body.fdn .split > .sticky-col .figure { margin: 0; }
body.fdn .figure-frame img { outline-color: color-mix(in srgb, var(--gilt) 50%, transparent); width: 100%; height: auto; display: block; }
body.fdn .hero-masthead-figure img { outline-color: color-mix(in srgb, var(--gilt) 50%, transparent); }
/* upright pictures are height-limited */
body.fdn .fig-tall .figure-frame img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; }
@media (max-width: 1179px) {
    body.fdn .split > .sticky-col { grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); align-items: start; margin-top: 0.4rem; }
    body.fdn.history .sheet .split { grid-template-columns: minmax(0, 1fr); }
}

/* Running text */
body.fdn .prose .hero-ctas, body.fdn .fdn-form .hero-ctas { margin-top: 2rem; }
body.fdn .prose .fact-chips { margin-top: 1.6rem; }
body.fdn .prose strong { font-weight: 500; color: var(--ink); }
body.fdn .sheet > .prose + .criteria, body.fdn .sheet > .prose + .fdn-pair { margin-top: 2.2rem; }

/* Two text columns side by side, each with its own heading or buttons */
body.fdn .fdn-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
body.fdn .fdn-pair .prose { max-width: 40rem; font-size: 1.125rem; line-height: 1.75; }
@media (min-width: 900px) {
    body.fdn .fdn-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2.6rem, 3.5vw, 4.5rem); }
}
body.fdn .fdn-sub {
    font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.015em;
    line-height: 1.2; color: var(--ink); margin: 0 0 0.8rem;
}
body.fdn .fdn-sub-gap { margin-top: 2.6rem; }
body.fdn .fdn-after { margin-top: 2.2rem; }

/* The mission statement: larger roman under a green rule, no label */
body.fdn .statement { border-top: 3px solid var(--gilt); border-bottom: 0; padding: 1.5rem 0 0; margin: 0 0 0.6rem; max-width: 46rem; }
body.fdn .statement p { font-weight: 400; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.4; letter-spacing: -0.015em; }

/* Criteria and policies: a plain ruled list, two-up on wide screens */
body.fdn .criteria { margin: 0; gap: 1.5rem clamp(2.6rem, 3.5vw, 4.5rem); }
body.fdn .criteria + .prose { margin-top: 2.2rem; }
body.fdn .criterion { border-top: 1px solid color-mix(in srgb, var(--gilt) 40%, transparent); padding-top: 1rem; }
body.fdn .criterion h3 { font-weight: 500; font-size: 1.18rem; letter-spacing: -0.015em; }
body.fdn .criterion p { font-size: 1.02rem; line-height: 1.65; }
body.fdn .criterion a { border-bottom: 1px solid color-mix(in srgb, var(--gilt) 45%, transparent); }
@media (min-width: 760px) and (max-width: 1239px) { body.fdn .criteria { grid-template-columns: 1fr 1fr; } }

/* The board */
body.fdn .board-grid { margin-top: 0; gap: 1.6rem clamp(2.6rem, 3.5vw, 4.5rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { body.fdn .board-grid { grid-template-columns: 1fr 1fr; } }
body.fdn .board-card { background: none; border: 0; border-top: 1px solid color-mix(in srgb, var(--gilt) 40%, transparent); padding: 1rem 0 0; }
body.fdn .board-card .board-name { display: block; font-size: 1.25rem; }
body.fdn .board-card .board-role { font-size: 0.85rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--gilt); margin: 0.2rem 0 0.7rem; }
body.fdn .board-card p { font-size: 1rem; line-height: 1.65; }

/* The record */
body.fdn .record-table { margin: 0 0 2rem; }
body.fdn .record-table th { font-size: 0.9rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-2); white-space: normal; width: 26%; }
body.fdn .record-table td { font-family: var(--f-text); font-size: 1.02rem; }
body.fdn .record-table th, body.fdn .record-table td { border-bottom-color: color-mix(in srgb, var(--gilt) 30%, transparent); }

/* Forms (visual only for now) */
body.fdn .fdn-form { display: grid; gap: 1.1rem; max-width: 36rem; }
body.fdn .fdn-form .ff-row { display: grid; gap: 0.35rem; }
body.fdn .fdn-form label { font-family: var(--f-ui); font-size: 0.9rem; font-weight: 500; color: var(--ink-2); }
body.fdn .fdn-form input, body.fdn .fdn-form select, body.fdn .fdn-form textarea {
    font-family: var(--f-text); font-size: 1rem; line-height: 1.4; color: var(--ink); background: var(--paper);
    border: 1px solid color-mix(in srgb, var(--gilt) 55%, transparent); border-radius: 2px; padding: 0.6rem 0.75rem;
    width: 100%; min-width: 0; box-sizing: border-box;
}
body.fdn .fdn-form textarea { resize: vertical; }
body.fdn .fdn-form input:focus, body.fdn .fdn-form select:focus, body.fdn .fdn-form textarea:focus { outline: 2px solid var(--gilt); outline-offset: 1px; }
body.fdn .fdn-form button.btn { cursor: pointer; }
body.fdn .fdn-form .hero-ctas { margin-top: 0.4rem; }
body.fdn .fdn-form .form-thanks { font-style: italic; color: var(--ink); margin: 0; }

/* Footer: the mission line under a green rule, as on the Yankee site */
body.fdn .footer-closer { font-family: var(--f-display); font-size: 1.08rem; line-height: 1.55; max-width: 28em; color: var(--ink); text-wrap: pretty; }
body.fdn .footer-closer::before { content: ""; display: block; width: 3rem; border-top: 2px solid var(--gilt); margin-bottom: 1rem; }
body.fdn .footer-tag { margin-bottom: 1.1rem; }

/* The "has moved" stubs */
body.fdn-stub .page-top-inner { min-height: 46vh; }
/* between phone and desk widths the text keeps a reading measure */
@media (max-width: 1179px) { body.fdn .split .prose { max-width: 44rem; } }

/* Foundation home opening: text only, headline on one line (Hans, Nov 19) */
body.fdn-home .hero-masthead-inner { grid-template-columns: minmax(0, 1fr); }
body.fdn-home .hero-masthead-copy { max-width: 46rem; }
@media (min-width: 900px) { body.fdn-home .hero-headline { white-space: nowrap; } }

/* Header: Atlas and Glossary on the same baseline as the other tabs, set further apart (Hans, Nov 19).
   ggwbf.org headers only (they carry the Foundation wordmark); the wider nav folds into the menu below 1320px (Waterfront tab added Nov 19). */
#site-header:has(.header-fdn-wm) .header-nav { align-items: baseline; }
/* foundation.css loads after style.css, so these carry the header id to win. One even space throughout (Hans, Nov 19). */
#site-header .header-nav .nav-lib-group { display: flex; align-items: baseline; gap: 1.8rem; margin-left: 0; padding-left: 1.8rem; }
#site-header .header-nav .nav-lib-group a + a { margin-left: 0; }
#site-header:has(.header-fdn-wm) .header-nav .nav-cta { margin-left: 0; }
.header-fdn-wm { flex-shrink: 0; }
@media (max-width: 1319px) {
    #site-header:has(.header-fdn-wm) .header-nav { display: none; }
    #site-header:has(.header-fdn-wm) .nav-toggle { display: inline-flex; }
}

/* Foundation home opening: less space above the headline, Yankee line as a pull quote (Hans, Nov 19) */
body.fdn-home .hero { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vh, 4.5rem)); }
body.fdn-home .hero-masthead-inner { padding-top: 0; }
body.fdn-home .hero-masthead-copy > .hero-pull { order: 1; margin: 0.9rem 0 1.4rem; max-width: 40rem; }
body.fdn-home .hero-pull em.yn { font-style: normal; }
body.fdn-home #flagship .figure-portrait .figure-frame img { height: auto; object-fit: unset; aspect-ratio: auto; }

/* Waterfront history (Nov 19): the Yankee history pattern on ggwbf.org; drawings and tall scans held to a sensible height */
body.fdn.history .figure-drawing .figure-frame img, body.fdn.history .sticky-col .figure-frame img { max-height: 34rem; width: auto; max-width: 100%; margin: 0 auto; }
body.fdn.history .history-banner .hero-photo { object-position: 50% 62%; }

/* Home headline set exactly like the inner page titles (Hans, Nov 19): same size, tracking, rule and gap to the lede */
body.fdn-home .hero-headline { font-size: clamp(2.3rem, 4.4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 0; }
body.fdn-home .hero-headline::after { width: 4rem; height: 3px; margin: 1.2rem 0 1.4rem; }
body.fdn-home .hero-masthead-copy > .hero-lead:first-of-type { line-height: 1.6; max-width: 38em; color: var(--ink); }

/* ---- history.css ---- */
/* ----------------------------------------------------------
   HISTORY (November 2026). The overview page and the chapter
   pages, laid out like the approved home page: title in the
   left margin, prose in a reading column, pictures beside it.
   Every rule is scoped to body.history.
   See reports/history-pattern.md for the markup.
   ---------------------------------------------------------- */

/* The page starts under the fixed header. The July chapter sub-bar is gone. */
body.history .history-subnav { display: none; }
body.history .sheet { padding-bottom: clamp(3.25rem, 7vh, 5.5rem); }
body.history main > .sheet:first-child { padding-top: calc(var(--header-h) + clamp(2.75rem, 6vh, 4.5rem)); }
body.history main + footer { margin-top: 0; }

/* Title rail: the chapter title is the page's h1, set as a section title */
body.history h1.sheet-title { margin: 0; }
body.history .sheet-head .sheet-deck { font-style: normal; color: var(--ink-3); font-family: var(--f-ui); font-size: 0.9rem; font-variant-numeric: lining-nums; margin-top: 0.8rem; }

/* Spreads: a block of prose with its pictures beside it. A chapter is a run of spreads. */
@media (min-width: 1240px) {
    body.history .sheet .split { grid-template-columns: minmax(0, 36rem) minmax(16rem, 1fr); }
    body.history .sheet > .prose { max-width: 36rem; }
}
body.history .sheet > .prose { font-size: 1.125rem; line-height: 1.75; }
body.history .split + .split, body.history .split + .prose, body.history .prose + .split { margin-top: 1.3rem; }
body.history .split > .sticky-col { position: static; display: grid; gap: 1.6rem; align-content: start; }
body.history .split > .sticky-col .figure { margin: 0; }
@media (min-width: 1180px) { body.history .split > .sticky-col { padding-top: 0.45rem; } }
@media (max-width: 1179px) {
    body.history .split > .prose, body.history .sheet > .prose, body.history .chapter-nav { max-width: 40rem; }
    body.history .split > .sticky-col { margin: 0.9rem 0 1.2rem; max-width: 34rem; }
}

/* Standfirst: one or two italic sentences at the head of the prose */
body.history .prose .standfirst {
    font-style: italic; font-size: 1.2em; line-height: 1.5; color: var(--ink-2);
    margin: 0 0 1.6rem; text-wrap: pretty;
}
body.history .prose .standfirst em { font-style: normal; }
body.history .prose .standfirst + p { margin-top: 0; }

/* Subheadings inside a chapter */
body.history .prose h2 {
    font-family: var(--f-display); font-weight: 500; font-size: 1.4rem; line-height: 1.25;
    letter-spacing: -0.015em; color: var(--ink); margin: 2.6rem 0 0.9rem; text-wrap: balance;
}
body.history .prose h2 + p { margin-top: 0; }
body.history .prose > h2:first-child { margin-top: 0; }
body.history .split:has(> .prose > h2:first-child) { margin-top: 2.8rem; }

/* Quotations from the record (a log entry, a newspaper line) */
body.history .prose blockquote {
    margin: 1.6rem 0; padding: 0 0 0 1.2rem; border-left: 2px solid var(--gilt);
    font-style: italic; color: var(--ink);
}
body.history .prose blockquote cite { display: block; margin-top: 0.4rem; font-family: var(--f-ui); font-style: normal; font-size: 0.85rem; color: var(--ink-3); }

/* Pictures: a gilt hairline, upright pictures limited in height, nothing cropped */
body.history .figure-frame img { outline-color: color-mix(in srgb, var(--gilt) 50%, transparent); cursor: zoom-in; }
body.history .figure figcaption { margin-top: 0.6rem; text-wrap: pretty; }
body.history .figure-portrait .figure-frame img {
    width: auto; max-width: 100%; height: auto; max-height: min(34rem, 82vh); object-fit: unset;
}
body.history .prose .figure-inline { margin: 2.2rem 0; }
/* drawings and paper: a light ground so they hold in the dark theme */
body.history .figure-drawing .figure-frame img { background: #fff; }
/* three pictures in a row under the prose */
body.history .figure-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 2.2rem 0 0; }
body.history .figure-row .figure { margin: 0; }
body.history .figure-row .figure-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 760px) { body.history .figure-row { grid-template-columns: minmax(0, 1fr); } }

/* Chapter navigation: previous, contents, next, as plain buttons */
body.history .chapter-nav {
    display: block; border-top: 1px solid var(--line); margin-top: 3.5rem; padding: 1.5rem 0 0; max-width: 36rem;
}
body.history .chapter-nav .chapter-count {
    font-family: var(--f-ui); font-size: 0.85rem; color: var(--ink-3); margin: 0 0 0.9rem; font-variant-numeric: lining-nums;
}
body.history .chapter-nav .hero-ctas { gap: 0.75rem; }
@media (max-width: 560px) {
    body.history .chapter-nav .hero-ctas { flex-direction: column; align-items: stretch; }
    body.history .chapter-nav .btn { justify-content: center; text-align: center; }
}

/* Tables (appendices) */
body.history .table-scroll { overflow-x: auto; margin: 1.4rem 0; }
body.history .appendix-table { margin: 0; font-size: 0.95rem; }
body.history .appendix-table th {
    font-family: var(--f-ui); font-size: 0.85rem; font-weight: 500; letter-spacing: 0; text-transform: none;
    color: var(--ink-3); text-align: left; border-bottom: 1px solid var(--line-strong);
}
body.history .source-list { padding-left: 1.3rem; font-size: 0.98rem; line-height: 1.6; }
body.history .source-list li + li { margin-top: 0.45rem; }

/* ---------- Overview page ---------- */
body.history .history-banner .hero-photo {
    height: clamp(calc(100vw / 2.6), 46vh, 34rem); object-position: 50% 55%;
}
body.history .history-banner .hero-credit {
    font-family: var(--f-ui); font-size: 0.75rem; letter-spacing: 0; text-transform: none;
}
body.history main > .history-banner + .sheet { padding-top: clamp(3.25rem, 7vh, 5.5rem); }

/* warm bands, at the home page's half strength */
body.history .sheet.band {
    --band: color-mix(in srgb, var(--band-warm) 50%, var(--paper));
    border-image: conic-gradient(var(--band) 0 0) fill 0 / / 0 100vmax;
}

/* Twelve decades at a glance: year and event, in two columns */
body.history .glance { margin: 0; columns: 2; column-gap: clamp(2rem, 4vw, 4rem); max-width: 62rem; }
body.history .glance > div { break-inside: avoid; display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: 0 1rem; padding: 0.7rem 0; border-top: 1px solid var(--line); align-items: baseline; }
body.history .glance dt { font-family: var(--f-ui); font-size: 0.9rem; font-weight: 500; color: var(--gilt); font-variant-numeric: lining-nums tabular-nums; }
body.history .glance dd { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--ink-body, var(--ink)); }
@media (max-width: 760px) {
    body.history .glance { columns: 1; }
    body.history .glance > div { grid-template-columns: 5.6rem minmax(0, 1fr); }
}

/* Contents: number, title and years, one line */
body.history .chapter-list { list-style: none; margin: 0; padding: 0; max-width: 62rem; border-bottom: 1px solid var(--line); }
body.history .chapter-list li { margin: 0; border-top: 1px solid var(--line); }
body.history .chapter-list a {
    display: grid; grid-template-columns: 2.2rem minmax(0, 17rem) minmax(0, 1fr); gap: 0.2rem 1.25rem;
    padding: 0.95rem 0; color: inherit; text-decoration: none; border: 0; align-items: baseline;
}
body.history .chapter-list .cl-no { font-family: var(--f-ui); font-size: 0.9rem; color: var(--ink-3); font-variant-numeric: lining-nums tabular-nums; }
body.history .chapter-list .cl-title { font-family: var(--f-display); font-size: 1.2rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; color: var(--ink); }
body.history .chapter-list .cl-years { display: block; font-family: var(--f-ui); font-size: 0.85rem; font-weight: 400; letter-spacing: 0; color: var(--ink-3); margin-top: 0.2rem; font-variant-numeric: lining-nums; }
body.history .chapter-list .cl-line { font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
body.history .chapter-list a:hover .cl-title { color: var(--gilt); }
body.history .chapter-list a:focus-visible { outline: 2px solid var(--gilt); outline-offset: 2px; }
@media (max-width: 760px) {
    body.history .chapter-list a { grid-template-columns: 1.8rem minmax(0, 1fr); }
    body.history .chapter-list .cl-line { grid-column: 2; }
}

/* Waterfront overview (Hans, Nov 19): a small chapter list in the title rail of the first section,
   and a thumbnail on each row of the full list */
body.history .side-contents { margin-top: 2.2rem; max-width: 17rem; }
body.history .side-contents .sc-head { font-family: var(--f-ui); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 0.6rem; }
body.history .side-contents ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
body.history .side-contents li { margin: 0; border-bottom: 1px solid var(--line); }
body.history .side-contents a {
    display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); align-items: baseline; padding: 0.42rem 0;
    font-family: var(--f-ui); font-size: 0.88rem; line-height: 1.35; color: var(--ink-2); text-decoration: none; border: 0;
}
body.history .side-contents .sc-no { color: var(--ink-3); font-size: 0.8rem; font-variant-numeric: lining-nums tabular-nums; }
body.history .side-contents a:hover { color: var(--gilt); }
body.history .side-contents a:focus-visible { outline: 2px solid var(--gilt); outline-offset: 2px; }
@media (max-width: 1239px) { body.history .side-contents { display: none; } }

body.history .chapter-list a:has(.cl-thumb) { grid-template-columns: 7.5rem 2.2rem minmax(0, 15rem) minmax(0, 1fr); align-items: start; }
body.history .chapter-list .cl-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; outline: 1px solid color-mix(in srgb, var(--gilt) 50%, transparent); outline-offset: -1px; background: var(--paper-2); }
body.history .chapter-list .cl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.history .chapter-list a:has(.cl-thumb) .cl-no { padding-top: 0.25rem; }
body.history .chapter-list a:hover .cl-thumb img { opacity: 0.88; }
@media (max-width: 760px) {
    body.history .chapter-list a:has(.cl-thumb) { grid-template-columns: 5.5rem 1.6rem minmax(0, 1fr); column-gap: 0.9rem; }
    body.history .chapter-list a:has(.cl-thumb) .cl-thumb { grid-row: span 2; }
    body.history .chapter-list a:has(.cl-thumb) .cl-line { grid-column: 2 / -1; font-size: 0.95rem; }
}

/* Chapter and sources pages (Hans, Nov 19): previous, next and the chapter list in the sticky title rail */
body.history .side-contents a[aria-current="page"] { color: var(--ink); font-weight: 500; box-shadow: inset 2px 0 0 var(--gilt); padding-left: 0.5rem; grid-template-columns: 1.5rem minmax(0, 1fr); margin-left: -0.5rem; }
body.history .side-pn { display: grid; gap: 0.5rem; margin: 0 0 1.8rem; }
body.history .side-pn a {
    display: block; padding: 0.55rem 0.75rem; border: 1px solid var(--line); text-decoration: none;
    font-family: var(--f-ui); font-size: 0.88rem; line-height: 1.35; color: var(--ink);
}
body.history .side-pn a:hover { border-color: var(--gilt); color: var(--gilt); }
body.history .side-pn a:focus-visible { outline: 2px solid var(--gilt); outline-offset: 2px; }
body.history .side-pn .sp-dir { display: block; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.15rem; }
body.history .side-pn .sp-dir::before { content: "\2190\00a0"; }
body.history .side-pn .sp-next .sp-dir::before { content: ""; }
body.history .side-pn .sp-next .sp-dir::after { content: "\00a0\2192"; }
@media (min-width: 1240px) {
    body.history .sheet.chapter > .sheet-head { max-height: calc(100vh - var(--header-h) - 3.5rem); overflow-y: auto; scrollbar-width: thin; }
}
body.history .sheet.chapter .side-contents a { padding-block: 0.34rem; }
body.history .sheet.chapter .side-pn { margin-bottom: 1.5rem; }

/* Waterfront overview (Hans, Nov 19): a page heading like the other Foundation pages, then the banner without header clearance */
body.history .page-top + .history-banner .hero-media { padding-top: 0; }
body.history .page-top + .history-banner { margin-top: 0; }

/* ---- home-yankee.css ---- */
/* ----------------------------------------------------------
   YANKEE HOME (yankee1906.org/index.html), Hans Nov 19:
   heading and thesis above the full-width photograph, as on the
   History page, then "At the yard now." from the Logbook, then
   the history. Every rule is scoped to body.home:not(.fdn).
   ---------------------------------------------------------- */
body.home:not(.fdn) .page-top + .home-banner .hero-media { padding-top: 0; }
body.home:not(.fdn) .page-top + .home-banner { margin-top: 0; }
body.home:not(.fdn) .page-top-inner .page-lede { margin-bottom: clamp(2.2rem, 5vh, 3.2rem); }
body.home:not(.fdn) .home-banner .hero-photo { height: clamp(calc(100vw / 2.3), 58vh, 40rem); }
body.home:not(.fdn) .home-banner .hero-credit {
    font-family: var(--f-ui); font-size: 0.75rem; letter-spacing: 0; text-transform: none;
}

/* At the yard now */
body.home:not(.fdn) .home-log { padding-bottom: clamp(3.25rem, 7vh, 5.5rem); }
body.home:not(.fdn) .home-log-deck {
    font-family: var(--f-ui); font-size: 0.9rem; color: var(--ink-3); margin: 0.8rem 0 0;
}
body.home:not(.fdn) .home-log-date {
    font-family: var(--f-ui); font-size: 0.85rem; line-height: 1.45; color: var(--ink-3);
    margin: 0 0 0.5rem; font-variant-numeric: lining-nums;
}
body.home:not(.fdn) .log-title {
    font-family: var(--f-display); font-weight: 400; letter-spacing: -0.015em; line-height: 1.15;
    margin: 0 0 1rem; text-wrap: balance;
}
body.home:not(.fdn) .log-title a { color: var(--ink); text-decoration: none; border-bottom: 0; }
body.home:not(.fdn) .log-title a:hover { color: var(--gilt); }
body.home:not(.fdn) .log-feature .log-title { font-size: clamp(1.65rem, 2.3vw, 2.1rem); }
body.home:not(.fdn) .log-feature .post-lead { font-size: 1.12em; line-height: 1.6; color: var(--ink); }
body.home:not(.fdn) .log-feature .prose { max-width: 38em; }
body.home:not(.fdn) .log-feature .split { display: grid; gap: 2.4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) {
    body.home:not(.fdn) .log-feature .split { grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem); gap: clamp(2rem, 3.5vw, 3.5rem); align-items: start; }
}
body.home:not(.fdn) .log-feature .figure { margin: 0; }
body.home:not(.fdn) .log-feature .figure-frame img { display: block; width: 100%; height: auto; }
body.home:not(.fdn) .log-feature figcaption { font-size: 0.82rem; }
body.home:not(.fdn) .log-read { margin-top: 1.4rem; }
body.home:not(.fdn) .log-read a, body.home:not(.fdn) .log-card .log-title a {
    text-decoration: none;
}
body.home:not(.fdn) .log-read a {
    font-family: var(--f-ui); font-size: 0.95rem; font-weight: 500; color: var(--ink);
    padding-bottom: 0.15rem; border-bottom: 2px solid var(--gilt);
}
body.home:not(.fdn) .log-read a::after { content: " \2192"; color: var(--gilt); }
body.home:not(.fdn) .log-read a:hover { color: var(--gilt); }

/* the two entries before it */
body.home:not(.fdn) .log-cards {
    display: grid; gap: clamp(1.8rem, 3vw, 2.6rem); grid-template-columns: minmax(0, 1fr);
    margin-top: clamp(2.6rem, 6vh, 3.6rem); padding-top: clamp(2.6rem, 6vh, 3.6rem);
    border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
}
@media (min-width: 700px) { body.home:not(.fdn) .log-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.home:not(.fdn) .log-card { margin: 0; min-width: 0; }
body.home:not(.fdn) .log-card-img { display: block; margin-bottom: 1rem; }
body.home:not(.fdn) .log-card-img img {
    display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
    outline: 1px solid color-mix(in srgb, var(--ink) 24%, transparent); outline-offset: -1px;
}
body.home:not(.fdn) .log-card .log-title { font-size: clamp(1.25rem, 1.6vw, 1.45rem); margin-bottom: 0.6rem; }
body.home:not(.fdn) .log-card p:last-child { margin: 0; line-height: 1.6; color: var(--ink-2); }

/* follow along */
body.home:not(.fdn) .log-follow {
    margin-top: clamp(2.6rem, 6vh, 3.6rem); padding-top: clamp(2rem, 5vh, 2.8rem);
    border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
}
body.home:not(.fdn) .log-follow-note { font-size: 1.12em; line-height: 1.6; color: var(--ink); max-width: 38em; margin: 0 0 1.4rem; }

/* phones: show the whole photograph, boat and all */
@media (max-width: 760px) {
    body.home:not(.fdn) .home-banner .hero-photo { height: calc(100vw * 1371 / 2400); }
    body.home:not(.fdn) .home-banner .hero-credit { font-size: 0.62rem; right: 0.6rem; bottom: 0.45rem; }
}

/* The band under the photograph (Hans, Nov 19): the second half of the
   opening in larger italic on the medium paper, the last sentence in gilt;
   the photo credit stays on the photograph */
body.home:not(.fdn) .home-band {
    margin: 0; background: var(--paper-2); color: var(--ink);
    padding: clamp(1.8rem, 4vw, 3rem) var(--gutter) clamp(2rem, 4.4vw, 3.2rem);
    font-family: var(--f-display); font-style: italic; font-weight: 380;
    font-size: clamp(1.25rem, 2vw, 1.9rem); line-height: 1.36; text-wrap: pretty;
}
@media (min-width: 1240px) {
    body.home:not(.fdn) .home-band {
        padding-left: calc(max(0px, (100% - var(--site-max)) / 2) + var(--gutter) + 19rem + clamp(3rem, 5vw, 6rem));
        padding-right: calc(max(0px, (100% - var(--site-max)) / 2) + var(--gutter));
    }
}
body.home:not(.fdn) .home-band::before {
    content: ""; display: block; width: 2.5rem; height: 2px; background: var(--gilt); margin-bottom: 1.1rem;
}
body.home:not(.fdn) .home-band-last { color: var(--gilt); white-space: nowrap; }
body.home:not(.fdn) .home-band + * { margin-top: 0; }

/* ---- logbook.css ---- */
/* ----------------------------------------------------------
   THE LOGBOOK (yankee1906.org/logbook.html)
   Every rule is scoped to body.logbook.
   Each entry is a .sheet: title and date in the left margin,
   text and pictures to the right, as on the home page.
   ---------------------------------------------------------- */
body.logbook .page-top-inner > .page-lede:last-child { margin-bottom: clamp(2.2rem, 5vh, 3.2rem); }

/* bands: sheets meet edge to edge and alternate plain paper and the warm band at half strength */
body.logbook main > .sheet { margin-top: 0; padding-bottom: clamp(3.25rem, 7vh, 5.5rem); }
body.logbook .signup,
body.logbook .post:nth-of-type(odd) {
    --band: color-mix(in srgb, var(--band-warm) 50%, var(--paper));
    border-image: conic-gradient(var(--band) 0 0) fill 0 / / 0 100vmax;
}
body.logbook main + footer { margin-top: 0; }

/* date line under the entry title */
body.logbook .post-date {
    font-family: var(--f-ui); font-size: 0.88rem; font-weight: 400; line-height: 1.45;
    color: var(--ink-3); margin: 0.75rem 0 0; font-variant-numeric: lining-nums;
}

/* entry text */
body.logbook .post .prose { max-width: 66ch; }
body.logbook .post .split .prose { max-width: none; }
body.logbook .post-lead { font-size: 1.12em; line-height: 1.6; color: var(--ink); }
body.logbook .post-more { margin-top: 1.4rem; }
body.logbook .post-more > summary {
    display: inline-block; cursor: pointer; list-style: none;
    font-family: var(--f-ui); font-size: 0.95rem; font-weight: 500; color: var(--ink);
    padding-bottom: 0.15rem; border-bottom: 2px solid var(--gilt);
}
body.logbook .post-more > summary::-webkit-details-marker { display: none; }
body.logbook .post-more > summary::after { content: " +"; color: var(--gilt); font-weight: 600; }
body.logbook .post-more[open] > summary { display: none; }
body.logbook .post-more > summary:hover { color: var(--gilt); }
body.logbook .post-more > summary:focus-visible { outline: 2px solid var(--gilt); outline-offset: 4px; }
body.logbook .post-rest > p + p,
body.logbook .post-rest > figure + p { margin-top: 1.15em; }
body.logbook .post-rest .hero-ctas { margin-top: 2rem; }
body.logbook .post-update { font-size: 0.92em; color: var(--ink-2); font-style: italic; }
body.logbook .prose .pull { margin: 2rem 0; }

/* pictures: hairline, no shadow, captions with credits */
body.logbook .post .sticky-col { position: static; display: grid; gap: 1.6rem; }
body.logbook .post .sticky-col .figure { margin: 0; }
body.logbook .post .figure-frame img {
    display: block; width: 100%; height: auto;
    outline-color: color-mix(in srgb, var(--gilt) 50%, transparent);
}
body.logbook .post .figure-upright .figure-frame img { width: auto; max-width: 100%; max-height: 34rem; }
body.logbook .post figcaption { font-size: 0.82rem; }
@media (max-width: 1179px) {
    body.logbook .post .sticky-col { margin-top: 0.4rem; max-width: 34rem; }
}

/* sign-up form */
body.logbook .signup-body { max-width: 46rem; }
body.logbook .signup-note { font-size: 1.12em; line-height: 1.6; color: var(--ink); margin: 0 0 1.5rem; }
body.logbook .signup-form {
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
    gap: 1rem; align-items: end;
}
body.logbook .signup-field { display: grid; gap: 0.4rem; min-width: 0; }
body.logbook .signup-field label {
    font-family: var(--f-ui); font-size: 0.88rem; font-weight: 500; color: var(--ink-2);
}
body.logbook .signup-field .optional { font-weight: 400; color: var(--ink-3); }
body.logbook .signup-field input {
    font-family: var(--f-ui); font-size: 1rem; color: var(--ink);
    background: var(--paper); border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
    border-radius: 2px; padding: 0.7rem 0.85rem; width: 100%; min-width: 0; box-sizing: border-box;
}
body.logbook .signup-field input:focus { outline: 2px solid var(--gilt); outline-offset: 1px; border-color: var(--gilt); }
body.logbook .signup-form .btn { cursor: pointer; white-space: nowrap; }
body.logbook .signup-thanks {
    margin: 1rem 0 0; font-family: var(--f-ui); font-size: 0.95rem; font-weight: 500; color: var(--ink);
    padding-left: 0.8rem; border-left: 3px solid var(--gilt);
}
body.logbook .signup-aside { margin: 1.8rem 0 0; font-size: 0.95rem; color: var(--ink-2); }
body.logbook .signup-aside a { border-bottom: 1px solid color-mix(in srgb, var(--gilt) 60%, transparent); }
@media (max-width: 760px) {
    body.logbook .signup-form { grid-template-columns: minmax(0, 1fr); }
    body.logbook .signup-form .btn { justify-self: start; white-space: normal; }
}

/* index of entries by month */
body.logbook .index-months {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1.6rem clamp(1.5rem, 3vw, 3rem); max-width: 64rem;
}
body.logbook .index-month h3 {
    font-family: var(--f-ui); font-size: 0.88rem; font-weight: 500; color: var(--ink-3);
    margin: 0 0 0.5rem; padding-bottom: 0.45rem; border-bottom: 1px solid color-mix(in srgb, var(--gilt) 45%, transparent);
    font-variant-numeric: lining-nums; letter-spacing: 0;
}
body.logbook .index-month ul { list-style: none; margin: 0; padding: 0; }
body.logbook .index-month li { margin: 0.4rem 0; line-height: 1.4; }
body.logbook .index-month a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
body.logbook .index-month a:hover { color: var(--gilt); border-bottom-color: var(--gilt); }

/* an entry reached from the index clears the fixed header */
body.logbook .post, body.logbook .signup { scroll-margin-top: calc(var(--header-h) + 0.5rem); }
/* small originals are not enlarged past their size */
body.logbook .post .figure-small { max-width: 30rem; }

/* ----------------------------------------------------------
   ONE SHEET WITH A RAIL (Hans, Nov 19): the sign-up and the list
   of every entry sit in the left rail; the latest three entries
   are shown in full on logbook.html, older ones in full on
   logbook-archive.html.
   ---------------------------------------------------------- */
body.logbook .log-sheet { padding-top: clamp(1.5rem, 3.5vh, 2.75rem); padding-bottom: clamp(3.25rem, 7vh, 5.5rem); }
body.logbook .log-sheet .post { border-image: none; }

/* rail */
body.logbook .log-rail .sheet-title { font-size: clamp(1.35rem, 1.6vw, 1.55rem); line-height: 1.2; text-wrap: balance; }
body.logbook .log-signup .signup-note { font-size: 1rem; line-height: 1.55; margin: 0.8rem 0 1.1rem; color: var(--ink-2); }
body.logbook .log-signup .signup-form { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
body.logbook .log-signup .signup-form .btn { justify-self: start; }
body.logbook .log-signup .signup-field input { padding: 0.55rem 0.7rem; }
body.logbook .log-index { margin-top: 2.4rem; }
body.logbook .log-rail-head, body.logbook .log-month {
    font-family: var(--f-ui); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--ink-3); margin: 0;
}
body.logbook .log-rail-head { color: var(--ink); padding-bottom: 0.5rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
body.logbook .log-month { margin-top: 1rem; }
body.logbook .log-index ul { list-style: none; margin: 0.35rem 0 0; padding: 0; }
body.logbook .log-index li { margin: 0; }
body.logbook .log-index li a {
    display: block; padding: 0.22rem 0; font-size: 0.95rem; line-height: 1.35;
    color: var(--ink-2); text-decoration: none;
}
body.logbook .log-index li a:hover { color: var(--gilt); }
body.logbook .log-aside { font-size: 0.85rem; line-height: 1.5; color: var(--ink-3); margin: 1.4rem 0 0; }

/* entries */
body.logbook .log-sheet .post { padding: 0; margin: 0; }
body.logbook .log-sheet .post + .post {
    margin-top: clamp(3rem, 7vh, 4.5rem); padding-top: clamp(3rem, 7vh, 4.5rem);
    border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
}
body.logbook .post-head { margin-bottom: 1.6rem; }
body.logbook .post-title {
    font-family: var(--f-display); font-weight: 400; font-size: clamp(1.65rem, 2.3vw, 2.1rem);
    line-height: 1.15; letter-spacing: -0.015em; margin: 0; text-wrap: balance; max-width: 30em;
}
body.logbook .post-rest { margin-top: 1.15em; }
body.logbook .log-sheet .split { display: grid; gap: 2.4rem; grid-template-columns: minmax(0, 1fr); }
body.logbook .log-sheet .split .prose { max-width: 38em; }
@media (min-width: 1100px) {
    body.logbook .log-sheet .split { grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem); gap: clamp(2rem, 3.5vw, 3.5rem); align-items: start; }
}
body.logbook .log-more { margin: clamp(3rem, 7vh, 4.5rem) 0 0; padding-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }

/* the rail stays in view on wide screens and scrolls if it is taller than the window */
@media (min-width: 1240px) {
    body.logbook .log-sheet > .log-rail { max-height: calc(100vh - var(--header-h) - 3.5rem); overflow-y: auto; overscroll-behavior: contain; padding-right: 0.5rem; scrollbar-width: thin; }
}
/* narrower: sign-up first, then the entries, then the list */
@media (max-width: 1239px) {
    body.logbook .log-sheet { display: flex; flex-direction: column; }
    body.logbook .log-sheet > .log-rail { display: contents; }
    body.logbook .log-signup { order: 0; margin-bottom: clamp(2.5rem, 6vh, 3.5rem); padding-bottom: 2rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); max-width: 34rem; }
    body.logbook .log-sheet > .post, body.logbook .log-sheet > .log-more { order: 1; }
    body.logbook .log-index { order: 2; margin-top: clamp(3rem, 7vh, 4.5rem); max-width: 34rem; }
}

/* ---- reference.css ---- */
/* ----------------------------------------------------------
   REFERENCE PAGES (Nov 19, 2026): the Wooden Boat Atlas, the
   Maritime Glossary and its quiz share one layout with the
   Waterfront history. The page title and lede sit over the main
   column exactly as on Mission, Projects and Stewardship (body.fdn
   rules); below them a navigation rail on the left, the same width
   as the section-title rail, and the content on the right.
   restyle.py adds "fdn reference" to these pages' body classes.
   ---------------------------------------------------------- */
body.reference .page-deck-rule { display: none; }
body.reference div:has(> .page-eyebrow-row) > .page-eyebrow-row { margin: 0.9rem 0 0; }
body.reference .page-eyebrow-row, body.reference .page-eyebrow-row .anno {
    font-family: var(--f-ui); font-size: 0.85rem; letter-spacing: 0; text-transform: none; color: var(--ink-3);
}
body.reference .page-eyebrow-row a { color: var(--ink-2); border-bottom: 1px solid var(--line); text-decoration: none; }
body.reference .page-eyebrow-row a:hover { color: var(--gilt); }
body.reference .page-top-inner > .page-eyebrow-row:last-child,
body.reference .page-top-inner:has(> .page-eyebrow-row) { padding-bottom: clamp(2.2rem, 5vh, 3.4rem); }
body.reference .page-top-inner > .page-lede:last-child { margin-bottom: 0; }

/* the content: rail on the left from 1240px, matching .sheet */
body.reference main .content-area { padding-top: clamp(2.4rem, 5vh, 3.4rem); border-top: 1px solid color-mix(in srgb, var(--gilt) 30%, transparent); max-width: none; }
@media (min-width: 1240px) {
    body.reference main .content-area {
        grid-template-columns: 19rem minmax(0, 1fr);
        column-gap: clamp(3rem, 5vw, 6rem);
        max-width: var(--site-max);
    }
    body.reference .content-area > .sidebar { grid-column: 1; grid-row: 1; position: static; }
    body.reference .content-area > .main-col { grid-column: 2; grid-row: 1; max-width: 52rem; }
}

/* rail cards read like the Waterfront chapter list: no boxes, hairlines, small labels */
body.reference .sidebar-inner { border: 0; background: none; padding: 0; margin: 0 0 2.2rem; }
body.reference .sidebar-heading {
    font-family: var(--f-ui); font-size: 0.8rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ink-3); margin: 0 0 0.6rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line);
}
body.reference .sidebar-text { font-size: 0.92rem; line-height: 1.55; color: var(--ink-2); }

/* the Glossary's quiz card and button: the site's own button */
body.reference .lexicon-quiz-cta { text-align: left; }
body.reference .lexicon-quiz-cta .q-btn, body.reference .q-btn {
    font-family: var(--f-ui); font-size: 0.92rem; font-weight: 500; letter-spacing: 0; text-transform: none;
}
body.reference .lexicon-quiz-cta { background: none; border: 0; border-radius: 0; padding: 0; }
body.reference .lexicon-quiz-cta h3 {
    font-family: var(--f-ui); font-size: 0.8rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ink-3); margin: 0 0 0.6rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line);
}
body.reference .lexicon-quiz-cta p { font-size: 0.92rem; color: var(--ink-2); margin-bottom: 1rem; }
body.reference .lexicon-quiz-cta .q-btn {
    width: auto; border-radius: 0; padding: 0.7rem 1.1rem; color: var(--ink);
    background: color-mix(in srgb, var(--gilt) 14%, var(--paper)); border: 1px solid var(--gilt);
}
body.reference .lexicon-quiz-cta .q-btn:hover { background: color-mix(in srgb, var(--gilt) 24%, var(--paper)); }
body.reference .q-lexicon-eyebrow { font-family: var(--f-ui); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--ink-3); }

/* below 1240px the rail stacks: the Atlas navigation (with its search) comes first, the other cards after the content */
@media (max-width: 1239px) {
    body.reference .content-area { grid-template-columns: minmax(0, 1fr); }
    body.reference .content-area > .sidebar { display: contents; }
    body.reference .content-area > .sidebar > .atlas-nav { order: -1; }
    body.reference .content-area > .main-col { order: 0; }
    body.reference .content-area > .sidebar > .sidebar-inner:not(.atlas-nav) { order: 1; margin-bottom: 0; }
}

/* ----------------------------------------------------------
   THE GLOSSARY'S "TRY ONE." PANEL (Hans, Nov 19: the quiz "more
   prominent and fun"). One question from the quiz, asked in place at
   the head of the terms, with a streak; restyle.py builds the markup,
   glossary/teaser.js asks. "About this glossary" moved into the rail.
   ---------------------------------------------------------- */
:root { --qt-wrong: #a4472f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --qt-wrong: #e08a6f; } }
[data-theme="dark"] { --qt-wrong: #e08a6f; }
body.reference .quiz-teaser {
    background: var(--paper-2); border-top: 3px solid var(--gilt);
    padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1.25rem, 3vw, 2.4rem) clamp(1.4rem, 2.6vw, 2rem);
    margin: 0 0 clamp(2.2rem, 4vh, 3rem);
}
body.reference .qt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
body.reference .qt-title {
    font-family: var(--f-display); font-style: italic; font-weight: 380; font-size: clamp(2rem, 3.4vw, 2.8rem);
    line-height: 1; letter-spacing: -0.01em; color: var(--ink); margin: 0;
}
body.reference .qt-streak { font-family: var(--f-ui); font-size: 0.85rem; font-weight: 500; color: var(--gilt); font-variant-numeric: lining-nums; }
body.reference .qt-question { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.4; color: var(--ink); margin: 0 0 1.1rem; text-wrap: balance; }
body.reference .quiz-teaser.is-live .qt-question { font-family: var(--f-display); font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
body.reference .qt-question em { font-style: italic; color: var(--gilt); }
body.reference .qt-choices { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.55rem; }
body.reference .qt-choice {
    display: flex; gap: 0.85rem; align-items: baseline; width: 100%; text-align: left; cursor: pointer;
    font: inherit; font-size: 0.98rem; line-height: 1.45; color: var(--ink);
    background: var(--paper); border: 1px solid var(--line); padding: 0.75rem 1rem;
    transition: border-color .15s, background-color .15s, transform .15s;
}
body.reference .qt-choice:hover:not(:disabled) { border-color: var(--gilt); transform: translateX(4px); }
body.reference .qt-choice:focus-visible { outline: 2px solid var(--gilt); outline-offset: 2px; }
body.reference .qt-choice:disabled { cursor: default; }
body.reference .qt-key { font-family: var(--f-ui); font-size: 0.78rem; font-weight: 600; color: var(--ink-3); min-width: 1rem; }
body.reference .qt-choice.is-correct { border-color: var(--gilt); background: color-mix(in srgb, var(--gilt) 14%, var(--paper)); }
body.reference .qt-choice.is-correct .qt-key { color: var(--gilt); }
body.reference .qt-choice.is-picked { border-color: var(--qt-wrong); background: color-mix(in srgb, var(--qt-wrong) 9%, var(--paper)); }
body.reference .qt-choice.is-picked .qt-key { color: var(--qt-wrong); }
body.reference .qt-after { margin: 0 0 1.1rem; }
body.reference .qt-verdict { font-family: var(--f-display); font-style: italic; font-size: 1.35rem; margin: 0 0 0.35rem; color: var(--gilt); }
body.reference .quiz-teaser.is-wrong .qt-verdict { color: var(--qt-wrong); }
body.reference .qt-why { font-size: 0.95rem; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: 40em; }
body.reference .qt-actions { display: flex; flex-wrap: wrap; gap: 0.7rem 1.4rem; align-items: center; }
body.reference .qt-start {
    font-family: var(--f-ui); font-size: 0.95rem; font-weight: 500; color: var(--paper); background: var(--ink);
    padding: 0.75rem 1.2rem; text-decoration: none; border: 0;
}
body.reference .qt-start::after { content: " \2192"; }
body.reference .qt-start:hover { background: var(--gilt); color: var(--paper); }
body.reference .qt-again {
    font-family: var(--f-ui); font-size: 0.95rem; font-weight: 500; color: var(--ink); background: none; border: 0;
    padding: 0.2rem 0; border-bottom: 2px solid var(--gilt); cursor: pointer; display: none;
}
body.reference .quiz-teaser.is-live .qt-again { display: inline-block; }
body.reference .qt-again:hover { color: var(--gilt); }
body.reference .qt-note { font-family: var(--f-ui); font-size: 0.82rem; color: var(--ink-3); margin: 1rem 0 0; }
body.reference .quiz-teaser:not(.is-live) .qt-choices { display: none; }
@media (prefers-reduced-motion: no-preference) {
    body.reference .quiz-teaser.qt-swap .qt-question, body.reference .quiz-teaser.qt-swap .qt-choices li { animation: tw-in .38s cubic-bezier(.16, 1, .3, 1) both; }
    body.reference .quiz-teaser.qt-swap .qt-choices li:nth-child(1) { animation-delay: .06s; }
    body.reference .quiz-teaser.qt-swap .qt-choices li:nth-child(2) { animation-delay: .11s; }
    body.reference .quiz-teaser.qt-swap .qt-choices li:nth-child(3) { animation-delay: .16s; }
    body.reference .quiz-teaser.qt-swap .qt-choices li:nth-child(4) { animation-delay: .21s; }
    body.reference .quiz-teaser.is-right .qt-choice.is-correct { animation: qt-pop .4s cubic-bezier(.16, 1, .3, 1); }
    body.reference .quiz-teaser.is-wrong .qt-choice.is-picked { animation: qt-shake .36s ease-in-out; }
}
@keyframes qt-pop { 40% { transform: scale(1.02); } }
@keyframes qt-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* "About this glossary" in the rail */
body.reference .lexicon-about .q-lexicon-body { font-size: 0.92rem; line-height: 1.55; color: var(--ink-2); margin: 0 0 0.9rem; }
body.reference .lexicon-about .q-lexicon-sources { font-size: 0.82rem; line-height: 1.55; color: var(--ink-3); margin: 0 0 0.8rem; font-style: normal; }
body.reference .lexicon-about .q-lexicon-sources strong { font-family: var(--f-ui); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; color: var(--ink-2); }
body.reference .lexicon-about .q-lexicon-version { font-family: var(--f-ui); font-size: 0.78rem; color: var(--ink-3); margin: 0; letter-spacing: 0; text-transform: none; text-align: left; }

/* ---- support.css ---- */
/* ----------------------------------------------------------
   Support, crew and thanks pages (yankee1906.org), Nov 2026.
   Everything here is scoped to body.support, body.crew or
   body.thanks.
   ---------------------------------------------------------- */

/* Opening: the page title at the home headline's size, with its gilt rule */
body.support .page-top, body.crew .page-top, body.thanks .page-top {
    padding-top: calc(var(--header-h) + clamp(2.5rem, 6vh, 4.5rem));
}
body.support .page-title, body.crew .page-title, body.thanks .page-title {
    font-size: clamp(2.2rem, 4.2vw, 3.3rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 1.1rem;
}
body.support .page-title::after, body.crew .page-title::after, body.thanks .page-title::after {
    content: ""; display: block; width: 4rem; height: 3px; background: var(--gilt); margin-top: 1.2rem;
}
body.support .page-lede, body.crew .page-lede, body.thanks .page-lede {
    font-size: 1.125rem; line-height: 1.75; max-width: 38rem; margin-bottom: 0;
}
body.support .page-top .hero-ctas, body.crew .page-top .hero-ctas { margin-top: 1.8rem; }
/* Wide screens: the opening sits over the text column, as the home hero does */
@media (min-width: 1240px) {
    body.support .page-top-inner, body.crew .page-top-inner, body.thanks .page-top-inner {
        padding-left: calc(var(--gutter) + 19rem + clamp(3rem, 5vw, 6rem));
    }
}
body.crew .page-top { padding-bottom: clamp(4rem, 12vh, 8rem); }

/* Bands alternate, plain paper and the warm band at half strength */
body.support #give, body.support #benefits, body.support #crew, body.thanks #next {
    padding-bottom: clamp(3.25rem, 7vh, 5.5rem);
}
body.support #ways, body.support #plan, body.support #follow {
    --band: color-mix(in srgb, var(--band-warm) 50%, var(--paper));
    border-image: conic-gradient(var(--band) 0 0) fill 0 / / 0 100vmax;
    padding-bottom: clamp(3.25rem, 7vh, 5.5rem);
}
body.support #give { padding-top: clamp(2.5rem, 5vh, 4rem); }
body.support main + footer, body.support main + script + footer { margin-top: 0; }
body.support .sheet { scroll-margin-top: var(--header-h); }
body.support .sheet-head .sheet-deck { font-size: 0.98rem; color: var(--ink-3); font-family: var(--f-ui); margin-top: 0.8rem; }

/* Pictures beside the text: stacked, hairline, never sticky */
body.support .sticky-col, body.thanks .sticky-col { position: static; display: grid; gap: 1.6rem; }
body.support .sticky-col .figure, body.thanks .sticky-col .figure { margin: 0; }
body.support .figure-frame img, body.thanks .figure-frame img {
    width: 100%; height: auto; outline-color: color-mix(in srgb, var(--gilt) 50%, transparent);
}
body.support .prose h3, body.support .way h3 {
    font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; letter-spacing: -0.015em; color: var(--ink); line-height: 1.25;
}

/* ---------- Forms ---------- */
body.support form[data-pending-form] {
    margin: 2rem 0 2.2rem; padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid color-mix(in srgb, var(--gilt) 55%, transparent);
    border-top: 3px solid var(--gilt);
    background: var(--paper);
    font-family: var(--f-ui); font-size: 0.95rem; line-height: 1.5; font-variant-numeric: lining-nums;
    display: grid; gap: 1.35rem;
}
body.support #give form[data-pending-form] { background: color-mix(in srgb, var(--band-warm) 50%, var(--paper)); }
body.support .f-set { border: 0; padding: 0; margin: 0; min-width: 0; }
body.support .f-set legend, body.support .f-field label {
    display: block; padding: 0; margin: 0 0 0.45rem; font-size: 0.85rem; font-weight: 500; color: var(--ink-2);
}
body.support .f-opt { font-weight: 400; color: var(--ink-3); }
body.support .f-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; max-width: 22rem; }
body.support .f-amounts { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: none; }
body.support .f-choice { position: relative; display: block; cursor: pointer; }
body.support .f-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
body.support .f-choice span {
    display: flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0.4rem 0.5rem;
    border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper);
    font-weight: 500; color: var(--ink); text-align: center;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
body.support .f-choice:hover span { border-color: var(--gilt); }
body.support .f-choice input:checked + span { background: var(--gold-tint); border-color: var(--gilt); box-shadow: inset 0 0 0 1px var(--gilt) !important; }
body.support .f-choice input:focus-visible + span { outline: 2px solid var(--gilt); outline-offset: 2px; }
body.support .f-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem 1rem; }
body.support .f-field { min-width: 0; }
body.support .f-half { max-width: calc(50% - 0.5rem); }
body.support .f-other { margin-top: 0.9rem; max-width: 14rem; }
body.support .f-field input, body.support .f-field textarea {
    display: block; width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
    background: var(--paper); border: 1px solid var(--line-strong); border-radius: 2px;
    padding: 0.7rem 0.8rem; min-height: 2.9rem; outline: none;
}
body.support .f-field textarea { resize: vertical; min-height: 5.5rem; }
body.support .f-field input:focus, body.support .f-field textarea:focus { border-color: var(--gilt); box-shadow: 0 0 0 1px var(--gilt) !important; }
body.support .f-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.15rem 1rem; }
body.support .f-check { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.4rem 0; cursor: pointer; color: var(--ink); }
body.support .f-check input { flex: none; width: 1.1rem; height: 1.1rem; margin: 0.15rem 0 0; accent-color: var(--gilt); }
/* the provider's part of the form, shown as not yet there */
body.support .f-secure { border: 1px dashed var(--line-strong); border-radius: 2px; padding: 1rem 1.1rem 1.05rem; background: color-mix(in srgb, var(--paper-3) 55%, transparent); }
body.support .f-secure-label { margin: 0 0 0.75rem; font-weight: 500; color: var(--ink); }
body.support .f-secure-ghost { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0.5rem; }
body.support .f-secure-ghost span {
    display: flex; align-items: center; min-height: 2.7rem; padding: 0 0.8rem; border: 1px solid var(--line); border-radius: 2px;
    color: var(--ink-3); background: color-mix(in srgb, var(--paper-3) 70%, transparent); opacity: 0.75; cursor: not-allowed; white-space: nowrap; overflow: hidden;
}
body.support .f-secure-note { margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--ink-3); }
body.support form[data-pending-form] p + p { margin-top: 0; }
body.support .f-submit { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; align-items: center; }
body.support .f-submit .btn { min-height: 2.9rem; }
body.support .f-submit button.btn { font-size: 1rem; padding-left: 1.6rem; padding-right: 1.6rem; }
body.support .f-done { margin: 0; padding: 0.8rem 1rem; border-left: 3px solid var(--gilt); background: var(--gold-tint); color: var(--ink); }
body.support .f-done[hidden], body.support .f-other[hidden] { display: none; }
body.support .f-title { margin: 0; }
body.support .f-intro { margin: -0.9rem 0 0; color: var(--ink-2); }

/* ---------- Other ways to give ---------- */
body.support .ways-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem clamp(1.6rem, 3vw, 3rem); }
body.support .way { border-top: 1px solid var(--line-strong); padding-top: 1.1rem; }
body.support .way h3 { margin: 0 0 0.6rem; }
body.support .way p { font-size: 1.02rem; line-height: 1.65; }
body.support .way p + p { margin-top: 0.8rem; }

/* ---------- Giving levels ---------- */
body.support .levels { width: 100%; border-collapse: collapse; margin: 1.8rem 0 1.4rem; font-size: 1rem; line-height: 1.5; }
body.support .levels thead th {
    font-family: var(--f-ui); font-size: 0.82rem; font-weight: 500; color: var(--ink-3); text-align: left;
    padding: 0 1rem 0.55rem 0; border-bottom: 1px solid var(--line-strong);
}
body.support .levels tbody th, body.support .levels td { text-align: left; vertical-align: top; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); }
body.support .levels tbody th { font-family: var(--f-display); font-weight: 500; font-size: 1.12rem; color: var(--ink); letter-spacing: -0.015em; white-space: nowrap; }
body.support .levels .lv-amount { font-family: var(--f-ui); font-size: 0.95rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
body.support .levels td:last-child, body.support .levels thead th:last-child { padding-right: 0; }
body.support .levels ul { list-style: none; margin: 0; padding: 0; }
body.support .levels li { position: relative; padding-left: 1rem; }
body.support .levels li + li { margin-top: 0.35rem; }
body.support .levels li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.4rem; height: 1px; background: var(--gilt); }
body.support .levels-note { font-size: 0.98rem; color: var(--ink-2); }

/* ---------- The six stages ---------- */
body.support .stages { list-style: none; counter-reset: stage; margin: 1.8rem 0; padding: 0; border-top: 1px solid var(--line-strong); }
body.support .stages li {
    counter-increment: stage; position: relative; padding: 1.05rem 0 1.1rem 3rem; border-bottom: 1px solid var(--line);
}
body.support .stages li::before {
    content: counter(stage); position: absolute; left: 0; top: 1rem; font-family: var(--f-display); font-size: 1.5rem; line-height: 1.2;
    color: var(--gilt); font-variant-numeric: lining-nums;
}
body.support .stages h3 { margin: 0; }
body.support .stages .stage-goal { font-family: var(--f-ui); font-size: 0.85rem; color: var(--ink-3); margin: 0.2rem 0 0.45rem; font-variant-numeric: lining-nums; }
body.support .stages li:first-child .stage-goal { color: var(--ink); font-weight: 500; }
body.support .stages p { margin: 0; font-size: 1.04rem; line-height: 1.65; }
body.support .stages p + p { margin-top: 0; }

@media (max-width: 1239px) {
    body.support .ways-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    body.support .split, body.thanks .split { grid-template-columns: minmax(0, 1fr); }
    body.support .sticky-col, body.thanks .sticky-col { max-width: 34rem; }
}
@media (max-width: 640px) {
    body.support .ways-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    body.support .f-amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body.support .f-row, body.support .f-checks { grid-template-columns: minmax(0, 1fr); }
    body.support .f-half { max-width: none; }
    body.support .f-secure-ghost { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.support .f-secure-ghost .g-number { grid-column: 1 / -1; }
    body.support .f-submit .btn { flex: 1 1 100%; justify-content: center; }
    /* the levels table reads as a list on a phone */
    body.support .levels thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    body.support .levels, body.support .levels tbody, body.support .levels tr, body.support .levels th, body.support .levels td { display: block; }
    body.support .levels { border-top: 1px solid var(--line-strong); }
    body.support .levels tr { padding: 1rem 0; border-bottom: 1px solid var(--line); }
    body.support .levels tbody th, body.support .levels td { border: 0; padding: 0; }
    body.support .levels .lv-amount { margin: 0.15rem 0 0.6rem; color: var(--ink-2); }
    body.support .stages li { padding-left: 2.2rem; }
}
body.support form[data-pending-form], body.support form[data-pending-form] * { hyphens: manual; -webkit-hyphens: manual; }

/* ---- yankee-pages.css ---- */
/* ----------------------------------------------------------
   yankee-pages: Questions (body.faq), the Foundation page
   (body.foundation) and the "has moved" stubs (body.moved)
   on yankee1906.org. Every rule is scoped to those classes.
   ---------------------------------------------------------- */

/* Page top: a quiet title, a gilt rule, the lede and two buttons */
body.faq .page-title, body.foundation .page-title, body.moved .page-title {
    font-size: clamp(2.3rem, 4.2vw, 3.3rem); line-height: 1.06; letter-spacing: -0.03em; max-width: 18em; margin-bottom: 0;
}
body.faq .page-title em, body.foundation .page-title em, body.moved .page-title em { font-style: normal; }
body.faq .page-title::after, body.foundation .page-title::after, body.moved .page-title::after {
    content: ""; display: block; width: 4rem; height: 3px; background: var(--gilt); margin: 1.2rem 0 1.3rem;
}
body.faq .page-lede, body.foundation .page-lede, body.moved .page-lede { max-width: 38rem; font-size: 1.2rem; line-height: 1.6; color: var(--ink); }
body.faq .page-top .hero-ctas, body.foundation .page-top .hero-ctas, body.moved .page-top .hero-ctas { margin-top: 1.7rem; }
body.faq .page-top, body.foundation .page-top { padding-bottom: clamp(3rem, 6vh, 4.5rem); }
body.moved .page-top { padding-bottom: clamp(3.5rem, 9vh, 6rem); }
body.moved .page-top-inner > .page-lede:last-child { margin-bottom: 0; }
body.moved .page-eyebrow-row { display: none; }
/* on wide screens the page top lines up with the text column of the sections below */
@media (min-width: 1240px) {
    body.faq .page-top-inner, body.foundation .page-top-inner {
        padding-left: calc(var(--gutter) + 19rem + clamp(3rem, 5vw, 6rem));
    }
}

/* Bands: warm paper at half strength on alternate sections, no gaps between */
body.faq .sheet, body.foundation .sheet { padding-bottom: clamp(3.25rem, 7vh, 5.5rem); }
body.faq .sheet.band, body.foundation .sheet.band {
    --band: color-mix(in srgb, var(--band-warm) 50%, var(--paper));
    border-image: conic-gradient(var(--band) 0 0) fill 0 / / 0 100vmax;
}
body.faq main + footer, body.foundation main + footer { margin-top: 0; }
body.faq .col-main, body.foundation .col-main { max-width: 42rem; min-width: 0; }
body.faq .split > .col-main, body.foundation .split > .col-main { max-width: none; }
body.faq .col-main .hero-ctas, body.foundation .col-main .hero-ctas { margin-top: 2rem; }
body.faq .sticky-col, body.foundation .sticky-col { position: static; display: grid; gap: 1.6rem; }
body.faq .sticky-col .figure, body.foundation .sticky-col .figure { margin: 0; }
body.faq .figure-frame img, body.foundation .figure-frame img {
    display: block; width: 100%; height: auto; outline-color: color-mix(in srgb, var(--gilt) 50%, transparent);
}
body.foundation .figure-portrait .figure-frame img { max-height: 30rem; width: auto; max-width: 100%; object-fit: unset; }
@media (max-width: 1239px) {
    body.faq .sticky-col, body.foundation .sticky-col { max-width: 42rem; }
}

/* Questions: a disclosure list that works without JavaScript */
body.faq .qa { border-top: 1px solid var(--line); }
body.faq .qa:last-of-type { border-bottom: 1px solid var(--line); }
body.faq .qa > summary {
    list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
    padding: 1rem 0 0.95rem;
}
body.faq .qa > summary::-webkit-details-marker { display: none; }
body.faq .qa-q {
    font-family: var(--f-display); font-size: 1.2rem; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em;
    color: var(--ink); margin: 0; text-wrap: pretty;
}
body.faq .qa > summary::after {
    content: "+"; flex: none; font-family: var(--f-ui); font-size: 1.35rem; font-weight: 400; line-height: 1;
    color: var(--gilt); width: 1rem; text-align: center;
}
body.faq .qa[open] > summary::after { content: "\2212"; }
body.faq .qa > summary:hover .qa-q { color: var(--gilt); }
body.faq .qa > summary:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; }
body.faq .qa-a { padding: 0 2.5rem 1.4rem 0; font-size: 1.125rem; line-height: 1.7; color: var(--ink-body, var(--ink-2)); }
body.faq .qa-a p + p { margin-top: 0.9em; }
body.faq .qa-a a { color: inherit; border-bottom: 1px solid color-mix(in srgb, var(--gilt) 60%, transparent); text-decoration: none; }
body.faq .qa-a a:hover { color: var(--gilt); border-bottom-color: var(--gilt); }
body.faq .qa-a a.fdn-link { color: var(--fdn-green); border-bottom: 0; }
body.faq .col-main > .pull {
    font-style: italic; font-size: 1.44rem; line-height: 1.45; color: var(--ink); margin: 2.4rem 0 0; padding-top: 1.1rem; position: relative;
}
body.faq .col-main > .pull::before { content: ""; position: absolute; top: 0; left: 0; width: 2.5rem; height: 2px; background: var(--gilt); }
@media (max-width: 560px) {
    body.faq .qa-q { font-size: 1.1rem; }
    body.faq .qa-a { padding-right: 0; }
}
@media print { body.faq .qa > summary::after { display: none; } }

/* Foundation page */
body.foundation .prose { font-size: 1.125rem; line-height: 1.75; max-width: none; }
body.foundation .prose strong { font-weight: 500; color: var(--ink); }
body.foundation .prose a:not(.btn):not(.fdn-link) { border-bottom-color: color-mix(in srgb, var(--gilt) 60%, transparent); }
body.foundation #board .col-main { max-width: 62rem; }
body.foundation .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; gap: 0 2.5rem; }
body.foundation .board-member { border: 0; border-top: 1px solid var(--line); background: none; padding: 1.2rem 0 1.5rem; }
body.foundation .board-name { display: block; font-size: 1.25rem; font-weight: 500; }
body.foundation .board-role {
    display: block; font-family: var(--f-ui); font-size: 0.9rem; font-weight: 500; letter-spacing: 0; text-transform: none;
    color: var(--gilt); margin: 0.2rem 0 0;
}
body.foundation .board-bio { font-size: 1rem; line-height: 1.65; margin-top: 0.6rem; max-width: 30rem; }
body.foundation .board-sub {
    font-family: var(--f-display); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.015em; color: var(--ink);
    margin: 2rem 0 1rem;
}
body.foundation .thanks { max-width: 42rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (max-width: 720px) { body.foundation .board-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- zz-footer.css ---- */
/* One footer for both sites (Hans, Nov 19): the GGWBF wordmark, links to both sites */
.footer-shared { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr)); }
@media (max-width: 1100px) { .footer-shared { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-shared .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-shared { grid-template-columns: minmax(0, 1fr); } }
a.footer-wm { display: block; width: min(100%, 22rem); margin-bottom: 1.1rem; border: 0; text-decoration: none; }
a.footer-wm .fw-svg { display: block; width: 100%; height: auto; }
.fw-svg .wm-name { fill: var(--ink); transform: none; display: inline; letter-spacing: normal; }
.fw-svg .wm-sub { fill: var(--gilt); }   /* Yankee gold on the Yankee site, green brass on ggwbf.org (Hans, Nov 19) */
a.footer-wm:hover .wm-name { fill: var(--ink-2); }
.footer-shared .footer-place { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 0; text-transform: none; letter-spacing: 0; }
.footer-shared .footer-closer { font-family: var(--f-display); font-size: 1.22rem; line-height: 1.5; max-width: 26em; color: var(--ink); margin-top: 1.3rem; text-wrap: pretty; }
.footer-shared .footer-closer::before { content: ""; display: block; width: 3rem; border-top: 2px solid var(--gilt); margin-bottom: 1rem; }
.footer-shared .footer-col-head em { font-style: italic; }
.footer-shared .footer-contact p { overflow-wrap: anywhere; }

/* ggwbf.org header: the two-line GGWBF wordmark, about 46px tall in the 68px bar, 38px on phones (Hans, Nov 19) */
.header-fdn-wm { display: block; line-height: 0; }
.header-fdn-wm .fw-svg { display: block; height: 46px; width: auto; }
@media (max-width: 560px) { .header-fdn-wm .fw-svg { height: 38px; } }

/* ---- zz-qa.css ---- */
/* QA fixes. */
/* Yankee header: at 390 wide the theme toggle sat 7px outside the viewport. Tighten gaps only. */
@media (max-width: 430px) {
  .header-inner { gap: 8px; }
  .header-inner .header-right { gap: 12px; }
}

/* ---- zz-shared.css ---- */
/* Shared inner-page openings: the Logbook opens like Support, FAQ and the Foundation page (integration pass, Nov 18) */
body.logbook .page-top {
    padding-top: calc(var(--header-h) + clamp(2.5rem, 6vh, 4.5rem));
}
body.logbook .page-title {
    font-size: clamp(2.2rem, 4.2vw, 3.3rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 1.1rem;
}
body.logbook .page-title::after {
    content: ""; display: block; width: 4rem; height: 3px; background: var(--gilt); margin-top: 1.2rem;
}
body.logbook .page-top-inner .page-lede { font-size: 1.125rem; line-height: 1.75; max-width: 38rem; }
@media (min-width: 1240px) {
    body.logbook .page-top-inner {
        padding-left: calc(var(--gutter) + 19rem + clamp(3rem, 5vw, 6rem));
    }
}

/* Chapter navigation: room for long previous/next titles on one row */
@media (min-width: 900px) {
    body.history .chapter-nav { max-width: 52rem; }
    body.history .chapter-nav .hero-ctas { flex-wrap: nowrap; }
    body.history .chapter-nav .btn { white-space: nowrap; }
}

/* ---- zz-speed.css ---- */
/* ----------------------------------------------------------
   HEADINGS AT SPEED (Hans, Nov 19): on both sites every page
   heading (Foundation added the same day) drives in from the left word by word, with a slight speed
   blur, then its gilt rule shoots out and the opening text settles.
   restyle.py wraps each word in span.tw with its index as --i.
   Nothing moves for readers who ask for reduced motion.
   ---------------------------------------------------------- */
.tw { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
    .tw { animation: tw-in .42s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 60ms); }
    .page-title::after, .hero-headline::after { transform-origin: left; animation: tw-rule .55s cubic-bezier(.16, 1, .3, 1) .45s both; }
    .page-top-inner > .page-lede,
    .hero-masthead-copy > :not(.hero-headline),
    body.home:not(.fdn) .home-band { animation: tw-fade .5s ease-out .6s both; }
}
@keyframes tw-in {
    from { opacity: 0; transform: translateX(-1.4em) skewX(-14deg); filter: blur(3px); }
    60% { filter: blur(0); }
    to { opacity: 1; transform: none; }
}
@keyframes tw-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tw-fade { from { opacity: 0; transform: translateY(.6rem); } to { opacity: 1; transform: none; } }

/* ---- zz-titles.css ---- */
/* ----------------------------------------------------------
   PAGE HEADINGS, ONE SIZE (Hans, Nov 19): every inner page on
   both sites sets its title, rule and lede like ggwbf.org's
   Mission, Projects and Stewardship. Yankee titles are italic
   too (Hans, Nov 19 evening); the Yankee site keeps its gold rule.
   ---------------------------------------------------------- */
body:not(.fdn) .page-top { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vh, 4.5rem)); }
body:not(.fdn) .page-title { font-size: clamp(2.3rem, 4.4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 0; font-style: italic; }
body:not(.fdn) .page-title em { font-style: italic; }
body:not(.fdn) .page-title::after { content: ""; display: block; background: var(--gilt); width: 4rem; height: 3px; margin: 1.2rem 0 1.4rem; }
body:not(.fdn) .page-lede { font-size: clamp(1.12rem, 1.4vw, 1.28rem); line-height: 1.6; max-width: 38em; color: var(--ink); }
body:not(.fdn) .page-top-inner .page-lede { font-size: clamp(1.12rem, 1.4vw, 1.28rem); line-height: 1.6; max-width: 38em; }
@media (min-width: 1240px) {
    body:not(.fdn) .page-top-inner { padding-left: calc(var(--gutter) + 19rem + clamp(3rem, 5vw, 6rem)); }
}
/* the Glossary quiz sits in the content column under its heading */
@media (min-width: 1240px) {
    body.quiz-page.reference #quiz-root { padding-left: calc(var(--gutter) + 19rem + clamp(3rem, 5vw, 6rem)); max-width: var(--site-max); margin-left: auto; margin-right: auto; }
    body.quiz-page.reference #quiz-root > * { margin-left: 0; margin-right: 0; max-width: 46rem; }
    body.quiz-page.reference #quiz-root .q-levels { margin-left: 0; }
}

/* Header (Hans, Nov 19): the Yankee tabs and Support button sit on the
   header's centre line, level with the dark mode button, as on ggwbf.org. */
@media (min-width: 761px) { body:not(.fdn) .header-nav { position: relative; top: -2.4px; } }
