img{max-width:100%}[hidden]{display:none!important}
/* Layout: a measuring instrument. Left-aligned editorial column on a ruled page,
   tick marks and unit labels as structure, one amber signal for everything that asks for action. */
:root {
  --ink: #0a0c11;        /* page ground: blue-black */
  --panel: #11141c;      /* raised surfaces, inputs */
  --rule: #252a38;       /* hairlines, ticks */
  --paper: #ece8df;      /* primary text: warm white */
  --dim: #979eae;        /* secondary text */
  --signal: #f0b340;     /* the one accent: calibration amber */
  --signal-ink: #1a1304; /* text on amber */
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --w: 70rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ink: #eef0f4; --panel: #ffffff; --rule: #cfd4de; --paper: #11141b;
    --dim: #586072; --signal: #9a6200; --signal-ink: #ffffff; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --ink: #eef0f4; --panel: #ffffff; --rule: #cfd4de; --paper: #11141b;
  --dim: #586072; --signal: #9a6200; --signal-ink: #ffffff; color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--signal); text-underline-offset: 0.2em; }
a:hover { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--w); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.amber { color: var(--signal); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding-block: 0.8rem; }
.brand { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 500; text-decoration: none; letter-spacing: 0.01em; margin-right: auto; }
.brand:hover { color: var(--paper); }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.92rem; }
.nav a { text-decoration: none; color: var(--dim); padding-block: 0.2rem; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--signal); }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  font: 500 0.95rem/1 var(--font-body); text-decoration: none;
  padding: 0.8rem 1.15rem; border-radius: 3px; border: 1px solid var(--signal);
  background: var(--signal); color: var(--signal-ink); transition: transform .15s ease, filter .15s ease;
}
.btn:hover { color: var(--signal-ink); filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--paper); border-color: var(--rule); }
.btn.ghost:hover { color: var(--paper); border-color: var(--signal); }
.btn.small { padding: 0.55rem 0.8rem; font-size: 0.85rem; }
@media (max-width: 720px) { .nav { order: 3; width: 100%; } }

/* ---------- views ---------- */
.view { padding-block: clamp(3rem, 8vw, 6rem); }
.js .view[hidden] { display: none; }
.view[data-view="home"] { padding-top: 0; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 0.75rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); max-width: 46rem; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
.lede { color: var(--dim); font-size: 1.1rem; max-width: 40rem; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.25rem, 5vw, 4rem) clamp(2rem, 5vw, 3.5rem); display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
.hero h1 { font-size: clamp(3.1rem, 9.5vw, 7rem); line-height: 0.94; letter-spacing: -0.025em; max-width: 12ch; }
.hero h1 em { font-style: italic; color: var(--signal); }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--paper); opacity: 0.86; max-width: 38rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 0.6rem; }
.status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 22%, transparent); }

/* the scale: a ruler with no unit on it */
.scale { margin: clamp(1rem, 3vw, 2rem) 0 0; }
.scale-track {
  position: relative; height: 6.5rem;
  border-bottom: 1px solid var(--rule);
  background:
    repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 10%) bottom / 100% 1.4rem no-repeat,
    repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 2%) bottom / 100% 0.6rem no-repeat;
}
.mark { position: absolute; bottom: 0; left: var(--x); height: 100%; border-left: 1px solid var(--dim); padding-left: 0.5rem; display: flex; flex-direction: column; gap: 0.1rem; }
.mark b { font: 500 0.82rem/1.2 var(--font-body); color: var(--paper); }
.mark i { font: 400 0.68rem/1.3 var(--font-mono); color: var(--dim); font-style: normal; letter-spacing: 0.04em; }
.mark:nth-child(2) { padding-top: 2.5rem; }
.mark.end { border-left: 0; border-right: 2px solid var(--signal); padding: 0 0.5rem 0 0; left: auto; right: calc(100% - var(--x)); text-align: right; align-items: flex-end; animation: sweep 1.9s cubic-bezier(.2,.8,.2,1) both; }
.mark.end b { color: var(--signal); }
@keyframes sweep { from { right: 88%; } }
.scale figcaption { margin-top: 0.7rem; }
@media (max-width: 560px) { .mark i { display: none; } .scale-track { height: 5rem; } }
@media (prefers-reduced-motion: reduce) { .mark.end { animation: none; } html { scroll-behavior: auto; } .btn { transition: none; } }

/* ---------- ruled rows ---------- */
.rows { display: grid; }
.row { display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); gap: 0.5rem 2rem; padding-block: 1.25rem; border-top: 1px solid var(--rule); align-items: baseline; }
.row:last-child { border-bottom: 1px solid var(--rule); }
.row h3 { font-size: 1.6rem; }
.row p { color: var(--dim); max-width: 38rem; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }

.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); margin: 0; }
.spec div { padding: 1.1rem 1.25rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; gap: 0.35rem; align-content: start; }
.spec dd { margin: 0; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; }
.spec dd small { display: block; font: 400 0.85rem/1.45 var(--font-body); color: var(--dim); margin-top: 0.4rem; }

/* ---------- journal ---------- */
.posts { display: grid; }
.post-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: 0.4rem 2rem; padding-block: 1.4rem; border-top: 1px solid var(--rule); align-items: baseline; text-decoration: none; }
.post-row:last-child { border-bottom: 1px solid var(--rule); }
.post-row h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); transition: color .15s ease; }
.post-row p { color: var(--dim); margin-top: 0.4rem; max-width: 40rem; }
.post-row:hover { color: inherit; } .post-row:hover h3 { color: var(--signal); }
.post-row .go { font-family: var(--font-mono); font-size: 0.8rem; color: var(--dim); }
@media (max-width: 720px) { .post-row { grid-template-columns: 1fr; } .post-row .go { display: none; } }

