/* DesignForge public site. One stylesheet, no JavaScript, mobile first.
   The look is a drafting table (docs/plan/53, redesign 2026-12-04): warm paper, near-black ink, one brass accent, hairline rules, square
   corners, a serif for headings, Inter for reading and system mono for labels. These tokens are the site's own, not the app's: the site
   is a page to read and the app is a tool, so they do not have to match. Light or dark follows the visitor's OS. Status colours keep
   their meaning: amber warns, and a warning always carries the word. */
:root {
  --paper: #f6f2ea; --panel: #fbf9f3; --panel-2: #efe9dc; --ink: #1d1b17; --muted: #5c564a; --line: #d9d2c2; --rule: #1d1b17;
  --accent: #85651b; --on-accent: #ffffff;
  --warn: #8f5600; --warn-soft: #f4e8c8; --ok: #0f7a3e;
  --focus: #1d1b17;
  --serif: 'Newsreader Variable', Georgia, 'Times New Roman', serif;
  --sans: 'Inter Variable', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --gutter: 1.25rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14120f; --panel: #1b1813; --panel-2: #25211a; --ink: #ece6d8; --muted: #a79f8e; --line: #3a352b; --rule: #ece6d8;
    --accent: #d1a954; --on-accent: #14120f;
    --warn: #e5b94f; --warn-soft: #2e2612; --ok: #6bd68b;
    --focus: #ece6d8;
    color-scheme: dark;
  }
}

/* Two self-hosted variable fonts (latin): Inter for reading, Newsreader for headings. The Inter fallback is Arial resized to Inter's
   metrics so the swap moves nothing. */
@font-face {
  font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-wght-3100e775e8.woff2') format('woff2-variations');
  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: 'Newsreader Variable'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('/assets/fonts/newsreader-latin-wght-62981321d9.woff2') format('woff2-variations');
  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: 'Inter Fallback'; src: local('Arial'); size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.5%; line-gap-override: 0%;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.6 var(--sans); font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0 0 0.75rem; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); letter-spacing: -0.028em; line-height: 1.02; }
h2 { font-size: clamp(1.65rem, 4vw, 2.25rem); }
h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }
a { color: var(--ink); text-decoration-line: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 99; }
.skip:focus { left: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.25rem; font-size: 0.95rem; }
th { font: 600 0.72rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: left; }
th, td { padding: 0.55rem 0.75rem 0.55rem 0; border-top: 1px solid var(--line); vertical-align: top; }

