/* ============================================================
   CACSR — Centre for Asian & Chinese Studies
   Editorial platform stylesheet
   ============================================================ */

:root {
  /* Colors derived from the logo */
  --ink: #0b1a2e;             /* deep ink (navy-black, authority) */
  --ink-soft: #1a2b44;
  --ink-muted: #4a5a73;
  --rule: #d6cdbd;            /* ivory rule */
  --rule-soft: #e8e0d0;
  --paper: #f3eee2;           /* ivory paper */
  --paper-warm: #ebe4d4;
  --paper-deep: #e3dbc6;
  --white: #faf7ef;

  --accent-green: #287858;    /* dragon green */
  --accent-green-deep: #1e5a42;
  --accent-red: #a81828;      /* dragon red */
  --accent-red-deep: #7e0f1c;
  --accent-gold: #a67c3b;     /* muted gold */

  /* Type */
  --serif: "Newsreader", "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Geist", "Söhne", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --arabic: "Noto Naskh Arabic", "Amiri", serif;

  /* Scale */
  --gutter: clamp(20px, 3.2vw, 48px);
  --maxw: 1440px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-red); }

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- Typography primitives ---------- */
.serif   { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.serif-i { font-family: var(--serif); font-style: italic; font-weight: 400; }
.sans    { font-family: var(--sans); }
.mono    { font-family: var(--mono); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-muted);
}
.eyebrow--accent { color: var(--accent-red); }
.eyebrow--green  { color: var(--accent-green); }

.hr-thin {
  border: 0;
  border-top: 1px solid var(--ink);
  opacity: 0.15;
  margin: 0;
}

.rule {
  height: 1px;
  background: currentColor;
  opacity: 0.15;
}

.num {
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum";
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* ---------- Top bar / utility ---------- */
.utility {
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.utility .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
}
.utility .left, .utility .right { display: flex; gap: 24px; align-items: center; }
.utility a { opacity: 0.8; }
.utility a:hover { opacity: 1; color: var(--paper); }
.utility .sep { opacity: 0.25; }
.utility .beirut { display: flex; align-items: center; gap: 8px; }
.utility .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-green); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Masthead ---------- */
.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.masthead .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 20px;
  gap: 24px;
}
.masthead-left, .masthead-right {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  color: var(--ink-muted);
}
.masthead-right { justify-content: flex-end; }
.masthead-left .date { font-family: var(--serif); font-style: italic; }
.masthead-center { text-align: center; }
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 6px;
  cursor: pointer;
}
.wordmark .mark {
  display: inline-flex; align-items: center; gap: 10px;
}
.wordmark .mark-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: 0.02em;
  font-weight: 500;
}
.wordmark .mark-sub {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.wordmark .arabic {
  font-family: var(--arabic);
  font-size: 14px;
  color: var(--ink-muted);
  letter-spacing: 0;
  direction: rtl;
}

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  transition: background 0.2s;
}
.icon-btn:hover { background: var(--paper-deep); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.pill:hover { background: var(--ink); color: var(--paper); }

/* ---------- Primary nav ---------- */
.primary-nav {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 80;
}
.primary-nav .wrap {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 44px);
  height: 50px;
  align-items: center;
}
.primary-nav a {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 4px 2px;
  font-weight: 500;
}
.primary-nav a.active::after,
.primary-nav a:hover::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -17px; height: 2px;
  background: var(--accent-red);
}
.primary-nav .nav-compact {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

/* ---------- Hero / lede ---------- */
.lede {
  padding: 48px 0 64px;
  border-bottom: 1px solid var(--ink);
}
.lede-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
}
.lede-kicker {
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 24px;
}
.lede-kicker .tag {
  padding: 4px 10px;
  background: var(--accent-red);
  color: var(--paper);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 500;
}
.lede-headline {
  font-family: var(--serif);
  font-size: clamp(42px, 5.6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 28px;
  color: var(--ink);
  text-wrap: balance;
}
.lede-headline em {
  font-style: italic;
  color: var(--accent-red);
}
.lede-deck {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 32px;
}
.lede-meta {
  display: flex; gap: 24px; align-items: center;
  font-size: 12px; color: var(--ink-muted);
  letter-spacing: 0.06em;
}
.lede-meta .by { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink); }

