:root {
  color-scheme: dark;
  --ink: #141617;
  --surface: #1c1e1e;
  --ivory: #f7f0df;
  --muted: #c9c1b0;
  --gold: #edc570;
  --line: #51483a;
  --light: #f4eedf;
  --dark: #24221d;
  font-family: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--ivory); line-height: 1.55; }
[hidden] { display: none !important; }
a { color: inherit; }
a, button, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #976518; outline-offset: 4px; }
.hero :focus-visible, .header :focus-visible, .footer :focus-visible, .confirmation :focus-visible { outline-color: var(--gold); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
p, figure { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.03; letter-spacing: -.045em; }
.wrap { width: min(1180px, calc(100% - 2 * clamp(20px, 5vw, 72px))); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: 1rem; transform: translateY(-160%); z-index: 1; background: var(--gold); color: var(--ink); padding: .5rem 1rem; }
.skip:focus { transform: none; }
.header { border-bottom: 1px solid #323230; }
.header-inner, .footer-inner { display: flex; align-items: center; gap: 1rem; justify-content: space-between; padding-block: 16px; }
.wordmark { text-decoration: none; font-size: 2rem; font-weight: 900; line-height: 1; letter-spacing: -.11em; padding-right: .1em; }
.wordmark span, h1 span { color: var(--gold); }
nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 30px); font-size: .875rem; }
nav a { text-decoration: none; padding-block: .35rem; }
nav a:hover, .footer a:hover { text-decoration: underline; }
.nav-apply { padding-inline: 1rem; border: 1px solid var(--line); color: var(--gold); }
.hero { overflow: hidden; background: radial-gradient(ellipse at 90% 40%, #2b2a23 0%, var(--ink) 62%); }
.hero-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(30px, 6vw, 86px); align-items: center; padding-block: clamp(50px, 8vw, 104px); }
.kicker { color: var(--gold); font: 700 .875rem/1.4 ui-monospace, Menlo, monospace; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
h1 { font-size: clamp(3.4rem, 8.1vw, 7.7rem); font-weight: 900; letter-spacing: -.075em; }
.hero h1 { font-size: clamp(2.65rem, 6.55vw, 6.4rem); }
.intro { font-size: clamp(1rem, 1.8vw, 1.23rem); color: var(--muted); max-width: 30rem; margin-top: 1.3rem; }
.intro strong { color: var(--ivory); }
.offer { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin: 1.5rem 0 1.35rem; }
.offer strong { font-size: 2.1rem; line-height: 1; letter-spacing: -.04em; }
.offer span { font-size: .875rem; line-height: 1.4; color: var(--muted); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; background: var(--gold); color: #211a0d; border: 1px solid #b88738; border-radius: 5px; padding: .72rem 1.05rem; font-weight: 750; line-height: 1.35; text-decoration: none; text-align: center; }
.button:hover { background: #f8d589; }
.caption { color: var(--muted); font-size: .875rem; margin-top: .7rem; }
.diagram { max-width: 560px; width: 100%; justify-self: end; border: 1px solid var(--line); background: #191b1a; box-shadow: 14px 14px 0 #332d21; }
.diagram figcaption, .diagram > p { color: var(--muted); font: .875rem/1.4 ui-monospace, Menlo, monospace; padding: 13px 17px; }
.diagram figcaption { border-bottom: 1px solid var(--line); }
.diagram figcaption span { color: var(--gold); font-weight: 800; margin-right: .6rem; }
.diagram > p { border-top: 1px solid var(--line); }
.diagram-grid { padding: clamp(19px, 4vw, 52px); background-image: linear-gradient(#e9cc8015 1px, transparent 1px), linear-gradient(90deg, #e9cc8015 1px, transparent 1px); background-size: 22px 22px; }
.flow { padding-left: 25px; border-left: 1px solid #af894e; display: grid; gap: 16px; }
.flow div { position: relative; padding: .8rem .95rem; border: 1px solid #6a5636; background: #24241f; }
.flow div::before { content: ""; position: absolute; width: 25px; height: 1px; top: 50%; right: 100%; background: #af894e; }
.flow small { color: var(--gold); display: block; font: .875rem/1.5 ui-monospace, Menlo, monospace; }
.flow strong { font-size: clamp(1rem, 1.6vw, 1.2rem); }
.build, .application { padding-block: clamp(44px, 7vw, 88px); }
.build { background: var(--light); color: var(--dark); }
.build .kicker, .application .kicker { color: #734e18; }
h2 { font-size: clamp(2.2rem, 5vw, 4.05rem); }
.build-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 3vw, 34px); margin-top: 2rem; }
.build-grid article { border-top: 2px solid #94713b; padding-top: 1rem; }
h3 { font-size: 1.35rem; }
.build-grid p { margin-top: .65rem; color: #4c473d; }
.application { background: #e7ddc7; color: var(--dark); }
.apply-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(22px, 6vw, 90px); align-items: start; }
.apply-intro > p:not(.kicker) { margin-top: 1rem; }
.signature { font-weight: 700; }
.signature span { color: #734e18; font: 700 .875rem/1.4 ui-monospace, Menlo, monospace; margin-left: .55rem; }
.form-card { background: #fffaf0; color-scheme: light; border: 1px solid #a79a81; padding: clamp(16px, 4vw, 35px); border-radius: 7px; min-width: 0; }
.form-progress { font: 700 .875rem/1.4 ui-monospace, Menlo, monospace; color: #694514; margin-bottom: .9rem; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset + fieldset { margin-top: 1.75rem; }
form.is-enhanced fieldset { margin-top: 0; }
legend { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 800; line-height: 1.2; letter-spacing: -.025em; padding: 0; margin: 0 0 .9rem; }
.choice { display: flex; align-items: start; gap: .7rem; padding: .65rem .75rem; margin-bottom: .55rem; border: 1px solid #b8ab91; border-radius: 4px; cursor: pointer; }
.choice:hover, .choice:has(:checked) { background: #f5e8c9; border-color: #936219; }
.choice input { accent-color: #7c5114; width: 18px; height: 18px; flex: none; margin: .21rem 0 0; }
.choice small { display: block; color: #574e3d; font-size: .875rem; line-height: 1.45; }
.field { display: grid; gap: .3rem; margin-bottom: .7rem; font-weight: 700; }
.field input, .field textarea { width: 100%; min-width: 0; border: 1px solid #9a8a71; border-radius: 4px; background: #fffdf8; color: #24221d; padding: .55rem .6rem; font-weight: 400; }
.field textarea { resize: vertical; }
.names { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.hint, .privacy-note { margin: 0 0 .65rem; color: #574e3d; font-size: .875rem; }
.form-actions { margin-top: .95rem; display: flex; flex-wrap: wrap; gap: .65rem; }
.back { padding: .55rem .85rem; background: transparent; color: var(--dark); border: 1px solid #998971; border-radius: 4px; }
.back:hover { background: #f4ead4; }
.footer { color: var(--muted); font-size: .875rem; }
.footer .wordmark { color: var(--ivory); }
.confirmation { min-height: 72vh; padding-block: clamp(44px, 10vw, 120px); }
.confirmation h1 { font-size: clamp(2.4rem, 8vw, 5.5rem); line-height: 1; }
.confirmation p:not(.kicker) { font-size: 1.12rem; max-width: 38rem; color: var(--muted); margin-block: 1rem; }
.confirmation .button { margin-block: .35rem .7rem; }
.confirmation h2 { font-size: 1.55rem; margin-top: 1.7rem; }
@media (max-width: 720px) {
  .hero-grid, .apply-grid { grid-template-columns: 1fr; }
  .diagram { justify-self: start; max-width: 480px; box-shadow: 7px 7px 0 #332d21; }
  .build-grid { grid-template-columns: 1fr; }
}
@media (max-width: 350px) {
  .names { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
