:root {
    --ink: #232b63;
    --ink-soft: #3a4387;
    --stone: #eef0f4;
    --paper: #ffffff;
    --text: #1b2130;
    --muted: #596274;
    --line: #d9dde5;
    --brass: #a87a22;
    --brass-soft: #f6eedd;
    --ok: #2f6b4f;
    --focus: #3a4387;
    --radius-s: 6px;
    --radius-m: 12px;
    --wrap: 1120px;
    color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
    :root {
        --ink: #aab4ff;
        --ink-soft: #c3caff;
        --stone: #161a26;
        --paper: #0f121b;
        --text: #e7e9f0;
        --muted: #a2a9b8;
        --line: #2a3040;
        --brass: #d9aa52;
        --brass-soft: #2a2416;
        --ok: #7fc3a0;
        --focus: #aab4ff;
    }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem .75rem; z-index: 10; }

/* Headings: Spectral carries the voice */
h1, h2, h3 { font-family: "Spectral", Georgia, serif; font-weight: 500; color: var(--text); margin: 0; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); line-height: 1.08; letter-spacing: -0.015em; max-width: 18ch; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; max-width: 22ch; }
h3 { font-size: 1.3rem; line-height: 1.3; }
p { margin: 0; max-width: 64ch; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 54ch; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font-family: "Spectral", Georgia, serif; font-size: 1.35rem; font-weight: 600; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); padding: .5rem .75rem; border-radius: var(--radius-s); font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--stone); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }
.nav .nav-cta { margin-left: .5rem; background: var(--ink); color: var(--paper); }
.nav .nav-cta:hover { background: var(--ink-soft); color: var(--paper); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.25rem; border-radius: var(--radius-s); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-soft); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ink); }

/* Sections */
.section { padding: 5.5rem 0; }
.section-stone { background: var(--stone); }
.section-head { display: grid; gap: 1rem; margin-bottom: 3rem; }

/* Hero */
.hero { padding: 4.5rem 0 5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3.5rem; align-items: center; }
.hero .lede { margin-top: 1.5rem; }
.tagline { font-family: "Spectral", Georgia, serif; font-style: italic; color: var(--brass); font-size: 1.15rem; margin-top: 1rem; }

/* The work order: the one bold element */
.work-order { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(35, 43, 99, .45); overflow: hidden; }
.wo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--stone); }
.wo-title { font-weight: 600; }
.wo-meta { font-size: .85rem; color: var(--muted); }
.wo-ask { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); font-family: "Spectral", Georgia, serif; font-size: 1.15rem; }
.wo-steps { list-style: none; margin: 0; padding: .5rem 1.25rem; }
.wo-steps li { display: grid; grid-template-columns: 14px 1fr auto; gap: .75rem; align-items: baseline; padding: .55rem 0; font-size: .95rem; }
.wo-steps li + li { border-top: 1px dashed var(--line); }
.wo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); transform: translateY(-1px); }
.wo-time { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.wo-approve { margin: .25rem 1.25rem 1.25rem; padding: 1rem; border-radius: var(--radius-s); background: var(--brass-soft); border-left: 3px solid var(--brass); display: grid; gap: .75rem; }
.wo-approve p { font-size: .95rem; }
.wo-approve-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.wo-btn { min-height: 40px; padding: 0 1rem; border-radius: var(--radius-s); font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; border: 1px solid var(--line); background: var(--paper); color: var(--text); }
.wo-btn-approve { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.wo-status { font-size: .9rem; color: var(--ok); font-weight: 600; }

/* Two doors: Atelier and Vera */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.door { display: grid; gap: .9rem; padding: 2rem; border-radius: var(--radius-m); text-decoration: none; color: var(--text); border: 1px solid var(--line); background: var(--paper); }
.door:hover { border-color: var(--ink); }
.door-atelier { background: var(--ink); color: #fff; border-color: var(--ink); }
.door-atelier h3, .door-atelier p { color: #fff; }
.door-atelier .door-kind { color: #d9c08a; }
.door h3 { font-size: 1.65rem; }
.door-kind { font-size: .95rem; color: var(--brass); font-weight: 600; }
.door-go { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* Definition lists: term on the left, meaning on the right */
.defs { display: grid; margin: 0; border-top: 1px solid var(--line); }
.defs > div { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.defs dt { font-family: "Spectral", Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.defs dd { margin: 0; color: var(--muted); }
.soon { display: inline-block; margin-left: .4rem; font-family: "Public Sans", sans-serif; font-size: .78rem; font-weight: 600; color: var(--brass); border: 1px solid currentColor; border-radius: 999px; padding: 0 .5rem; vertical-align: middle; }

/* Sequences (real ones only) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: .5rem; align-content: start; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); font-family: "Spectral", Georgia, serif; font-size: 2rem; line-height: 1; color: var(--brass); }
.steps .when { font-weight: 600; }
.steps p { color: var(--muted); font-size: 1rem; }

/* Flow strip on Atelier */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--paper); counter-reset: flow; }
.flow li { counter-increment: flow; padding: 1.1rem 1rem; display: grid; gap: .35rem; align-content: start; }
.flow li + li { border-left: 1px solid var(--line); }
.flow li::before { content: counter(flow); font-family: "Spectral", Georgia, serif; color: var(--brass); font-size: 1.4rem; line-height: 1; }
.flow strong { font-size: 1rem; }
.flow span { font-size: .88rem; color: var(--muted); line-height: 1.4; }

/* Plain columns */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.cols h3 { margin-bottom: .5rem; }
.cols p { color: var(--muted); }

/* Contact */
.contact { background: var(--ink); color: #fff; }
.contact h2, .contact p { color: #fff; }
.contact .lede { color: #d6daf3; margin-top: 1rem; }
.contact .btn-primary { background: #fff; color: #232b63; }
.contact .btn-primary:hover { background: #e9ebf7; }
.contact .btn-quiet { color: #fff; border-color: rgba(255, 255, 255, .45); }
.contact .btn-quiet:hover { border-color: #fff; }
.copied { margin-top: .75rem; min-height: 1.5rem; color: #d9c08a; font-weight: 600; }

/* Footer */
.site-footer { padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer em { font-family: "Spectral", Georgia, serif; }

/* Responsive */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flow li + li { border-left: 0; }
    .flow li { border-top: 1px solid var(--line); }
    .cols { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (max-width: 720px) {
    body { font-size: 1rem; }
    .section { padding: 4rem 0; }
    .hero { padding: 3rem 0 3.5rem; }
    .doors { grid-template-columns: 1fr; }
    .defs > div { grid-template-columns: 1fr; gap: .4rem; }
    .steps { grid-template-columns: 1fr; }
    .flow { grid-template-columns: 1fr; }
    .nav .nav-cta { margin-left: 0; }
    .wo-steps li { grid-template-columns: 14px 1fr; }
    .wo-time { grid-column: 2; }
}
@media (prefers-reduced-motion: no-preference) {
    .wo-steps li { animation: settle .45s ease-out both; }
    .wo-steps li:nth-child(2) { animation-delay: .25s; }
    .wo-steps li:nth-child(3) { animation-delay: .5s; }
    .wo-steps li:nth-child(4) { animation-delay: .75s; }
    .wo-approve { animation: settle .45s ease-out 1.05s both; }
    @keyframes settle { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
