/* Xong — xong.app
   Layout: the app's own rule. A tinted ground, with the things you work on
   floating above it as islands. One spectrum line, taken from the icon, marks
   what is current. System fonts only: the site loads nothing from anyone else. */

:root {
    --ground: #f1f1f3;
    --island: #ffffff;
    --sunk: #e7e7ea;
    --ink: #1b1d22;
    --muted: #5c626e;
    --line: rgba(20, 24, 34, 0.1);
    --tint: #0a66d8;
    --tint-soft: #dde8f7;
    --button: #1b1d22;
    --button-ink: #ffffff;
    --shadow: 0 1px 2px rgba(15, 25, 45, 0.06), 0 18px 48px -18px rgba(15, 25, 45, 0.28);
    --spectrum: linear-gradient(90deg, #00bcec, #408bff 26%, #8560ee 48%, #ec66b4 72%, #ffb53e);
    --glow-1: 64, 139, 255;
    --glow-2: 133, 96, 238;
    --glow-3: 236, 102, 180;
    --glow-4: 255, 181, 62;
    --glow-a: 0.26;

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    --font-serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

    --radius: 18px;
    --page: 1120px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ground: #151619;
        --island: #202127;
        --sunk: #2a2b33;
        --ink: #f1f1f4;
        --muted: #a3a8b3;
        --line: rgba(255, 255, 255, 0.11);
        --tint: #5aa2ff;
        --tint-soft: #1c3152;
        --button: #f1f1f4;
        --button-ink: #151619;
        --glow-1: 56, 132, 255;
        --glow-2: 124, 92, 240;
        --glow-3: 214, 84, 170;
        --glow-4: 0, 170, 220;
        --glow-a: 0.36;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 48px -18px rgba(0, 0, 0, 0.7);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --ground: #151619;
    --island: #202127;
    --sunk: #2a2b33;
    --ink: #f1f1f4;
    --muted: #a3a8b3;
    --line: rgba(255, 255, 255, 0.11);
    --tint: #5aa2ff;
    --tint-soft: #1c3152;
    --button: #f1f1f4;
    --button-ink: #151619;
    --glow-1: 56, 132, 255;
    --glow-2: 124, 92, 240;
    --glow-3: 214, 84, 170;
    --glow-4: 0, 170, 220;
    --glow-a: 0.36;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 48px -18px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font: 400 1.0625rem/1.55 var(--font);
    -webkit-font-smoothing: antialiased;
}

/* The spectrum line, once, across the top of every page. */
body::before {
    content: "";
    display: block;
    height: 3px;
    background: var(--spectrum);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--tint); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
    max-width: var(--page);
    margin-inline: auto;
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---- Header --------------------------------------------------------------
   A capsule that floats over the page instead of a bar across it. */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 12px max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
    pointer-events: none;
}

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 960px;
    min-height: 56px;
    padding: 0 10px 0 18px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--island) 80%, transparent);
    -webkit-backdrop-filter: saturate(1.7) blur(18px);
    backdrop-filter: saturate(1.7) blur(18px);
    box-shadow: 0 10px 30px -14px rgba(15, 25, 45, 0.35), 0 0 0 1px var(--line);
    pointer-events: auto;
}

.brand {
    display: flex;
    flex: none;
    align-items: center;
}

.brand img { display: block; }

/* Center the gradient X, whose midpoint is at 36.5 in the 92-unit viewBox. */
.brand picture { transform: translateY(10.3%); }

.site-nav {
    display: flex;
    gap: 2px;
    margin-left: auto;
}

.site-header .btn { margin-left: 0; }
.site-nav + .theme-btn { margin-left: -10px; }

.site-nav a {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.9375rem;
    text-decoration: none;
}

.site-nav a:hover { color: var(--ink); background: var(--sunk); }

.theme-btn { margin-left: -12px; }

.site-nav a {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.9375rem;
    text-decoration: none;
}

.site-nav a:hover { color: var(--ink); background: var(--sunk); }

.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.theme-btn:hover { color: var(--ink); background: var(--sunk); }
.theme-btn svg { display: none; }
:root[data-theme-shown="light"] .t-light,
:root[data-theme-shown="dark"] .t-dark { display: block; }

/* ---- Buttons ------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--button);
    color: var(--button-ink);
    font: 600 1rem/1.2 var(--font);
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { opacity: 0.86; }
.btn:active { transform: scale(0.98); }
.btn svg { flex: none; }
.btn-small { padding: 8px 15px; font-size: 0.9375rem; }

.btn-quiet {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line);
}

.btn-quiet:hover { background: var(--sunk); opacity: 1; }

/* ---- Hero ----------------------------------------------------------------
   The name set large, one line saying what it is, then three steps that are
   one workflow, so the window tools and the workspace read as one thing. The
   screenshot runs off the right edge. */

