:root {
  --navy: #0b1f3a;
  --navy-deep: #071422;
  --cream: #f4f1ea;
  --paper: #fbf9f4;
  --ink: #1a1814;
  --muted: #5c564e;
  --accent: #c4a35a;
  --accent-deep: #6f5424;
  --line: rgba(11, 31, 58, 0.14);
  --line-strong: rgba(11, 31, 58, 0.28);
  --measure: 38rem;
  --page: 72rem;
  --display: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --text: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --ui: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 18px 40px rgba(7, 20, 34, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(196, 163, 90, 0.08), transparent 50%),
    var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

p { text-wrap: pretty; }

h1, h2, .deck, .cover-title { text-wrap: balance; }

a { color: inherit; }

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

::selection {
  background: #e7d7a8;
  color: var(--navy);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 20;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--ui);
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.skip:focus { top: 0.6rem; }

.shell {
  width: min(var(--page), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.7rem 0 0.35rem;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  width: 100%;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent-deep);
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.hero {
  background:
    radial-gradient(820px 480px at 100% 0%, rgba(196, 163, 90, 0.2), transparent 56%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #f7f3ea;
}

.hero-grid {
  display: grid;
  gap: 2.75rem;
  padding: 3.25rem 0 3.5rem;
}

.kicker {
  margin: 0;
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.hero .kicker { color: #f6f0e4; }

.hero h1 {
  margin: 0.7rem 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.7rem, 12vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.deck {
  margin: 1.15rem 0 0;
  max-width: 12em;
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  line-height: 1.22;
  color: rgba(247, 243, 234, 0.94);
}

.rule {
  width: 3rem;
  height: 2px;
  margin: 1.5rem 0 0;
  border: 0;
  background: var(--accent);
}

.lede {
  margin: 1.35rem 0 0;
  max-width: 28rem;
  font-size: 1.15rem;
  line-height: 1.55;
  color: rgba(247, 243, 234, 0.86);
}

.cover-wrap {
  position: relative;
  width: min(180px, 52vw);
  padding: 0.55rem 0.7rem 0.7rem 0;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.32));
}

.cover-pages {
  position: absolute;
  z-index: 0;
  top: 0.95rem;
  right: 0;
  bottom: 0.15rem;
  left: 0.7rem;
  background: linear-gradient(90deg, #e5d8bf, #f4ecdc 18%, #e7dcc6);
  border-radius: 0 2px 2px 0;
}

.cover {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  aspect-ratio: 5 / 7.15;
  margin: 0;
  padding: 1.25rem 1rem 1rem 1.35rem;
  background: #f6f1e6;
  color: var(--navy);
  border-radius: 0 2px 2px 0;
}

.cover::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0.7rem;
  background: linear-gradient(90deg, #6d5428 0%, #e0c27a 42%, #8a6c38 78%, #5c4722 100%);
}

.cover-brand,
.cover-foot {
  margin: 0;
  font-family: var(--ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cover-title {
  margin: 0.85rem 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cover-foot {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--accent-deep);
}

.band { padding: clamp(3.25rem, 7vw, 5.75rem) 0 0; }

.what-grid {
  display: grid;
  gap: 0.85rem;
}

.what-grid h2,
.readers h2,
.page-intro h1,
.category h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.what-grid h2,
.readers h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.05;
}

.what-copy p {
  margin: 0;
  max-width: var(--measure);
  font-size: 1.25rem;
  line-height: 1.6;
}

.disclaimer,
.what-copy p.disclaimer {
  margin: 1.15rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  max-width: var(--measure);
  font-family: var(--ui);
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
}

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

.triad li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.readers {
  display: grid;
  gap: 0.85rem;
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  padding: 1.75rem 0 0.5rem;
  border-top: 1px solid var(--line);
}

.readers p {
  margin: 0.55rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.quiet-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--ui);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy);
  text-underline-offset: 0.22em;
}

.quiet-link:hover { color: var(--accent-deep); }

.page-intro { padding: clamp(2.75rem, 6vw, 4.75rem) 0 0.5rem; }

.page-intro h1 {
  margin-top: 0.65rem;
  font-size: clamp(3.1rem, 10vw, 5.4rem);
  line-height: 0.92;
}

.page-intro .lede {
  margin-top: 1.2rem;
  color: var(--ink);
  font-size: 1.22rem;
}

.catalog {
  display: grid;
  gap: 2.75rem;
  padding: 2.5rem 0 1rem;
}

.category h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1;
}

.category h2::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2px;
  margin-top: 0.8rem;
  background: var(--accent);
}

.link-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}

.link-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  text-decoration: none;
}

.link-list a:hover .name,
.link-list a:focus-visible .name {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.name {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.domain {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--ui);
  font-size: 0.86rem;
  color: var(--muted);
}

.goto {
  font-family: var(--ui);
  font-size: 1rem;
  color: var(--accent-deep);
}

.disclosure {
  margin: 0.9rem 0 0;
  max-width: 36rem;
  font-family: var(--ui);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.site-footer {
  margin-top: auto;
  padding: 2.75rem 0 2rem;
}

.footer-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 1.35rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  min-height: 44px;
  font-family: var(--ui);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.footer-nav a:hover { text-decoration: underline; text-underline-offset: 0.18em; }

.handle {
  font-weight: 400;
  color: var(--muted);
}

.legal,
.colophon {
  margin: 0;
  max-width: 40rem;
  font-family: var(--ui);
  color: var(--muted);
}

.legal {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.colophon {
  margin-top: 0.45rem;
  font-size: 0.84rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 720px) {
  .shell { width: min(var(--page), calc(100% - 4rem)); }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 4.25rem;
    padding: 0;
    gap: 1.5rem;
  }

  .site-nav {
    width: auto;
    justify-content: flex-end;
    gap: 0.35rem 1.35rem;
  }

  .what-grid {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 2rem 3rem;
    align-items: start;
  }

  .readers {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2rem;
  }

  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem 1.75rem;
  }

  .cover-wrap { width: 210px; }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: center;
    gap: 4rem;
    padding: 5rem 0 5.25rem;
  }

  .cover-wrap {
    width: 230px;
    justify-self: end;
  }

  .triad {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--line-strong);
  }

  .triad li {
    padding: 1.6rem 1.5rem 1.6rem 0;
    border-bottom: 0;
  }

  .triad li + li {
    padding-left: 1.5rem;
    border-left: 1px solid var(--line);
  }

  .catalog {
    grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
    gap: 3rem 4.5rem;
    align-items: start;
    padding-top: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  * {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .site-header { position: static; }
  .hero { background: #fff; color: #000; }
  .cover-wrap { display: none; }
  body { background: #fff; }
}
