/* The public website (index.php for visitors, features, learn, guide, about, contact): a calm, editorial look in deep
   navy blue (the --pine-* tokens; green until the Oct 2026 colour experiment, backup in backups/) and warm sand, serif headings, thin rules and generous space. Loaded after style.css by
   app/views/site-header.php only, so the portal is unaffected. Dark mode swaps the two: sand text on pine. */

/* Fonts hosted on this server (assets/fonts, SIL Open Font License; see the README there). Latin subset. */
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url("../fonts/eb-garamond-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
    src: url("../fonts/eb-garamond-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("../fonts/lato-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap;
    src: url("../fonts/lato-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

body.site {
    --pine-950: oklch(0.235 0.05 255);
    --pine-900: oklch(0.27 0.055 255);
    --pine-750: oklch(0.37 0.07 255);
    --pine-600: oklch(0.46 0.08 255);
    --sand-50: oklch(0.955 0.018 95);
    --sand-100: oklch(0.925 0.026 95);
    --sand-200: oklch(0.875 0.03 95);
    --gold: oklch(0.7 0.11 80);

    --s-page: var(--sand-50);
    --s-subtle: var(--sand-100);
    --s-inverse: var(--pine-950);
    --s-text: var(--pine-950);
    --s-text-2: var(--pine-750);
    --s-text-inv: var(--sand-50);
    --s-line: color-mix(in oklch, var(--pine-950) 18%, transparent);
    --s-line-inv: color-mix(in oklch, var(--sand-50) 26%, transparent);
    --s-button: var(--pine-950);
    --s-button-text: var(--sand-50);
    --s-button-hover: var(--pine-750);
    --s-serif: "EB Garamond", "Cormorant Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --s-sans: Lato, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

    /* The portal's own tokens, so shared parts (forms, alerts, tables, the theme switch) match. */
    --bg: var(--s-page);
    --surface: var(--sand-100);
    --text: var(--s-text);
    --text-muted: var(--s-text-2);
    --border: var(--s-line);
    --accent: var(--pine-750);
    --accent-text: var(--sand-50);
    --info-bg: var(--sand-200);
    --radius: 3px;

    background: var(--s-page);
    color: var(--s-text);
    font-family: var(--s-sans);
    font-size: 17px;
    line-height: 1.6;
}
:root[data-theme="dark"] body.site {
    --s-page: var(--pine-950);
    --s-subtle: var(--pine-900);
    --s-inverse: oklch(0.2 0.045 255);
    --s-text: var(--sand-50);
    --s-text-2: color-mix(in oklch, var(--sand-50) 75%, var(--pine-950));
    --s-line: var(--s-line-inv);
    --s-button: var(--sand-50);
    --s-button-text: var(--pine-950);
    --s-button-hover: var(--sand-200);
    --bg: var(--s-page);
    --surface: var(--pine-900);
    --accent: var(--sand-100);
    --accent-text: var(--pine-950);
    --info-bg: var(--pine-750);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) body.site {
        --s-page: var(--pine-950);
        --s-subtle: var(--pine-900);
        --s-inverse: oklch(0.2 0.045 255);
        --s-text: var(--sand-50);
        --s-text-2: color-mix(in oklch, var(--sand-50) 75%, var(--pine-950));
        --s-line: var(--s-line-inv);
        --s-button: var(--sand-50);
        --s-button-text: var(--pine-950);
        --s-button-hover: var(--sand-200);
        --bg: var(--s-page);
        --surface: var(--pine-900);
        --accent: var(--sand-100);
        --accent-text: var(--pine-950);
        --info-bg: var(--pine-750);
    }
}

.site h1, .site h2, .site h3, .site .s-serif { font-family: var(--s-serif); font-weight: 400; letter-spacing: -0.01em; color: inherit; }
:where(.site) a { color: inherit; }
:where(.site) p { margin: 0 0 1rem; }

/* Buttons and links */
.s-btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.3rem; border-radius: 3px; font-weight: 600; font-size: 0.95rem;
    text-decoration: none; background: var(--s-button); color: var(--s-button-text); border: 1px solid var(--s-button); transition: background 0.2s, color 0.2s; }
.s-btn:hover { background: var(--s-button-hover); border-color: var(--s-button-hover); }
.s-btn-light { background: var(--sand-50); color: var(--pine-950); border-color: var(--sand-50); }
.s-btn-light:hover { background: var(--sand-200); border-color: var(--sand-200); }
.s-btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.s-btn-ghost:hover { background: color-mix(in oklch, currentColor 10%, transparent); border-color: currentColor; }
.s-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.95rem; text-decoration: none;
    padding-bottom: 0.3rem; border-bottom: 1px solid currentColor; }
