/* Lectorium — intro site. Static, no build step.
   Palette matches the app: near-black charcoal + gold. Dark only, by design. */

:root {
    --bg:          #0a0a0a;
    --bg-alt:      #101010;
    --surface:     #141414;
    --surface-2:   #191919;
    --line:        #272727;
    --line-soft:   #1f1f1f;

    --text:        #ededec;
    --text-soft:   #9c968d;
    --text-faint:  #6d675f;

    --gold:        #e8b64c;
    --gold-bright: #f5cf6b;
    --gold-deep:   #c8912f;
    --gold-tint:   rgba(232, 182, 76, 0.10);
    --gold-line:   rgba(232, 182, 76, 0.28);

    --radius: 12px;
    --measure: 68ch;
    --shell: 1180px;

    --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { background: var(--bg); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 32px;
}

/* ================= top bar ================= */

.site-head { position: relative; z-index: 3; }

.site-head .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
    padding-bottom: 22px;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 640;
    font-size: 1.1rem;
    letter-spacing: -0.015em;
    text-decoration: none;
    color: var(--text);
}

.brand .mark {
    color: var(--gold);
    font-size: 1.25rem;
    font-weight: 500;
}

.nav { display: flex; align-items: center; gap: 26px; }

.nav a {
    font-size: 0.93rem;
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.15s ease;
}

.nav a:hover { color: var(--gold); }

/* --- burger button (created by js/nav.js; hidden until the nav collapses) --- */

.nav-burger {
    display: none;
    flex: none;
    width: 42px;
    height: 42px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: var(--gold-tint);
    border: 1px solid var(--gold-line);
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.nav-burger span {
    display: block;
    width: 17px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--gold);
    transition: transform 0.18s ease, opacity 0.15s ease;
}

/* three bars fold into a cross */
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ================= hero ================= */

.hero {
    position: relative;
    overflow: hidden;
    padding: 44px 0 96px;
    background:
        radial-gradient(820px 460px at 16% 2%,  rgba(232, 182, 76, 0.075), transparent 64%),
        radial-gradient(760px 560px at 86% 26%, rgba(200, 145, 47, 0.085), transparent 62%),
        radial-gradient(680px 420px at 58% 100%, rgba(232, 182, 76, 0.045), transparent 66%),
        linear-gradient(170deg, #121110 0%, #0c0c0b 55%, #080808 100%);
}

/* hairline at the bottom of the hero */
.hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* --- monospace eyebrow pill, like the app's badges --- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 46px;
    padding: 7px 15px;
    border: 1px solid var(--gold-line);
    border-radius: 100px;
    background: var(--gold-tint);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
}

.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 24px 72px;
    align-items: end;
}

