/* ============================================================================
   Forall Labs

   Light is the default. Dark is opt-in via data-theme="dark" on <html>, set by
   the inline script in base.html, so there is no system-preference surprise and
   no flash on load.
   ========================================================================= */

/* --- Tokens --------------------------------------------------------------- */

:root {
  /* Warm ivory ground, ink-blue accent, almost no hard black. The blue sits at
     the same muted saturation as the ground so it reads as ink, not as UI chrome. */
  --bg:          #faf9f5;
  --bg-sunk:     #f1efe7;
  --bg-raised:   #ffffff;
  --text:        #141413;
  --text-soft:   #5e5d59;
  --text-faint:  #918f89;
  --line:        #e4e1d8;
  --line-soft:   #edebe3;
  --accent:      #3769ae;
  --accent-deep: #2b5794;
  --accent-wash: #ebeff5;
  --accent-ink:  #ffffff;
  --danger:      #b3261e;

  --wrap:   1200px;
  --prose:  66ch;
  --radius: 16px;
  --radius-sm: 10px;

  /* Fluid type. Display runs large; the site is meant to feel unhurried. */
  --t-display: clamp(3rem, 1.5rem + 5.6vw, 5.75rem);
  --t-h1:      clamp(2.4rem, 1.5rem + 3.6vw, 4rem);
  --t-h2:      clamp(1.85rem, 1.3rem + 2.1vw, 2.75rem);
  --t-h3:      clamp(1.18rem, 1.05rem + 0.5vw, 1.4rem);
  --t-lead:    clamp(1.14rem, 1.03rem + 0.5vw, 1.375rem);
  --t-body:    1.0625rem;
  --t-small:   0.9375rem;
  --t-micro:   0.8125rem;

  /* Generous vertical rhythm. */
  --s-1: 0.5rem;  --s-2: 0.875rem; --s-3: 1.375rem; --s-4: 2.25rem;
  --s-5: 3.5rem;  --s-6: 6rem;     --s-7: 9rem;

  --serif: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --sans:  "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

:root[data-theme="dark"] {
  /* Warm charcoal rather than black; the accent lifts to a soft periwinkle. */
  --bg:          #21201d;
  --bg-sunk:     #1a1917;
  --bg-raised:   #2a2926;
  --text:        #f3f1ea;
  --text-soft:   #b4b1a7;
  --text-faint:  #8a8880;
  --line:        #3a3834;
  --line-soft:   #302e2b;
  --accent:      #86a9e0;
  --accent-deep: #a6c0ea;
  --accent-wash: #222832;
  --accent-ink:  #1a1917;
  --danger:      #f2b8b5;
}

/* --- Base ----------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -0.021em; margin: 0; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-family: var(--sans); font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.012em; line-height: 1.35; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

img, svg, video { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-5) 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
code, kbd { font-family: var(--mono); font-size: 0.88em; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* --- Layout --------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(22px, 5vw, 48px); }
.prose { max-width: var(--prose); }
.section { padding-block: var(--s-6); }
.section-sm { padding-block: var(--s-5); }
.sunk { background: var(--bg-sunk); }

.eyebrow {
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 var(--s-2);
}
.lead { font-size: var(--t-lead); line-height: 1.58; color: var(--text-soft); max-width: 58ch; }
.section-head { margin-bottom: var(--s-5); max-width: 42ch; }
.section-head h2 { max-width: 20ch; }
.section-head h2 + .lead { margin-top: var(--s-3); }

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
/* Ink, like the wordmark beside it; the blue is kept for actions. */
.brand .mark { width: 25px; height: 24px; flex: none; color: var(--text); }
.brand .brand-name { font-family: var(--serif); font-size: 1.28rem; letter-spacing: -0.02em; }

.header-tools { display: flex; align-items: center; gap: var(--s-1); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative;
  padding: 8px 13px; border-radius: 8px;
  font-size: var(--t-small); font-weight: 500; color: var(--text-soft);
  text-decoration: none; white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.nav a:hover { color: var(--text); background: var(--bg-sunk); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 1px;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.nav .nav-cta {
  margin-left: 10px; padding: 9px 17px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.nav .nav-cta:hover { background: var(--accent-deep); color: var(--accent-ink); }
.nav .nav-cta[aria-current="page"] { color: var(--accent-ink); }
.nav .nav-cta::after { display: none; }

/* Theme toggle: shows the icon for the theme it switches TO. */
.theme-toggle {
  display: grid; place-items: center;
  width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg-raised); color: var(--text-soft);
  cursor: pointer; transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text-faint); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .i-moon { display: block; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }

/* Mobile menu: <details>, so it works with no JavaScript. */
.menu { display: none; }
.menu > summary {
  list-style: none; cursor: pointer;
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--bg-raised);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary span, .menu > summary span::before, .menu > summary span::after {
  display: block; width: 16px; height: 1.5px; background: var(--text); border-radius: 2px;
}
.menu > summary span { position: relative; }
.menu > summary span::before, .menu > summary span::after { content: ""; position: absolute; left: 0; }
.menu > summary span::before { top: -5px; }
.menu > summary span::after  { top: 5px; }
.menu[open] > summary span { background: transparent; }
.menu[open] > summary span::before { top: 0; transform: rotate(45deg); }
.menu[open] > summary span::after  { top: 0; transform: rotate(-45deg); }
.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg-raised); border-bottom: 1px solid var(--line);
  padding: var(--s-2) 0 var(--s-3);
}
.menu-panel .nav { flex-direction: column; align-items: stretch; gap: 0; }
.menu-panel .nav a { padding: 13px clamp(22px, 5vw, 48px); border-radius: 0; font-size: 1.05rem; }
.menu-panel .nav a[aria-current="page"]::after { left: clamp(22px, 5vw, 48px); right: auto; width: 18px; bottom: 7px; }
.menu-panel .nav .nav-cta { margin: var(--s-2) clamp(22px, 5vw, 48px) 0; border-radius: 9px; text-align: center; justify-content: center; }

@media (max-width: 900px) {
  .header-tools > .nav { display: none; }
  .menu { display: block; }
}

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

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-raised); color: var(--text);
  font: inherit; font-size: var(--t-small); font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--text-faint); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.ghost { background: transparent; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--t-small); font-weight: 600; color: var(--accent);
  text-decoration: none;
}
.arrow-link::after { content: "→"; transition: transform .15s; }
.arrow-link:hover::after { transform: translateX(3px); }