.s-arrow:hover { opacity: 0.75; }
.s-ico { width: 14px; height: 14px; flex: none; }
.s-eyebrow { margin: 0 0 1rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }

/* Top bar: see-through over the opening picture, solid sand once the page scrolls (site.js) or on pages without one */
.s-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 2rem; padding: 0.9rem 2.4rem;
    background: color-mix(in oklch, var(--s-page) 92%, transparent); color: var(--s-text); border-bottom: 1px solid var(--s-line);
    backdrop-filter: blur(10px); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.s-header.s-over { position: fixed; left: 0; right: 0; background: color-mix(in oklch, var(--pine-950) 55%, transparent);
    color: var(--sand-50); border-bottom-color: transparent; }
.s-header.s-over.s-scrolled { background: color-mix(in oklch, var(--s-page) 94%, transparent); color: var(--s-text); border-bottom-color: var(--s-line); }
.s-brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.s-brand img { width: auto; height: 40px; }
.s-brand-name { font-family: var(--s-serif); font-size: 1.6rem; line-height: 1; }
.s-beta { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.15rem 0.45rem; border-radius: 999px;
    border: 1px solid currentColor; opacity: 0.8; }
.s-nav { display: flex; gap: 1.8rem; margin: 0 auto; }
.s-nav a { text-decoration: none; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0; border-bottom: 1px solid transparent; }
.s-nav a:hover, .s-nav a.active { border-bottom-color: currentColor; }
.s-actions { display: flex; align-items: center; gap: 0.75rem; }
.s-actions .s-btn { padding: 0.65rem 1.05rem; }
/* Light / Dark / System in the top bar (icons only; wide screens) and in the ☰ menu (narrow screens). It takes the bar's text
   colour, so it reads over the opening picture as well as on sand or navy. */
.s-header .theme-switch { background: transparent; border-color: color-mix(in oklch, currentColor 35%, transparent); }
.s-header .theme-switch button { color: inherit; opacity: 0.85; }
.s-header .theme-switch button:hover { opacity: 1; }
.s-header .theme-switch button[aria-pressed="true"] { background: currentColor; opacity: 1; }
.s-header .theme-switch button[aria-pressed="true"] span { color: var(--s-page); }
.s-header.s-over:not(.s-scrolled) .theme-switch button[aria-pressed="true"] span { color: var(--pine-950); }
.s-theme-top .theme-label { display: none; }
.s-theme-top button { padding: 0.3rem 0.55rem; }
.s-menu-theme { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0.9rem 0.4rem;
    margin-top: 0.3rem; border-top: 1px solid var(--s-line); font-weight: 600; }
.s-menu-panel .theme-switch { color: var(--s-text); }
.s-header .s-menu-panel .theme-switch button[aria-pressed="true"] span,
.s-header.s-over:not(.s-scrolled) .s-menu-panel .theme-switch button[aria-pressed="true"] span { color: var(--s-page); }
.s-header.s-over:not(.s-scrolled) .s-btn:not(.s-btn-ghost) { background: var(--sand-50); color: var(--pine-950); border-color: var(--sand-50); }
.s-menu { display: none; position: relative; }
.s-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem;
    border: 1px solid currentColor; border-radius: 3px; }
.s-menu summary::-webkit-details-marker { display: none; }
.s-menu-panel { position: absolute; right: 0; top: calc(100% + 0.6rem); min-width: 14rem; display: grid; padding: 0.5rem; background: var(--s-page);
    color: var(--s-text); border: 1px solid var(--s-line); border-radius: 3px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18); }
.s-menu-panel a { padding: 0.7rem 0.9rem; text-decoration: none; font-weight: 600; border-radius: 3px; }
.s-menu-panel a:hover, .s-menu-panel a.active { background: var(--s-subtle); }
@media (max-width: 980px) {
    .s-nav { display: none; }
    .s-menu { display: block; }
    .s-actions { margin-left: auto; }
    .s-theme-top { display: none; }
    .s-header { padding: 0.75rem 1.25rem; }
}
@media (max-width: 520px) {
    .s-hide-narrow { display: none !important; }
    .s-brand-name { font-size: 1.35rem; }
}