.wordmark {
    margin: 0 0 16px;
    font-size: clamp(2.9rem, 7vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 700;
    color: var(--text);
}

.wordmark .mark {
    font-weight: 400;
    color: var(--gold);
    margin-right: 0.1em;
}

.tagline {
    margin: 0 0 40px;
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
    font-weight: 400;
    color: var(--text-soft);
    max-width: 26ch;
}

/* --- entry cards --- */

.entry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.card {
    display: block;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px 26px;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.card:hover {
    border-color: var(--gold-line);
    background: var(--surface-2);
    transform: translateY(-2px);
}

.card .kicker {
    display: block;
    margin-bottom: 9px;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.card h2 {
    margin: 0 0 8px;
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
}

.card p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.55;
    color: var(--text-soft);
}

/* --- tall gold card, mirrors the app's primary button --- */

.feature {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 340px;
    padding: 32px;
    border-radius: var(--radius);
    text-decoration: none;
    color: #17140d;
    background: linear-gradient(152deg, var(--gold-bright) 0%, var(--gold) 46%, var(--gold-deep) 100%);
    box-shadow: 0 0 0 1px rgba(232, 182, 76, 0.35), 0 18px 44px rgba(232, 182, 76, 0.14);
}

/* decorative rays, pure CSS */
.feature::before {
    content: "";
    position: absolute;
    top: -34%;
    right: -22%;
    width: 440px;
    height: 440px;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(255, 255, 255, 0.16) 0deg 2deg,
        transparent 2deg 9deg
    );
    border-radius: 50%;
    opacity: 0.6;
    pointer-events: none;
}

.feature > * { position: relative; }

.feature h2 {
    margin: 0 0 18px;
    font-size: clamp(1.28rem, 2.1vw, 1.55rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
    font-weight: 600;
    max-width: 18ch;
}

.feature .go {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.78;
    transition: opacity 0.15s ease;
}

.feature:hover .go { opacity: 1; }

/* ================= content sections ================= */

section.band { padding: 74px 0; }

section.band + section.band { border-top: 1px solid var(--line-soft); }

.band.alt { background: var(--bg-alt); }

.band .kicker {
    display: block;
    margin-bottom: 12px;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
}

.band h2 {
    margin: 0 0 10px;
    font-size: 1.6rem;
    letter-spacing: -0.025em;
    font-weight: 640;
}

.lede {
    margin: 0 0 36px;
    color: var(--text-soft);
    max-width: var(--measure);
}

/* steps */

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    counter-reset: step;
}

.steps li {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.steps li::before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    margin-bottom: 14px;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gold);
}

.steps h3 {
    margin: 0 0 6px;
    font-size: 1.02rem;
    font-weight: 620;
}

.steps p {
    margin: 0;
    font-size: 0.94rem;
    color: var(--text-soft);
}

/* acts */

.acts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
}

/* Each tile is a flex row of exactly two things: the badge and the act name as a
   bare text node. Do NOT add an inline <em>/<span> after the name — a text node and
   an element become two separate flex items, and the second one collapses into a
   one-word-per-line column. Act-specific remarks go in the prose below the list. */
.acts li {
    display: flex;
    align-items: baseline;
    gap: 11px;
    padding: 12px 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text);
}

.acts .abbr {
    flex: none;
    min-width: 3.6em;
    text-align: center;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--gold);
    background: var(--gold-tint);
    border: 1px solid var(--gold-line);
    border-radius: 4px;
    padding: 3px 6px;
}

/* trust rules */

.rules {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
    max-width: var(--measure);
}

.rules li { padding-left: 28px; position: relative; }

.rules li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 0.6em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--gold);
    box-shadow: 0 0 10px rgba(232, 182, 76, 0.45);
}

.rules strong { font-weight: 620; color: var(--text); }

.rules span {
    display: block;
    color: var(--text-soft);
    font-size: 0.95rem;
}

/* disclaimer */

.disclaimer {
    border: 1px solid var(--gold-line);
    border-left-width: 3px;
    background: linear-gradient(100deg, var(--gold-tint), transparent 60%), var(--surface);
    border-radius: var(--radius);
    padding: 22px 26px;
    max-width: var(--measure);
}

.disclaimer p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.97rem;
}

/* ================= footer ================= */

.site-foot {
    background: #070707;
    border-top: 1px solid var(--line-soft);
    padding: 58px 0 46px;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 40px;
}

.foot-brand .brand { font-size: 1.15rem; }

.foot-brand p {
    margin: 16px 0 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-faint);
    max-width: 32ch;
}

.foot-col h3 {
    margin: 4px 0 15px;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.foot-col a {
    font-size: 0.92rem;
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.15s ease;
}

.foot-col a:hover { color: var(--gold); }

.foot-legal {
    margin-top: 46px;
    padding-top: 24px;
    border-top: 1px solid var(--line-soft);
    font-size: 0.84rem;
    color: var(--text-faint);
}

.foot-legal p { margin: 0 0 6px; max-width: var(--measure); }

/* ================= prose (English page) ================= */

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 42px; font-size: 1.32rem; letter-spacing: -0.02em; font-weight: 640; }
.prose p { color: var(--text-soft); }
.prose p:first-of-type { color: var(--text); font-size: 1.06rem; }
.prose ul { color: var(--text-soft); padding-left: 20px; }
.prose li { margin-bottom: 9px; }
.prose strong { color: var(--text); font-weight: 620; }
.prose a { color: var(--gold); }

