:root {
  --paper: #f6f1e8;
  --paper-light: #fffdf8;
  --ink: #11100f;
  --muted: #69635d;
  --line: #cfc6b9;
  --maroon: #7d1733;
  --maroon-deep: #4b0d21;
  --gold: #b69a63;
  --green: #315647;
  --blue: #5c8495;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-ui: "DM Sans", Arial, sans-serif;
  --content-width: 1280px;
  --page-gutter: clamp(18px, 4vw, 56px);
  --header-accent: var(--maroon);
  --header-surface: var(--paper-light);
  --header-text: var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper-light);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  min-width: 320px;
}

body.theme-nadi {
  --header-accent: var(--green);
  --header-surface: var(--paper-light);
  --header-text: var(--ink);
}

body.theme-engage {
  --header-accent: var(--gold);
  --header-surface: var(--maroon-deep);
  --header-text: #fff;
  background: #f0e9dc;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid #2f78c4;
  outline-offset: 3px;
}

.skip-link {
  background: var(--ink);
  color: #fff;
  left: 12px;
  padding: 10px 14px;
  position: fixed;
  top: 12px;
  transform: translateY(-160%);
  z-index: 1000;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  background: var(--header-surface);
  color: var(--header-text);
  position: relative;
  z-index: 20;
}

.language-button, .text-button, .footer-search {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 8px 2px;
}

.language-button {
  border-bottom: 2px solid transparent;
  font-size: 12px;
  letter-spacing: .08em;
}

.language-button[aria-pressed="true"] { border-bottom-color: var(--gold); }