/* Layout */
.s-wrap { max-width: 1180px; margin: 0 auto; padding: 0 2.4rem; }
@media (max-width: 700px) { .s-wrap { padding: 0 1.25rem; } }
.s-section { padding: 6rem 0; }
.s-section-sm { padding: 4rem 0; }
.s-subtle { background: var(--s-subtle); }
.s-inverse { background: var(--s-inverse); color: var(--sand-50); --s-line: var(--s-line-inv); }
@media (max-width: 700px) { .s-section { padding: 3.75rem 0; } .s-section-sm { padding: 2.75rem 0; } }
.s-h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.12; margin: 0 0 1.25rem; }
.s-lead { font-size: 1.15rem; color: var(--s-text-2); max-width: 44rem; }
.s-inverse .s-lead { color: color-mix(in oklch, var(--sand-50) 80%, transparent); }

/* Opening: a full-width picture with the headline over it */
.s-hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: var(--sand-50); overflow: hidden;
    background: var(--pine-950) url("../img/site/photos/hero.jpg") 60% 22% / cover no-repeat; }
.s-hero::before { content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, color-mix(in oklch, var(--pine-950) 82%, transparent) 0%, color-mix(in oklch, var(--pine-950) 45%, transparent) 55%, transparent 100%),
        linear-gradient(0deg, color-mix(in oklch, var(--pine-950) 55%, transparent), transparent 45%); }
.s-hero-inner { position: relative; padding-top: 9rem; padding-bottom: 5rem; width: 100%; }
/* The lens picture (lens-scene.svg, the owner's AI-made photo with labels): fades in over the photo when site.js adds .s-lens-on. A blurred copy, a shade that keeps the
   headline readable, and a sharp copy seen only through a circle at --lx/--ly (set by site.js). */
.s-hero-lens { position: absolute; inset: 0; background: #011124; container-type: size; opacity: 0; visibility: hidden; transition: opacity 1.4s ease, visibility 0s 1.4s;
    --lx: 70%; --ly: 40%; --lr: clamp(80px, 10vw, 160px); }
.s-hero-lens.s-lens-on { opacity: 1; visibility: visible; transition: opacity 1.4s ease; }
.s-hero-lens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
/* Wider than the picture (2200 × 1150): show its full height, lined up on the right, so the thief's face and the certificate
   aren't cut off; the dark desk colour (the background above) carries on to the left. */
@container (min-aspect-ratio: 1.91) { .s-hero-lens img { object-fit: contain; } }
.s-lens-blur { filter: blur(11px) saturate(1.1); }
.s-lens-shade { position: absolute; inset: 0;
    background: linear-gradient(90deg, color-mix(in oklch, var(--pine-950) 80%, transparent) 0%, color-mix(in oklch, var(--pine-950) 25%, transparent) 50%, transparent 70%),
        linear-gradient(0deg, color-mix(in oklch, var(--pine-950) 60%, transparent), transparent 45%); }
.s-lens-sharp { -webkit-mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 97%, transparent 100%);
    mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 97%, transparent 100%); }
.s-lens-ring { position: absolute; left: var(--lx); top: var(--ly); width: calc(var(--lr) * 2); height: calc(var(--lr) * 2); border-radius: 50%;
    transform: translate(-50%, -50%); border: 3px solid color-mix(in oklch, var(--sand-50) 90%, transparent);
    box-shadow: 0 0 0 6px color-mix(in oklch, var(--pine-950) 35%, transparent), 0 18px 40px rgba(0, 0, 0, 0.35); pointer-events: none; }
.s-lens-ring::after { content: ""; position: absolute; left: 82%; top: 82%; width: calc(var(--lr) * 0.7); height: 12px; border-radius: 6px;
    background: var(--sand-200); transform: rotate(45deg); transform-origin: 0 50%; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35); }
@media (max-width: 700px) { .s-hero-lens { display: none; } }   /* phones show only the photo (site.js) */

