:root {
  --ink: #181913;
  --night: #14150f;
  --paper: #eee9dc;
  --gold: #c9a24a;
  --gold-light: #e8cf8a;
  --muted: #777568;
  --line: rgba(24, 25, 19, 0.18);
  --side: clamp(1.25rem, 4vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--night);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: var(--paper);
  color: var(--night);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
.site-footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  padding-inline: var(--side);
}

.site-header {
  height: 7rem;
  justify-content: space-between;
}

.wordmark {
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  text-decoration: none;
}

nav { display: flex; gap: clamp(1.4rem, 3vw, 3rem); }

nav a {
  position: relative;
  padding-block: 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-decoration: none;
}

nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

nav a:hover::after,
nav a:focus-visible::after,
nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-footer {
  min-height: 4.5rem;
  gap: 1rem;
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-footer a { text-underline-offset: 0.25rem; }

.home {
  overflow-x: hidden;
  background: #efe5d0;
  color: #173552;
}

.hero {
  position: relative;
  min-height: calc(100vh - 11.5rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  min-height: inherit;
  padding: clamp(4rem, 9vh, 8rem) calc(var(--side) + clamp(5.25rem, calc((100svh - 11.5rem) / 6), 9.5rem) + 2rem) clamp(4rem, 9vh, 8rem) var(--side);
}

.kicker,
.page-number {
  margin: 0 0 2.1rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.kicker { color: #8b6e36; }

.hero h1,
.statement h1,
.log-heading h1,
.not-found h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 4.5vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero h1 { font-size: clamp(2.7rem, 4.25vw, 4.8rem); }
.hero h1 em { color: #526b82; font-weight: 400; }
.statement h1 em { color: var(--gold-light); font-weight: 400; }

.hero-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(3rem, 7vh, 5rem);
  font-size: 0.69rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-link svg { width: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.2; }
.hero-link svg { transition: transform 180ms ease; }
.hero-link:hover svg { transform: translateX(0.35rem); }

.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(5.25rem, calc((100svh - 11.5rem) / 6), 9.5rem);
  margin: 0;
  overflow: hidden;
  background: #eadcc1;
}

.hero-art picture { display: block; width: 100%; height: 100%; }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: fill; filter: saturate(0.82) contrast(0.96); }

.interior { background: var(--paper); color: var(--ink); }

.page {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(0, 4fr);
  gap: 2rem;
  padding: clamp(4rem, 10vh, 8rem) var(--side);
}

.page-number { color: var(--muted); padding-top: 0.4rem; }

.statement { max-width: 78rem; }
.statement h1 { font-size: clamp(2.5rem, 4.2vw, 4.7rem); }
.statement h1 em { color: #8f6d22; }

.about-note {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(12rem, 1fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: end;
  margin-top: clamp(4rem, 10vh, 8rem);
}

.about-note p {
  max-width: 48rem;
  margin: 0;
  color: #45473f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.55;
}

.about-note a {
  width: fit-content;
  color: #6f541d;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration-thickness: 1px;
  text-transform: uppercase;
  text-underline-offset: 0.35rem;
}

.log { display: block; }
.log-heading { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 3fr); gap: 2rem; align-items: start; }
.log-heading h1 { font-size: clamp(2.7rem, 4.4vw, 4.9rem); }
.log-heading .page-number { grid-row: 1 / span 2; }
.log-intro { grid-column: 2; max-width: 28rem; margin: 1rem 0 0; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.2rem, 2vw, 1.65rem); font-style: italic; }

.entries { margin-top: clamp(5rem, 13vh, 10rem); }
.empty-entry,
.dispatch-entry { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 3fr) auto; gap: 2rem; align-items: center; min-height: 8rem; }
.dispatch-entry { color: inherit; text-decoration: none; }
.empty-index { color: var(--muted); font-size: 0.65rem; letter-spacing: 0.18em; }
.empty-entry p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.1rem, 1.7vw, 1.5rem); }
.empty-mark { color: #987327; font-size: 1.4rem; }
.entry-copy { display: grid; gap: 0.7rem; }
.entry-title { max-width: 44rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.2; }
.entry-meta { color: var(--muted); font-size: 0.62rem; letter-spacing: 0.13em; text-transform: uppercase; }
.dispatch-entry .empty-mark { transition: transform 180ms ease; }
.dispatch-entry:hover .empty-mark { transform: translate(0.2rem, -0.2rem); }

.dispatch-wrap { padding: clamp(4rem, 9vh, 7rem) var(--side) clamp(6rem, 12vh, 10rem); }
.dispatch-article { width: min(100%, 48rem); margin-inline: auto; }
.dispatch-header { margin-bottom: clamp(4rem, 9vh, 7rem); }
.dispatch-meta,
.dispatch-byline { color: var(--muted); font-size: 0.62rem; letter-spacing: 0.13em; text-transform: uppercase; }
.dispatch-meta { margin: 0 0 clamp(2rem, 5vh, 3.5rem); }
.dispatch-header h1 { max-width: 44rem; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 4vw, 4.1rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; }
.dispatch-dek { max-width: 42rem; margin: clamp(2rem, 5vh, 3.5rem) 0 2rem; color: #55574f; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.05rem, 1.6vw, 1.35rem); font-style: italic; line-height: 1.55; }
.dispatch-byline { margin: 0; }
.dispatch-body { color: #292b25; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.05rem, 1.25vw, 1.16rem); line-height: 1.78; }
.dispatch-body p { margin: 0 0 1.65em; }
.dispatch-body h2 { margin: 3.4em 0 1.2em; font-size: 1.25rem; font-weight: 400; letter-spacing: -0.015em; line-height: 1.25; }
.policy-list { margin: 0 0 2em; padding-left: 1.35em; }
.policy-list li { padding-left: 0.4em; }
.policy-list li + li { margin-top: 0.9em; }
.policy-list strong { font-weight: 600; }
.dispatch-image { margin: clamp(3rem, 7vh, 5rem) 0; }
.dispatch-header .dispatch-image { margin: clamp(2.5rem, 6vh, 4rem) 0 0; }
.dispatch-image a,
.dispatch-sources a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18rem; }
.dispatch-image img { display: block; width: 100%; height: auto; max-height: 28rem; object-fit: cover; filter: grayscale(0.2) saturate(0.72) contrast(0.94); }
.dispatch-image figcaption { margin-top: 0.75rem; color: var(--muted); font-family: Arial, Helvetica, sans-serif; font-size: 0.62rem; line-height: 1.5; }
.dispatch-sources { margin-top: clamp(4rem, 9vh, 7rem); color: var(--muted); }
.dispatch-sources h2 { margin: 0 0 1.2rem; color: var(--ink); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; }
.dispatch-sources ol { margin: 0; padding-left: 1.25rem; }
.dispatch-sources li { padding-left: 0.25rem; font-family: Georgia, "Times New Roman", serif; font-size: 0.78rem; line-height: 1.55; }
.dispatch-sources li + li { margin-top: 0.55rem; }
.dispatch-sources .source-note { margin: 1.5rem 0 0; font-size: 0.7rem; font-style: italic; }
.dispatch-nav { margin-top: clamp(4rem, 9vh, 7rem); }
.dispatch-nav a { font-size: 0.65rem; letter-spacing: 0.14em; text-underline-offset: 0.35rem; text-transform: uppercase; }

.not-found { min-height: 100vh; display: grid; align-content: space-between; padding: 3rem var(--side) 5rem; }
.not-found > div { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 4fr); gap: 2rem; align-items: end; }
.not-found h1 { font-size: clamp(3.5rem, 8vw, 8rem); }
.not-found .text-link { grid-column: 2; width: fit-content; margin-top: 2.5rem; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; text-underline-offset: 0.3rem; }

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

:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }

