:root {
  --paper: #f5efe4;
  --ink: #1d1b18;
  --muted: #5d564c;
  --rust: #9b3a1a;
  --rust-deep: #7a2c12;
  --rule: #dcd2c1;

  --serif: "Newsreader", "Spectral", Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, sans-serif;

  --measure: 40rem;
  --label: 9.5rem;
  --gap: 3rem;
  --page: calc(var(--label) + var(--gap) + var(--measure));
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

/* Links */
a {
  color: var(--rust);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--rust-deep); text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

/* Layout shell */
.site-header,
main,
.site-footer {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.site-header ul {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--rust); text-decoration: underline; }

section { scroll-margin-top: 1.5rem; }

/* Intro — single column */
.intro {
  max-width: var(--measure);
  padding: 3.5rem 0 4rem;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
.lede { margin: 0 0 1.75rem; font-size: 1.2rem; }
.intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0;
  font-weight: 600;
}

/* Section rows: label left, content right on desktop */
.row {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3rem;
}
.row-label {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}
.row-body { max-width: var(--measure); }
.row-body > :first-child { margin-top: 0; }
.row-body p { margin: 0 0 1rem; }
.row-body p:last-child { margin-bottom: 0; }

@media (min-width: 52rem) {
  .row {
    display: grid;
    grid-template-columns: var(--label) minmax(0, var(--measure));
    column-gap: var(--gap);
    padding: 3rem 0 3.5rem;
  }
  .row-label { margin: 0; padding-top: 0.15rem; }
}

/* Offers */
.offer + .offer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.offer h3,
.note h3 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 0.6rem;
}

/* Notes */
.note h3 a { color: var(--ink); text-decoration: none; }
.note h3 a:hover { color: var(--rust); text-decoration: underline; text-decoration-thickness: 1px; }
.note + .note {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

/* About */
.ask {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.35;
  margin-top: 2rem !important;
}
.contact { font-weight: 600; }

/* Footer */
.site-footer {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}
.site-footer p {
  border-top: 1px solid var(--rule);
  margin: 0;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (min-width: 40rem) {
  .site-header, main, .site-footer { padding-left: 2.5rem; padding-right: 2.5rem; }
  .site-header { padding-top: 2.75rem; }
  .intro { padding: 5rem 0 5.5rem; }
}

@media (max-width: 24rem) {
  .site-header { flex-direction: column; gap: 0.5rem; }
}
