@import url('fonts.css');

/* ==========================================================================
   John Politics — American neoclassical campaign editorial
   ========================================================================== */

:root {
  --navy-900: #081829;
  --navy-800: #0b1e33;
  --navy-band: #08203a;
  --ink: #14294a;
  --ink-soft: #2c3f5f;
  --body: #3c4557;
  --body-soft: #5a6274;

  --red: #9c2528;
  --red-deep: #8e2121;
  --red-bright: #b0392c;

  --gold: #a8823f;
  --gold-light: #c2a05a;
  --gold-pale: #dbc9a4;

  --cream: #f3f0ed;
  --cream-deep: #ebe6de;
  --card: #faf8f5;
  --line: #ddd0b6;
  --line-soft: #e6ddcc;

  --display: 'Playfair Display', 'Times New Roman', serif;
  --text: 'EB Garamond', Georgia, serif;
  --script: 'Mrs Saint Delafield', cursive;

  --bar-h: 94px;
  --shell: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
/* Every portrait mount is a <figure>; the UA's 1em/40px margin would push the
   cutouts off the edge they are anchored to. */
figure { margin: 0; }
a { color: inherit; text-decoration: none; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 32px;
}

/* Warm marble page ground, used by every non-hero band. */
.marble {
  position: relative;
  background-color: var(--cream);
  /* Keeps the veil/content layering below local to the band, so it can't be
     reordered against the ribbon or the topbar. */
  isolation: isolate;
}
.marble::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../img/marble.webp');
  background-size: 620px;
  opacity: 0.5;
  pointer-events: none;
}
/* An explicit layer, not just DOM order: a flex/grid child that reorders
   itself (the stacked .split-media on mobile) would otherwise paint under the
   veil and come out washed with cream. */
.marble > * { position: relative; z-index: 1; }

/* ------------------------------------------------------------- lettering */

.eyebrow {
  font-family: var(--text);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* Gold star flanked by hairlines, over the big page headlines. */
.crest {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gold);
}
.crest::before, .crest::after {
  content: '';
  height: 1px;
  width: 72px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.crest::after { background: linear-gradient(270deg, transparent, var(--gold)); }
.crest span { font-size: 17px; line-height: 1; }

/* Short red hairline with a four-point star at its centre. */
.starrule {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 148px;
  margin: 13px 0 14px;
}
.starrule::before, .starrule::after {
  content: '';
  height: 1px;
  flex: 1;
  background: rgba(156, 37, 40, 0.42);
}
.starrule i {
  width: 9px;
  height: 9px;
  background: var(--red);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--text);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 17px 42px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn-red {
  background: var(--red);
  color: #fdfaf5;
  box-shadow: 0 10px 26px rgba(8, 24, 41, 0.24);
}
.btn-red:hover { background: var(--red-deep); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--gold);
  font-size: 12.5px;
  padding: 14px 30px;
}
.btn-outline:hover { background: var(--gold); color: #fff; }
/* Wordmark button: keeps its literal casing instead of the uppercase the
   other buttons take. */
.btn-wordmark {
  text-transform: none;
  letter-spacing: 0.06em;
  font-size: 14px;
}
/* Red button with the thin gold inlay the design uses inside bordered panels. */
.btn-inlaid { position: relative; }
.btn-inlaid::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(219, 201, 164, 0.55);
  pointer-events: none;
}

/* ------------------------------------------------------------------ mark */

.mark { display: block; width: max-content; line-height: 1; text-align: center; }
.mark .mark-stars {
  font-size: 8px;
  letter-spacing: 0.5em;
  color: var(--gold-light);
  display: block;
  margin-bottom: 3px;
}
.mark .mark-name {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.34em;
  display: block;
}
.mark .mark-word {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.09em;
  display: block;
  margin-top: 1px;
}
.mark .mark-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 6px;
  color: var(--gold-light);
}
.mark .mark-tag::before, .mark .mark-tag::after {
  content: '';
  height: 1px;
  flex: none;
  width: 16px;
  background: var(--red-bright);
}

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--bar-h);
  background: var(--navy-900);
  border-bottom: 1px solid rgba(168, 130, 63, 0.55);
}
.topbar .shell {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.topbar .mark { color: #f6f2ea; }

.topnav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.topnav a {
  font-size: 11.5px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: #e2ddd4;
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.topnav a:hover { color: #fff; }
.topnav a[aria-current='page'] {
  color: #fff;
  border-bottom-color: var(--red-bright);
}

.topbar .btn-red {
  padding: 13px 38px;
  font-size: 12.5px;
  box-shadow: none;
}

.navtoggle {
  display: none;
  background: none;
  border: 1px solid rgba(219, 201, 164, 0.4);
  color: #f2ede4;
  padding: 8px 12px;
  font-size: 15px;
  cursor: pointer;
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 2px solid var(--gold);
  background: var(--navy-900);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 16, 30, 0.5) 0%, rgba(6, 16, 30, 0.28) 42%, rgba(6, 16, 30, 0.62) 100%);
}
.hero .shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

/* The lit portrait: an <img> with a WebGL canvas laid exactly over it. */
.portrait {
  position: relative;
  line-height: 0;
}
.portrait img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 46px rgba(4, 12, 24, 0.5));
}
.portrait .lit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 24px 46px rgba(4, 12, 24, 0.5));
}
.portrait.is-webgl img { visibility: hidden; }

