:root {
  --bg: #f3f3f4;
  --ink: #161616;
  --muted: #5e5e5e;
  --line: #e3e3e6;
  --amber-top: #F8C056;
  --amber-bottom: #F89C2E;
  --amber: linear-gradient(180deg, #F8C056 0%, #F89C2E 100%);
  --charcoal: #1c1c1e;
  --paper: #ffffff;
  --max: 1180px;
  --read: 40rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 6;
}
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(860px, calc(100% - 48px)); }
.site-header { background: var(--bg); }
.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}
.brand {
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}
.primary-nav { margin-left: auto; }
.primary-nav ul, .footer-nav ul, .crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 22px; flex-wrap: wrap; }
.primary-nav a, .footer-nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); }
.primary-nav a[aria-current="page"], .footer-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.hero { padding: 36px 0 0; }
.hero h1 { max-width: 22ch; }
.eyebrow {
  margin: 0 0 18px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: #3a3a3a;
}
.eyebrow a { text-decoration: none; }
h1 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.02;
  font-size: clamp(2.7rem, 5.4vw, 4.6rem);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}
.filters a {
  text-decoration: none;
  border: 1px solid #dedee2;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.filters a.is-on { background: var(--amber); color: var(--ink); border-color: transparent; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 22px 0 28px; }
.intro {
  margin: -8px 0 26px;
  max-width: 40rem;
  color: var(--muted);
}
.band { margin-top: 8px; }
.band-title {
  margin: 0 0 18px;
  font-weight: 400;
  letter-spacing: -0.035em;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
}
.stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 28px;
}
.story {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}
.story-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d9d9dc;
  flex: none;
}
.story-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  color: #161616;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.story-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.story h2, .story h3 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  min-height: calc(1.15em * 4);
}
.story p { margin: 0; }
.story-body > p:not(.story-date) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: calc(1.6em * 3);
}
.story-date { margin-top: auto; font-size: 0.92rem; opacity: 0.82; }
.story-amber { background: var(--amber-bottom); color: var(--ink); }
.story-amber .story-body { background: var(--amber); }
.story-plum { background: #3c2156; color: #fff; }
.story-ink { background: var(--charcoal); color: #fff; }
.story-paper { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px #ececef; }
.story-paper .story-date { color: var(--muted); }
.resource-line, .note {
  color: var(--muted);
  max-width: var(--read);
}
.resource-line a, .article a { color: var(--ink); }
.crumbs { padding-top: 18px; font-size: 0.92rem; color: var(--muted); }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #b0b0b4; }
.story-page { padding-bottom: 48px; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 280px);
  gap: 36px 48px;
  justify-content: space-between;
  align-items: start;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}
.article-main h1 { max-width: none; font-size: clamp(2.2rem, 4vw, 3.5rem); }
.dek { margin: 16px 0 0; font-size: 1.25rem; line-height: 1.5; color: #3a3a3a; max-width: 40rem; }
.byline { color: var(--muted); margin: 14px 0 0; }
.lead-figure { margin: 8px 0 8px; }
.lead-figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; display: block; background: #ddd; }
.lead-figure figcaption { color: var(--muted); font-size: 0.82rem; margin-top: 8px; }
.article { font-size: 1.125rem; line-height: 1.75; max-width: none; }
.article p { margin: 0 0 1.15em; }
.article h2 { font-weight: 500; letter-spacing: -0.03em; font-size: 1.7rem; margin: 1.7em 0 0.45em; line-height: 1.2; }
.article h3 { font-weight: 500; font-size: 1.25rem; margin: 1.4em 0 0.4em; }
.article ul, .article ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.article li { margin: 0.45em 0; }
.article li strong { font-weight: 600; }
.article a { text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.article p:has(> em:only-child) {
  background: #fff;
  border-left: 3px solid #3c2156;
  border-radius: 0 14px 14px 0;
  padding: 14px 16px;
}
.article p:has(> em:only-child) em { font-style: normal; }
.article-side {
  position: sticky;
  top: 20px;
  padding-top: 8px;
}
.article-side h2 { margin: 0 0 10px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.article-side h2 + .side-links { margin-bottom: 22px; }
.side-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.side-links a { text-decoration: none; }
.side-links a:hover { text-decoration: underline; }
.side-next, .side-note, .filed { color: var(--muted); }
.side-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.side-note a, .filed a, .side-next a { color: var(--ink); }
.article-end { padding-top: 12px; }
.article-end .filed { margin: 8px 0; }
.search-label { display: block; margin-bottom: 8px; font-size: 0.92rem; }
.related-block { padding-top: 12px; }
.related-block h2 { font-weight: 500; letter-spacing: -0.03em; font-size: 1.8rem; }
.sheet { padding: 8px 0 40px; }
.sheet h1 { max-width: 18ch; }
.search-form { display: flex; gap: 8px; margin: 18px 0 28px; }
.search-form input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  width: min(100%, 360px);
}
.search-form button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--amber);
  color: var(--ink);
}
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: var(--ink); }
@media (max-width: 980px) {
  .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; width: min(760px, calc(100% - 48px)); }
  .article-side { position: static; padding-top: 8px; border-top: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .hero h1 { font-size: 1.7rem; max-width: none; }
  .wrap, .narrow, .article-layout { width: min(var(--max), calc(100% - 28px)); }
  .stories, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; width: 100%; }
  .primary-nav.open { display: block; }
  .header-row { flex-wrap: wrap; }
  .primary-nav ul { flex-direction: column; }
  .story h2, .story h3 { font-size: 1.4rem; }
  .search-form, .search-form input, .search-form button { width: 100%; }
}