.hero { position: relative; padding-block: 64px 0; overflow-x: clip; }

/* A glow in the icon's colours behind the window. It is painted on the hero,
   under the header above and the next section below, and every patch fades
   out before the box's own edge, so nothing is cut off. */
.hero::before {
    content: "";
    position: absolute;
    inset: -90px 0 -160px;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(34% 38% at 68% 42%, rgba(var(--glow-1), var(--glow-a)) 0, rgba(var(--glow-1), calc(var(--glow-a) * 0.42)) 46%, rgba(var(--glow-1), 0) 100%),
        radial-gradient(30% 32% at 92% 36%, rgba(var(--glow-2), var(--glow-a)) 0, rgba(var(--glow-2), calc(var(--glow-a) * 0.42)) 46%, rgba(var(--glow-2), 0) 100%),
        radial-gradient(32% 30% at 84% 66%, rgba(var(--glow-3), calc(var(--glow-a) * 0.8)) 0, rgba(var(--glow-3), calc(var(--glow-a) * 0.32)) 46%, rgba(var(--glow-3), 0) 100%),
        radial-gradient(26% 26% at 56% 70%, rgba(var(--glow-4), calc(var(--glow-a) * 0.6)) 0, rgba(var(--glow-4), calc(var(--glow-a) * 0.24)) 46%, rgba(var(--glow-4), 0) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: center;
}

.headword {
    display: block;
    margin-left: -0.04em;
    font: 700 clamp(6rem, 17vw, 12.5rem) / 0.8 var(--font-serif);
    letter-spacing: -0.045em;
}

/* The full stop, in the icon's colours. */
.headword i {
    display: inline-block;
    width: 0.15em;
    height: 0.15em;
    margin-left: 0.05em;
    border-radius: 50%;
    background: linear-gradient(135deg, #00bcec, #408bff 30%, #8560ee 52%, #ec66b4 76%, #ffb53e);
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    margin-top: 38px;
    font: 500 0.875rem/1.4 var(--font-mono);
    color: var(--muted);
}


.entry-lead {
    margin-top: 18px;
    font: 700 clamp(1.625rem, 2.9vw, 2.25rem) / 1.12 var(--font-display);
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
}

.fine {
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--muted);
}

.hero-art { min-width: 0; }

/* Two pictures, one for each half of the app. The row is wider than its
   column and runs off the right edge, so its arrows sit on the left. */
.hero-art .shots { width: min(880px, 66vw); }
/* The second picture is windows on a clear ground, so it takes no frame. */
.hero-art .shot .window.bare { border-radius: 0; background: none; box-shadow: none; }
.hero-art .shots-bar { justify-content: flex-start; }
.hero-art .shots-count { margin: 0 6px; }
.hero-art .shots-caption { flex: 0 1 auto; max-width: 28rem; }

/* A product shot, framed as a window: an island, like the app's own sheet. */
.window {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: var(--island);
    box-shadow: var(--shadow), 0 0 0 1px var(--line);
}

.window img { width: 100%; aspect-ratio: 2720 / 1720; }

/* ---- Sections ------------------------------------------------------------ */

.section { padding-block: 104px 0; }
.section:last-of-type { padding-bottom: 104px; }

.section-head { max-width: 44rem; }

.label {
    font: 600 0.75rem/1 var(--font);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
}

.section-head h2 {
    margin-top: 14px;
    font-size: clamp(1.875rem, 4.2vw, 3rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.section-head p {
    margin-top: 16px;
    font-size: 1.125rem;
    color: var(--muted);
}

/* ---- Workspace tabs ------------------------------------------------------ */

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 36px;
}

.tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: 500 0.9375rem/1.2 var(--font);
    cursor: pointer;
}

.tab:hover { color: var(--ink); }

/* Selected: the icon's spectrum as the border, the ground showing through. */
.tab[aria-selected="true"] {
    color: var(--ink);
    background:
        linear-gradient(var(--ground), var(--ground)) padding-box,
        var(--spectrum) border-box;
}

.tab svg { flex: none; }

.panel { margin-top: 16px; }

/* Each tab holds a few screens side by side. Swipe or scroll them, or use the
   arrows; without scripts the arrows are absent and each caption sits under
   its own screen. */
.shots-track {
    display: flex;
    gap: 16px;
    padding: 1px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 15px;
}

.shots-track::-webkit-scrollbar { display: none; }

.shot {
    flex: 0 0 100%;
    min-width: 0;
    margin: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.shot .window { box-shadow: 0 0 0 1px var(--line); }
.shot figcaption { margin-top: 12px; font-size: 0.9375rem; color: var(--muted); }
.js .shot figcaption { display: none; }

.shots-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.shots-caption { flex: 1; min-width: 0; font-size: 0.9375rem; color: var(--muted); }

.shots-count {
    margin-right: 4px;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    white-space: nowrap;
}

.shots-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--island);
    color: var(--ink);
    box-shadow: 0 0 0 1px var(--line);
    cursor: pointer;
}