/* Scaled off the hero's own height so the head always clears the topbar and
   the cutout meets the hero's lower edge, whatever the viewport. */
.hero-figure {
  position: absolute;
  left: max(-40px, calc(50% - 740px));
  bottom: 0;
  height: 100%;
  width: auto;
  z-index: 1;
}
.hero-figure img { height: 100%; width: auto; }
.hero-figure img, .hero-figure .lit-canvas { filter: drop-shadow(0 20px 60px rgba(3, 10, 20, 0.6)); }

.hero-copy { grid-column: 2; text-align: center; padding: 40px 0; }
.hero-copy .crest { justify-content: center; margin-bottom: 22px; }

/* Get Involved reverses the hero: copy on the left, the marching group right. */
.hero--left .hero-copy { grid-column: 1; text-align: left; padding: 40px 0 40px 4px; }
.hero--left .hero-copy .crest { justify-content: flex-start; }
.hero--left .hero-copy .crest::before { display: none; }
.hero--left .hero-lede { margin-left: 0; }
/* Both words carry the display size here; only the colour changes. */
.hero--left .hero-title em {
  font-size: 1em;
  letter-spacing: 0.035em;
  margin-top: 0;
}
/* The group walks out of a darker corner so the headline stays legible. */
.hero--left .hero-bg::after {
  background: linear-gradient(90deg, rgba(5, 14, 27, 0.86) 0%, rgba(5, 14, 27, 0.6) 30%, rgba(5, 14, 27, 0.2) 58%, rgba(5, 14, 27, 0.42) 100%);
}

.crowd-figure {
  position: absolute;
  right: max(-70px, calc(50% - 790px));
  bottom: 0;
  width: min(62%, 900px);
  z-index: 1;
}
.crowd-figure img, .crowd-figure .lit-canvas {
  filter: drop-shadow(0 20px 54px rgba(3, 10, 20, 0.55));
}

.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(52px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: 0.035em;
  color: #fdfbf7;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 6px 30px rgba(4, 12, 24, 0.55);
}
.hero-title em {
  display: block;
  font-style: normal;
  font-size: 0.42em;
  letter-spacing: 0.13em;
  color: var(--red-bright);
  margin-top: 16px;
  text-shadow: 0 4px 18px rgba(4, 12, 24, 0.6);
}
.hero-lede {
  margin: 28px auto 34px;
  max-width: 440px;
  color: #e9e3d8;
  font-size: 17.5px;
  line-height: 1.9;
  text-shadow: 0 2px 12px rgba(4, 12, 24, 0.7);
}
.hero-lede span { display: block; }

/* ------------------------------------------------------------ donate hero */

.hero--donate { min-height: 740px; }
.hero--donate .hero-title { font-size: clamp(42px, 4.6vw, 66px); line-height: 1.1; }
.hero--donate .hero-lede { margin: 20px auto 26px; font-size: 16px; line-height: 1.7; }

