:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #18181b;
  --muted: #57575f;
  --line: #dddcd6;
  --focus: #1d3fd8;
  --accent: #1d3fd8;
  --accent-soft: #eef2ff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111113;
    --surface: #1b1b1f;
    --text: #f2f1ee;
    --muted: #b1b0aa;
    --line: #34343a;
    --focus: #9fb1ff;
    --accent: #9fb1ff;
    --accent-soft: #1b1f33;
  }
}

:root[data-theme="dark"] {
  --bg: #111113;
  --surface: #1b1b1f;
  --text: #f2f1ee;
  --muted: #b1b0aa;
  --line: #34343a;
  --focus: #9fb1ff;
  --accent: #9fb1ff;
  --accent-soft: #1b1f33;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 "Figtree", system-ui, sans-serif;
}

a { color: inherit; }

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

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 16px 80px;
}

@media (min-width: 640px) {
  .wrap { padding-inline: 32px; }
}

header p,
.lede { color: var(--muted); max-width: 62ch; }

.eyebrow {
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .875rem;
  color: var(--muted);
  margin: 0 0 8px;
}

h1 {
  font: 600 clamp(2.25rem, 1.6rem + 3vw, 3.75rem)/1.05 "Fraunces", Georgia, serif;
  margin: 0 0 16px;
  letter-spacing: -.02em;
}

h2 {
  font: 600 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.15 "Fraunces", Georgia, serif;
  margin: 0 0 12px;
}

h3 {
  font: 600 1.125rem/1.3 "Figtree", system-ui, sans-serif;
  margin: 24px 0 8px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9375rem;
}

.guide {
  margin-top: 32px;
  padding: 24px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.guide ol {
  margin: 12px 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.guide li + li { margin-top: 8px; }

.grid {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

.dir {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.swatch {
  height: 132px;
  display: flex;
  align-items: flex-end;
  padding: 18px 20px;
}

.swatch span {
  font-size: 2.6rem;
  line-height: .9;
}

.a .swatch {
  background: linear-gradient(165deg, #f4c08b, #d9784a 50%, #8e3b1d);
  color: #fff7ec;
}

.a .swatch span { font-family: "Fraunces", serif; font-weight: 600; }

.b .swatch {
  background: #fff;
  color: #111;
  border-bottom: 1px solid #111;
  box-shadow: inset 0 -10px 0 #1d3fd8;
}

.b .swatch span {
  font-family: "Inter Tight", sans-serif;
  font-weight: 800;
  letter-spacing: -.05em;
}

.c .swatch {
  background: #0c0c0e;
  color: #c8f31d;
  background-image:
    radial-gradient(circle at 88% 30%, #ff6b3d 0 34px, transparent 35px),
    radial-gradient(circle at 74% 70%, #a78bfa 0 22px, transparent 23px);
}

.c .swatch span {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  letter-spacing: -.05em;
}

.dir-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.dir h2 { margin: 0; font-size: 1.375rem; }

.dir p { margin: 0; color: var(--muted); }

.dir-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.dir-cta:hover { opacity: .88; }

.pages {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.pages li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.pages a.page {
  font-weight: 600;
  text-decoration: none;
}

.pages a.page:hover { text-decoration: underline; }

.sizes { display: flex; gap: 6px; }

.sizes a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .875rem;
  text-decoration: none;
  color: var(--muted);
}

.sizes a:hover {
  color: var(--text);
  border-color: var(--text);
}

.rationale {
  margin-top: auto;
  font-weight: 600;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
}

.back:hover { color: var(--text); }

.prose {
  max-width: 68ch;
  color: var(--muted);
}

.prose p { margin: 0 0 16px; }

.prose strong { color: var(--text); }

.prose ul {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}

.prose li + li { margin-top: 6px; }

footer {
  margin-top: 48px;
  color: var(--muted);
  font-size: 1rem;
}

footer p { max-width: 70ch; }
