:root {
  color-scheme: dark;
  --bg: #090909;
  --panel: #111;
  --text: #f5f2ea;
  --copy: #d7d0c5;
  --muted: #b8b0a4;
  --gold: #d9c58f;
  --red: #e65a75;
  --deep: #ad1233;
  --border: #716a61;
  --soft: rgba(113, 106, 97, .48);
  --focus: #f2cd6f;
  --focus-text: #090909;
  --scrim: rgba(173, 18, 51, .12);
}

/*
 * Daybreak theme for the 11 static pages.
 *
 * These pages ship no JavaScript, so there is no toggle here — the theme
 * follows the OS via prefers-color-scheme below. A [data-mode] hook is defined
 * as well so the value is available if a toggle is ever added, and so the
 * contrast gate can measure the day palette today.
 *
 * Token names are this file's own (--copy, --red, --deep), NOT global.css's
 * (--secondary, --crimson, --deep-crimson) and not the handoff's. Three schemes
 * exist; each file overrides the names it actually reads.
 */
[data-mode="day"] {
  color-scheme: light;
  --bg: #e7e1d2;
  --panel: #f3eee2;
  --text: #18140d;
  --copy: #3c372d;
  --muted: #635c50;
  --gold: #6f5416;
  --red: #b01030;
  --deep: #8b0000;
  --border: #7d7566;
  --soft: rgba(90, 80, 64, .48);
  --focus: #8b0000;
  --focus-text: #fbf8f0;
  --scrim: rgba(139, 0, 0, .08);
}

/*
 * These pages ship no JavaScript, so the theme follows the OS. Scoped with
 * :root:not([data-mode]) so that any explicit toggle choice always beats the
 * OS preference. Selector kept identical to global.css's fallback so the
 * contrast gate can verify both files' duplicated day values with one suite
 * definition — a drifted value fails the build instead of shipping.
 */
@media (prefers-color-scheme: light) {
  :root:not([data-mode]) {
    color-scheme: light;
    --bg: #e7e1d2;
    --panel: #f3eee2;
    --text: #18140d;
    --copy: #3c372d;
    --muted: #635c50;
    --gold: #6f5416;
    --red: #b01030;
    --deep: #8b0000;
    --border: #7d7566;
    --soft: rgba(90, 80, 64, .48);
    --focus: #8b0000;
    --focus-text: #fbf8f0;
    --scrim: rgba(139, 0, 0, .08);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(circle at 85% 0, var(--scrim), transparent 28rem), var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-underline-offset: .2em;
}

a:hover {
  color: var(--gold);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.wrap {
  width: min(calc(100% - 2rem), 1120px);
  margin: auto;
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--soft);
}

.brand {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
}

.brand span,
.kicker,
.number {
  color: var(--red);
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1rem;
  background: var(--deep);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}

.button.alt {
  background: transparent;
  border-color: var(--border);
}

header.hero {
  padding: clamp(5rem, 10vw, 8rem) 0;
  border-bottom: 1px solid var(--soft);
}

.kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Cinzel", Georgia, serif;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  max-width: 14ch;
  margin: .7rem 0 1.4rem;
  font-size: clamp(3rem, 7vw, 5.4rem);
}

h2 {
  max-width: 20ch;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h3 {
  font-size: 1.35rem;
}

.lede {
  max-width: 720px;
  color: var(--copy);
  font-size: 1.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.fine {
  color: var(--muted);
  font-size: .85rem;
}

.section {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  border-bottom: 1px solid var(--soft);
}

.intro {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 8vw, 7rem);
  align-items: end;
}

.intro p {
  color: var(--copy);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  padding: 1.4rem;
  border: 1px solid var(--soft);
  background: var(--panel);
}

.card p,
.card li {
  color: var(--copy);
}

.card ul {
  padding-left: 1.2rem;
}

.card.featured {
  border-color: var(--gold);
}

.price {
  margin: .5rem 0;
  color: var(--gold);
  font-size: 2.1rem;
  font-weight: 800;
}

.steps {
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  list-style: none;
  border: 1px solid var(--soft);
}

.steps li {
  padding: 1rem;
  border-right: 1px solid var(--soft);
}

.steps li:last-child {
  border: 0;
}

.steps strong {
  display: block;
  margin: .55rem 0;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
}

.notice {
  padding: 1.2rem;
  border-left: 3px solid var(--red);
  background: var(--panel);
  color: var(--copy);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

th,
td {
  padding: .8rem;
  text-align: left;
  border: 1px solid var(--soft);
  vertical-align: top;
}

th {
  color: var(--gold);
}

td {
  color: var(--copy);
}

.faq details {
  border-top: 1px solid var(--border);
}

.faq details:last-child {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}

.faq p {
  color: var(--copy);
}

footer {
  padding: 3rem 0;
  color: var(--muted);
  font-size: .9rem;
}

.checklist {
  columns: 2;
  column-gap: 2rem;
}

.checklist li {
  break-inside: avoid;
  margin-bottom: .65rem;
}

code {
  color: var(--gold);
}

@media (max-width: 860px) {
  .intro,
  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps li {
    border-bottom: 1px solid var(--soft);
  }

  .nav-links a:not(.button) {
    display: none;
  }

  .table-scroll table {
    min-width: 760px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 17px;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps li {
    border-right: 0;
  }

  .checklist {
    columns: 1;
  }
}
