/* Neutral placeholder styles: grays only, system fonts, no external requests.
   A later brand delivery replaces the tokens below. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-band: #f4f4f3;
  --text: #1c1c1c;
  --muted: #555555;
  --line: #d6d6d4;
  --link: #1c1c1c;
  --button-bg: #1c1c1c;
  --button-text: #ffffff;
  --focus: #1c1c1c;
  --measure: 68ch;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --bg-band: #1f1f1f;
    --text: #ededed;
    --muted: #b4b4b4;
    --line: #3a3a3a;
    --link: #ededed;
    --button-bg: #ededed;
    --button-text: #161616;
    --focus: #ededed;
  }
}

*,
*::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(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

main:focus {
  outline: none;
}

section[id],
main {
  scroll-margin-top: 1rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.4rem);
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  max-width: 30ch;
}

h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 2rem;
  }
}

.prose > p,
.prose > table,
.prose > h3 {
  max-width: var(--measure);
}

/* Skip link */
.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--button-bg);
  color: var(--button-text);
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

/* Header */
.top {
  border-bottom: 1px solid var(--line);
}

.top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.wordmark {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.top nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.top nav a {
  display: inline-block;
  padding: 0.35rem 0;
  text-decoration: none;
}

.top nav a:hover {
  text-decoration: underline;
}

/* Sections */
main > section {
  padding: 3.5rem 0;
}

@media (min-width: 40rem) {
  main > section {
    padding: 5rem 0;
  }
}

.band {
  background: var(--bg-band);
}

.hero {
  padding-top: 3rem;
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  max-width: 60ch;
  margin-top: 1.25rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 2rem 0;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.3rem;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}

.button:hover {
  text-decoration: underline;
}

.text-link {
  font-weight: 600;
}

.note {
  max-width: 60ch;
  padding-left: 1rem;
  border-left: 3px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.closing {
  font-weight: 600;
}

.intro {
  color: var(--muted);
  max-width: var(--measure);
}

/* How it works */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 48rem) {
  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.25rem 1.25rem 0.5rem;
}

.card h3 {
  margin-top: 0;
}

/* Why */
.compare {
  margin: 2rem 0;
  border-top: 1px solid var(--line);
}

.compare .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 48rem) {
  .compare .row {
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
  }
}

.compare dt {
  font-weight: 700;
}

.compare dd {
  margin: 0;
  max-width: var(--measure);
}

.instead,
.with {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.aside {
  color: var(--muted);
  max-width: var(--measure);
}

/* Reform calendar */
.calendar {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
}

.calendar caption {
  text-align: left;
  color: var(--muted);
  font-size: 0.9rem;
  padding-bottom: 0.5rem;
}

.calendar th,
.calendar td {
  text-align: left;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.calendar thead th {
  font-size: 0.9rem;
  color: var(--muted);
}

.sources {
  font-size: 0.95rem;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  font-size: 0.95rem;
}

.wordmark-small {
  font-weight: 700;
}

.legal {
  color: var(--muted);
  max-width: var(--measure);
  margin-bottom: 0;
}
