:root {
  --ink: #241f1b;
  --muted: #736860;
  --paper: #fffaf1;
  --cream: #f4ead8;
  --red: #a9342b;
  --red-dark: #76231f;
  --red-soft: #e8b2a5;
  --green: #496257;
  --line: rgba(67, 50, 41, 0.2);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--red); }
button, input { font: inherit; }
h1, h2, h3, h4 { overflow-wrap: anywhere; hyphens: auto; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 1rem; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.96);
}

.masthead,
.main-nav,
.page-shell,
.site-footer__inner {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.masthead {
  min-height: 118px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.issue-note,
.masthead__tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}
.masthead__tagline { justify-self: end; text-align: right; max-width: 23rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 3px solid var(--red);
  border-radius: 50% 50% 44% 56%;
  color: var(--red);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  transform: rotate(-4deg);
}
.brand__name {
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  letter-spacing: 0;
}

.main-nav {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  font-size: 0.79rem;
  font-weight: 700;
}
.main-nav a { text-decoration: none; }
.main-nav { scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }

.search-toggle {
  border: 0;
  background: transparent;
  color: var(--red-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 0;
  font-weight: 700;
}
.search-icon { width: 1rem; height: 1rem; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; width: 0.45rem; border-top: 2px solid currentColor; position: absolute; right: -0.35rem; bottom: -0.18rem; transform: rotate(45deg); }

.search-panel { border-bottom: 1px solid var(--line); background: var(--cream); }
.search-panel[hidden] { display: none; }
.search-panel__inner { width: min(calc(100% - 2rem), 760px); margin: auto; padding: 1.25rem 0 1.5rem; }
.search-form { display: flex; gap: 0.6rem; }
.search-form label { position: absolute; left: -9999px; }
.search-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--red-soft);
  border-radius: 1.5rem 1.5rem 0.5rem 1.5rem;
  background: white;
  padding: 0.8rem 1rem;
  color: var(--ink);
}
.search-form button {
  border: 0;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  background: var(--red);
  color: white;
  cursor: pointer;
}
.search-results { margin-top: 1rem; }
.search-result { padding: 0.85rem 0; border-top: 1px solid rgba(67, 50, 41, 0.15); }
.search-result a { font-weight: 700; }
.search-result p, .search-empty { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.88rem; }

.page-shell { padding: 2.2rem 0 4rem; }

.section-kicker,
.category-label,
.article-meta,
.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--red-dark);
  font-size: 0.72rem;
  line-height: 1.45;
  font-weight: 700;
  text-transform: uppercase;
}

.lead-story {
  display: grid;
  grid-template-columns: minmax(0, 1.47fr) minmax(280px, 0.73fr);
  gap: clamp(1.7rem, 4vw, 4rem);
  align-items: center;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.lead-story__image-wrap { position: relative; }
.lead-story__image-wrap::before {
  content: "";
  position: absolute;
  width: 30%;
  aspect-ratio: 1;
  right: -2.2%;
  bottom: -7%;
  border: 2px solid var(--red);
  border-radius: 50%;
  z-index: -1;
}
.lead-story img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 48% 48% 1rem 1rem / 9% 9% 1rem 1rem;
}
.lead-story h1 {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-size: clamp(2rem, 3.7vw, 3.35rem);
  line-height: 1.03;
  letter-spacing: 0;
}
.lead-story__text { margin: 0 0 1.3rem; color: var(--muted); }
.read-link { color: var(--red-dark); font-weight: 700; }

.edition-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  margin: 0 0 1.7rem;
}
.edition-line::before, .edition-line::after { content: ""; border-top: 1px solid var(--line); }
.edition-line::before { width: 34px; }
.edition-line span { font-size: 0.78rem; font-weight: 700; color: var(--red-dark); }

.story-index { border-top: 1px solid var(--ink); }
.story-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(190px, 30%);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.story-row__no { align-self: start; color: var(--red); font-size: 0.78rem; font-weight: 700; }
.story-row h2 { margin: 0.15rem 0 0.55rem; font-size: clamp(1.25rem, 2.5vw, 2.1rem); line-height: 1.18; letter-spacing: 0; }
.story-row h2 a { text-decoration: none; }
.story-row p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.story-row img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 50% 0.6rem 0.6rem 50%; }
.story-row:nth-child(even) img { border-radius: 0.6rem 50% 50% 0.6rem; }

.category-band {
  margin: 3.2rem 0 0;
  padding: 2.3rem clamp(1rem, 4vw, 3rem);
  background: var(--red-dark);
  color: white;
  border-radius: 1.5rem;
}
.category-band h2 { margin: 0 0 1rem; font-size: clamp(1.35rem, 3vw, 2.4rem); letter-spacing: 0; }
.category-links { display: flex; flex-wrap: wrap; gap: 0.7rem 1.5rem; }
.category-links a { color: white; text-underline-offset: 0.35em; }