.lede-side {
  border-left: 1px solid var(--ink);
  padding-left: 32px;
  display: flex; flex-direction: column; gap: 22px;
}
.side-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(11,26,46,0.12);
}
.side-item:last-child { border-bottom: 0; padding-bottom: 0; }
.side-item .n {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--accent-red);
  padding-top: 3px;
}
.side-item .region {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.side-item h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.25;
  margin: 0;
}
.side-item h4:hover { color: var(--accent-red); cursor: pointer; }

/* ---------- Mission ticker ---------- */
.ticker {
  padding: 18px 0;
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: tick 60s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.ticker-inner span { display: inline-flex; align-items: center; gap: 16px; }
.ticker-inner .mark {
  width: 6px; height: 6px; background: var(--accent-red); border-radius: 50%;
  display: inline-block;
}
@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section header ---------- */
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--ink);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 12px 0 0;
  max-width: 18ch;
}
.section-head .intro {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0;
}
.section-num {
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  font-style: italic;
  color: var(--accent-red);
  font-size: 16px;
}

/* ---------- Research domain cards ---------- */
.domains {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}
.domain {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  transition: background 0.25s;
  position: relative;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.domain:nth-child(4n) { border-right: 0; }
.domain:hover { background: var(--paper-deep); }
.domain .label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-muted);
}
.domain .label .dot-g { color: var(--accent-green); }
.domain .label .dot-r { color: var(--accent-red); }
.domain h3 {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin: 40px 0 16px;
}
.domain p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0 0 24px;
}
.domain .meta {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
  display: flex; justify-content: space-between;
  border-top: 1px solid rgba(11,26,46,0.18);
  padding-top: 14px;
}
.domain .arrow {
  position: absolute;
  top: 28px; right: 28px;
  font-size: 18px; color: var(--ink-muted);
  transition: transform 0.25s, color 0.25s;
}
.domain:hover .arrow { transform: translate(4px, -4px); color: var(--accent-red); }

/* ---------- Feature brief ---------- */
.brief {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: start;
}
.brief-image {
  aspect-ratio: 4 / 5;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.brief-image .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,26,46,0.1) 0%, rgba(11,26,46,0.85) 100%);
}
.brief-image .corner {
  position: absolute; top: 24px; left: 24px;
  color: var(--paper);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.brief-image .corner::before {
  content: ""; width: 20px; height: 1px; background: var(--accent-red);
}
.brief-image .caption {
  position: absolute; bottom: 24px; left: 24px; right: 24px;
  color: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.85;
}

.brief-copy .kicker {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 16px;
}
.brief-copy h3 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 24px;
  text-wrap: balance;
}
.brief-copy .deck {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.brief-copy p {
  font-size: 15px; line-height: 1.65; color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 52ch;
}
.brief-copy .author {
  margin-top: 28px;
  display: flex; gap: 14px; align-items: center;
  font-size: 13px;
}
.brief-copy .author .av {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 15px;
}
.brief-copy .author .name {
  font-family: var(--serif);
  font-size: 16px;
}
.brief-copy .author .title { color: var(--ink-muted); font-size: 12px; letter-spacing: 0.06em; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
  margin-top: 16px;
}
.link-arrow:hover { color: var(--accent-red); border-color: var(--accent-red); gap: 14px; }

/* ---------- Publications list ---------- */
.pub-list { border-top: 1px solid var(--ink); }
.pub {
  display: grid;
  grid-template-columns: 120px 1fr 200px 160px 40px;
  gap: 32px;
  align-items: center;
  padding: 26px 12px;
  border-bottom: 1px solid rgba(11,26,46,0.18);
  cursor: pointer;
  transition: background 0.2s, padding 0.2s;
}
.pub:hover {
  background: var(--paper-warm);
  padding-left: 20px;
}
.pub .date {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-muted);
}
.pub .title h4 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.pub .title .deck {
  font-size: 13px; color: var(--ink-muted); line-height: 1.4;
}
.pub .kind {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-green);
}
.pub .kind.red { color: var(--accent-red); }
.pub .by {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-soft);
}
.pub .arrow {
  color: var(--ink-muted);
  transition: transform 0.2s, color 0.2s;
}
.pub:hover .arrow { color: var(--accent-red); transform: translateX(4px); }