/* ================= 404 ================= */

.center-page {
    min-height: 62vh;
    display: grid;
    place-content: center;
    text-align: center;
}

.center-page h1 {
    margin: 0 0 12px;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    letter-spacing: -0.03em;
}

.center-page p { margin: 0 0 26px; color: var(--text-soft); }

.btn-gold {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    color: #17140d;
    background: linear-gradient(150deg, var(--gold-bright), var(--gold-deep));
    box-shadow: 0 10px 30px rgba(232, 182, 76, 0.16);
}

/* ================= overview / doc page ================= */

.doc-layout {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 0 76px;
    align-items: start;
    padding: 56px 0 96px;
}

/* --- sticky section nav --- */

.doc-nav { position: sticky; top: 34px; }

.doc-nav .kicker {
    display: block;
    margin-bottom: 16px;
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.doc-nav ol {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--line);
}

.doc-nav a {
    display: block;
    padding: 8px 0 8px 18px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-faint);
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.doc-nav a:hover { color: var(--text-soft); }

.doc-nav a.active {
    color: var(--text);
    border-left-color: var(--gold);
}

/* --- document body --- */

.doc { max-width: 72ch; }

.doc h1 {
    margin: 0 0 34px;
    font-size: clamp(2.1rem, 4.6vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 680;
}

.doc h1 .hl { color: var(--gold); }

.doc section + section {
    margin-top: 56px;
    padding-top: 56px;
    border-top: 1px solid var(--line-soft);
}

.doc h2 {
    margin: 0 0 18px;
    font-size: clamp(1.4rem, 2.6vw, 1.85rem);
    line-height: 1.2;
    letter-spacing: -0.028em;
    font-weight: 650;
    scroll-margin-top: 90px;
}

.doc h3 {
    margin: 34px 0 10px;
    font-size: 1.05rem;
    font-weight: 630;
    letter-spacing: -0.01em;
}

.doc p {
    margin: 0 0 18px;
    color: var(--text-soft);
}

.doc p strong, .doc li strong { color: var(--text); font-weight: 620; }

.doc a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(232, 182, 76, 0.3); }
.doc a:hover { border-bottom-color: var(--gold); }

.doc ul, .doc ol { margin: 0 0 18px; padding-left: 22px; color: var(--text-soft); }
.doc li { margin-bottom: 9px; }

.doc code {
    font-family: var(--mono);
    font-size: 0.86em;
    color: var(--gold);
    background: var(--gold-tint);
    border: 1px solid rgba(232, 182, 76, 0.16);
    border-radius: 4px;
    padding: 1px 5px;
}

/* --- spec table (dl) --- */

.spec {
    margin: 26px 0 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.spec > div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line-soft);
}

.spec > div:last-child { border-bottom: 0; }

.spec dt {
    font-size: 0.88rem;
    color: var(--text-soft);
}

.spec dd {
    margin: 0;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text);
    text-align: right;
}

.spec dd .unit { color: var(--text-faint); }

/* --- stat row --- */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin: 28px 0;
    padding: 0;
    list-style: none;
}

.stats li {
    margin: 0;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.stats .num {
    display: block;
    font-size: 1.7rem;
    font-weight: 660;
    letter-spacing: -0.03em;
    color: var(--gold);
    line-height: 1.1;
}

.stats .lbl {
    display: block;
    margin-top: 5px;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--text-soft);
}

/* --- example / figure block --- */

.fig {
    margin: 26px 0;
    padding: 20px 22px;
    background: #0d0d0d;
    border: 1px solid var(--line);
    border-left: 2px solid var(--gold);
    border-radius: 0 10px 10px 0;
    font-family: var(--mono);
    font-size: 0.84rem;
    line-height: 1.7;
    color: var(--text-soft);
    overflow-x: auto;
}

