:root {
  color-scheme: light;
  --paper: #f8f5ee;
  --surface: #fffdf8;
  --ink: #201f3e;
  --quiet: #54516c;
  --line: #cbc7d5;
  --wash: #e6e8f6;
  --accent: #963928;
  --highlight: #f5c5ac;
  --display: "Segoe UI", system-ui, sans-serif;
  --reading: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--display);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
:where(a, summary):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.037em; line-height: 1.1; }
.wrap, .article-shell {
  width: min(100% - 6rem, 80rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 5;
  transform: translateY(-200%);
  background: var(--surface);
  padding: .7rem 1rem;
}
.skip:focus { transform: none; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead {
  display: grid;
  justify-items: center;
  padding-top: .85rem;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 181px; height: 44px; object-fit: contain; }
.masthead nav { width: 100%; }
.desktop-nav, .mobile-nav ul, .footer-links, .crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.desktop-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: .7rem;
  border-top: 1px solid var(--line);
}
.desktop-nav li + li { border-left: 1px solid var(--line); }
.desktop-nav a, .mobile-nav a {
  display: block;
  padding: .68rem .4rem;
  text-align: center;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 650;
}
.desktop-nav a:hover, .desktop-nav [aria-current], .mobile-nav a:hover, .mobile-nav [aria-current] {
  color: var(--accent);
  background: var(--wash);
}
.mobile-nav { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
  background: var(--wash);
  margin-top: clamp(1rem, 2.5vw, 2rem);
}
.hero-copy {
  align-self: center;
  padding: clamp(1.65rem, 4.5vw, 4.5rem);
}
.hero h1 {
  font-size: clamp(3.25rem, 6.35vw, 6.45rem);
  line-height: .94;
  letter-spacing: -.065em;
  margin: .57rem 0 1.2rem;
  text-wrap: balance;
}
.hero p:not(.eyebrow) { max-width: 34ch; font-size: 1.08rem; color: var(--quiet); }
.hero-image { min-width: 0; min-height: 100%; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.eyebrow, .story-tag, .index-label, .read-time {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
  color: var(--accent);
}

.button {
  display: inline-grid;
  place-items: center;
  margin-top: 1.5rem;
  min-height: 2.75rem;
  padding: .65rem 1rem;
  background: var(--accent);
  color: var(--surface);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 650;
}
.button:hover { background: var(--ink); }

.feature-section { padding-block: 2.7rem; }
.feature-section + .feature-section { border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem 1rem;
  margin-bottom: 1.15rem;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 720; }
.section-head > a { flex: none; font-size: .9rem; font-weight: 650; color: var(--accent); }
.story-grid, .feature-pair, .split-section, .split-list { display: grid; }
.story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.story {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow-wrap: anywhere;
  text-decoration: none;
}
.story:focus-visible { position: relative; }
.story-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 8/5;
  background: var(--wash);
}
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.story:hover img { transform: scale(1.03); }
.story-copy { padding: .9rem 1rem 1.15rem; }
.story h2, .story h3 {
  margin-top: .35rem;
  font: 400 clamp(1.33rem, 2.2vw, 2rem)/1.12 var(--reading);
  letter-spacing: -.033em;
  text-wrap: pretty;
}
.story:hover :is(h2, h3), .story:focus-visible :is(h2, h3) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .12em;
}
.story p { margin-top: .65rem; color: var(--quiet); font-size: .94rem; }
.story-tag { display: block; font-size: .76rem; }

.feature-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
.feature-pair .story {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  background: var(--wash);
}
.feature-pair .story-image { align-self: center; width: 100%; }
.feature-pair .story-copy { align-self: center; }

.split-section { grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); gap: 1.35rem; }
.split-list { gap: .7rem; align-content: start; }
.split-list .story { display: grid; grid-template-columns: clamp(5rem, 13vw, 10rem) 1fr; align-items: center; }
.split-list h3 { font-size: clamp(1.12rem, 2.15vw, 1.58rem); }
.shelf-section {
  margin-block: 1.1rem 2.75rem;
  padding: clamp(1rem, 2.65vw, 2.35rem);
  background: var(--wash);
}
.shelf-section .story-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shelf-section .story h3 { font-size: clamp(1.19rem, 1.9vw, 1.65rem); }

.site-footer { background: var(--ink); color: var(--surface); margin-top: 2.4rem; padding-block: 2.5rem; }
.footer-inner, .footer-links, .crumbs ol { display: flex; flex-wrap: wrap; }
.footer-inner { align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer-inner .brand img { width: 155px; height: 38px; }
.footer-links { gap: .55rem 1.2rem; font-size: .9rem; }
.footer-links a, .crumbs a { text-decoration: none; }
.footer-links a:hover, .crumbs a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--highlight); }
.footer-note {
  flex-basis: 100%;
  border-top: 1px solid #77738e;
  padding-top: 1rem;
  color: #ddd9ef;
  font-size: .86rem;
}

.crumbs { margin-block: 1.2rem; font-size: .86rem; color: var(--quiet); overflow-wrap: anywhere; }
.crumbs ol { gap: .35rem .55rem; }
.crumbs li + li::before { content: "/"; margin-right: .55rem; color: var(--accent); }

.index-header, .prose-page header {
  margin-bottom: 1.6rem;
  border-top: 4px solid var(--accent);
  padding: 1.75rem 1.65rem;
  background: var(--wash);
}
.index-header h1, .prose-page h1 { font-size: clamp(2.5rem, 5.7vw, 4.9rem); }
.index-header p, .prose-page .intro { max-width: 62ch; margin-top: .6rem; color: var(--quiet); font-size: 1.05rem; }
.category-grid { padding-bottom: 2rem; }