/* --- Hero ----------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid; gap: var(--s-5);
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  padding-block: clamp(var(--s-5), 9vw, var(--s-7));
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { font-size: var(--t-display); letter-spacing: -0.035em; max-width: 14ch; }
.hero .lead { margin-top: var(--s-4); max-width: 50ch; }
.hero .actions { margin-top: var(--s-4); }

.hero-art svg { width: 100%; height: auto; }
@media (max-width: 940px) { .hero-art { max-width: 400px; } }

/* --- Cards and grids ------------------------------------------------------ */

.grid { display: grid; gap: var(--s-3); }
/* Explicit column counts: auto-fit silently packs in extra columns at wide
   widths and turns a four-card row into an orphaned 3+1. */
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1040px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 600px)  { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Flat panels, not floating cards. */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-4);
}
.card h3 { margin-bottom: var(--s-2); }
.card p { color: var(--text-soft); font-size: var(--t-small); }
.card-link { text-decoration: none; display: block; transition: border-color .18s, background-color .18s; }
.card-link:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-wash); }

.card-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-wash); color: var(--accent);
  margin-bottom: var(--s-3);
}
.card-icon svg { width: 20px; height: 20px; }

/* People: photo beside the text, links as quiet chips. */
.person { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.person-photo {
  width: 112px; height: 112px; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--bg-sunk);
}
.person h3 { margin-bottom: 2px; }
.person .meta { margin-bottom: var(--s-2); }
.person-links { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.person-links a {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); font-size: var(--t-micro); font-weight: 500;
  color: var(--text-soft); text-decoration: none; transition: border-color .18s, color .18s, background-color .18s;
}
.person-links a:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-wash); }
@media (max-width: 480px) {
  .person { grid-template-columns: 1fr; }
  .person-photo { width: 96px; height: 96px; }
}
.people-next { margin-top: var(--s-4); color: var(--text-soft); max-width: 70ch; }
.people-next .arrow-link { margin-left: 6px; white-space: nowrap; }