/* ---------- Expert cards ---------- */
.experts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.expert {
  cursor: pointer;
}
.expert .portrait {
  aspect-ratio: 3 / 4;
  background: var(--ink);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.expert .portrait .fill {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.expert .portrait .grain {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,26,46,0.7));
}
.expert .portrait .initials {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 72px;
  color: rgba(243,238,226,0.15);
  font-weight: 400;
}
.expert h4 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 4px;
  letter-spacing: -0.005em;
}
.expert .role {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.expert .topic {
  margin-top: 10px;
  font-family: var(--serif); font-style: italic;
  font-size: 13px;
  color: var(--accent-green);
}

/* ---------- Data / index strip ---------- */
.index-strip {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0;
  border-bottom: 1px solid var(--ink);
}
.index-grid {
  display: grid;
  grid-template-columns: 1fr repeat(4, auto);
  gap: 40px;
  align-items: center;
}
.index-grid .label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: rgba(243,238,226,0.6);
  max-width: 30ch;
}
.index-grid .stat {
  border-left: 1px solid rgba(243,238,226,0.2);
  padding-left: 28px;
  min-width: 160px;
}
.index-grid .stat .n {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.index-grid .stat .n em { font-style: italic; color: var(--accent-red); font-size: 32px; }
.index-grid .stat .k {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(243,238,226,0.55);
  margin-top: 8px;
}

/* ---------- Briefing / newsletter ---------- */
.briefing {
  padding: 96px 0;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--ink);
}
.briefing-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.briefing h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 16px 0 28px;
  text-wrap: balance;
}
.briefing h2 em { font-style: italic; color: var(--accent-red); }
.briefing .deck {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 44ch;
}
.briefing-form {
  background: var(--paper);
  padding: 40px;
  border: 1px solid var(--ink);
}
.briefing-form label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 10px;
}
.briefing-form input {
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  outline: none;
}
.briefing-form .rows {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin-bottom: 28px;
}
.briefing-form .checks {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.briefing-form .check {
  padding: 7px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.briefing-form .check.on { background: var(--ink); color: var(--paper); }
.briefing-form button.submit {
  margin-top: 28px;
  width: 100%;
  padding: 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  transition: background 0.2s;
  font-weight: 500;
}
.briefing-form button.submit:hover { background: var(--accent-red); }
.briefing-form .fine {
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-muted);
  font-family: var(--serif); font-style: italic;
  text-align: center;
}

/* ---------- Footer / colophon ---------- */
.colophon {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0 40px;
}
.colophon-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(243,238,226,0.15);
}
.colophon h5 {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(243,238,226,0.5);
  margin: 0 0 20px; font-weight: 500;
}
.colophon ul { list-style: none; padding: 0; margin: 0; }
.colophon li { margin-bottom: 12px; font-size: 14px; }
.colophon a { opacity: 0.9; }
.colophon a:hover { color: var(--paper); opacity: 1; border-bottom: 1px solid var(--accent-red); }

.colophon .brand {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.colophon .brand-sub {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(243,238,226,0.6);
  margin-bottom: 20px;
}
.colophon .brand-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(243,238,226,0.75);
  max-width: 36ch;
}
.colophon .bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(243,238,226,0.5);
}

/* ---------- Page-specific: Domain hub ---------- */
.domain-hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.domain-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.domain-hero h1 {
  font-family: var(--serif);
  font-size: clamp(60px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin: 16px 0 0;
}
.domain-hero h1 em { font-style: italic; color: var(--accent-red); }
.domain-hero .deck {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0;
}
.domain-hero .meta {
  margin-top: 32px;
  display: flex; gap: 40px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted);
}
.domain-hero .meta b { color: var(--ink); font-weight: 500; }

