:root {
  color-scheme: light;
  --ink: #161616;
  --muted: #666;
  --surface: #f6f3ee;
  --card: #fffdf8;
  --line: #e7e1d8;
  --accent: #1b1b1b;
  --soft-accent: #6c5ce7;
  --max-width: 1080px;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
  font-synthesis-weight: none;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.86), rgba(246, 243, 238, 0.96)),
    var(--surface);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 243, 238, 0.84);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand,
.site-nav a,
.eyebrow,
.button,
.text-link {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--muted);
}

.page-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 5rem;
}

.home-hero,
.archive-header,
.edition-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.home-hero h1,
.archive-header h1,
.edition-header h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
}

.lede {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft-accent);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--line);
}

.button-dark {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.button-light {
  background: rgba(255, 255, 255, 0.9);
}

.feature-grid,
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.feature-card,
.archive-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.feature-card h2,
.archive-card h2 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.45rem;
  line-height: 1.15;
}

.card-date {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.text-link {
  display: inline-flex;
  margin-top: 0.5rem;
  color: var(--soft-accent);
  font-weight: 600;
}

.edition-page {
  display: grid;
  gap: 1.25rem;
}

.edition-body {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .page-shell {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .home-hero,
  .archive-header,
  .edition-header,
  .edition-body {
    padding: 1.25rem;
  }
}