/* Numbered themes: a hairline rule, not a heavy bar. */
.theme { padding-top: var(--s-3); border-top: 1px solid var(--line); }
.theme .num {
  font-family: var(--mono); font-size: var(--t-micro); font-weight: 500;
  color: var(--accent); letter-spacing: .08em; display: block; margin-bottom: var(--s-2);
}
.theme h3 { margin-bottom: var(--s-2); }
.theme p { color: var(--text-soft); font-size: var(--t-small); }

.principle { padding-top: var(--s-3); border-top: 1px solid var(--line); }
.principle h3 { margin-bottom: var(--s-1); }
.principle p { color: var(--text-soft); font-size: var(--t-small); margin: 0; }

.empty {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-raised);
  padding: var(--s-5) var(--s-3); text-align: center;
}
.empty h3 { margin-bottom: var(--s-2); }
.empty p { color: var(--text-soft); max-width: 48ch; margin-inline: auto; font-size: var(--t-small); }
.empty .actions { justify-content: center; margin-top: var(--s-4); }

.callout {
  display: grid; gap: var(--s-4); align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  background: var(--bg-sunk); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s-5) var(--s-4);
}
@media (max-width: 800px) { .callout { grid-template-columns: 1fr; } }
.callout h2 { max-width: 18ch; }
.callout p { color: var(--text-soft); margin-top: var(--s-3); max-width: 54ch; }

/* --- Prose ---------------------------------------------------------------- */

.page-head { padding-block: var(--s-6) var(--s-5); }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: var(--s-4); }

.prose h2 { margin-top: var(--s-5); margin-bottom: var(--s-3); }
.prose h3 { margin-top: var(--s-4); margin-bottom: var(--s-1); }
/* The first heading sits right under the section padding; its own top margin
   would stack on top of that and open a ~200px hole. */
.prose > :is(h2, h3):first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  margin: var(--s-5) 0; padding-left: var(--s-3);
  border-left: 2px solid var(--accent);
  font-family: var(--serif); font-size: var(--t-lead); line-height: 1.5; color: var(--text-soft);
}

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--s-3) 0;
  font-weight: 600; display: flex; justify-content: space-between; gap: var(--s-3); align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.35rem; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding-bottom: var(--s-3); color: var(--text-soft); max-width: var(--prose); }

.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; gap: 6px; padding: var(--s-4) 0; text-decoration: none; grid-template-columns: 170px minmax(0,1fr); }
@media (max-width: 680px) { .post-list a { grid-template-columns: 1fr; } }
.post-list a:hover h3 { color: var(--accent); }
.post-list time, .post-list .kicker { font-size: var(--t-small); color: var(--text-faint); font-variant-numeric: tabular-nums; }
.post-list p { color: var(--text-soft); font-size: var(--t-small); margin: 5px 0 0; }

.meta { font-size: var(--t-small); color: var(--text-faint); }

/* --- Forms ---------------------------------------------------------------- */