.hero-kicker {
  font-family: var(--text);
  font-size: clamp(15px, 1.5vw, 19px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c4523d;
  margin-top: 16px;
  text-shadow: 0 3px 14px rgba(4, 12, 24, 0.85);
}

.donate-form { max-width: 460px; margin: 0 auto; text-align: left; }

.donate-panel {
  background: rgba(8, 26, 48, 0.86);
  border: 1px solid var(--gold);
  padding: 18px 20px 20px;
  backdrop-filter: blur(2px);
}
.panel-label {
  display: block;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #efe8d9;
  margin-bottom: 12px;
}
.donate-panel .panel-label + .level-grid { margin-bottom: 16px; }

.level-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.level {
  font-family: var(--text);
  font-size: 15px;
  color: #f4efe4;
  background: rgba(6, 18, 34, 0.7);
  border: 1px solid var(--gold);
  padding: 9px 2px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.level:hover { background: rgba(168, 130, 63, 0.28); }
.level.is-active { background: var(--gold); color: var(--navy-900); }

.amount-row { display: flex; }
.amount-prefix {
  display: grid;
  place-items: center;
  width: 38px;
  font-size: 16px;
  color: #f4efe4;
  background: rgba(6, 18, 34, 0.7);
  border: 1px solid var(--gold);
  border-right: 0;
}
.amount-row input {
  flex: 1;
  min-width: 0;
  font-family: var(--text);
  font-size: 15px;
  color: var(--ink);
  background: #e9e5de;
  border: 1px solid var(--gold);
  padding: 10px 14px;
}
.amount-row input::placeholder { color: #8b8578; }
.amount-row input:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 1px; }

.donate-now {
  width: 100%;
  margin-top: 14px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.1em;
  padding: 14px 20px;
}
.secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 10px 0 0;
  font-size: 13px;
  color: #d9d2c5;
}
.secure svg { width: 12px; height: 12px; fill: currentColor; display: block; }

/* ------------------------------------------------------------ thanks band */

.thanks-band {
  background: var(--navy-band);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  padding: 26px 0 28px;
  text-align: center;
}
.thanks-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  max-width: 700px;
  margin: 0 auto;
}
.thanks-rule::before, .thanks-rule::after {
  content: '';
  height: 1px;
  flex: 1;
  background: rgba(232, 226, 214, 0.45);
}
.thanks-rule span {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fbf7f0;
}
.thanks-band p {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #e6dfd2;
}

/* ---------------------------------------------------------------- ribbon */

/* Sits on the seam between the hero and the pillars: a zero-height flex row
   whose centred child overflows equally above and below the boundary. */
.ribbon-wrap {
  position: relative;
  height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
}
.ribbon {
  position: relative;
  background: var(--navy-band);
  color: #f7f3ec;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.14em;
  line-height: 1.42;
  text-align: center;
  text-transform: uppercase;
  padding: 22px 76px;
  clip-path: polygon(26px 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 26px 100%, 0 50%);
  box-shadow: 0 12px 30px rgba(8, 24, 41, 0.24);
}
.ribbon::after {
  content: '';
  position: absolute;
  inset: 6px 30px;
  border: 1px solid rgba(194, 160, 90, 0.32);
  pointer-events: none;
}

/* ----------------------------------------------------------------- cards */

.pillars { padding: 96px 0 84px; }
.pillars.has-ribbon { padding-top: 108px; }

.cardgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.pcard {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  padding: 28px 30px 26px;
  background: rgba(250, 248, 245, 0.86);
  border: 1px solid var(--line);
  transition: box-shadow 0.3s, transform 0.3s, background-color 0.3s;
}
.pcard:hover {
  background: var(--card);
  box-shadow: 0 16px 34px rgba(20, 41, 74, 0.13);
  transform: translateY(-3px);
}
.pcard .ico { color: var(--gold); width: 46px; height: 46px; margin-top: 4px; }
.pcard .ico svg { width: 100%; height: 100%; fill: currentColor; }
.pcard h3 {
  font-family: var(--display);
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.028em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.pcard p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--body);
}
.pcard .more {
  display: inline-block;
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.pcard .more:hover { color: var(--red); }

/* ------------------------------------------------------- section heading */

.sechead { text-align: center; margin-bottom: 54px; }
.sechead h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.sechead .sub {
  font-family: var(--display);
  font-size: clamp(20px, 2.3vw, 26px);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 10px;
}
.sechead .starrule { margin: 16px auto 0; }

/* ------------------------------------------------------------ quote band */

.quoteband {
  position: relative;
  background: var(--navy-band);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  overflow: hidden;
  padding: 62px 0;
}
.quoteband .court {
  position: absolute;
  right: -20px;
  bottom: -10px;
  width: 46%;
  max-width: 620px;
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%);
  mask-image: linear-gradient(90deg, transparent, #000 38%);
  pointer-events: none;
}
.quoteband .shell { position: relative; z-index: 2; }
.quoteband blockquote {
  margin: 0;
  padding-left: 62px;
  position: relative;
  max-width: 620px;
}
.quoteband blockquote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -22px;
  font-family: var(--display);
  font-size: 76px;
  color: var(--gold);
  line-height: 1;
}
.quoteband blockquote p {
  margin: 0;
  font-style: italic;
  font-size: 17.5px;
  line-height: 1.68;
  color: #ece6db;
}
.quoteband blockquote p span { display: block; }
.quoteband .sig {
  font-family: var(--script);
  font-size: 44px;
  line-height: 1;
  color: var(--gold-light);
  margin-top: 16px;
  position: relative;
  display: inline-block;
}
.quoteband .sig::after {
  content: '';
  position: absolute;
  left: 4%;
  right: -6%;
  bottom: 4px;
  height: 1px;
  background: var(--gold-light);
}

