:root {
  --paper: #f2eadb;
  --paper-light: #fbf7ef;
  --ink: #2c2a24;
  --muted: #6e695c;
  --olive: #53613f;
  --olive-dark: #35412a;
  --terra: #ad5f43;
  --terra-dark: #7e3f2b;
  --line: #cfc3ad;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", Arial, sans-serif;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.72;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--terra); text-underline-offset: .18em; }
a:hover { color: var(--terra-dark); }
button, input { font: inherit; }
button { cursor: pointer; }
.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 100;
  padding: .55rem .8rem;
  color: #fff;
  background: var(--olive-dark);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.site-header {
  border-top: 6px solid var(--terra);
  border-bottom: 1px solid var(--line);
  background: var(--paper-light);
}
.masthead {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 1.3rem 0 .95rem;
}
.masthead-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 1rem;
}
.edition, .search-button {
  color: var(--muted);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.brand {
  color: var(--olive-dark);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}
.brand span { color: var(--terra); }
.search-button {
  justify-self: end;
  padding: .35rem 0;
  border: 0;
  border-bottom: 2px solid var(--terra);
  background: transparent;
}
.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 650;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--terra-dark); }
.page-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}
.issue-note {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: .73rem;
  text-transform: uppercase;
}
.issue-note::before, .issue-note::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.lead-story {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .78fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: 0 0 3.2rem;
}
.lead-visual { position: relative; }
.lead-visual::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 42%;
  height: 42%;
  border-right: 1px solid var(--terra);
  border-bottom: 1px solid var(--terra);
  pointer-events: none;
}
.lead-visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.kicker {
  margin: 0 0 .65rem;
  color: var(--terra-dark);
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3, h4 { letter-spacing: 0; text-wrap: balance; }
.lead-copy h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4.6vw, 4.25rem);
  font-weight: 500;
  line-height: 1.02;
}
.dek {
  margin: 1.15rem 0;
  color: #514d43;
  font-size: 1.13rem;
  line-height: 1.55;
}
.byline, .meta {
  color: var(--muted);
  font-family: var(--sans);
  font-size: .74rem;
}
.text-link { font-family: var(--sans); font-size: .8rem; font-weight: 700; }
.article-band {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}
.band-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.band-heading h2 { margin: 0; font-size: 1.35rem; font-weight: 500; }
.story-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 2.2rem);
}
.story-card { border-top: 3px solid var(--olive); padding-top: .65rem; }
.story-card:first-child { grid-row: span 2; }
.story-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 1rem;
}
.story-card h3 {
  margin: .25rem 0 .55rem;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 500;
  line-height: 1.12;
}
.story-card p { margin: 0 0 .7rem; color: #514d43; line-height: 1.55; }
.story-card a { text-decoration: none; }
.story-card a:hover h3 { color: var(--terra-dark); }
.principles {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  padding: 3.2rem 0;
  border-top: 1px solid var(--line);
}
.principles h2 { margin: 0; font-size: 1.45rem; font-weight: 500; }
.principles p { margin: 0; max-width: 760px; }
.site-footer {
  margin-top: 4rem;
  color: #ece6d7;
  background: var(--olive-dark);
}
.footer-inner {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 2.4rem 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
}
.footer-inner p { margin: .2rem 0; max-width: 640px; }
.footer-nav { display: flex; justify-content: flex-end; align-items: flex-start; gap: 1.2rem; font-family: var(--sans); font-size: .76rem; }

.article-header {
  max-width: 940px;
  margin: 3.2rem auto 2rem;
  text-align: center;
}
.article-header h1 {
  margin: .45rem 0 1rem;
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  font-weight: 500;
  line-height: 1.02;
}
.article-header .dek { max-width: 760px; margin: 1rem auto; }
.article-figure {
  width: min(calc(100% - 40px), 1280px);
  margin: 0 auto 2.7rem;
}
.article-figure img { width: 100%; max-height: 720px; aspect-ratio: 16 / 9; object-fit: cover; }
.article-figure figcaption { margin-top: .45rem; color: var(--muted); font-family: var(--sans); font-size: .7rem; }
.article-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 720px) 170px;
  gap: 2.3rem;
  justify-content: center;
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}
.article-aside {
  position: sticky;
  top: 1rem;
  align-self: start;
  padding-top: .6rem;
  border-top: 2px solid var(--terra);
  color: var(--muted);
  font-family: var(--sans);
  font-size: .72rem;
  line-height: 1.5;
}
.article-aside strong { display: block; color: var(--ink); margin-bottom: .35rem; }
.article-body { min-width: 0; }
.article-body > p:first-child::first-letter {
  float: left;
  margin: .13rem .48rem 0 0;
  color: var(--terra-dark);
  font-size: 4.2rem;
  line-height: .78;
}
.article-body h2 {
  margin: 2.7rem 0 .8rem;
  padding-top: .7rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 500;
  line-height: 1.16;
}
.article-body h3 { margin: 2rem 0 .55rem; font-size: 1.45rem; font-weight: 600; line-height: 1.25; }
.article-body h4 {
  margin: 1.5rem 0 .35rem;
  color: var(--olive-dark);
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.article-body p { margin: 0 0 1.2rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.5rem; padding-left: 1.35rem; }
.article-body li { margin: .55rem 0; padding-left: .35rem; }
.pullquote {
  margin: 2.1rem 0;
  padding: 1.3rem 1.5rem;
  border-left: 5px solid var(--terra);
  background: #e8ddc9;
  font-size: 1.25rem;
  line-height: 1.45;
}
.article-end {
  margin-top: 2.7rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: .78rem;
}
.category-header { max-width: 820px; padding: 3.5rem 0 2rem; }
.category-header h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 500; line-height: 1; }
.category-header p { max-width: 680px; font-size: 1.1rem; }
.category-list { border-top: 1px solid var(--line); }
.category-item {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 1.6rem;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.category-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.category-item h2 { margin: .2rem 0 .4rem; font-size: 1.7rem; font-weight: 500; line-height: 1.15; }
.category-item p { margin: 0; color: var(--muted); line-height: 1.5; }
.category-item a { text-decoration: none; }

dialog {
  width: min(calc(100% - 32px), 720px);
  max-height: 85vh;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper-light);
  box-shadow: 0 20px 70px rgba(44, 42, 36, .28);
}
dialog::backdrop { background: rgba(44, 42, 36, .62); }
.search-panel { padding: 1.4rem; }
.search-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.search-head h2 { margin: 0; font-size: 1.5rem; font-weight: 500; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; font-family: var(--sans); }
.search-input { width: 100%; margin: 1rem 0; padding: .75rem; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.search-results { margin: 0; padding: 0; list-style: none; }
.search-results li { padding: .85rem 0; border-top: 1px solid var(--line); }
.search-results a { display: block; font-size: 1.15rem; font-weight: 600; }
.search-results span { color: var(--muted); font-family: var(--sans); font-size: .72rem; }

@media (max-width: 900px) {
  .lead-story { grid-template-columns: 1fr; }
  .lead-copy { max-width: 700px; }
  .story-row { grid-template-columns: 1fr 1fr; }
  .story-card:first-child { grid-column: 1 / -1; grid-row: auto; }
  .article-layout { grid-template-columns: minmax(0, 720px); }
  .article-aside { position: static; }
  .article-aside:last-child { display: none; }
  .category-item { grid-template-columns: 200px 1fr; }
  .category-item > .text-link { grid-column: 2; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .masthead { width: min(calc(100% - 28px), var(--content)); }
  .masthead-row { grid-template-columns: 1fr auto; align-items: center; }
  .edition { display: none; }
  .brand { justify-self: start; text-align: left; font-size: 1.35rem; }
  .main-nav { justify-content: flex-start; gap: 1rem; overflow-x: auto; white-space: nowrap; padding-bottom: .25rem; }
  .page-shell, .article-layout { width: min(calc(100% - 28px), var(--content)); }
  .issue-note { margin: 1rem 0; }
  .lead-story { gap: 1.3rem; padding-bottom: 2.2rem; }
  .lead-copy h1 { font-size: 2.45rem; }
  .story-row { grid-template-columns: 1fr; }
  .story-card:first-child { grid-column: auto; }
  .principles { grid-template-columns: 1fr; gap: 1rem; }
  .footer-inner { width: min(calc(100% - 28px), var(--content)); grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; flex-wrap: wrap; }
  .article-header { margin: 2.2rem 14px 1.4rem; }
  .article-header h1 { font-size: 2.55rem; }
  .article-figure { width: 100%; margin-bottom: 2rem; }
  .article-figure figcaption { padding: 0 14px; }
  .article-body h2 { font-size: 1.85rem; }
  .category-item { grid-template-columns: 1fr; gap: .8rem; }
  .category-item > .text-link { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
