@font-face { font-family: "Gloock"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/gloock-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/figtree-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/figtree-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/courier-prime-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/courier-prime-latin-700-normal.woff2) format("woff2"); }

:root {
  /* Idea: a drawing board. Warm paper, thin ink lines, one vermilion pencil marks the part you point at. */
  --paper: #f0e8d6;
  --ink: #1d1712;
  --muted: #5f5448;
  --rule: #cfc3aa;
  --accent: #d93a1c;
  --on-accent: #fff7ec;
  --panel: #e8dec7;
  --sheet: #f8f2e4;
  --grid: #e9dfc9;
  --grid-major: #dccfb3;
  --wash: rgba(217, 58, 28, .12);
  --font-display: "Gloock", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --font-type: "Courier Prime", "Courier New", ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17120e;
    --ink: #f1e8d6;
    --muted: #b3a690;
    --rule: #3a3025;
    --accent: #ff5a38;
    --on-accent: #1d0f08;
    --panel: #211a14;
    --sheet: #1d1712;
    --grid: #261e17;
    --grid-major: #31271d;
    --wash: rgba(255, 90, 56, .16);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.55;
}
.wrap { max-width: 80rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
p { margin: 0; max-width: 60ch; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.05; }
section { padding: clamp(3rem, 8vw, 6rem) 0; }

/* top bar */
.bar { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; flex-wrap: wrap; padding: 1.25rem 0; border-bottom: 2px solid var(--ink); }
.bar strong { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.bar span { color: var(--muted); font-size: .9375rem; }

/* hero */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: end; }
.hero h1 { font-size: clamp(2.9rem, 9vw, 6.5rem); line-height: .96; letter-spacing: -0.025em; max-width: 12ch; }
.hero p.sub { font-size: clamp(1.125rem, 2.2vw, 1.375rem); color: var(--muted); max-width: 30ch; }
.cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; padding: .9rem 1.6rem; border-radius: 999px; box-shadow: 0 3px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.cta .addr { font-family: var(--font-type); font-size: 1rem; overflow-wrap: anywhere; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.65fr 1fr; gap: 3rem; } .hero-side { padding-bottom: .6rem; } }