.s-hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: 1.02; margin: 0 0 1.5rem; max-width: 12ch; }
.s-hero .s-lead { color: color-mix(in oklch, var(--sand-50) 88%, transparent); max-width: 34rem; font-size: 1.2rem; }
.s-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2rem; }
.s-hero-note { margin-top: 2.5rem; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.s-page-head { padding: 5rem 0 3.5rem; border-bottom: 1px solid var(--s-line); }
/* The heading band at the top of each page wears the home picture's sunset: the navy wash over its amber sky, as a gradient.
   Headings sit on the navy end, so sand text stays easy to read in light and dark mode alike. */
.s-page-head { background: linear-gradient(100deg, var(--pine-950) 0%, var(--pine-950) 30%, oklch(0.42 0.07 30) 68%, oklch(0.62 0.15 55) 100%);
    color: var(--sand-50); --s-text: var(--sand-50); --s-text-2: color-mix(in oklch, var(--sand-50) 85%, transparent);
    --s-line: var(--s-line-inv); border-bottom: 0; }
.s-page-head a { color: inherit; }
@media (max-width: 700px) {   /* narrow screens: text runs the full width, so the orange moves to the bottom corner, below the words */
    .s-page-head { background: linear-gradient(165deg, var(--pine-950) 0%, var(--pine-950) 50%, oklch(0.42 0.07 30) 82%, oklch(0.62 0.15 55) 100%); }
}
.s-page-head h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); line-height: 1.05; margin: 0 0 1.25rem; max-width: 18ch; }
@media (max-width: 700px) { .s-page-head { padding: 3rem 0 2.5rem; } .s-hero-inner { padding-bottom: 3.5rem; } }

/* An opening statement beside a short paragraph */
.s-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.s-intro .s-h2 { margin: 0; }
@media (max-width: 860px) { .s-intro { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }

/* Rows divided by thin lines: a title, a sentence and a link */
.s-rows { border-top: 1px solid var(--s-line); }
.s-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto; gap: 2rem; align-items: center; padding: 2.1rem 0;
    border-bottom: 1px solid var(--s-line); text-decoration: none; color: inherit; transition: padding 0.25s; }
.s-row h3 { font-size: 1.9rem; line-height: 1.15; margin: 0; }
.s-row p { margin: 0; color: var(--s-text-2); }
a.s-row:hover { padding-left: 0.75rem; }
a.s-row:hover .s-arrow { opacity: 0.75; }
.s-row-meta { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--s-text-2); display: grid; gap: 0.4rem; }
.s-rows-articles .s-row { grid-template-columns: 10rem minmax(0, 1fr) auto; align-items: start; }
.s-rows-articles .s-row h3 { font-size: 1.75rem; margin-bottom: 0.5rem; }
@media (max-width: 760px) {
    .s-row, .s-rows-articles .s-row { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; padding: 1.6rem 0; }
    .s-row h3 { font-size: 1.6rem; }
    .s-row .s-arrow { justify-self: start; }
    a.s-row:hover { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .s-row { transition: none; } a.s-row:hover { padding-left: 0; } }

/* A picture beside text */
.s-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.s-split.s-flip > .s-figure { order: 2; }
.s-figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--s-subtle); }
.s-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .s-split { grid-template-columns: minmax(0, 1fr); gap: 2rem; } .s-split.s-flip > .s-figure { order: 0; } }

/* Three or four columns, each a short heading and text */
.s-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 2.5rem 3rem; }
.s-cols h3 { font-size: 1.75rem; margin: 0 0 0.8rem; }
.s-cols p { color: var(--s-text-2); margin: 0; }
.s-num { font-family: var(--s-serif); font-size: 1rem; color: var(--s-text-2); display: block; margin-bottom: 0.6rem; }

/* Lists */
.s-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--s-line); }
.s-list li { padding: 1rem 0 1rem 2rem; border-bottom: 1px solid var(--s-line); position: relative; }
.s-list li::before { content: ""; position: absolute; left: 0.2rem; top: 1.65rem; width: 0.7rem; height: 1px; background: currentColor; }
.s-limits { margin-top: 1.75rem; padding: 1.2rem 1.4rem; border-left: 3px solid var(--gold); background: var(--s-subtle); font-size: 0.97rem; }
.s-inverse .s-limits { background: color-mix(in oklch, var(--sand-50) 8%, transparent); }

/* The closing band */
.s-cta { text-align: left; }
.s-cta .s-h2 { max-width: 20ch; }
.s-cta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem; }

/* Articles (guides) */
.s-article { max-width: 44rem; }
.s-article h2 { font-size: 2rem; margin: 2.75rem 0 0.9rem; line-height: 1.15; }
.s-article h3 { font-size: 1.5rem; margin: 1.75rem 0 0.6rem; }
.s-article p, .s-article li { font-size: 1.06rem; }
.s-article ul { padding-left: 1.2rem; display: grid; gap: 0.55rem; }
.s-article a { text-underline-offset: 3px; }
.s-note { font-size: 0.92rem; color: var(--s-text-2); border-top: 1px solid var(--s-line); padding-top: 1.25rem; margin-top: 2.5rem; }
.s-back { display: inline-block; margin-bottom: 1.5rem; font-size: 0.9rem; text-decoration: none; border-bottom: 1px solid currentColor; }