@media (max-width: 760px) {
  .site-header { height: 5.5rem; }
  .wordmark { font-size: 1rem; }
  nav { gap: 1.25rem; }
  nav a { font-size: 0.84rem; }
  .hero { min-height: calc(100svh - 9.5rem); }
  .hero-copy { min-height: inherit; padding: 4.5rem var(--side) 3.5rem; }
  .hero h1 { font-size: clamp(2.55rem, 11.5vw, 3.8rem); }
  .hero-link { margin-top: 3rem; }
  .hero-art { display: none; }
  .site-footer { min-height: 4rem; }
  .page { display: block; padding-top: 4rem; }
  .page-number { margin-bottom: 4rem; }
  .statement h1 { font-size: clamp(2.4rem, 10.5vw, 3.7rem); }
  .about-note { grid-template-columns: 1fr; gap: 2.5rem; }
  .log-heading { display: block; }
  .log-heading .page-number { margin-bottom: 4rem; }
  .log-intro { margin-top: 1.5rem; }
  .entries { margin-top: 5rem; }
  .empty-entry,
  .dispatch-entry { grid-template-columns: 2.2rem 1fr auto; gap: 1rem; }
  .dispatch-wrap { padding-top: 3rem; }
  .dispatch-header { margin-bottom: 4rem; }
  .dispatch-header h1 { font-size: clamp(2.25rem, 10.5vw, 3.5rem); }
  .dispatch-dek { margin-top: 2rem; }
  .not-found > div { display: block; }
  .not-found .page-number { margin-bottom: 2rem; }
  .not-found .text-link { display: inline-block; }
}

@media (max-width: 430px) {
  .home .site-footer span:last-child { display: none; }
}

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