/* ---------------------------------------------------------------- footer */

.site-footer { padding: 40px 0 34px; border-top: 1px solid var(--line); }
.site-footer .shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}
.site-footer .mark { color: var(--ink); }
.site-footer .mark .mark-stars, .site-footer .mark .mark-tag { color: var(--gold); }
.footer-center { text-align: center; }
.footer-center h2 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  line-height: 1.45;
}
.footer-center h2 em { font-style: normal; color: var(--red); display: block; }
.social {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 16px;
}
.social a { color: var(--ink); opacity: 0.85; transition: color 0.2s, opacity 0.2s; }
.social a:hover { color: var(--red); opacity: 1; }
.social svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.footer-cta { justify-self: end; }

/* ====================================================== about page split */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: calc(100vh - var(--bar-h));
}
.split-media {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
/* Sized by height so the full cutout clears the column, and capped by the
   column's own width so a tall copy block can't blow the portrait sideways. */
.split-media .portrait {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  aspect-ratio: 3 / 4;
  /* 64vw keeps the derived width (48vw) inside the half-width column. */
  height: min(100%, 64vw);
  width: auto;
}
.split-media .portrait img { width: 100%; height: 100%; }
.split-copy { padding: 74px 60px 74px max(32px, calc(50vw - 620px)); }

.about-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1.06;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.about-title em {
  display: block;
  font-style: normal;
  color: var(--red);
}
.stars3 {
  color: var(--gold);
  letter-spacing: 0.6em;
  font-size: 13px;
  margin-bottom: 18px;
}
.goldrule {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 430px;
  margin: 26px 0 30px;
}
.goldrule::before, .goldrule::after {
  content: '';
  height: 1px;
  flex: 1;
  background: rgba(168, 130, 63, 0.5);
}
.goldrule i {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}
.split-copy p { max-width: 440px; font-size: 16.5px; line-height: 1.8; }
.split-copy p.accent { color: var(--red); }

/* The bordered creed panel that sits under the About copy. */
.creed {
  position: relative;
  margin-top: 42px;
  max-width: 480px;
  padding: 46px 40px 40px;
  background: rgba(250, 248, 245, 0.9);
  border: 1px solid var(--gold);
}
.creed::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(168, 130, 63, 0.36);
  pointer-events: none;
}
.creed > * { position: relative; }
.creed .emblem {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 54px;
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
/* The generated emblem ships as a dark monochrome SVG; masking recolours it
   to gold without re-encoding the asset. */
.creed .emblem i {
  width: 30px;
  height: 30px;
  background: var(--gold);
  -webkit-mask: url('../img/emblem.svg') center / contain no-repeat;
  mask: url('../img/emblem.svg') center / contain no-repeat;
}
.creed h2 {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  line-height: 1.28;
  color: var(--ink);
  margin: 8px 0 0;
}
.creed .starrule { margin: 16px 0 26px; }
.creed ul { list-style: none; margin: 0 0 30px; padding: 0; }
.creed li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.creed li .ico { color: var(--gold); width: 30px; height: 30px; margin-top: 2px; }
.creed li .ico svg { width: 100%; height: 100%; fill: currentColor; }
.creed li h3 {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 4px;
}
.creed li p { margin: 0; font-size: 14.5px; line-height: 1.6; max-width: none; }
.creed .btn { width: 100%; }

/* ===================================================== issues list page */

.issues-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: calc(100vh - var(--bar-h));
}
.issues-copy { padding: 60px 52px 60px max(32px, calc(50vw - 620px)); }
.issues-copy .crest { margin-bottom: 16px; }
.issues-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(42px, 4.4vw, 58px);
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  line-height: 1.02;
}
.issues-sub {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 10px;
}
.issues-intro { max-width: 400px; font-size: 16px; line-height: 1.75; margin: 22px 0 26px; }

/* Scrolling issue list with a slim gold track down its right edge, and a soft
   fade at the foot so the clipped item reads as "more below" rather than as a
   broken card. */
.issuelist-wrap { position: relative; }
.issuelist-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 24px;
  bottom: 0;
  height: 46px;
  background: linear-gradient(transparent, var(--cream));
  pointer-events: none;
}
.issuelist {
  max-height: 556px;
  overflow-y: scroll;
  padding-right: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(168, 130, 63, 0.18);
}
.issuelist::-webkit-scrollbar { width: 6px; }
.issuelist::-webkit-scrollbar-track { background: rgba(168, 130, 63, 0.18); }
.issuelist::-webkit-scrollbar-thumb { background: var(--gold); }