.form { display: grid; gap: var(--s-3); max-width: 720px; }
.field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-weight: 600; font-size: var(--t-small); padding: 0; }
.field em, .check-line em { color: var(--accent); font-style: normal; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; line-height: 1.5; color: var(--text);
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
textarea { resize: vertical; }
/* Native selects ignore padding in WebKit and come out shorter than inputs. */
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; line-height: 1.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23918f89' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
::placeholder { color: var(--text-faint); }

.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px var(--s-2); margin-top: 4px; }
.checks label, .check-line { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-small); }
.checks input, .check-line input { margin-top: 5px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

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

.site-footer { background: var(--bg-sunk); border-top: 1px solid var(--line); margin-top: var(--s-6); }
.footer-grid {
  display: grid; gap: var(--s-4);
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  padding-block: var(--s-5) var(--s-4);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--sans); font-size: var(--t-micro); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--s-3); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-grid a { font-size: var(--t-small); color: var(--text-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-about p { font-size: var(--t-small); color: var(--text-soft); max-width: 32ch; margin-top: var(--s-3); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-block: var(--s-3);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); justify-content: space-between;
  font-size: var(--t-micro); color: var(--text-faint);
}
.footer-bottom a { color: var(--text-soft); }

/* --- Statement, values, closing band ------------------------------------- */

/* One large sentence that says what the lab is for. */
.statement {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  line-height: 1.16; letter-spacing: -0.022em;
  max-width: 26ch; margin: 0 0 var(--s-5);
}

.kicker {
  display: block; margin-bottom: var(--s-2);
  font-size: var(--t-micro); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-faint);
}
.card-link h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; letter-spacing: -0.015em; line-height: 1.2; }
.card-link .arrow-link { margin-top: var(--s-3); }

/* Numbered principles: number, imperative, explanation. */
.values { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.values li {
  display: grid; gap: var(--s-1) var(--s-4);
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.35fr);
  padding: var(--s-4) 0; border-bottom: 1px solid var(--line);
}
.values .num { font-family: var(--mono); font-size: var(--t-small); color: var(--accent); padding-top: .35em; }
.values h3 { font-family: var(--serif); font-weight: 400; font-size: var(--t-h3); font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); line-height: 1.2; }
.values p { color: var(--text-soft); margin: 0; }
@media (max-width: 760px) { .values li { grid-template-columns: 3rem minmax(0, 1fr); } .values p { grid-column: 2; } }

.cta-band { text-align: center; padding-block: var(--s-6); }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band p { color: var(--text-soft); max-width: 52ch; margin: var(--s-3) auto 0; }
.cta-band .actions { justify-content: center; margin-top: var(--s-4); }

/* --- Form pages ----------------------------------------------------------- */

/* Context on the left, the form on the right; stacks on narrow screens. */
.form-layout {
  display: grid; gap: var(--s-5) var(--s-6); align-items: start;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
}
.form-aside { position: sticky; top: 110px; }
.form-aside h2 { font-size: var(--t-h3); font-family: var(--sans); font-weight: 600; letter-spacing: -0.012em; margin-bottom: var(--s-3); }
.form-aside ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: var(--s-3); }
.form-aside li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; font-size: var(--t-small); color: var(--text-soft); }
.form-aside li::before { content: "0" counter(step); font-family: var(--mono); color: var(--accent); }
.form-aside li strong { display: block; color: var(--text); font-weight: 600; }
.form-aside .meta { margin-top: var(--s-4); }
@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; }
  .form-aside { position: static; order: 2; }
}

.form { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); }
.form .actions { align-items: center; }
.form-note { font-size: var(--t-micro); color: var(--text-faint); margin: 0; }
.form-error { color: var(--danger); font-size: var(--t-small); font-weight: 500; margin: 0; }

.form-success {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-5) var(--s-4); outline: none;
}
.form-success .tick {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-wash); color: var(--accent); margin-bottom: var(--s-3);
}
.form-success .tick svg { width: 22px; height: 22px; }
.form-success h2 { font-size: var(--t-h2); margin-bottom: var(--s-2); }
.form-success p { color: var(--text-soft); max-width: 52ch; }
.form-success .actions { margin-top: var(--s-4); }