/* blueprint */
.bp { padding-top: clamp(1rem, 3vw, 2rem); }
.bp-head { display: flex; flex-direction: column; gap: .6rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.bp-label { font-family: var(--font-type); font-size: 1rem; color: var(--muted); display: flex; align-items: center; gap: .75rem; }
.bp-label::before { content: ""; width: 2.25rem; border-top: 1.5px solid var(--accent); }
.bp-grid { display: grid; gap: 2.25rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 68rem) { .bp-grid { grid-template-columns: minmax(0, 1fr) 19rem; gap: 3rem; } }

.sheet {
  margin: 0; position: relative; background: var(--sheet);
  border: 1.5px solid var(--ink);
  box-shadow: 7px 7px 0 -1.5px var(--panel), 7px 7px 0 0 var(--ink);
}
.drawing { display: block; width: 100%; height: auto; --k: 1; --hatch: url(#hatch); --solid: var(--ink); stroke: var(--ink); fill: none; stroke-width: calc(var(--k) * 1.25px); stroke-linecap: round; stroke-linejoin: round; }
.drawing text { stroke: none; fill: var(--ink); font-family: var(--font-type); }
.drawing .heavy { stroke-width: calc(var(--k) * 1.8px); }
.drawing .fine { stroke-width: calc(var(--k) * .8px); }
.drawing .pf { fill: var(--sheet); }
.drawing .fi { fill: var(--ink); stroke: none; }
.g-minor { stroke: var(--grid); stroke-width: .6px; }
.g-major { stroke: var(--grid-major); stroke-width: .8px; }
.hl { stroke: var(--ink); stroke-width: 1.1px; }
.hl-on { stroke: var(--accent); stroke-width: 1.3px; }
.mk { fill: var(--muted); stroke: none; }

.frame { stroke: var(--ink); }
.frame text { font-size: 12px; fill: var(--muted); text-anchor: middle; dominant-baseline: central; }
.dim { stroke: var(--muted); }
.dim text { fill: var(--muted); font-size: 15px; text-anchor: middle; }
.tb text.l { font-size: 11px; fill: var(--muted); }
.tb text.v { font-size: 15px; }
.tb text.name { font-family: var(--font-display); font-size: 27px; }
.detail-t { font-size: 15px; text-anchor: middle; }
.box-t { font-size: 15px; text-anchor: middle; dominant-baseline: central; }
.mark-t { font-size: 15px; font-weight: 700; }

/* parts and callouts */
.part, .base, .co { transition: opacity .25s ease; }
.part.on { stroke: var(--accent); --hatch: url(#hatch-on); --solid: var(--accent); }
.part.on .pf { fill: var(--wash); }
.part.on .fi { fill: var(--accent); }
.part.on text { fill: var(--accent); }
.part.on .heavy, .part.on { stroke-width: calc(var(--k) * 1.8px); }
.drawing.active .part:not(.on), .drawing.active .base, .drawing.active .co:not(.on) { opacity: .35; }

.co { cursor: pointer; outline: none; }
.co .ld { stroke: var(--ink); stroke-width: calc(var(--k) * .9px); }
.co .dot { fill: var(--ink); stroke: none; r: 3.5px; }
.co .bl { fill: var(--sheet); stroke: var(--ink); stroke-width: calc(var(--k) * 1.4px); r: 17px; }
.co .ring { fill: none; stroke: var(--accent); stroke-width: 2px; stroke-dasharray: 3 4; r: 23px; opacity: 0; }
.co .bl-n { font-family: var(--font-display); font-size: 19px; text-anchor: middle; dominant-baseline: central; }
.co .bl-t { font-size: 17px; font-weight: 700; dominant-baseline: central; }
.co .bl-t.end { text-anchor: end; }
.co.on .ld { stroke: var(--accent); stroke-width: calc(var(--k) * 1.4px); }
.co.on .dot { fill: var(--accent); }
.co.on .bl { fill: var(--accent); stroke: var(--accent); }
.co.on .bl-n { fill: var(--on-accent); }
.co.on .bl-t { fill: var(--accent); }
.co:focus-visible .ring { opacity: 1; }

/* parts list */
.parts { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); display: grid; grid-template-columns: 1fr; }
.parts li { display: grid; grid-template-columns: 2.4rem 1fr; gap: .9rem; align-items: start; padding: .8rem .6rem .85rem 0; border-bottom: 1px dashed var(--rule); cursor: default; outline: none; transition: background-color .2s; }
.parts .pn { width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.1rem; line-height: 1; background: var(--paper); transition: background-color .2s, color .2s, border-color .2s; }
.parts h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0; line-height: 1.3; }
.parts p { color: var(--muted); font-size: .975rem; line-height: 1.45; margin-top: .1rem; }
.parts li.on { background: var(--wash); }
.parts li.on .pn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.parts li:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (min-width: 40rem) and (max-width: 67.99rem) {
  .parts { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}

/* narrow: numbers only */
@media (max-width: 39.99rem) {
  .drawing { --k: 1.9; }
  .drawing .bl-t, .drawing .tb, .drawing .frame, .drawing .dim text, .drawing .detail-t, .drawing .mark-t, .drawing .box-t { display: none; }
  .co .bl { r: 32px; }
  .co .ring { r: 40px; }
  .co .dot { r: 7px; }
  .co .bl-n { font-size: 34px; }
}

/* steps */
.steps { background: var(--panel); border-block: 2px solid var(--ink); }
.steps ol { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2rem; grid-template-columns: 1fr; }
.steps li { position: relative; padding-left: 4.25rem; }
.steps li::before { content: ""; position: absolute; left: 1.4rem; top: 3rem; bottom: -2rem; border-left: 2px dashed var(--ink); }
.steps li:last-child::before { display: none; }
.num { position: absolute; left: 0; top: 0; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.4rem; }
.steps h3 { font-size: 1.6rem; line-height: 1.15; }
.steps li p { margin-top: .4rem; color: var(--muted); }
@media (min-width: 52rem) {
  .steps ol { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .steps li { padding: 4.25rem 0 0; }
  .steps li::before { left: 3.2rem; right: -2.5rem; top: 1.4rem; bottom: auto; border-left: 0; border-top: 2px dashed var(--ink); }
}

/* audience */
.who-list { margin-top: 2.5rem; display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
.who-item { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.who-item h3 { font-size: 1.75rem; }
.who-item p { margin-top: .4rem; color: var(--muted); }
@media (min-width: 52rem) {
  .who-list { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .who-item { padding: 0 1.75rem 0 0; border-bottom: 0; }
  .who-item + .who-item { padding-left: 1.75rem; border-left: 1px solid var(--rule); }
}

/* contact */
.contact { background: var(--accent); color: var(--on-accent); }
.contact p { margin-top: 1rem; font-size: 1.25rem; }
.mail { display: inline-block; margin-top: 1.5rem; font-family: var(--font-display); font-size: clamp(1.45rem, 7.2vw, 4.25rem); line-height: 1.1; text-decoration-thickness: 3px; text-underline-offset: .15em; overflow-wrap: anywhere; }
.contact a:focus-visible { outline-color: currentColor; }
footer { padding: 1.5rem 0 2rem; color: var(--muted); font-size: .9375rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; }
footer nav { display: flex; gap: 1.5rem; }
footer a { text-underline-offset: .2em; }
footer a:hover { color: var(--ink); }

/* draw-in on load (added by script only when motion is allowed) */
.drawin { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: draw .9s cubic-bezier(.65, 0, .35, 1) both; }
.fadein { animation: fade .6s ease both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .btn, .part, .base, .co, .parts li, .parts .pn { transition: none; }
  .drawin, .fadein { animation: none; stroke-dasharray: none; }
}

/* legal pages */
.bar a { text-decoration: none; }
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 6rem); }
.legal h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.05; }
.legal .lead { margin-top: 1rem; color: var(--muted); }
.legal h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.legal p, .legal ul { margin-top: .75rem; max-width: 65ch; }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: .35rem; }
.legal dl { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: .75rem 2rem; margin: 2rem 0 0; max-width: 52rem; }
.legal dt { font-family: var(--font-type); color: var(--muted); }
.legal dd { margin: 0; }
@media (max-width: 39.99rem) { .legal dl { grid-template-columns: minmax(0, 1fr); gap: .15rem; } .legal dd { margin-bottom: .9rem; } }