.shots-btn:hover { background: var(--sunk); }

.panel-text {
    display: grid;
    gap: 8px;
    margin-top: 28px;
}

.panel-text h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.panel-text p { color: var(--muted); }

.caption { margin-top: 14px; font-size: 0.8125rem; color: var(--muted); }

/* ---- Window tools -------------------------------------------------------- */

.tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 44px;
}

.tool {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    background: var(--island);
    box-shadow: 0 0 0 1px var(--line);
    overflow: hidden;
}

.tool svg {
    display: block;
    width: 100%;
    height: auto;
    background: var(--sunk);
}

.tool-body { padding: 20px 22px 24px; }
.tool h3 { font-size: 1.125rem; letter-spacing: -0.015em; }
.tool p { margin-top: 6px; color: var(--muted); font-size: 0.9688rem; }

/* Drawing classes shared by the six diagrams. */
.d-screen { fill: none; stroke: var(--line); stroke-width: 1.5; }
.d-win { fill: var(--island); stroke: var(--line); stroke-width: 1; }
.d-bar { fill: var(--island); stroke: var(--line); stroke-width: 1; }
.d-chip { fill: var(--muted); opacity: 0.38; }
.d-hot { fill: var(--tint-soft); stroke: var(--tint); stroke-width: 1.5; }
.d-tint { fill: var(--tint); }
.d-ink { fill: var(--ink); }
.d-rule { stroke: var(--line); stroke-width: 1; }
.d-text { fill: var(--muted); font: 500 9px var(--font); }

kbd {
    display: inline-block;
    min-width: 1.7em;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--sunk);
    box-shadow: inset 0 -1px 0 var(--line), 0 0 0 1px var(--line);
    font: 500 0.8125em/1.5 var(--font-mono);
    text-align: center;
    color: var(--ink);
    white-space: nowrap;
}

/* ---- Small tools --------------------------------------------------------- */

.extras {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 40px;
    margin: 44px 0 0;
}

.extras div { border-top: 1px solid var(--line); padding-top: 18px; }
.extras dt { font: 600 1.0625rem/1.3 var(--font-display); letter-spacing: -0.01em; }
.extras dd { margin: 6px 0 0; color: var(--muted); font-size: 0.9688rem; }

/* ---- Privacy ------------------------------------------------------------- */

.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 44px;
}

.fact {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--island);
    box-shadow: 0 0 0 1px var(--line);
}

.fact h3 { font-size: 1.125rem; letter-spacing: -0.015em; }
.fact p { margin-top: 8px; color: var(--muted); font-size: 0.9688rem; }

.after { margin-top: 24px; color: var(--muted); }

/* ---- FAQ ----------------------------------------------------------------- */

.faq { margin-top: 36px; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    font: 600 1.0625rem/1.4 var(--font-display);
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    flex: none;
    font: 400 1.375rem/1 var(--font);
    color: var(--muted);
    transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq-body {
    display: grid;
    gap: 10px;
    padding: 0 0 22px;
    color: var(--muted);
}

/* ---- Closing ------------------------------------------------------------- */

.closing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 48px 40px;
    border-radius: 24px;
    background: var(--island);
    box-shadow: 0 0 0 1px var(--line);
}

.closing img { width: 72px; height: 72px; }