.fig .q { color: var(--text); }
.fig .ok { color: #7fbf7f; }
.fig .bad { color: #d98080; }
.fig .arrow { color: var(--gold); }

/* --- callout (limitations, honesty boxes) --- */

.callout {
    margin: 26px 0;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-left: 2px solid var(--text-faint);
    border-radius: 0 10px 10px 0;
    background: var(--surface);
}

.callout.warn { border-left-color: var(--gold); }

.callout .kicker {
    display: block;
    margin-bottom: 8px;
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.callout p:last-child { margin-bottom: 0; }

/* ================= api page ================= */

/* status labels - never let "planned" read as "available" */

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 10px;
    border-radius: 100px;
    font-family: var(--mono);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: 0.18em;
}

.status::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.status--live {
    color: #7fbf7f;
    border: 1px solid rgba(127, 191, 127, 0.35);
    background: rgba(127, 191, 127, 0.09);
}

.status--planned {
    color: var(--text-faint);
    border: 1px solid var(--line);
    background: transparent;
}

.doc h2 .status, .doc h3 .status { margin-left: 10px; }

/* endpoint rows */

.endpoints {
    list-style: none;
    margin: 24px 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.endpoints li {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
    padding: 13px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: var(--mono);
    font-size: 0.86rem;
}

.endpoints .verb {
    flex: none;
    min-width: 4.2em;
    text-align: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gold);
    background: var(--gold-tint);
    border: 1px solid var(--gold-line);
}

.endpoints .path { color: var(--text); }

.endpoints .desc {
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 0.88rem;
    color: var(--text-soft);
}

/* code blocks */

pre.code {
    margin: 22px 0;
    padding: 18px 20px;
    background: #0d0d0d;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--text-soft);
    tab-size: 2;
}

pre.code .k  { color: var(--gold); }              /* keys */
pre.code .s  { color: #9fbf8f; }                  /* strings */
pre.code .n  { color: #8fb8d9; }                  /* numbers / literals */
pre.code .c  { color: var(--text-faint); }        /* comments */
pre.code .cmd { color: var(--text); }             /* shell command */

/* field reference list */

.fields {
    list-style: none;
    margin: 22px 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.fields > li {
    margin: 0;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-soft);
}

.fields > li:last-child { border-bottom: 0; }

.fields .name {
    font-family: var(--mono);
    font-size: 0.84rem;
    color: var(--gold);
}

.fields .type {
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--text-faint);
    margin-left: 8px;
}

.fields .what {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-soft);
}

/* ================= release notes ================= */

.notes-head {
    max-width: 62ch;
    margin: 0 auto;
    padding: 54px 0 8px;
    text-align: center;
}

.notes-head h1 {
    margin: 0 0 16px;
    font-size: clamp(2.1rem, 5vw, 3.1rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 680;
}

.notes-head h1 .hl { color: var(--gold); }

.notes-head p {
    margin: 0;
    color: var(--text-soft);
}

.notes {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 0 96px;
    display: grid;
    gap: 20px;
}

.note {
    padding: 30px 34px 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
}

/* the first (newest) entry gets a gold edge */
.note--latest {
    border-color: var(--gold-line);
    background: linear-gradient(150deg, var(--gold-tint), transparent 42%), var(--surface);
}

.note-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.note time {
    font-family: var(--mono);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
}

.tag {
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid var(--gold-line);
    background: var(--gold-tint);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
}

.tag--muted {
    color: var(--text-faint);
    border-color: var(--line);
    background: transparent;
}

.note h2 {
    margin: 0 0 16px;
    font-size: 1.24rem;
    line-height: 1.32;
    letter-spacing: -0.02em;
    font-weight: 640;
    color: var(--text);
}

.note ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 13px;
}

.note li {
    margin: 0;
    padding-left: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-soft);
}

.note li b {
    color: var(--gold);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 3px;
}

.note strong { color: var(--text); font-weight: 620; }

.note code {
    font-family: var(--mono);
    font-size: 0.85em;
    color: var(--gold);
    background: var(--gold-tint);
    border-radius: 4px;
    padding: 1px 5px;
}

.note a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(232, 182, 76, 0.3); }
.note a:hover { border-bottom-color: var(--gold); }

