:root {
  --paper: #faf8f3;
  --ink: #1a1815;
  --muted: #6b6558;
  --accent: #6e2233;
  --rule: #cfc7b8;
  --measure: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14130f;
    --ink: #e8e3d8;
    --muted: #9a9284;
    --accent: #b8697c;
    --rule: #35312a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1.25rem 4rem;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.rule { border-top: 2px solid var(--ink); margin: 0; }
.rule.thin { border-top-width: 1px; border-color: var(--rule); }

.masthead {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 0 0;
  text-align: center;
}

.masthead h1 {
  margin: 1.1rem 0 0.35rem;
  font-size: clamp(1.6rem, 6vw, 2.9rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.15;
}

.subtitle {
  margin: 0 0 1.1rem;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.02em;
}

main { max-width: var(--measure); margin: 0 auto; }

.today { padding: 2.5rem 0 3rem; text-align: center; }

.today video {
  width: 100%;
  max-height: 74vh;
  background: #000;
  display: block;
  animation: fade 0.5s ease both;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .today video, .grid li { animation: none; }
}

.dateline {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.dateline .no { color: var(--accent); }

.loading, .empty { color: var(--muted); font-style: italic; }

.archive { padding-top: 1.5rem; }

.archive h2 {
  margin: 1.4rem 0 1.6rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.75rem 1.25rem;
}

.grid a { text-decoration: none; color: inherit; display: block; }

.grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--rule);
  border: 1px solid var(--rule);
  display: block;
}

.grid a:hover img, .grid a:focus-visible img { border-color: var(--accent); }

.caption {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.caption .no { color: var(--accent); }

footer {
  max-width: var(--measure);
  margin: 3rem auto 0;
  text-align: center;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--muted);
}

footer p { margin: 1rem 0 0; }