.closing h2 {
    font-size: clamp(1.875rem, 4.2vw, 3rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.closing p { color: var(--muted); max-width: 34rem; }

.closing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---- Footer -------------------------------------------------------------- */

.site-footer {
    margin-top: 0;
    border-top: 1px solid var(--line);
    font-size: 0.9375rem;
    color: var(--muted);
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    padding-block: 28px 40px;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---- Text pages: privacy, what's new, not found -------------------------- */

.page { padding-block: 64px 96px; }

.sheet,
.legal-sheet {
    max-width: 50rem;
    margin-inline: auto;
    padding: clamp(24px, 5vw, 56px);
    border-radius: 24px;
    background: var(--island);
    box-shadow: 0 0 0 1px var(--line);
}

.sheet h1,
.legal-sheet h1 {
    margin-top: 12px;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.sheet h2,
.legal-sheet h2 {
    margin-top: 48px;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    scroll-margin-top: 84px;
}

.sheet h3,
.legal-sheet h3 { margin-top: 28px; font-size: 1.125rem; }

.sheet p,
.sheet ul,
.sheet ol,
.legal-sheet p,
.legal-sheet ul,
.legal-sheet ol,
.legal-sheet address { margin-top: 14px; }

.sheet ul,
.sheet ol,
.legal-sheet ul,
.legal-sheet ol { padding-left: 1.3em; }

.sheet li + li,
.legal-sheet li + li { margin-top: 8px; }

.legal-sheet address { font-style: normal; }
.legal-sheet code { font: 0.875em var(--font-mono); overflow-wrap: anywhere; }

.section-eyebrow {
    font: 600 0.75rem/1 var(--font);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
}

.legal-meta,
.sheet .meta { color: var(--muted); font-size: 0.9375rem; }

.legal-summary,
.legal-quote {
    margin-top: 24px;
    padding: 18px 22px;
    border-radius: 14px;
    background: var(--sunk);
}

.legal-summary p:first-child { margin-top: 0; }

.legal-table-wrap { margin-top: 18px; overflow-x: auto; }

.legal-table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.legal-table th,
.legal-table td {
    padding: 12px 14px 12px 0;
    border-top: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.legal-table th { color: var(--muted); font-weight: 600; }
.legal-table td:first-child { min-width: 15rem; }

.release { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.release h2 { margin-top: 0; }
.release b { color: var(--ink); }
.release li { color: var(--muted); }

/* ---- Narrow -------------------------------------------------------------- */

@media (max-width: 900px) {
    .tools,
    .facts,
    .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    /* One column: the glow moves down, behind the screenshot. */
    .hero::before {
        background:
            radial-gradient(60% 22% at 30% 76%, rgba(var(--glow-1), var(--glow-a)) 0, rgba(var(--glow-1), calc(var(--glow-a) * 0.42)) 46%, rgba(var(--glow-1), 0) 100%),
            radial-gradient(60% 22% at 76% 72%, rgba(var(--glow-2), var(--glow-a)) 0, rgba(var(--glow-2), calc(var(--glow-a) * 0.42)) 46%, rgba(var(--glow-2), 0) 100%),
            radial-gradient(55% 18% at 60% 82%, rgba(var(--glow-3), calc(var(--glow-a) * 0.8)) 0, rgba(var(--glow-3), calc(var(--glow-a) * 0.32)) 46%, rgba(var(--glow-3), 0) 100%);
    }
    .hero-art .shots { width: 100%; }
}

/* Narrow: the section menu folds into a button in the top bar and opens as a
   panel under it. Without scripts there is no button, so the menu sits on a
   second row instead. */
.menu-btn { display: none; }

@media (max-width: 760px) {
    .site-header .wrap { flex-wrap: wrap; gap: 0 8px; padding: 0 8px 0 14px; border-radius: 28px; }
    .site-header .brand { min-height: 56px; }
    /* Leave room for the theme, download and menu controls on narrow phones. */
    .brand img { width: clamp(72px, calc(100vw - 246px), 87px); }
    .site-header .theme-btn { margin-left: auto; }

    .site-nav {
        order: 5;
        flex: 0 0 100%;
        min-width: 0;
        margin: 0 -8px;
        padding-bottom: 8px;
        gap: 0;
        overflow-x: auto;
    }

    .site-nav a { flex: none; padding: 6px 8px; }

    .js .menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: var(--ink);
        cursor: pointer;
    }

    .js .menu-btn:hover { background: var(--sunk); }
    .menu-btn .m-close,
    .menu-btn[aria-expanded="true"] .m-open { display: none; }
    .menu-btn[aria-expanded="true"] .m-close { display: block; }

    .js .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: max(12px, env(safe-area-inset-left, 0px));
        right: max(12px, env(safe-area-inset-right, 0px));
        flex-direction: column;
        margin: 8px 0 0;
        padding: 8px;
        border-radius: var(--radius);
        background: var(--island);
        box-shadow: var(--shadow), 0 0 0 1px var(--line);
        overflow: visible;
    }

    .js .site-nav.open { display: flex; }

    .js .site-nav a {
        padding: 13px 14px;
        border-radius: 11px;
        color: var(--ink);
        font-size: 1.0625rem;
        font-weight: 500;
    }
}

@media (max-width: 640px) {
    .hero { padding-top: 40px; }
    .section { padding-top: 76px; }
    .section:last-of-type { padding-bottom: 76px; }
    .tools,
    .facts,
    .extras { grid-template-columns: minmax(0, 1fr); }
    .closing { padding: 32px 24px; }
    .window { border-radius: 9px; }
    .site-footer nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