.note .quote {
    margin: 14px 0 0;
    padding: 12px 16px;
    background: #0d0d0d;
    border-left: 2px solid var(--line);
    border-radius: 0 8px 8px 0;
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.6;
    color: #d98080;
}

/* origin entry sits visually apart - it is where the idea starts */
.note--origin {
    border-style: dashed;
    background: transparent;
}

.note--origin time, .note--origin h2 { color: var(--text-soft); }

/* ================= responsive ================= */

/* --- collapsed navigation ---
   Six nav items overflow well before the phone breakpoint: at ~390px the last
   two were pushed off-screen, making two pages unreachable. Everything here is
   scoped to .js-nav so that without JavaScript the nav stays visible instead of
   collapsing behind a button that cannot open. */

@media (max-width: 760px) {
    .js-nav .nav-burger { display: inline-flex; }

    .js-nav .site-head .wrap { position: relative; }

    .js-nav .site-head .nav {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        left: auto;
        min-width: 208px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 8px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
        z-index: 40;
    }

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

    .js-nav .site-head .nav a {
        padding: 11px 14px;
        border-radius: 8px;
        font-size: 0.97rem;
        color: var(--text);
    }

    .js-nav .site-head .nav a:hover,
    .js-nav .site-head .nav a:active {
        background: var(--gold-tint);
        color: var(--gold);
    }
}

@media (max-width: 900px) {
    .doc-layout { grid-template-columns: 1fr; gap: 0; padding-top: 32px; }
    .doc-nav {
        position: static;
        margin-bottom: 44px;
        padding-bottom: 28px;
        border-bottom: 1px solid var(--line-soft);
    }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .feature { min-height: 230px; }
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 620px) {
    .wrap { padding: 0 20px; }
    .hero { padding: 32px 0 60px; }
    .badge { margin-bottom: 34px; }
    .entry { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr; }
    .nav { gap: 18px; }
    section.band { padding: 56px 0; }
}

/* ============================ SEBASTIAN ============================
   The clarification persona. Presented as a portrait beside the explanation,
   because the point being made is that a person-shaped thing asks the question —
   and the copy's job is to be equally clear that he never answers it. */
.seb-intro {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 26px;
    align-items: start;
    margin-top: 6px;
}

.seb-portrait {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--gold-line);
    box-shadow: 0 0 0 6px rgba(232, 182, 76, .05);
}

.seb-intro p { margin: 0 0 12px }
.seb-intro p:last-child { margin-bottom: 0 }

/* The example exchange: question, then his choice, in the app's own shapes. */
.seb-demo {
    margin-top: 18px;
    padding: 15px 17px;
    border: 1px solid var(--gold-line);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(232, 182, 76, .05), transparent);
}

.seb-demo .seb-ask {
    color: var(--text);
    font-weight: 600;
    margin: 0 0 11px;
}

.seb-demo .seb-picks { display: flex; flex-wrap: wrap; gap: 9px }

.seb-demo .seb-pick {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .9rem;
    color: var(--gold-bright);
    background: rgba(232, 182, 76, .12);
    border: 1px solid var(--gold-line);
    border-radius: 100px;
    padding: 7px 15px 7px 12px;
}

.seb-demo .seb-pick::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid var(--gold-deep);
}

@media (max-width: 620px) {
    .seb-intro { grid-template-columns: 1fr; gap: 18px; justify-items: start }
    .seb-portrait { width: 104px; height: 104px }
}
