@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --ink: #081421;
  --ink-soft: #0e2033;
  --paper: #f3ead7;
  --paper-bright: #fffaf0;
  --gold: #d6aa58;
  --gold-pale: #f0d69a;
  --blue: #2f75a8;
  --muted: #aeb8c3;
  --line: rgba(214, 170, 88, 0.28);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 80% 20%, rgba(47, 117, 168, 0.14), transparent 30rem),
    var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.shell { width: var(--shell); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper-bright);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(8, 20, 33, 0.78);
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, background 180ms ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(8, 20, 33, 0.95);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper-bright);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: #d9e0e6;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a:focus-visible { color: var(--gold-pale); }
.menu-button { display: none; }

.hero { padding-top: 30px; }
.hero-art {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  background: var(--ink-soft);
}
.hero-art img { width: 100%; height: auto; }
.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: clamp(30px, 6vw, 90px);
  padding: clamp(42px, 7vw, 88px) 4vw 20px;
  align-items: start;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 0.98; }
h1 { margin-bottom: 0; font-size: clamp(3.2rem, 6vw, 6.4rem); font-weight: 600; }
h2 { margin-bottom: 28px; font-size: clamp(2.6rem, 5vw, 4.8rem); font-weight: 600; }
h3 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 600; }
.hero-summary { padding-top: 20px; }
.hero-summary > p { color: #d2dbe2; font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.button-quiet { color: var(--paper); background: rgba(255,255,255,0.02); }

.section { padding-block: clamp(78px, 11vw, 150px); }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.75fr);
  gap: clamp(45px, 10vw, 150px);
  border-top: 1px solid var(--line);
}
.section-heading h2 { max-width: 760px; }
.prose { color: #cad2d9; }
.lead { color: var(--paper-bright); font-family: var(--serif); font-size: 1.65rem; line-height: 1.35; }

.feature-wrap {
  padding-inline: 20px;
  color: var(--ink);
  background: var(--paper);
}
.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1.2fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.feature-mark {
  color: rgba(8, 20, 33, 0.12);
  font-family: var(--serif);
  font-size: 10rem;
  font-weight: 700;
  line-height: 0.65;
}
.feature-copy .eyebrow { color: #805c1e; }
.feature-copy p { max-width: 680px; }
blockquote {
  margin: 36px 0 0;
  padding-left: 22px;
  border-left: 2px solid #a37325;
  color: #6b4b16;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 600;
}
.clue-list { display: grid; border-top: 1px solid rgba(8,20,33,0.22); }
.clue-list span {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(8,20,33,0.22);
  font-size: 0.95rem;
  font-weight: 600;
}
.clue-list b { color: #8a641f; }

.posts-heading {
  display: grid;
  grid-template-columns: 1fr minmax(290px, 0.62fr);
  gap: 50px;
  align-items: end;
}
.posts-heading > p { color: #bdc8d1; }
.dispatch-card {
  margin-top: 34px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,0.035), rgba(47,117,168,0.07));
}
.dispatch-card p { max-width: 720px; color: #c5cfd7; }
.dispatch-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 50px;
  color: var(--gold);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.text-link {
  display: inline-flex;
  gap: 10px;
  margin-top: 18px;
  color: var(--gold-pale);
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover span { transform: translateX(4px); }
.text-link span { transition: transform 160ms ease; }
.text-link.is-unavailable { cursor: default; opacity: 0.56; }

.author-section { border-top: 1px solid var(--line); background: #0a1827; }
.author-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: clamp(45px, 8vw, 110px);
  align-items: center;
}
.author-portrait {
  width: min(100%, 380px);
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}
.author-grid .lead { max-width: 780px; }

.site-footer { padding-block: 52px; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
}
.site-footer strong { color: var(--paper-bright); font-family: var(--serif); font-size: 1.5rem; }
.site-footer p { margin-bottom: 0; color: var(--muted); }
.footer-links { display: grid; justify-items: end; gap: 7px; }
.footer-links a { color: #d3dce3; text-decoration: none; }
.copyright { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.82rem; }

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

@media (max-width: 820px) {
  :root { --shell: min(100% - 28px, 680px); }
  .header-inner { min-height: 66px; }
  .brand span { font-size: 1.05rem; }
  .brand img { width: 42px; height: 42px; }
  .menu-button {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    background: transparent;
    place-content: center;
    gap: 5px;
  }
  .menu-button span:not(.sr-only) { width: 20px; height: 2px; background: var(--paper); }
  .main-nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(8,20,33,0.98);
  }
  .main-nav.is-open { display: grid; gap: 0; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid rgba(214,170,88,0.12); }
  .hero { padding-top: 14px; }
  .hero-art { width: calc(100% + 28px); margin-left: -14px; border-inline: 0; }
  .hero-copy,
  .intro-grid,
  .posts-heading,
  .author-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-inline: 0; gap: 16px; }
  .hero-summary { padding-top: 0; }
  h1 { font-size: clamp(3rem, 14vw, 4.8rem); }
  h2 { font-size: clamp(2.55rem, 12vw, 4.2rem); }
  .section { padding-block: 84px; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-mark { font-size: 7rem; }
  .dispatch-meta { margin-bottom: 34px; }
  .author-portrait { width: 240px; margin-inline: auto; }
  .footer-links { justify-items: start; }
}

@media (max-width: 520px) {
  .brand span { max-width: 170px; line-height: 1.05; }
  .hero-art img {
    width: 154%;
    max-width: none;
    margin-left: -27%;
  }
  .hero-copy { padding-top: 44px; }
  .lead { font-size: 1.4rem; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .dispatch-meta { display: grid; gap: 6px; }
}

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