:root {
  --cream: #fff8ec;
  --paper: #fffdf8;
  --red: #b5322c;
  --red-dark: #7e201e;
  --red-soft: #f4d8cc;
  --ink: #26312d;
  --muted: #6d6b62;
  --sage: #3f625c;
  --line: #dfd2c1;
  --yellow: #efbd59;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--cream);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  border-top: 7px solid var(--red);
  background: var(--paper);
}

.header-top,
.main-nav,
.hero-inner,
.moment-inner,
.latest-inner,
.category-band-inner,
.site-footer-inner,
.article-shell,
.category-shell,
.crumbs {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 108px;
  gap: 24px;
}

.issue-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  color: var(--red-dark);
  text-decoration: none;
  font-size: clamp(1.75rem, 4vw, 3.15rem);
  font-weight: 800;
  line-height: 1;
}

.brand-mark {
  display: inline-block;
  width: 0.56em;
  height: 0.56em;
  margin-right: 0.05em;
  background: var(--yellow);
  border: 3px solid var(--red-dark);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.search-toggle,
.menu-toggle,
.search-close,
.search-submit {
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
}

.search-toggle:hover,
.menu-toggle:hover,
.search-close:hover,
.search-submit:hover {
  color: #fff;
  background: var(--ink);
}

.menu-toggle {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 56px;
  border-top: 1px solid var(--line);
}

.main-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 3px;
  background: var(--red);
  border-radius: 3px;
  content: "";
  transform: scaleX(0);
  transition: transform 160ms ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: start center;
  padding: 13vh 20px 40px;
  background: rgba(38, 49, 45, 0.82);
}

.search-panel.is-open {
  display: grid;
}

.search-dialog {
  width: min(720px, 100%);
  max-height: 74vh;
  padding: 24px;
  overflow-y: auto;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 12px 12px 0 rgba(181, 50, 44, 0.28);
}

.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.search-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 20px;
}

.search-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: #fff;
}

.search-submit {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.search-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.search-results {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.search-results li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.search-results a {
  color: var(--red-dark);
  font-weight: 700;
}

.hero-band {
  padding: 44px 0 56px;
  background: var(--red-soft);
  border-block: 1px solid #e2bbaa;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, 0.7fr);
  gap: 34px;
  align-items: stretch;
}

.hero-story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 500px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 13px 13px 0 var(--red-dark);
}

.hero-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 46px);
}

.kicker,
.category-kicker {
  margin: 0 0 12px;
  color: var(--red-dark);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy h1,
.category-header h1,
.article-head h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.hero-copy h1 {
  font-size: clamp(1.75rem, 3.2vw, 3.25rem);
}

.hero-copy h1 a {
  text-decoration: none;
}

.hero-copy h1 a:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

.hero-copy p:not(.kicker) {
  margin: 18px 0;
  font-size: 1.04rem;
}

.story-link,
.moment-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  color: var(--red-dark);
  font-weight: 800;
}

.story-link::after,
.moment-link::after {
  content: "›";
  font-size: 1.35em;
  line-height: 1;
}

.hero-side {
  display: grid;
  align-content: space-between;
  padding: 34px;
  color: #fff;
  background: var(--sage);
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.hero-side .side-number {
  display: grid;
  place-items: center;
  width: 58px;
  aspect-ratio: 1;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 800;
}

.hero-side h2 {
  margin: 28px 0 14px;
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  line-height: 1.2;
}

.hero-side p {
  margin: 0;
}

.hero-side a {
  margin-top: 30px;
  font-weight: 800;
}

.moment-section {
  padding: 76px 0;
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading h2,
.latest-heading h2,
.category-intro h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.8rem);
  line-height: 1.12;
}

.section-heading p,
.latest-heading p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.moment-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.moment-item {
  min-width: 0;
  padding: 30px 28px 34px;
  border-right: 1px solid var(--line);
}

.moment-item:last-child {
  border-right: 0;
}

.moment-item .moment-number {
  display: grid;
  place-items: center;
  width: 40px;
  aspect-ratio: 1;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 800;
}

.moment-item h3 {
  margin: 20px 0 10px;
  font-size: 1.25rem;
  line-height: 1.28;
}

.moment-item p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.latest-section {
  padding: 72px 0 84px;
}

.latest-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--ink);
}

.article-stream {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 38px 28px;
  margin-top: 34px;
}

.teaser {
  min-width: 0;
}

.teaser:nth-child(1),
.teaser:nth-child(4) {
  grid-column: span 7;
}

.teaser:nth-child(2),
.teaser:nth-child(3) {
  grid-column: span 5;
}

.teaser:nth-child(5) {
  grid-column: 3 / span 8;
}

.teaser-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--red-soft);
}

.teaser-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.teaser-image:hover img {
  transform: scale(1.025);
}

.teaser-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.teaser-meta a,
.article-meta a {
  color: var(--red-dark);
}

.teaser h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  line-height: 1.2;
}

.teaser h3 a {
  text-decoration: none;
}

.teaser h3 a:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

.teaser > p {
  margin: 12px 0 0;
  color: var(--muted);
}

.category-band {
  padding: 64px 0;
  color: #fff;
  background: var(--red-dark);
}

.category-band-inner {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 56px;
  align-items: center;
}