.article { max-width: 42rem; display: grid; gap: 1.15rem; }
.article h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-block: 0.5rem 0.75rem; }
.article h2 { font-size: 1.75rem; margin-top: 1.25rem; }
.article p, .article li { font-size: 1.1rem; line-height: 1.7; }
.article .standfirst { font-size: 1.25rem; color: var(--dim); }
.article ul, .article ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.back { font-family: var(--font-mono); font-size: 0.8rem; text-decoration: none; color: var(--dim); }
.note { border-left: 2px solid var(--signal); padding-left: 1rem; color: var(--dim); font-size: 0.98rem; }

/* ---------- manifesto ---------- */
.tenets { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: t; max-width: 52rem; }
.tenets li { counter-increment: t; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 0 1rem; padding-block: 1.6rem; border-top: 1px solid var(--rule); }
.tenets li::before { content: counter(t, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.8rem; color: var(--signal); padding-top: 0.6rem; }
.tenets h3 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.tenets p { grid-column: 2; color: var(--dim); margin-top: 0.6rem; max-width: 40rem; }

/* ---------- tools ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: start; }
@media (max-width: 860px) { .tool { grid-template-columns: 1fr; } }
.fields { display: grid; gap: 1rem; min-width: 0; }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; }
label, legend { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); padding: 0; }
input[type="text"], input[type="email"], input[type="search"], textarea, select {
  width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--paper);
  background: var(--panel); border: 1px solid var(--rule); border-radius: 3px; padding: 0.7rem 0.8rem;
}
textarea { resize: vertical; min-height: 6rem; }
input::placeholder, textarea::placeholder { color: var(--dim); opacity: 0.7; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.6rem; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.check { display: inline-flex; align-items: center; gap: 0.45rem; border: 1px solid var(--rule); border-radius: 999px; padding: 0.4rem 0.8rem; cursor: pointer; font: 400 0.88rem/1.2 var(--font-body); color: var(--paper); text-transform: none; letter-spacing: 0; }
.check input { accent-color: var(--signal); margin: 0; }
.check:has(input:checked) { border-color: var(--signal); }
.out { min-width: 0; display: grid; gap: 0.75rem; position: sticky; top: 5.5rem; }
@media (max-width: 860px) { .out { position: static; } }
.out pre { margin: 0; background: var(--panel); border: 1px solid var(--rule); border-radius: 3px; padding: 1.1rem 1.2rem; font: 400 0.88rem/1.6 var(--font-mono); color: var(--paper); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 30rem; overflow: auto; }
.out-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.msg { font-size: 0.9rem; color: var(--dim); min-height: 1.3em; }

.gloss-bar { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: end; margin-bottom: 1.25rem; }
.gloss-bar .field { flex: 1 1 16rem; max-width: 26rem; }
.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0 2.5rem; margin: 0; }
.gloss div { padding-block: 1rem; border-top: 1px solid var(--rule); break-inside: avoid; }
.gloss dt { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.15; }
.gloss dd { margin: 0.35rem 0 0; color: var(--dim); font-size: 0.96rem; }

/* ---------- resources ---------- */
.res-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.5rem; }
.res-group { display: grid; gap: 0.25rem; align-content: start; min-width: 0; }
.res-group h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.res { display: grid; gap: 0.15rem; padding-block: 0.85rem; border-top: 1px solid var(--rule); text-decoration: none; }
.res strong { font-weight: 500; }
.res span { color: var(--dim); font-size: 0.92rem; }
.res:hover span { color: var(--dim); }

/* ---------- newsletter / offer ---------- */
.band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: start; }
@media (max-width: 820px) { .band { grid-template-columns: 1fr; } }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.inline-form input { flex: 1 1 14rem; }
.reveal { margin-top: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: 3px; background: var(--panel); display: grid; gap: 0.75rem; font-size: 0.95rem; }
.addr { font-family: var(--font-mono); font-size: 0.95rem; user-select: all; overflow-wrap: anywhere; }
.addr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding-block: 2.5rem 3rem; color: var(--dim); font-size: 0.9rem; }
.site-foot .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem 3rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; align-content: start; }
.site-foot a { text-decoration: none; } .site-foot a:hover { color: var(--paper); }

/* ---------- additions for the multi-page site ---------- */
.page-title { font-size: clamp(2.6rem, 7vw, 5rem); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.card { display: grid; gap: 0.55rem; align-content: start; padding: 1.4rem 1.25rem 1.6rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-decoration: none; min-width: 0; }
.card h3 { font-size: 1.7rem; transition: color .15s ease; }
.card p { color: var(--dim); font-size: 0.96rem; }
.card:hover { color: inherit; } .card:hover h3 { color: var(--signal); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; max-width: 52rem; }
.timeline li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.25rem 1.5rem; padding-block: 1.4rem; border-top: 1px solid var(--rule); align-items: baseline; }
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline time { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--signal); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.55rem; }
.timeline p { color: var(--dim); margin-top: 0.4rem; max-width: 40rem; }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; } }

.faq { display: grid; max-width: 46rem; }
.faq details { border-top: 1px solid var(--rule); padding-block: 1.1rem; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.1rem; color: var(--signal); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--dim); margin-top: 0.7rem; max-width: 40rem; }
.article .addr { font-size: 1rem; }
.view { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.view[data-view="home"], .view[data-page="home"] { padding-top: 0; }
