/* Unscathed. One stylesheet for every page.
   Fonts are served from this site (public/fonts), never from a third party: the only outside
   request any page makes is Turnstile on /contact. Dark only on purpose. */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --ground: #0e1513;
  --surface: #141d1a;
  --field: #111917;
  --ink: #e8ece6;
  --soft: #c4cdc6;
  --mute: #a9b4ac;
  --rule: #26322d;
  --rule-mid: #3a4842;
  --rule-strong: #6b7a72;
  --accent: #c8ad72;
  --accent-bright: #dcc48e;
  --on-accent: #0e1513;
  --bad: #f0a08f;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --gut: clamp(20px, 5vw, 56px);
  --section: clamp(48px, 7vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--on-accent); padding: 12px 18px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; color: var(--on-accent); }

/* Header and footer */
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 22px; }
.wordmark { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding-block: 12px; }
.wordmark:hover { color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 30px; font-size: 15px; }
.site-nav a { color: var(--ink); text-decoration: none; padding-block: 12px; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a.btn { color: var(--accent); background: transparent; border-color: var(--accent); padding: 11px 20px; }
.site-nav a.btn:hover, .site-nav a.btn[aria-current="page"] { background: var(--accent); color: var(--on-accent); }

.site-footer { border-top: 1px solid var(--rule); margin-top: var(--section); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 40px; padding-block: 28px 44px; font-size: 15px; color: var(--mute); }
.site-footer .wordmark { font-size: 13px; padding: 0 0 6px; display: inline-block; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-nav a { padding-block: 12px; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none; padding: 16px 28px; border-radius: 2px; font: 600 17px/1.2 var(--sans); border: 1px solid var(--accent); cursor: pointer; }
.btn:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); font-weight: 500; }
.btn-ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-small { font-size: 15px; font-weight: 500; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 40px; }

/* Type */
.eyebrow { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }
.kicker { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; color: var(--mute); }
.kicker.first { color: var(--accent); }
.display { font-family: var(--serif); font-size: clamp(56px, 10vw, 148px); line-height: 0.95; letter-spacing: -0.02em; }
.h-page { font-family: var(--serif); font-size: clamp(42px, 6vw, 84px); line-height: 1; letter-spacing: -0.02em; max-width: 14em; }
.h-section { font-family: var(--serif); font-size: clamp(32px, 3.8vw, 48px); line-height: 1.05; letter-spacing: -0.02em; }
.h-big { font-family: var(--serif); font-size: clamp(44px, 5.4vw, 72px); line-height: 1; letter-spacing: -0.02em; margin: 4px 0 16px; }
.h-mid { font-family: var(--serif); font-size: 48px; line-height: 1; letter-spacing: -0.02em; margin: 4px 0 14px; }
.h-item { font-size: 18px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.lede { font-size: 20px; color: var(--soft); max-width: 34em; margin-top: 28px; }
.soft { color: var(--soft); }
.more { display: inline-block; margin-top: 14px; padding-block: 12px; font-weight: 500; }

/* Home */
.hero { text-align: center; padding-block: clamp(56px, 10vw, 144px) clamp(56px, 9vw, 128px); }
.hero .lede { margin-inline: auto; margin-top: 32px; }
.hero .actions { justify-content: center; }
.hero .qualifier { max-width: 40em; margin: 28px auto 0; font-size: 15px; color: var(--mute); }

.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: clamp(28px, 4vw, 56px); }
.split { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.split-label { flex: 1 1 300px; min-width: 0; }
.split-label > p:not(.kicker) { color: var(--soft); max-width: 26em; }
.split-body { flex: 999 1 480px; min-width: 0; }

.items { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 40px; align-content: start; }
.item { padding-block: 20px; border-top: 1px solid var(--rule-mid); }
.item p { color: var(--mute); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.card { border: 1px solid var(--rule); border-radius: 4px; padding: clamp(28px, 3.5vw, 44px); }
.card > p:not(.kicker) { color: var(--soft); }

.band { border-block: 1px solid var(--rule); margin-top: var(--section); }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: var(--wrap); margin: 0 auto; }
.door { display: block; padding: clamp(40px, 6vw, 88px) var(--gut); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); margin-bottom: -1px; }
.door + .door { border-left: 1px solid var(--rule); }
.door:hover { background: var(--surface); color: var(--ink); }
.door .eyebrow { margin-bottom: 16px; }
.door h3 { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 46px); line-height: 1.05; margin-bottom: 14px; }
.door p:not(.eyebrow) { color: var(--soft); max-width: 28em; margin-bottom: 20px; }
.door span { font-weight: 500; color: var(--accent); }

.section { padding-top: var(--section); }
.section > .h-section { margin-bottom: 40px; }
.ruled-top { border-top: 1px solid var(--accent); padding-top: 40px; }
.section .split-label > .h-section + p { margin-top: 16px; }
.section .split-body > .lede { margin-top: 0; }
.section .split-body > .lede + p { margin-top: 16px; color: var(--soft); }
.split-body > .plans + .checks { margin-top: 28px; }
.split-body .plan { display: grid; grid-template-columns: minmax(170px, 1fr) 2fr; gap: 2px 32px; align-items: start; }
.split-body .plan h3 { grid-column: 1; grid-row: 1; }
.split-body .plan .how { grid-column: 1; grid-row: 2; }
.split-body .plan p { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 640px) { .split-body .plan { grid-template-columns: 1fr; } .split-body .plan p { grid-column: 1; grid-row: 3; } }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 40px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--accent); padding-top: 18px; }
.steps li::before { content: counter(step, lower-roman) "."; display: block; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; color: var(--accent); margin-bottom: 6px; }
.steps p { color: var(--mute); }