.issue {
  border: 1px solid var(--line-soft);
  background: rgba(250, 248, 245, 0.9);
  margin-bottom: 10px;
}
.issue-head {
  width: 100%;
  display: grid;
  grid-template-columns: 54px 1fr 24px;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  background: none;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.issue .disc {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  color: var(--card);
}
.issue .disc svg { width: 24px; height: 24px; fill: currentColor; }
.issue h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 3px;
}
.issue .blurb { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--body); }
.issue .plus {
  font-family: var(--text);
  font-size: 22px;
  line-height: 1;
  color: var(--red);
  transition: transform 0.28s;
}
.issue[open] .plus, .issue.is-open .plus { transform: rotate(45deg); }
.issue-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}
.issue.is-open .issue-body { grid-template-rows: 1fr; }
.issue-body > div { overflow: hidden; }
.issue-body p {
  margin: 0;
  padding: 0 18px 18px 88px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--body-soft);
}

/* ------------------------------------------------- device tilt affordance */

/* iOS will only grant motion access from inside a real click, so the tilt
   module offers this control rather than asking on load. It removes itself as
   soon as orientation data starts arriving. */
.tilt-enable {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  font-family: var(--text);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f6f2ea;
  background: var(--navy-900);
  border: 1px solid var(--gold);
  padding: 11px 18px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(6, 16, 30, 0.4);
}
.tilt-enable:disabled { opacity: 0.7; cursor: default; }

.tilt-toast {
  position: fixed;
  left: 50%;
  bottom: 78px;
  transform: translate(-50%, 8px);
  z-index: 80;
  max-width: min(380px, calc(100vw - 32px));
  font-size: 14px;
  line-height: 1.5;
  color: #f2ede4;
  background: rgba(8, 24, 41, 0.96);
  border: 1px solid var(--gold);
  padding: 12px 16px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.tilt-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
  .cardgrid { grid-template-columns: repeat(2, 1fr); }
  .hero-figure { width: 480px; left: -40px; }
}

@media (max-width: 900px) {
  .topnav {
    position: absolute;
    top: var(--bar-h);
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    gap: 0;
    padding: 0 32px;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(168, 130, 63, 0.4);
    transition: max-height 0.3s, padding 0.3s;
  }
  .topnav.is-open { max-height: 340px; padding: 14px 32px 20px; }
  .topnav a { width: 100%; padding: 12px 0; }
  .navtoggle { display: block; }
  .topbar .btn-red { display: none; }

  /* Stack the hero: copy first, then the portrait below it. */
  .hero {
    min-height: 0;
    flex-direction: column;
    padding-bottom: 0;
  }
  .hero .shell { grid-template-columns: 1fr; order: 1; width: 100%; }
  .hero-copy, .hero--left .hero-copy { grid-column: 1; text-align: center; padding: 44px 0 8px; }
  .hero--left .hero-copy .crest { justify-content: center; }
  .hero-lede, .hero--left .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-figure, .crowd-figure {
    position: relative;
    order: 2;
    left: auto;
    right: auto;
    height: auto;
    margin: 0 auto;
    width: min(430px, 88%);
  }
  .crowd-figure { width: min(620px, 100%); }
  .hero-figure img, .crowd-figure img { width: 100%; height: auto; }

  .split, .issues-split { grid-template-columns: 1fr; min-height: 0; }
  /* Bottom-align the cutout with flexbox rather than absolute positioning: the
     figure is sized off the frame, so it always meets the lower edge exactly
     instead of resolving `bottom: 0` against a box it doesn't fill. */
  .split-media, .issues-split .split-media {
    min-height: 0;
    height: min(74vh, 112vw);
    order: -1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .split-media .portrait {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    height: 100%;
    width: auto;
    max-width: 100%;
  }
  .split-copy, .issues-copy { padding: 52px 32px; }
  .creed, .split-copy p, .issues-intro { max-width: none; }
  .issuelist { max-height: none; overflow: visible; padding-right: 0; }

  .quoteband .court { width: 70%; opacity: 0.22; }
  .site-footer .shell { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-cta { justify-self: center; }
}

@media (max-width: 640px) {
  .cardgrid { grid-template-columns: 1fr; }
  .ribbon { font-size: 16px; padding: 18px 44px; }
  .shell { padding: 0 22px; }
  .pillars { padding: 70px 0 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