/* mono labels: eyebrows, captions, the nav and the buttons */
.eyebrow { font: 600 0.72rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.wrap p, .wrap li { max-width: 44rem; }
.prose { max-width: 42rem; padding-block: 2.75rem 3.5rem; }
.prose h1 { padding-bottom: 1rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.5rem; }
.prose h2 { margin-top: 2.75rem; }
.prose h3 { margin-top: 1.75rem; }

/* header and footer */
.top { background: var(--paper); border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 1.25rem; min-height: 3.5rem; padding-block: 0.5rem; }
/* The Design Forge lockup (Tim, 2026-12-04; src/brand.mjs): the app's mark, unchanged, with the name in Inter SemiBold beside it.
   Its two colours are the brand's own, deliberately not the site tokens above, so they are written out here as literal hexes. */
.lockup { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; margin-right: auto; }
.lockup-mark { flex: none; display: block; color: #4f46e5; }
.lockup-name { white-space: nowrap; font: 600 1.0625rem/1 var(--sans); letter-spacing: -0.012em; color: #0f172a; }
.lockup:hover .lockup-name { text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 0.25em; }
@media (prefers-color-scheme: dark) { .lockup-mark { color: #818cf8; } .lockup-name { color: #ffffff; } }
.nav { display: flex; flex-wrap: wrap; gap: 0.15rem 0.5rem; order: 3; width: 100%; }
.nav a { padding: 0.45rem 0.4rem; color: var(--muted); text-decoration: none; font: 500 0.7rem/1.2 var(--mono); letter-spacing: 0.05em; white-space: nowrap; text-transform: uppercase; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--accent); }
.foot { border-top: 1px solid var(--rule); margin-top: 0; }
.foot-grid { display: grid; gap: 1rem; padding-block: 2rem; }
.foot-brand { margin: 0; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.foot-links li { margin: 0; }
.foot-links a { font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-note { margin: 0; color: var(--muted); font: 0.72rem/1.5 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }

/* buttons: square, ink on paper, mono caps, 44px tall for touch */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.6rem 1.25rem; background: var(--ink); color: var(--paper); font: 600 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border: 0; }
.btn::after { content: '\2192' / ''; }
.btn:hover { background: var(--accent); color: var(--on-accent); text-decoration: none; }
.btn-sm { min-height: 2.25rem; padding: 0.4rem 0.9rem; white-space: nowrap; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin: 1.5rem 0 0; }
.cta-note { color: var(--muted); font-size: 0.95rem; }

/* sections: hairline rule between bands */
.band { padding-block: clamp(2.5rem, 6vw, 4.25rem); }
.band + .band { border-top: 1px solid var(--rule); }
.band-soft { background: var(--panel); }
.band > .wrap > h2 { margin-bottom: 1rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.band .intro { color: var(--muted); max-width: 44rem; }

/* columns: stacked on a phone, side by side from 48rem; .ruled puts a hairline between them */
.cols { display: grid; gap: 1.5rem; }
.col > :last-child { margin-bottom: 0; }
.cols-cards > .col, .card { background: var(--panel); border: 1px solid var(--rule); padding: 1.25rem; }
.band-soft .cols-cards > .col { background: var(--paper); }
.cols-cards h3 { margin-bottom: 0.5rem; }
.cols-cards .shot { margin-bottom: 1rem; }
@media (min-width: 48rem) {
  .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ruled { gap: 0 2rem; }
  .ruled > .col + .col { border-left: 1px solid var(--rule); padding-left: 2rem; }
  .bar { flex-wrap: nowrap; }
  .nav { order: 0; width: auto; margin-right: 0.5rem; }
  .lockup { margin-right: 0; }
  .bar .nav { margin-left: auto; }
  .bar .btn { margin-left: 0.5rem; }
  .foot-grid { grid-template-columns: auto 1fr auto; align-items: center; }
}

@media (min-width: 64rem) { .cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* plans (the Pricing page): the price set large under the plan's name, a short list, and a line about who steps up */
.plan-for { color: var(--muted); font-size: 0.95rem; }
@media (min-width: 64rem) { .cols-4 .plan-for { min-height: 4.8em; } }
.cols + p { margin-top: 1.5rem; }
.price { margin: 0 0 1rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.15rem 0.6rem; max-width: none !important; }
.price-num { font: 400 clamp(2.6rem, 6vw, 3.4rem)/1 var(--serif); letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; }
.price-unit { font: 600 0.72rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cols-cards ul { padding-left: 1.1rem; font-size: 0.95rem; }
.cols-cards .step-up { border-top: 1px solid var(--line); padding-top: 0.75rem; margin-top: 1rem; font-size: 0.92rem; color: var(--muted); }
.cols-cards .step-up strong { color: var(--ink); }

/* a wide table scrolls inside its own box; its first column stays put */
.table-scroll { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--line); background: var(--panel); }
.table-scroll:focus-visible { outline-offset: -3px; }
.table-scroll table { margin: 0; min-width: 34rem; }
.table-scroll th, .table-scroll td { padding: 0.55rem 0.75rem; }
.table-scroll tr:first-child th, .table-scroll thead th { border-top: 0; }
.table-scroll th:first-child, .table-scroll td:first-child { position: sticky; left: 0; background: var(--panel); width: 9.5rem; min-width: 9.5rem; font-size: 0.88rem; box-shadow: 1px 0 0 var(--line); }
@media (min-width: 48rem) { .table-scroll th:first-child, .table-scroll td:first-child { width: 36%; min-width: 14rem; font-size: inherit; } }
.table-scroll td { font-variant-numeric: tabular-nums; }
.table-scroll tbody tr:has(td:nth-child(2):empty) td { background: var(--panel-2); font: 600 0.72rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }

/* the steps on the Pricing page (a band with class "how"): a loose numbered list, each item one paragraph, numbered like a figure label */
.how ol { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1.1rem; margin-bottom: 0; }
.how ol li { counter-increment: step; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); margin: 0; max-width: 44rem; }
.how ol li::before { content: counter(step, decimal-leading-zero); font: 600 0.8rem/2.1 var(--mono); letter-spacing: 0.06em; color: var(--accent); }
.how ol li p { margin: 0; }

/* hero */
.hero { padding-block: clamp(2rem, 5vw, 3.5rem); }
.hero .cols { align-items: start; }
@media (min-width: 60rem) { .hero .cols-2 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 + p { font-size: 1.15rem; color: var(--muted); margin-bottom: 0; }

/* the big numbers: what was measured against what is wanted, set large (hairline between, brass for the wanted number) */
.stat { margin: 0 0 2rem; }
.stat-row { display: flex; align-items: baseline; gap: 0.5rem 1.25rem; flex-wrap: wrap; margin: 0; max-width: none !important; }
.stat-num { font: 700 clamp(5.5rem, 21vw, 9.5rem)/0.84 var(--sans); letter-spacing: -0.08em; font-variant-numeric: tabular-nums; }
.stat-num small { font: 600 clamp(1.25rem, 4vw, 1.75rem)/1 var(--sans); letter-spacing: -0.02em; margin-left: 0.35rem; }
.stat-want .stat-num { color: var(--accent); }
.stat-tag { font: 600 0.72rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* a finding, as the app words one: amber for a warning, always with the word */
.finding { background: var(--warn-soft); border: 1px solid var(--rule); border-left: 4px solid var(--warn); padding: 1rem 1.1rem; margin: 1.5rem 0 0; }
.finding p { margin: 0; }
.finding-label { font: 600 0.72rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.5rem !important; }
.pill { display: inline-block; padding: 0.1rem 0.55rem; font-weight: 700; letter-spacing: 0.06em; margin-right: 0.35rem; }
.pill-warn { background: var(--warn); color: var(--paper); }
.finding-text { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.finding-caption { margin-top: 0.6rem !important; font-size: 0.88rem; color: var(--muted); }

/* pictures: width and height are set on every img, so the box is reserved before it loads. Square frames, a hairline round each,
   and a mono caption underneath. */
.shot { margin: 0 0 1rem; }
.shot img { border: 1px solid var(--rule); background: var(--panel-2); width: 100%; }
.shot figcaption { margin-top: 0.5rem; font: 0.72rem/1.5 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); max-width: 44rem; }

.callout { background: var(--panel-2); border-left: 4px solid var(--accent); padding: 1rem 1.1rem; margin: 0 0 1rem; }
.callout > :last-child { margin-bottom: 0; }

.faq h3 { margin-top: 1.75rem; }
.faq h3:first-child { margin-top: 0; }
.final { text-align: center; }
.final .cta { justify-content: center; }
.final p { margin-inline: auto; max-width: 36rem; }