.creed { background: var(--surface); border-block: 1px solid var(--rule); margin-top: var(--section); }
.creed p { max-width: 880px; margin: 0 auto; padding: clamp(48px, 6vw, 88px) var(--gut); text-align: center; font-family: var(--serif); font-size: clamp(24px, 2.8vw, 34px); line-height: 1.3; }

.cta { text-align: center; padding-top: clamp(64px, 9vw, 128px); }
.cta h2 { font-family: var(--serif); font-size: clamp(40px, 6vw, 84px); line-height: 1; letter-spacing: -0.02em; max-width: 12em; margin-inline: auto; }
.cta p { max-width: 32em; margin: 22px auto 34px; color: var(--soft); }

/* Inner pages */
.page-head { padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 80px); }
.block { padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--rule); }
.block:first-of-type { border-top-color: var(--accent); }
.block .split-label .h-section { margin-top: 4px; }
.block p + p { margin-top: 16px; }
.block .checks + p, .block .plans + p, .block .items + p { margin-top: 24px; }
.block .split-body > p { max-width: 38em; color: var(--soft); }
.block .split-body > p.plain { color: var(--ink); }

.checks { margin-top: 24px; max-width: 44em; }
.checks li { position: relative; padding: 13px 0 13px 30px; border-top: 1px solid var(--rule); }
.checks li:last-child { border-bottom: 1px solid var(--rule); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 11px; height: 11px; border: 1.5px solid var(--accent); border-radius: 50%; }
.checks.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 40px; max-width: none; }
.checks.two li:last-child { border-bottom: 0; }
.split-body > .checks:first-child { margin-top: 0; }

.sequence { max-width: 46em; counter-reset: seq; }
.sequence li { counter-increment: seq; position: relative; padding: 24px 0 24px 64px; border-top: 1px solid var(--rule); }
.sequence li:first-child { border-top: 0; padding-top: 4px; }
.sequence li::before { content: counter(seq, lower-roman) "."; position: absolute; left: 0; top: 22px; font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.2; color: var(--accent); }
.sequence li:first-child::before { top: 2px; }
.sequence p { color: var(--soft); }

.note { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 24px 28px; max-width: 44em; margin-top: 28px; }
.note h3, .note .note-title { font-size: 18px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.note p { color: var(--soft); }
.note p + p { margin-top: 10px; }
.note-warn { border-color: var(--accent); }
.note-warn h3, .note-warn .note-title { color: var(--accent); }

.plans { border-top: 1px solid var(--accent); }
.plan { display: flex; flex-wrap: wrap; gap: 6px 32px; padding-block: 22px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.plan h3 { flex: 1 1 220px; min-width: 0; font-family: var(--serif); font-size: 28px; line-height: 1.15; }
.plan p { flex: 3 1 400px; min-width: 0; color: var(--soft); }
.plan .how { flex: 0 1 170px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }

.prose { max-width: 42em; color: var(--soft); }
.prose h2 { font-family: var(--serif); font-size: 32px; line-height: 1.15; color: var(--ink); margin: 44px 0 12px; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--accent); }
.fill { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 2px var(--accent); font-weight: 600; }

/* Contact form */
.contact { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-start; padding-bottom: 8px; }
.contact-form { flex: 999 1 480px; min-width: 0; }
.contact-side { flex: 1 1 300px; min-width: 0; }
.contact-side .note { margin-top: 0; }
.contact-side .note + .note { margin-top: 20px; }
.field { margin-bottom: 26px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.field .hint { display: block; font-size: 15px; color: var(--mute); margin-bottom: 8px; font-weight: 400; }
.field .soft { font-weight: 400; color: var(--mute); }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--field); border: 1px solid var(--rule-strong); border-radius: 2px; padding: 13px 14px; min-height: 50px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--accent); }
/* Chrome paints an autofilled field pale yellow, which is unreadable on this ground. */
.field input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 1000px var(--field) inset; caret-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
fieldset.field { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.field label.choice { margin: 0; font-weight: 400; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: block; padding: 12px 18px; border: 1px solid var(--rule-strong); border-radius: 2px; background: var(--field); }
.choice input:hover + span { border-color: var(--accent); }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.field label.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; margin: 0; padding-block: 8px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.count { font-size: 14px; color: var(--mute); text-align: right; margin-top: 4px; }
.error { color: var(--bad); font-size: 15px; margin-top: 6px; font-weight: 500; }
.ts { min-height: 70px; margin-bottom: 20px; }
.status { margin-top: 20px; padding: 16px 20px; border-radius: 2px; border: 1px solid var(--rule-strong); background: var(--surface); }
.status.bad { border-color: var(--bad); color: var(--bad); }
.sent { border: 1px solid var(--accent); border-radius: 4px; padding: clamp(28px, 4vw, 44px); background: var(--surface); }
.sent h2 { font-family: var(--serif); font-size: 40px; line-height: 1.05; margin-bottom: 12px; }
[hidden] { display: none !important; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar { padding-block: 14px; }
  .site-nav { gap: 0 20px; }
  .site-nav a.btn { margin-top: 6px; }
  .door + .door { border-left: 0; }
  .sequence li { padding-left: 48px; }
  .lede { font-size: 18px; }
}

@media print {
  :root { --ground: #fff; --surface: #fff; --ink: #000; --soft: #222; --mute: #333; --accent: #000; --rule: #999; --rule-mid: #999; }
  .site-header, .site-footer, .cta, .actions { display: none; }
}
.fine { margin-top: 20px; font-size: 15px; color: var(--mute); max-width: 40em; }
.cta h2 + .btn { margin-top: 32px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 0; }
.block > .h-section { margin-bottom: 28px; }
.faq { margin-top: var(--section); }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 0 20px; color: var(--soft); max-width: 40em; }

/* Read by screen readers, not shown: a heading that gives a section its place in the outline. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
