:root {
  --bg: #f6f4ef;
  --ink: #1c1b18;
  --muted: #625e55;
  --rule: #d9d4c8;
  --accent: #a83c1c;
  --accent-soft: rgba(168, 60, 28, 0.28);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, "Bitstream Charter", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --measure: 36rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --ink: #ece8df;
    --muted: #a39e92;
    --rule: #34312b;
    --accent: #ec8a62;
    --accent-soft: rgba(236, 138, 98, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, p, ol { margin: 0; }

.page {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* Masthead */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark .dot { color: var(--accent); }

.place {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero */
.hero {
  padding: clamp(72px, 14vw, 168px) 0 clamp(64px, 10vw, 120px);
}

.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.375rem, 6.4vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  max-width: 14.5ch;
  text-wrap: balance;
}

.lede {
  margin-top: 2rem;
  max-width: 30rem;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--muted);
}

/* Blocks: label rail + body */
.block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 48px 0 56px;
  border-top: 1px solid var(--rule);
}

@media (min-width: 760px) {
  .block {
    grid-template-columns: minmax(10rem, 1fr) minmax(0, 2.4fr);
    gap: 2rem;
    padding: 64px 0 80px;
  }
}

.label {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.4rem;
}

.body { max-width: var(--measure); }

.intro {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 2.5rem;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 2rem;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  column-gap: 0.5rem;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--accent);
  padding-top: 0.3rem;
}

.steps h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3125rem;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.steps p { color: var(--muted); }

/* Contact */
.contact {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.contact a {
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  transition: text-decoration-color 160ms ease;
}

.contact a:hover { text-decoration-color: var(--accent); }

.optout {
  margin-top: 1.75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 30rem;
}

/* Footer */
.foot {
  border-top: 1px solid var(--rule);
  padding: 24px 0 32px;
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
