:root {
  --bg: #f4ead8;
  --bg-deep: #ebe0cb;
  --ink: #1b1511;
  --muted: #6f6558;
  --rule: rgba(27, 21, 17, 0.16);
  --rule-strong: rgba(27, 21, 17, 0.38);
  --rubric: #8e2a22;
  --max: 64rem;
  --measure: 36.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 50% -60px, rgba(142, 42, 34, 0.06), transparent 58%),
    radial-gradient(120% 80% at 50% 0%, #f7f0df 0%, #f4ead8 42%, #e5d6bb 100%);
  color: var(--ink);
  font-family: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
}

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

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

a {
  color: var(--ink);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--rubric);
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2.75rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0 1.2rem;
  border-bottom: 1px solid var(--rule-strong);
  box-shadow: 0 1px 0 var(--bg), 0 2px 0 var(--rule);
}

.wordmark {
  font-family: "Fraunces", "Source Serif 4", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 500;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.wordmark small {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.22rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
}

nav a[aria-current="page"],
nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.hero {
  position: relative;
  padding: 5rem 0 3.75rem;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.hero::before {
  content: "189";
  position: absolute;
  right: -0.15em;
  top: 0.05em;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(7rem, 22vw, 14rem);
  font-weight: 500;
  line-height: 0.8;
  color: rgba(27, 21, 17, 0.06);
  pointer-events: none;
  letter-spacing: -0.06em;
}

.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rubric);
  margin: 0 0 1.15rem;
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-variation-settings: "SOFT" 20, "WONK" 1;
  letter-spacing: -0.028em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 3.4rem);
  max-width: 16ch;
  margin: 0 0 1.85rem;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 0 0 2.1rem;
  color: var(--muted);
}

.facts li + li {
  margin-top: 0.15rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.72rem 1.2rem;
  border: 1px solid var(--ink);
  color: var(--bg);
  background: var(--ink);
  font-size: 0.95rem;
}

.btn:hover {
  background: var(--rubric);
  border-color: var(--rubric);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.section {
  padding: 3.4rem 0;
  border-bottom: 1px solid var(--rule);
}

.section h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  margin: 0 0 1.2rem;
}

.prose {
  max-width: var(--measure);
}

.prose p {
  margin: 0 0 1.05rem;
  color: var(--ink);
}

.prose p:last-child {
  margin-bottom: 0;
}

.week {
  display: grid;
  gap: 0.35rem;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 1.35rem 0 1.2rem;
  background: transparent;
}

.week h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.85rem;
}

.week p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.week .kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rubric);
}

.links {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.video {
  position: relative;
  width: min(48rem, 100%);
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid var(--rule-strong);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.midweek {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 40rem;
}

.midweek li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.midweek li:last-child {
  border-bottom: 1px solid var(--rule);
}

.midweek strong {
  color: var(--ink);
  font-weight: 600;
}

.page-hero {
  padding: 3.6rem 0 1.6rem;
}

.page-hero h1 {
  max-width: 16ch;
  margin-bottom: 0.85rem;
}

.lede {
  max-width: var(--measure);
  color: var(--muted);
  font-size: 1.22rem;
  line-height: 1.45;
}

.stack {
  display: grid;
  gap: 2.5rem;
}

.site-footer {
  padding: 2.6rem 0 3.4rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.site-footer strong {
  color: var(--ink);
  font-weight: 600;
}

.site-footer nav {
  margin-top: 1.1rem;
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 3rem;
  }

  .midweek li {
    grid-template-columns: 1fr;
    gap: 0.12rem;
  }
}
