/* Screen theme shared visually with the admin entrance. Printed bulletins retain their paper palette. */
@media screen {
    :root {
        color-scheme: dark;
        --paper: #09111f; --paper-2: #101c2e; --surface: #132238;
        --ink: #f7f6f2; --ink-700: #d6dfed; --ink-500: #a9b4c6;
        --ink-300: #8493a9; --ink-100: #344258;
        --header-bg: #09111f; --header-h: 96px; --fs-body: 1rem;
        --cranberry: #ff93b6;
    }
    body { background: radial-gradient(ellipse at 15% 0, #1d355355, transparent 800px), var(--paper); }
    a, .prose a { color: #9dcaff; }
    a:hover, .link-arrow, .eyebrow, .eyebrow--gold, .card__foot, .stat__value,
    .timeline__year, .event__day, .errpage__code, .hero__title em,
    .local-nav a[aria-current="page"], .local-nav a:hover, .aside-list a:hover,
    .card:hover .card__title a, .event:hover .event__title a,
    .committee:hover .committee__name a, .prevnext a:hover strong,
    .nav__drop a:hover, .nav__drop a[aria-current="page"],
    .page-home .year-strip__kicker, .page-home .year-strip__months a:hover { color: var(--gold-500); }
    h1, .page-home .hero__title { font-size: clamp(2.5rem, 4.5vw, 3.75rem); font-weight: 650; }
    h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
    .nav-drawer { background: #09111f; }
    .site-header { background: var(--header-bg); border-bottom: 1px solid #ffffff14; box-shadow: none; }
    .brand__mark, .brand__logo { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
    .brand__logo { width: 160px; height: 76px; object-fit: contain; }
    .nav__link { font-size: .875rem; }
    .site-footer { background: #0b1627; border-top: 1px solid var(--ink-100); }
    .site-footer__brand img { background: transparent; border-radius: 0; }
    .page-hero, .section--band, .cta, .bulletin-intro__grid {
        background: radial-gradient(ellipse at top left, #1d3553, #0e1b2d 65%, #09111f);
    }
    .page-hero--plain { background: transparent; }
    .card, .committee, .infobox { border: 1px solid #ffffff14; border-radius: 16px; }
    .hero-meeting, .hero-meeting:hover, .bulletin-intro__grid, .bulletin-intro h1,
    .page-home .year-strip__months .is-current { color: var(--ink); }
    .hero-meeting { background: #101c2e; }
    .btn, .btn--sm { min-height: 54px; border-radius: 7px; font-size: .875rem; font-weight: 800; }
    .btn--primary, .btn--gold, .site-footer .btn--gold {
        background: var(--gold-500); border-color: var(--gold-500); color: #09111f;
    }
    .btn--primary:hover, .btn--gold:hover, .site-footer .btn--gold:hover { background: #ffc25b; color: #09111f; }
    .btn--ghost { color: var(--ink); border-color: #65748b; background: transparent; }
    .btn--ghost:hover, .share a:hover, .share button:hover, .pagination a:hover { color: var(--gold-500); border-color: var(--gold-500); }
    .input, .field input[type="text"], .field input[type="email"], .field input[type="tel"],
    .field input[type="number"], .field select, .field textarea, .archive-filter select, .calendar-select select {
        background: #101c2e; color: var(--ink); border: 1px solid #65748b;
        border-radius: 7px; min-height: 54px; font: 500 .875rem var(--font-body);
    }
    .field label { font-size: .875rem; font-weight: 700; }
    input::placeholder, textarea::placeholder { color: #a9b4c6; opacity: 1; }
    .field input:focus, .field select:focus, .field textarea:focus, .archive-filter select:focus {
        border-color: var(--gold-500); box-shadow: 0 0 0 3px #f7a81b25;
    }
    :focus-visible { outline: 2px solid var(--gold-500); outline-offset: 4px; }
    .check input { accent-color: var(--gold-500); }
    .infobox--gold, .form-success { background: #292519; border-color: #796036; }
    .validation-summary-errors { background: #341c2b; }
    .badge { color: #9dcaff; }
    .badge--gold { color: #09111f; }
    .badge--cran { background: #7f2446; color: #fff; }
    .cookie { background: #132238; border: 1px solid #65748b; }
    .page-preview-notice, .cta--gold, .cta--gold h2 { color: #09111f; }
    .cta--gold { background: var(--gold-500); }
    .lineage__term { color: #a9b4c6; }
    .dropcap > p:first-of-type::first-letter { color: var(--gold-500); }
    .month-calendar__day.is-today { background: #292519; }
    .calendar-event:hover { background: #243b58; }

    /* Page rhythm: body content keeps a clear distance from the hero rule. */
    .section--after-hero { padding-top: clamp(2rem, 5vw, 4rem); }
    .subhead { margin: var(--space-6) 0 var(--space-3); font: 700 var(--fs-h3)/1.25 var(--font-body); letter-spacing: -.01em; }
    .subhead:first-child { margin-top: 0; }
    .grid--sidebar { gap: clamp(2rem, 5vw, 4rem); }

    /* People as compact cards instead of a full-width two-column text row. */
    .people-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: var(--space-3); }
    .people-grid .person { height: 100%; border-color: #ffffff14; border-radius: 16px; }
    .people-grid .person--chair { border-color: #796036; background: #292519; }
    .people-grid .person__avatar { width: 52px; height: 52px; font-size: .9rem; background: #1d3553; }

    /* Cover images keep their own size and ratio; small sources are never stretched. */
    .article-cover--natural { display: grid; justify-items: center; margin: 0 0 var(--space-5); background: var(--paper-2); border: 1px solid #ffffff14; border-radius: 16px; }
    .article-cover--natural img { width: auto; max-width: 100%; height: auto; max-height: min(76vh, 42rem); object-fit: contain; border-radius: 0; }
    .article-cover--natural figcaption { justify-self: stretch; margin: 0; padding: .65rem 1rem; border-top: 1px solid #ffffff14; }
    .article-body { margin-top: var(--space-5); }
    .article-body .lead { max-width: 44rem; }

    /* Selects show a visible affordance in the Rotary wheel gold. */
    .field select, .archive-filter select, .calendar-select select {
        appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23F7A81B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6'/%3E%3C/svg%3E");
        background-repeat: no-repeat; background-position: right 1rem center; background-size: 1rem;
    }
    .field select:has(option[value=""]:checked) { color: #a9b4c6; }
    .field select option { background: #101c2e; color: var(--ink); }

    /* Gold call-to-action card: dark text and a dark button for contrast on gold. */
    .cta--card { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); align-items: start; padding: var(--space-4); border-radius: 16px; }
    .cta--card h2 { font-size: 1.4rem; letter-spacing: -.02em; }
    .cta--gold p { margin-top: .5rem; color: #09111fd9; }
    .btn--ink, .btn--ink:hover { background: #09111f; border-color: #09111f; color: #fff; }
    .btn--ink:hover { background: #1d3553; border-color: #1d3553; }

    /* Recent bulletins as a small shelf of covers. */
    .bulletin-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); gap: var(--space-4); }
    .bulletin-shelf__item { display: grid; gap: .35rem; color: var(--ink); }
    .bulletin-shelf__cover { display: block; aspect-ratio: 3 / 4; margin-bottom: .4rem; overflow: hidden; border-radius: 10px; background: #1d3553; border: 1px solid #ffffff14; transition: transform var(--dur-m) var(--ease-out), border-color var(--dur-m); }
    .bulletin-shelf__cover img { width: 100%; height: 100%; object-fit: cover; }
    .bulletin-shelf__issue { color: var(--gold-500); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
    .bulletin-shelf__item strong { font-size: .95rem; line-height: 1.3; }
    .bulletin-shelf__item:hover { color: var(--ink); }
    .bulletin-shelf__item:hover .bulletin-shelf__cover { transform: translateY(-4px); border-color: var(--gold-500); }

    /* Decorative wheel: slow idle turn; wrappers add scroll-linked rotation. */
    .rotary-wheel { display: block; width: 100%; height: auto; }
    .rotary-wheel__spin { transform-origin: 0 0; animation: wheel-turn 140s linear infinite; }
    @keyframes wheel-turn { to { transform: rotate(360deg); } }

    /* Membership journey: sticky heading with a live counter, a progress line that fills
       with the scroll position and a large wheel turning behind the section. */
    .journey { position: relative; overflow: clip; isolation: isolate; --p: 1; }
    .journey__wheel { position: absolute; z-index: -1; left: max(-9rem, calc(50% - 50rem)); bottom: clamp(-11rem, -12vw, -6rem); width: clamp(20rem, 36vw, 32rem); color: var(--gold-500); opacity: .1; transform: rotate(calc(var(--p) * 150deg)); transition: transform .25s linear; pointer-events: none; }
    .journey__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
    .journey__head { position: sticky; top: calc(var(--header-h) + 2.5rem); display: grid; justify-items: start; gap: .6rem; padding-bottom: var(--space-5); }
    .journey__head h2 { max-width: 13ch; }
    .journey__count { display: flex; align-items: baseline; gap: .7rem; margin-top: var(--space-4); color: var(--gold-500); font-size: clamp(4rem, 8vw, 7rem); font-weight: 300; line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
    .journey__total { color: var(--ink-300); font-size: .95rem; font-weight: 700; letter-spacing: .1em; }
    .journey__steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2rem, 3.4vw, 3rem); }
    .journey__steps::before, .journey__steps::after { content: ""; position: absolute; left: 1.5rem; top: 1.5rem; bottom: 1.5rem; width: 2px; margin-left: -1px; background: #ffffff1f; }
    .journey__steps::after { background: linear-gradient(var(--gold-500), #ffc25b); transform-origin: top; transform: scaleY(var(--p)); transition: transform .2s linear; }
    .journey__step { position: relative; z-index: 1; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
    .journey__no { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--gold-500); border: 1.5px solid var(--gold-500); color: #09111f; font-size: .85rem; font-weight: 800; font-variant-numeric: tabular-nums; transition: background-color var(--dur-m), border-color var(--dur-m), color var(--dur-m), transform var(--dur-m) var(--ease-out), box-shadow var(--dur-m); }
    .journey__step h3 { margin-top: .55rem; font-size: 1.2rem; transition: color var(--dur-m); }
    .journey__step p { margin-top: .4rem; max-width: 46ch; color: var(--ink-500); transition: opacity var(--dur-m), transform var(--dur-m) var(--ease-out); }
    .journey.is-live .journey__step:not(.is-active) .journey__no { background: var(--paper-2); border-color: #65748b; color: var(--ink-300); }
    .journey.is-live .journey__step:not(.is-active) h3 { color: var(--ink-300); }
    .journey.is-live .journey__step:not(.is-active) p { opacity: .55; }
    .journey.is-live .journey__step.is-active .journey__no { transform: scale(1.08); box-shadow: 0 0 0 7px #f7a81b1f; }

    @media (max-width: 1023.98px) {
        .article-aside { position: static; }
        .journey__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
        .journey__head { position: static; padding-bottom: 0; }
        .journey__count { margin-top: var(--space-2); font-size: 3.5rem; }
        .journey__wheel { left: auto; right: -5rem; bottom: auto; top: -4rem; width: 15rem; }
    }
    @media (prefers-reduced-motion: reduce) {
        .rotary-wheel__spin { animation: none; }
        .journey__wheel, .journey__steps::after, .journey__no, .journey__step p { transition: none; }
    }
    @media (max-width: 1023.98px) {
        :root { --header-h: 88px; }
        .brand__logo { width: 142px; height: 68px; }
    }
}