.category-header { max-width: 870px; padding: 1.5rem 0 2.8rem; }
.category-header h1, .article-header h1 { margin: 0.2rem 0 1rem; font-size: clamp(2rem, 5vw, 4.6rem); line-height: 1.06; letter-spacing: 0; }
.category-header p { max-width: 68ch; margin: 0; color: var(--muted); }

.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.category-card { display: grid; grid-template-columns: 42% 1fr; gap: 1.3rem; align-items: center; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.category-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50% 50% 0.5rem 50%; }
.category-card h2 { margin: 0.15rem 0 0.6rem; font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.2; letter-spacing: 0; }
.category-card h2 a { text-decoration: none; }
.category-card p { margin: 0; color: var(--muted); font-size: 0.86rem; }

.article-header { max-width: 970px; margin: 0 auto 2rem; text-align: center; }
.article-header h1 { max-width: 18ch; margin-inline: auto; font-size: clamp(2rem, 5.3vw, 4.4rem); }
.article-header .standfirst { max-width: 67ch; margin: 1rem auto; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); }
.article-header__image { margin-top: 2.4rem; }
.article-header__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 48% 48% 0.8rem 0.8rem / 12% 12% 0.8rem 0.8rem; }

.article-layout { display: grid; grid-template-columns: 160px minmax(0, 720px); justify-content: center; gap: clamp(2rem, 5vw, 5rem); }
.article-aside { font-size: 0.76rem; color: var(--muted); }
.article-aside__sticky { position: sticky; top: 1.5rem; padding-top: 0.8rem; border-top: 2px solid var(--red); }
.article-aside p { margin: 0 0 1rem; }
.article-body { min-width: 0; }
.article-body > p:first-child::first-letter { float: left; color: var(--red); font-size: 4.7rem; line-height: 0.78; padding: 0.16rem 0.5rem 0 0; font-weight: 700; }
.article-body h2 { margin: 2.7rem 0 0.8rem; font-size: clamp(1.45rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: 0; }
.article-body h3 { margin: 2rem 0 0.6rem; font-size: 1.18rem; line-height: 1.3; letter-spacing: 0; color: var(--red-dark); }
.article-body h4 { margin: 1.6rem 0 0.3rem; font-size: 1rem; letter-spacing: 0; }
.article-body p { margin: 0 0 1.25rem; }
.article-body ul, .article-body ol { margin: 0 0 1.4rem; padding-left: 1.35rem; }
.article-body li { margin-bottom: 0.45rem; }
.article-body blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 5px solid var(--red);
  border-radius: 0 2rem 2rem 0;
  background: var(--cream);
  font-size: 1.08rem;
}
.table-wrap { max-width: 100%; overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
th, td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--red-dark); }
.article-close { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--ink); }
.article-close a { font-weight: 700; color: var(--red-dark); }

.site-footer { background: var(--ink); color: #f9f1e5; }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; padding: 2.4rem 0; }
.site-footer p { margin: 0.4rem 0 0; color: #d7cfc3; font-size: 0.78rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; }

@media (max-width: 820px) {
  .masthead { min-height: 92px; grid-template-columns: 1fr auto; }
  .issue-note { display: none; }
  .masthead__tagline { font-size: 0.68rem; }
  .main-nav { justify-content: flex-start; overflow-x: auto; padding: 0.35rem 0; gap: 1.3rem; white-space: nowrap; }
  .lead-story { grid-template-columns: 1fr; }
  .lead-story h1 { max-width: 18ch; }
  .story-row { grid-template-columns: 38px minmax(0, 1fr) 150px; }
  .article-layout { grid-template-columns: minmax(0, 720px); }
  .article-aside { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .masthead, .main-nav, .page-shell, .site-footer__inner { width: min(calc(100% - 1.25rem), var(--max)); }
  .masthead__tagline { display: none; }
  .brand__mark { width: 42px; height: 42px; }
  .main-nav { gap: 1rem; font-size: 0.72rem; }
  .search-form button { width: 44px; height: 44px; }
  .page-shell { padding-top: 1.2rem; }
  .lead-story { gap: 1.4rem; }
  .lead-story__image-wrap::before { display: none; }
  .lead-story img { border-radius: 46% 46% 0.65rem 0.65rem / 8% 8% 0.65rem 0.65rem; }
  .story-row { grid-template-columns: 30px minmax(0, 1fr); align-items: start; }
  .story-row__media { grid-column: 2; grid-row: 2; }
  .story-row img { margin-top: 0.8rem; aspect-ratio: 16 / 9; border-radius: 0.5rem 50% 50% 0.5rem; }
  .story-row:nth-child(even) img { border-radius: 50% 0.5rem 0.5rem 50%; }
  .category-grid { grid-template-columns: 1fr; gap: 2rem; }
  .category-card { grid-template-columns: 34% 1fr; }
  .article-header { text-align: left; }
  .article-header h1 { margin-inline: 0; }
  .article-header .standfirst { margin-inline: 0; }
  .article-header__image img { aspect-ratio: 4 / 3; border-radius: 45% 45% 0.5rem 0.5rem / 7% 7% 0.5rem 0.5rem; }
  .site-footer__inner { grid-template-columns: 1fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