.text-button {
  align-items: center;
  display: inline-flex;
  font-size: 12px;
  gap: 7px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.masthead {
  background: var(--header-surface);
  color: var(--header-text);
  padding: clamp(28px, 5vw, 58px) var(--page-gutter) clamp(22px, 3.5vw, 40px);
  text-align: center;
  transition: background .25s ease, color .25s ease;
}

.masthead-link { display: inline-flex; flex-direction: column; }

.masthead-name {
  font-family: var(--font-display);
  font-size: clamp(62px, 11.2vw, 156px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .78;
}

body.theme-nadi .masthead-name {
  font-size: clamp(76px, 12vw, 170px);
  letter-spacing: -.075em;
  text-transform: lowercase;
}

body.theme-engage .masthead { text-align: left; }
body.theme-engage .masthead-link { align-items: flex-start; }
body.theme-engage .masthead-name {
  font-family: var(--font-ui);
  font-size: clamp(58px, 9.2vw, 126px);
  letter-spacing: -.065em;
  line-height: .82;
  text-transform: uppercase;
}

.masthead-tagline {
  color: var(--header-accent);
  font-size: 11px;
  letter-spacing: .24em;
  margin-top: 20px;
  text-transform: uppercase;
}

body.theme-engage .masthead-tagline { color: #dbc38e; }

.navigation-shell { border-bottom: 1px solid currentColor; border-top: 1px solid currentColor; }

.primary-navigation {
  align-items: center;
  display: flex;
  gap: clamp(18px, 2.6vw, 38px);
  justify-content: center;
  min-height: 48px;
  padding: 8px var(--page-gutter);
}

.primary-navigation a {
  font-size: 12px;
  letter-spacing: .075em;
  padding: 7px 0;
  position: relative;
  text-transform: uppercase;
}

.primary-navigation a::after {
  background: var(--header-accent);
  bottom: 2px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
  width: 100%;
}

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

.menu-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: none;
  justify-content: space-between;
  min-height: 48px;
  padding: 9px var(--page-gutter);
  text-transform: uppercase;
  width: 100%;
}

.menu-icon { display: grid; gap: 5px; width: 24px; }
.menu-icon i { background: currentColor; display: block; height: 1px; transition: transform .18s ease; }
.menu-button[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(3px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-3px) rotate(-45deg); }

.publication-navigation {
  align-items: center;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  font-size: 11px;
  gap: clamp(15px, 2.5vw, 30px);
  justify-content: center;
  letter-spacing: .08em;
  min-height: 40px;
  padding: 8px var(--page-gutter);
  text-transform: uppercase;
}

.publication-label { color: var(--maroon); font-weight: 500; }
.publication-navigation a { border-bottom: 1px solid transparent; padding: 3px 0; }
.publication-navigation a:hover, .publication-navigation a[aria-current="page"] { border-bottom-color: currentColor; }

#main-content { min-height: 60vh; }
.page-section { margin-inline: auto; max-width: var(--content-width); padding-inline: var(--page-gutter); }

.lead-layout {
  display: grid;
  gap: clamp(22px, 3vw, 40px);
  grid-template-columns: minmax(190px, .75fr) minmax(430px, 2fr) minmax(210px, .86fr);
  padding-bottom: clamp(48px, 7vw, 92px);
  padding-top: clamp(32px, 5vw, 64px);
}

.section-title {
  align-items: center;
  display: flex;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 400;
  gap: 18px;
  line-height: 1;
  margin: 0 0 28px;
}

.section-title::after { background: currentColor; content: ""; flex: 1; height: 1px; }
.latest-column .section-title { align-items: flex-start; border-top: 3px solid currentColor; display: block; font-size: 28px; padding-top: 12px; }
.latest-column .section-title::after { display: none; }

.latest-item { border-bottom: 1px solid var(--line); padding: 0 0 18px; margin-bottom: 18px; }
.eyebrow { color: var(--maroon); font-size: 10px; letter-spacing: .12em; margin-bottom: 8px; text-transform: uppercase; }
body.theme-engage .eyebrow { color: var(--maroon); }
.latest-item h2, .latest-item h3, .story-card h3, .side-story h3, .issue-card h3 { font-family: var(--font-display); font-weight: 400; }
.latest-item h3 { font-size: 19px; line-height: 1.15; margin: 0; }
.story-meta { color: var(--muted); font-size: 11px; margin-top: 8px; }

.hero-story { background: var(--ink); color: #fff; }
.hero-story img { aspect-ratio: 16 / 10; height: clamp(330px, 40vw, 520px); object-fit: cover; }
.hero-copy { padding: clamp(22px, 3.5vw, 40px); }
.hero-copy .eyebrow { color: #d9bd85; }
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.3vw, 72px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: .96;
  margin: 0;
}
.hero-copy p { color: #ddd5ca; margin: 18px 0 0; max-width: 720px; }
.story-link::after { content: " →"; }

.side-story { margin-bottom: 30px; }
.side-story img { aspect-ratio: 16 / 10; object-fit: cover; transition: filter .25s ease; }
.side-story a:hover img, .story-card a:hover img { filter: brightness(.88); }
.side-story h3 { font-size: 22px; line-height: 1.08; margin: 10px 0 0; }

.stories-section { padding-bottom: clamp(52px, 8vw, 100px); padding-top: clamp(52px, 8vw, 100px); }
.story-controls { align-items: center; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; margin-bottom: 28px; }
.story-controls .section-title { flex: 1 1 320px; margin: 0; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  min-height: 40px;
  padding: 7px 14px;
}
.filter-button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.story-grid { display: grid; gap: clamp(22px, 3vw, 38px); grid-template-columns: repeat(3, 1fr); }
.story-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.story-card h3 { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.06; margin: 0; }
.story-card .eyebrow { margin-top: 15px; }
.story-card p { color: var(--muted); font-size: 14px; margin: 12px 0 0; }

.publication-hero { padding-bottom: clamp(50px, 7vw, 88px); padding-top: clamp(28px, 4vw, 52px); }
.publication-hero-image { height: clamp(420px, 55vw, 680px); object-fit: cover; }
.publication-hero-copy { background: var(--paper); margin: clamp(-120px, -10vw, -80px) 0 0 7%; max-width: 760px; padding: clamp(25px, 4vw, 48px); position: relative; }
.publication-hero-copy h1 { font-family: var(--font-display); font-size: clamp(42px, 6vw, 78px); font-weight: 400; letter-spacing: -.03em; line-height: .95; margin: 0; }
.publication-hero-copy p { color: var(--muted); margin-bottom: 0; }

.nadi-layout { align-items: start; display: grid; gap: 22px; grid-template-columns: 1fr 1.15fr 1fr; }
.nadi-layout .story-card { background: var(--paper); }
.nadi-layout .story-card:nth-child(2) img { aspect-ratio: 4 / 5; }
.nadi-layout .story-card-body { padding: 20px; }

.engage-feature { display: grid; grid-template-columns: 1.25fr .95fr; margin: 0 auto; max-width: var(--content-width); }
.engage-feature img { height: clamp(430px, 53vw, 680px); object-fit: cover; }
.engage-feature-copy { background: var(--maroon); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 5vw, 64px); }
.engage-feature-copy .eyebrow { color: #dbc38e; }
.engage-feature-copy h1 { font-family: var(--font-display); font-size: clamp(43px, 6vw, 76px); font-weight: 400; letter-spacing: -.03em; line-height: .94; margin: 0; }
.engage-feature-copy p { color: #f0dfe0; }
.engage-statement { align-items: center; display: flex; gap: 20px; justify-content: space-between; padding-bottom: 36px; padding-top: 36px; }
.engage-statement strong { font-family: var(--font-display); font-size: clamp(27px, 3.5vw, 45px); font-weight: 400; }
.engage-statement span { color: var(--maroon); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

.archive-page, .about-page { padding-bottom: clamp(70px, 9vw, 120px); padding-top: clamp(48px, 7vw, 90px); }
.page-intro { max-width: 780px; }
.page-intro h1 { font-family: var(--font-display); font-size: clamp(48px, 7vw, 90px); font-weight: 400; letter-spacing: -.04em; line-height: .9; margin: 0 0 24px; }
.page-intro p { color: var(--muted); font-size: 18px; }
.issue-grid { display: grid; gap: 28px; grid-template-columns: repeat(4, 1fr); margin-top: 48px; }
.issue-card img { aspect-ratio: 4 / 5; object-fit: cover; }
.issue-card h3 { font-size: 25px; line-height: 1; margin: 12px 0 5px; }

.article-page { margin-inline: auto; max-width: 980px; padding: clamp(42px, 7vw, 88px) var(--page-gutter) clamp(80px, 10vw, 140px); }
.article-back { border-bottom: 1px solid currentColor; display: inline-block; font-size: 12px; letter-spacing: .08em; margin-bottom: 42px; padding-bottom: 3px; text-transform: uppercase; }
.article-header { max-width: 860px; }
.article-header h1 { font-family: var(--font-display); font-size: clamp(48px, 7.8vw, 98px); font-weight: 400; letter-spacing: -.045em; line-height: .9; margin: 0; }
.article-deck { color: var(--muted); font-size: clamp(18px, 2.2vw, 24px); line-height: 1.4; }
.article-byline { font-size: 14px; font-weight: 500; margin: 22px 0 6px; }
.article-image { margin: clamp(34px, 5vw, 62px) 0; width: 100%; }
.article-body { font-family: Georgia, serif; font-size: clamp(18px, 2vw, 21px); line-height: 1.75; margin-inline: auto; max-width: 700px; }
.article-body p:first-child::first-letter { float: left; font-family: var(--font-display); font-size: 76px; line-height: .74; margin: 11px 9px 0 0; }
.article-body h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 42px); font-weight: 400; line-height: 1.05; margin: 52px 0 18px; }

.site-footer { background: var(--ink); color: #fff; padding: clamp(36px, 6vw, 70px) var(--page-gutter); }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1.5fr .7fr 1fr; margin-inline: auto; max-width: var(--content-width); }
.footer-wordmark { font-family: var(--font-display); font-size: clamp(38px, 4.5vw, 64px); line-height: .85; }
.footer-utm-logo { height: auto; margin: 0 0 20px auto; width: 180px; }
.site-footer p { color: #bdb5aa; font-size: 12px; max-width: 430px; }
.footer-links { align-items: flex-start; display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-search { font-size: 13px; padding: 2px 0; }
.footer-meta { text-align: right; }
.footer-meta p { margin-left: auto; }

.search-dialog { background: transparent; border: 0; height: 100%; margin: 0 0 0 auto; max-height: none; max-width: min(620px, 100%); padding: 0; width: 100%; }
.search-dialog::backdrop { background: rgba(0,0,0,.64); }
.search-panel { background: var(--paper-light); min-height: 100%; padding: clamp(24px, 5vw, 54px); }
.search-heading { align-items: center; display: flex; justify-content: space-between; }
.search-heading h2 { font-family: var(--font-display); font-size: clamp(38px, 6vw, 62px); font-weight: 400; margin: 0; }
.dialog-close { background: transparent; border: 0; cursor: pointer; font-size: 40px; line-height: 1; padding: 8px; }
.search-label { display: block; font-size: 12px; margin: 40px 0 9px; text-transform: uppercase; }
#search-input { background: transparent; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; font-family: var(--font-display); font-size: clamp(22px, 4vw, 34px); padding: 10px 2px; width: 100%; }
.search-results { display: grid; gap: 0; margin-top: 30px; }
.search-result { border-bottom: 1px solid var(--line); padding: 16px 0; }
.search-result a { display: block; }
.search-result strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 400; line-height: 1.1; }
.search-empty { color: var(--muted); }

@media (max-width: 980px) {
  .lead-layout { grid-template-columns: minmax(180px, .7fr) minmax(390px, 1.8fr); }
  .side-column { display: grid; gap: 20px; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .side-story { margin-bottom: 0; }
  .issue-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  html { scroll-behavior: auto; }
  .masthead { padding-block: 34px 27px; }
  .masthead-name { font-size: clamp(48px, 15vw, 72px); }
  body.theme-nadi .masthead-name { font-size: clamp(69px, 22vw, 104px); }
  body.theme-engage .masthead-name { font-size: clamp(46px, 14vw, 69px); }
  .masthead-tagline { letter-spacing: .16em; margin-top: 16px; }
  .menu-button { display: flex; }
  .primary-navigation { align-items: stretch; display: none; flex-direction: column; gap: 0; padding: 8px var(--page-gutter) 18px; }
  .primary-navigation.is-open { display: flex; }
  .primary-navigation a { border-bottom: 1px solid var(--line); font-size: 14px; padding: 13px 0; }
  .publication-navigation { gap: 14px; justify-content: flex-start; overflow-x: auto; white-space: nowrap; }
  .publication-label { display: none; }
  .lead-layout { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-story { grid-row: 1; }
  .hero-story img { height: 320px; }
  .latest-column { grid-row: 2; }
  .side-column { grid-column: auto; grid-template-columns: 1fr 1fr; }
  .side-story h3 { font-size: 18px; }
  .story-grid, .nadi-layout, .engage-feature, .issue-grid { grid-template-columns: 1fr; }
  .story-controls { align-items: flex-start; flex-direction: column; }
  .story-controls .section-title { flex-basis: auto; width: 100%; }
  .publication-hero { padding-top: 18px; }
  .publication-hero-image { height: 430px; }
  .publication-hero-copy { margin: -62px 14px 0; padding: 24px 21px; }
  .engage-feature img { height: 400px; }
  .engage-feature-copy { padding: 30px 22px; }
  .engage-statement { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
  .footer-meta p { margin-left: 0; }
  .footer-utm-logo { margin-left: 0; }
}

@media (max-width: 440px) {
  .side-column { grid-template-columns: 1fr; }
  .filter-group { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
}

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