:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #667085;
  --paper: #f6f4ef;
  --card: #fffefa;
  --accent: #e85d3f;
  --line: #ded9cf;
  --shadow: 0 18px 50px rgba(32, 28, 23, .08);
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 5%, rgba(232, 93, 63, .12), transparent 28rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: -.03em;
  text-decoration: none;
}

.brand span { color: var(--accent); }

nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
nav a { color: var(--muted); font-size: .9rem; text-decoration: none; }
nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }

.hero { max-width: 850px; padding: 96px 0 64px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; }
h1 { margin: 0; max-width: 900px; font-size: clamp(2.65rem, 7vw, 5.7rem); letter-spacing: -.055em; }
.lead { max-width: 720px; margin: 28px 0 0; color: var(--muted); font-size: 1.17rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: var(--shadow);
}

.card-featured { background: var(--ink); color: white; }
.card-featured .meta, .card-featured p { color: #c7ced6; }
.card h2 { margin: 12px 0 16px; font-size: clamp(1.65rem, 3.5vw, 2.35rem); letter-spacing: -.025em; }
.card p { color: var(--muted); }
.meta { margin: 0; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.tag { margin-top: auto; padding-top: 24px; color: var(--accent); font-size: .82rem; font-weight: 750; }

.note {
  margin: 56px 0 88px;
  padding: 22px 26px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 254, 250, .62);
}
.note p { margin: 0; }

.prose { max-width: 780px; padding: 88px 0 100px; }
.prose h1 { margin-bottom: 28px; font-size: clamp(2.5rem, 7vw, 4.7rem); }
.prose h2 { margin: 52px 0 12px; font-size: 1.8rem; }
.prose p, .prose li { color: #414b57; }
.prose li + li { margin-top: 8px; }
.back { margin-top: 56px; }

.missing { display: grid; min-height: 65vh; place-content: center; text-align: center; }
.error-code { margin: 0; color: var(--accent); font-size: 1rem; font-weight: 850; letter-spacing: .25em; }
.missing h1 { margin: 12px 0; font-size: clamp(2.6rem, 8vw, 5rem); }
.missing p { color: var(--muted); }
.button {
  justify-self: center;
  margin-top: 18px;
  padding: 12px 20px;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  text-decoration: none;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}
footer p { margin: 0; }

@media (max-width: 720px) {
  html { font-size: 16px; }
  .site-header { align-items: flex-start; flex-direction: column; padding: 22px 0; }
  nav { gap: 8px 16px; }
  .hero { padding: 64px 0 42px; }
  .grid { grid-template-columns: 1fr; }
  .card { min-height: 280px; padding: 26px; }
  .prose { padding: 64px 0 72px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