/* ---------- Reading / article page ---------- */
.article-head {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--ink);
  text-align: center;
}
.article-head .breadcrumb {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 32px;
}
.article-head .breadcrumb a:hover { color: var(--accent-red); }
.article-head .tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--accent-red);
  color: var(--paper);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 20px;
}
.article-head h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 24px;
  max-width: 22ch;
  margin-left: auto; margin-right: auto;
  text-wrap: balance;
}
.article-head h1 em { font-style: italic; }
.article-head .deck {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 auto 36px;
}
.article-head .byline {
  display: flex; justify-content: center; gap: 32px;
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}
.article-head .byline .by { font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 15px; }

.article-body {
  padding: 64px 0 96px;
  border-bottom: 1px solid var(--ink);
}
.article-inner {
  display: grid;
  grid-template-columns: 200px 640px 200px;
  gap: 48px;
  justify-content: center;
}
.article-aside {
  font-size: 12px;
  color: var(--ink-muted);
  padding-top: 12px;
}
.article-aside h6 { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 14px; }
.article-aside ul { list-style: none; padding: 0; margin: 0 0 24px; }
.article-aside li { margin-bottom: 10px; font-family: var(--serif); font-size: 14px; line-height: 1.4; color: var(--ink-soft); }
.article-aside li:hover { color: var(--accent-red); cursor: pointer; }

.prose {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
}
.prose p { margin: 0 0 20px; }
.prose p:first-child::first-letter {
  font-size: 72px;
  float: left;
  line-height: 0.85;
  padding: 8px 10px 0 0;
  font-weight: 400;
  color: var(--accent-red);
}
.prose h2 {
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
  font-weight: 500;
}
.prose blockquote {
  border-left: 2px solid var(--accent-red);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.prose .pullquote {
  font-size: 32px;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.015em;
  padding: 32px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 40px -32px;
  text-align: center;
  color: var(--ink);
  text-wrap: balance;
}
.prose .pullquote::before { content: "“"; color: var(--accent-red); display: block; font-size: 48px; line-height: 0.3; margin-bottom: 16px; }

/* ---------- Misc ---------- */
.center { text-align: center; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Tweak panel ---------- */
.tweaks-panel {
  position: fixed;
  right: 16px; bottom: 16px;
  width: 300px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 20px;
  z-index: 200;
  font-family: var(--sans);
  box-shadow: 0 12px 40px rgba(11,26,46,0.18);
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h6 {
  margin: 0 0 14px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted);
}
.tweaks-panel .row {
  display: flex; gap: 8px; align-items: center; margin-bottom: 14px;
}
.tweaks-panel .swatch {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink);
  cursor: pointer;
}
.tweaks-panel .swatch.on { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .lede-grid { grid-template-columns: 1fr; gap: 40px; }
  .lede-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--ink); padding-top: 32px; }
  .domains { grid-template-columns: repeat(2, 1fr); }
  .domain:nth-child(4n) { border-right: 1px solid var(--ink); }
  .domain:nth-child(2n) { border-right: 0; }
  .brief, .briefing-inner, .domain-hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .experts { grid-template-columns: repeat(2, 1fr); }
  .article-inner { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .article-aside { display: none; }
}
@media (max-width: 700px) {
  .masthead .wrap { grid-template-columns: 1fr; text-align: center; }
  .masthead-left, .masthead-right { display: none; }
  .primary-nav .wrap { overflow-x: auto; justify-content: flex-start; }
  .index-grid { grid-template-columns: 1fr 1fr; }
  .domains { grid-template-columns: 1fr; }
  .domain, .domain:nth-child(n) { border-right: 0; }
  .experts { grid-template-columns: 1fr; }
  .pub { grid-template-columns: 1fr; gap: 8px; }
}