.article-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
  background: var(--surface);
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--line);
}
.article-head { align-self: center; padding: clamp(1.45rem, 3.6vw, 3.35rem); }
.article-head h1 {
  margin: .5rem 0 .85rem;
  font-size: clamp(2.05rem, 4.15vw, 4.5rem);
  line-height: 1.02;
  text-wrap: balance;
}
.standfirst { max-width: 60ch; color: var(--quiet); font-size: clamp(1rem, 1.45vw, 1.15rem); text-wrap: pretty; }
.read-time { margin-top: .95rem; }
.article-cover {
  align-self: center;
  width: 100%;
  aspect-ratio: 8/5;
  height: auto;
  object-fit: cover;
  background: var(--wash);
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 43rem) minmax(11rem, 15.5rem);
  justify-content: center;
  gap: clamp(1.4rem, 5.5vw, 5rem);
  align-items: start;
  padding-top: 2.5rem;
}
.article-layout > .prose { grid-column: 1; grid-row: 1; }
.toc {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 1.25rem;
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  background: var(--wash);
  border-top: 3px solid var(--accent);
  padding: .9rem 1rem;
  font-size: .87rem;
}
.toc ul { list-style: none; margin: .55rem 0 0; padding: 0; }
.toc li + li { border-top: 1px solid var(--line); }
.toc a { display: block; padding: .48rem 0; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc a:focus-visible { outline-offset: 0; }

.prose { font: 1.17rem/1.72 var(--reading); overflow-wrap: anywhere; }
.prose h2 { margin: 2.1rem 0 .7rem; font: 700 clamp(1.55rem, 3.2vw, 2.35rem)/1.13 var(--display); letter-spacing: -.035em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.25rem 0 .5rem; font: 700 1.24rem/1.2 var(--display); }
.prose p + p, .prose ul + p, .prose ol + p { margin-top: 1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose li + li { margin-top: .45rem; }
.prose a { color: var(--accent); }
.related { margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.prose-page { width: min(100% - 3rem, 49rem); margin-inline: auto; padding-bottom: 1.2rem; }
.prose-page .updated { font-size: .91rem; color: var(--quiet); margin: 0 0 1rem; }
.cookie-types {
  display: grid;
  grid-template-columns: minmax(6rem, .9fr) minmax(0, 4fr);
  gap: .75rem 1rem;
  margin: 1.2rem 0;
  border-left: 3px solid var(--accent);
  background: var(--wash);
  padding: 1rem;
  font: .98rem/1.55 var(--display);
}
.cookie-types dt { font-weight: 700; }
.cookie-types dd { margin: 0; }

@media (max-width: 900px) {
  .wrap, .article-shell { width: calc(100% - 3rem); }
  .hero-copy { padding: 1.8rem; }
  .story-grid, .feature-pair, .split-section { gap: .9rem; }
  .feature-pair .story { display: flex; }
  .feature-pair .story-copy { align-self: auto; }
}

@media (max-width: 720px) {
  .wrap, .article-shell { width: calc(100% - 2rem); }
  .masthead { display: flex; justify-content: space-between; gap: 1rem; padding-block: .6rem; }
  .masthead nav { width: auto; }
  .brand img { width: 151px; height: 39px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; position: relative; z-index: 2; }
  .mobile-nav summary {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--line);
    background: var(--wash);
    padding: .45rem .7rem;
    font-size: .85rem;
    font-weight: 700;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary::after {
    content: "";
    width: .42rem;
    height: .42rem;
    border-right: 1px solid;
    border-bottom: 1px solid;
    transform: rotate(45deg);
    margin-top: -.24rem;
  }
  .mobile-nav[open] summary::after { transform: rotate(225deg); margin-top: .24rem; }
  .mobile-nav ul {
    position: absolute;
    top: calc(100% + .32rem);
    right: 0;
    min-width: 12rem;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 .5rem 1.5rem #201f3e25;
  }
  .mobile-nav a { text-align: left; padding: .75rem .85rem; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 1.35rem; }
  .hero h1 { font-size: clamp(2.85rem, 12vw, 4.75rem); max-width: 12ch; }
  .hero-image { aspect-ratio: 8/5; }
  .button { margin-top: 1.05rem; }
  .feature-section { padding-block: 1.9rem; }
  .section-head h2 { font-size: 1.95rem; }
  .section-head > a { font-size: .83rem; }
  .story-grid, .shelf-section .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-copy { padding: .65rem .7rem .85rem; }
  .story h2, .story h3 { font-size: 1.25rem; }
  .story p { font-size: .88rem; }
  .split-section { grid-template-columns: minmax(0, 1fr); }
  .split-list .story { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .shelf-section { padding: .85rem; margin-bottom: 1.75rem; }
  .article-lead { grid-template-columns: minmax(0, 1fr); }
  .article-head { padding: 1.25rem; }
  .article-head h1 { font-size: clamp(2.05rem, 8.5vw, 3.5rem); }
  .article-layout { display: block; padding-top: 1.35rem; }
  .toc { position: static; max-height: none; margin-bottom: 1.5rem; }
  .toc ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .75rem; }
  .toc li { border-top: 1px solid var(--line); }
  .prose { font-size: 1.11rem; }
  .index-header, .prose-page header { padding: 1.2rem 1rem; }
  .prose-page { width: calc(100% - 2rem); }
  .cookie-types { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .cookie-types dd + dt { margin-top: .7rem; }
}

@media (max-width: 370px) {
  .brand img { width: 137px; }
  .section-head { align-items: start; }
  .section-head h2 { font-size: 1.7rem; }
  .feature-pair, .toc ul { grid-template-columns: minmax(0, 1fr); }
  .story h2, .story h3 { font-size: 1.13rem; }
}

@media (prefers-reduced-motion: reduce) {
  .story-image img { transition: none; }
}