/* Tables (data sources) */
.s-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.s-table th, .s-table td { text-align: left; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--s-line); vertical-align: top; }
.s-table th { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--s-text-2); font-weight: 700; }
.s-table td:first-child { font-family: var(--s-serif); font-size: 1.25rem; white-space: nowrap; padding-right: 2rem; }
@media (max-width: 700px) {
    .s-table thead { display: none; }
    .s-table tr { display: grid; padding: 0.9rem 0; border-bottom: 1px solid var(--s-line); }
    .s-table td { border: 0; padding: 0.15rem 0; white-space: normal; }
}

/* Contact */
.s-contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
@media (max-width: 860px) { .s-contact { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; } }
.s-form { display: grid; gap: 1.3rem; }
.s-form label { display: grid; gap: 0.45rem; font-weight: 600; font-size: 0.95rem; }
.s-form input, .s-form select, .s-form textarea { font: inherit; font-weight: 400; color: var(--s-text); background: transparent; padding: 0.8rem 0.9rem;
    border: 1px solid color-mix(in oklch, var(--s-text) 35%, transparent); border-radius: 3px; width: 100%; }
.s-form select option { color: #1d2b26; }
.s-form input:focus, .s-form select:focus, .s-form textarea:focus { outline: 2px solid var(--pine-600); outline-offset: 1px; border-color: transparent; }
.s-form button { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.s-small { font-size: 0.88rem; color: var(--s-text-2); }
.site .alert { border-radius: 3px; }
.site .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Footer */
.s-footer { background: var(--s-inverse); color: var(--sand-50); padding: 5rem 0 2rem; --s-line: var(--s-line-inv); }
.s-footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--s-line); }
.s-footer-top h2 { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 1.5rem; }
.s-footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; align-content: start; }
.s-footer-links a { text-decoration: none; opacity: 0.88; }
.s-footer-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.s-wordmark { font-family: var(--s-serif); font-size: clamp(5rem, 16vw, 11rem); line-height: 1; letter-spacing: -0.03em; padding: 2.5rem 0 1.5rem;
    border-bottom: 1px solid var(--s-line); }
.s-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; font-size: 0.88rem; opacity: 0.85; }
.s-footer-legal { max-width: 46rem; font-size: 0.85rem; opacity: 0.78; margin: 1.5rem 0 0; }
.s-footer .theme-switch { background: transparent; border-color: var(--s-line); }
.s-footer .theme-switch button { color: var(--sand-50); }
.s-footer .theme-switch button[aria-pressed="true"] { background: var(--sand-50); color: var(--pine-950); }
@media (max-width: 760px) { .s-footer-top { grid-template-columns: minmax(0, 1fr); } .s-footer { padding-top: 3.5rem; } }

/* Gentle fade-in as sections scroll into view: only when site.js runs (it adds .s-js to <body>, then .s-in) */
.s-js .s-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.s-js .s-reveal.s-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .s-js .s-reveal { opacity: 1; transform: none; transition: none; } }
.s-rows + p { margin-top: 2rem; }
.s-flash { padding-top: 1.5rem; }
.s-flash + .s-page-head { padding-top: 2rem; }
.s-row-title { font-size: 1.75rem; line-height: 1.15; margin: 0 0 0.5rem; }
.s-next { margin-top: 3.5rem; max-width: 52rem; }
.s-page-head .s-split { align-items: end; }
.s-page-head .s-figure { aspect-ratio: 16 / 10; }
.s-brand-name, .s-btn { white-space: nowrap; }
@media (max-width: 520px) {
    .s-header { gap: 0.75rem; padding: 0.65rem 1rem; }
    .s-brand { gap: 0.5rem; }
    .s-brand img { height: 34px; }
    .s-beta { display: none; }
    .s-actions { gap: 0.5rem; }
    .s-actions .s-btn { padding: 0.55rem 0.8rem; font-size: 0.85rem; }
    .s-menu summary { width: 2.4rem; height: 2.4rem; }
}
.s-form input, .s-form select, .s-form textarea { height: auto; min-height: 3rem; line-height: 1.4; }