.category-band h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.15;
}

.category-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255,255,255,0.45);
}

.category-links a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  text-decoration: none;
  font-weight: 700;
}

.category-links a:nth-child(odd) {
  padding-right: 18px;
}

.category-links a:nth-child(even) {
  padding-left: 18px;
}

.category-links a:hover {
  color: var(--yellow);
}

.crumbs {
  padding-top: 28px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.crumbs a {
  color: var(--red-dark);
}

.article-shell {
  padding: 38px 0 90px;
}

.article-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 50px;
  align-items: center;
}

.article-head-copy {
  padding: 28px 0;
}

.article-head h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.article-deck {
  margin: 20px 0;
  color: #4f554f;
  font-size: 1.08rem;
}

.article-hero {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 12px 12px 0 var(--red-soft);
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 260px;
  justify-content: center;
  gap: 70px;
  margin-top: 68px;
}

.article-body {
  min-width: 0;
  font-size: 1.03rem;
  line-height: 1.76;
}

.article-body > p:first-child {
  font-size: 1.18rem;
  line-height: 1.7;
}

.article-body h2 {
  margin: 54px 0 18px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.article-body h3 {
  margin: 34px 0 12px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.article-body h4 {
  margin: 28px 0 8px;
  color: var(--red-dark);
  font-size: 1rem;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin: 0 0 22px;
}

.article-body li + li {
  margin-top: 8px;
}

.article-body blockquote {
  margin: 34px 0;
  padding: 20px 24px;
  border-left: 6px solid var(--red);
  border-radius: 0 8px 8px 0;
  background: var(--red-soft);
  font-weight: 700;
}

.article-body table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.article-body th,
.article-body td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--red-soft);
}

.article-aside {
  align-self: start;
  position: sticky;
  top: 22px;
  padding: 22px;
  border-top: 5px solid var(--red);
  border-bottom: 1px solid var(--line);
}

.article-aside h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.article-aside p,
.article-aside li {
  color: var(--muted);
  font-size: 0.82rem;
}

.article-aside ul {
  padding-left: 18px;
}

.related {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}

.related h2 {
  margin: 0 0 22px;
  font-size: 1.45rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.related-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
}

.related-item img {
  width: 120px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.related-item a {
  font-weight: 800;
}

.category-shell {
  padding: 36px 0 86px;
}

.category-header {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 42px;
  align-items: end;
  padding: 38px 0;
  border-bottom: 2px solid var(--ink);
}

.category-header p {
  margin: 0;
  color: var(--muted);
}

.category-articles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 30px;
  margin-top: 40px;
}

.category-articles .teaser:first-child:nth-last-child(1) {
  grid-column: 1 / -1;
  max-width: 760px;
}

.site-footer {
  padding: 46px 0;
  color: #fff;
  background: var(--ink);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}

.footer-brand {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
}

.footer-note {
  max-width: 600px;
  margin: 0;
  color: #d8d4ca;
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
  font-size: 0.8rem;
}

*:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .header-top {
    grid-template-columns: 1fr auto;
    min-height: 88px;
  }

  .issue-note {
    display: none;
  }

  .brand {
    justify-self: start;
  }

  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px 0 18px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 10px 4px;
  }

  .main-nav a::after {
    display: none;
  }

  .hero-inner,
  .article-head,
  .category-header {
    grid-template-columns: 1fr;
  }

  .hero-story {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-story img {
    aspect-ratio: 16 / 10;
  }

  .hero-side {
    min-height: 300px;
  }

  .article-layout {
    grid-template-columns: minmax(0, 720px);
    gap: 20px;
  }

  .article-aside {
    position: static;
    order: -1;
  }

  .article-head {
    gap: 18px;
  }

  .article-hero {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 700px) {
  .header-top,
  .main-nav,
  .hero-inner,
  .moment-inner,
  .latest-inner,
  .category-band-inner,
  .site-footer-inner,
  .article-shell,
  .category-shell,
  .crumbs {
    width: min(calc(100% - 28px), var(--max));
  }

  .header-actions {
    gap: 5px;
  }

  .search-toggle,
  .menu-toggle {
    padding-inline: 9px;
    font-size: 0.78rem;
  }

  .hero-band {
    padding: 26px 0 40px;
  }

  .hero-story {
    box-shadow: 7px 7px 0 var(--red-dark);
  }

  .hero-copy {
    padding: 24px 20px 28px;
  }

  .hero-side {
    padding: 26px;
  }

  .section-heading,
  .category-band-inner,
  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .moment-section,
  .latest-section {
    padding: 54px 0;
  }

  .moment-list {
    grid-template-columns: 1fr;
  }

  .moment-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .moment-item:last-child {
    border-bottom: 0;
  }

  .latest-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-stream,
  .category-articles {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .teaser:nth-child(n) {
    grid-column: auto;
  }

  .category-links {
    grid-template-columns: 1fr;
  }

  .category-links a:nth-child(n) {
    padding-inline: 0;
  }

  .article-shell {
    padding-top: 18px;
  }

  .article-layout {
    margin-top: 46px;
  }

  .article-body {
    font-size: 0.98rem;
  }

  .article-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-item {
    grid-template-columns: 92px 1fr;
  }

  .related-item img {
    width: 92px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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