/* ============================================================
   JIFIN — The Ledger
   A warm-paper editorial system: ink, oxblood, brass, hairlines.
   ============================================================ */

:root {
  --paper: #f4f0e6;
  --paper-2: #ece6d8;
  --paper-3: #e3dccb;
  --ink: #14110d;
  --ink-2: #241f17;
  --muted: #6f675a;
  --muted-2: #8d8474;
  --oxblood: #7c1f2b;
  --oxblood-deep: #5e151f;
  --brass: #a8803f;
  --brass-light: #c9a86a;
  --rule: rgba(20, 17, 13, 0.16);
  --rule-strong: rgba(20, 17, 13, 0.4);
  --rule-light: rgba(244, 240, 230, 0.16);
  --dark: #17130e;
  --dark-2: #221c14;
  --white: #fbf8f1;
  --green: #3f6b4a;
  --amber: #9a6a1e;
  --red: #8e2b25;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-ui: "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --measure: 68ch;
  --gutter: clamp(18px, 3vw, 40px);
  --shadow: 0 30px 60px -30px rgba(20, 17, 13, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(1200px 600px at 78% -10%, rgba(168, 128, 63, 0.1), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(124, 31, 43, 0.05), transparent 55%);
}

::selection {
  background: var(--oxblood);
  color: var(--white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1280px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.narrow {
  width: min(860px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

/* ---------- typography helpers ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.kicker__dot {
  width: 5px;
  height: 5px;
  background: var(--oxblood);
  display: inline-block;
  transform: rotate(45deg);
}

.kicker--light {
  color: rgba(244, 240, 230, 0.6);
}

.kicker--light .kicker__dot {
  background: var(--brass-light);
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.display--light {
  color: var(--white);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
}

.text-link {
  color: var(--oxblood);
  border-bottom: 1px solid rgba(124, 31, 43, 0.35);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.text-link:hover {
  border-color: var(--oxblood);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  padding: 12px 20px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  background: none;
}

.btn__arrow {
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--solid {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn--solid:hover {
  background: var(--oxblood);
  border-color: var(--oxblood);
}

.btn--ghost {
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(20, 17, 13, 0.04);
}

.btn--outline {
  color: var(--ink);
  border-color: var(--rule);
}

.btn--outline:hover {
  border-color: var(--ink);
}

.btn--light {
  color: var(--paper);
  border-color: var(--rule-light);
}

.btn--light:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn--sm {
  padding: 9px 14px;
  font-size: 10px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oxblood);
}

.arrow-link span {
  transition: transform 0.25s var(--ease);
}

.arrow-link:hover span {
  transform: translateX(5px);
}

.arrow-link--sm {
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

.tag {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag--outline {
  border-color: var(--rule-strong);
  color: var(--ink);
}

/* ---------- top bar ---------- */

.topbar {
  background: var(--ink);
  color: rgba(244, 240, 230, 0.72);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 36px;
}

.topbar__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brass-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__note::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--brass);
  transform: rotate(45deg);
  flex: none;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}

.topbar__links a {
  transition: color 0.2s var(--ease);
}

.topbar__links a:hover {
  color: var(--white);
}

.topbar__search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-left: 1px solid var(--rule-light);
  padding-left: 18px;
}

/* ---------- masthead ---------- */

.masthead {
  position: relative;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(251, 248, 241, 0.6), rgba(244, 240, 230, 0));
}

.masthead__in {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding: 20px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.brand__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.2vw, 52px);
  letter-spacing: -0.04em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
}

.brand__accent {
  color: var(--oxblood);
  font-size: 0.62em;
  margin-left: 1px;
  letter-spacing: -0.02em;
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 2px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.5vw, 26px);
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav__link:hover,
.nav__item.is-active > .nav__link {
  color: var(--oxblood);
  border-color: var(--oxblood);
}

.nav__item.is-active > .nav__link::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 3px;
  height: 3px;
  background: var(--oxblood);
  transform: translateX(-50%) rotate(45deg);
}

.nav__drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 220px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 0;
  border: 1px solid rgba(244, 240, 230, 0.12);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 50;
}

.nav__drop::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  background: var(--ink);
  transform: translateX(-50%) rotate(45deg);
}

.nav__item:hover .nav__drop,
.nav__item:focus-within .nav__drop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav__drop a {
  display: block;
  padding: 9px 18px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 240, 230, 0.72);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.nav__drop a:hover {
  background: rgba(244, 240, 230, 0.06);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  padding: 0;
  position: relative;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.nav-toggle span:first-child {
  top: 17px;
}

.nav-toggle span:last-child {
  top: 25px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

.mobile-nav {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  padding: 8px 0 24px;
}

.mobile-nav__group {
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
}

.mobile-nav__link {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 6px 0;
}

.mobile-nav__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 4px 0 2px;
}

.mobile-nav__sub a {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mobile-nav__foot {
  display: flex;
  gap: 24px;
  padding-top: 18px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oxblood);
}

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

.site-foot {
  margin-top: clamp(60px, 9vw, 120px);
  background: var(--dark);
  color: rgba(244, 240, 230, 0.66);
  font-size: 13px;
  position: relative;
  overflow: hidden;
}

.site-foot::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(700px 300px at 85% 0%, rgba(168, 128, 63, 0.14), transparent 70%);
  pointer-events: none;
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(48px, 7vw, 88px) 0 56px;
  position: relative;
  z-index: 1;
}

.foot__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 5vw, 72px);
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--white);
}

.foot__word span {
  color: var(--brass-light);
  font-size: 0.66em;
}

.foot__tag {
  margin-top: 18px;
  max-width: 34ch;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  color: rgba(244, 240, 230, 0.72);
}

.foot__pub {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 240, 230, 0.36);
}

.foot__col h3 {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 18px;
}

.foot__col a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  transition: color 0.2s var(--ease);
}

.foot__col a:hover {
  color: var(--white);
}

.foot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--rule-light);
  padding: 22px 0 28px;
  position: relative;
  z-index: 1;
}

.foot__base p {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 240, 230, 0.38);
}

.foot__meta {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 240, 230, 0.38);
}

.foot__meta a:hover {
  color: var(--white);
}

/* ---------- sections ---------- */

.section {
  padding: clamp(44px, 6vw, 84px) 0;
  position: relative;
}

.section--ruled {
  border-top: 1px solid var(--rule);
}

.section--tight {
  padding: clamp(32px, 4vw, 56px) 0;
}

.section--short {
  padding: clamp(24px, 3vw, 40px) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: clamp(24px, 3vw, 40px);
}

.section-head--dark {
  border-color: var(--rule-light);
}

.section-head__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.section-head--dark .section-head__title {
  color: var(--white);
}

.section-head__link {
  flex: none;
  padding-bottom: 4px;
}

/* ---------- error page ---------- */

.error {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(60px, 10vw, 120px) 0;
}

.error__code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--oxblood);
  margin-bottom: 22px;
}

.error h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 78px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 18px;
}

.error p {
  max-width: 44ch;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- shared: section head link, forms, empty ---------- */

.section-head__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
  white-space: nowrap;
  transition: color 0.2s var(--ease), gap 0.25s var(--ease);
}

.section-head__link:hover {
  gap: 12px;
}

.section-head--dark .section-head__link {
  color: var(--brass-light);
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="url"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--rule-strong);
  background: rgba(251, 248, 241, 0.7);
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--oxblood);
  background: var(--white);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

label > span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.form-note {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted-2);
  margin-top: 10px;
}

.empty {
  padding: clamp(48px, 7vw, 80px) 0;
  text-align: center;
}

.empty__rule {
  width: 44px;
  height: 1px;
  background: var(--brass);
  margin: 0 auto 22px;
}

.empty h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.empty p {
  font-size: 13.5px;
  color: var(--muted);
}

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

.home-hero {
  position: relative;
  padding: clamp(40px, 5.4vw, 76px) 0 0;
  overflow: hidden;
}

.home-hero__wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(63% - 1px), rgba(20, 17, 13, 0.07) 63%, transparent calc(63% + 1px)),
    radial-gradient(58% 90% at 100% 0%, rgba(168, 128, 63, 0.17), transparent 62%),
    radial-gradient(40% 60% at 0% 100%, rgba(124, 31, 43, 0.05), transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: start;
  position: relative;
  padding-bottom: clamp(36px, 4.4vw, 60px);
}

.home-hero__main {
  padding-top: clamp(4px, 1vw, 14px);
}

.home-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 4.9vw, 72px);
  line-height: 1.01;
  letter-spacing: -0.035em;
  max-width: 19ch;
  text-wrap: balance;
}

.home-hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--oxblood);
}

.home-hero__deck {
  margin-top: clamp(20px, 2.4vw, 30px);
  max-width: 56ch;
  font-family: var(--font-display);
  font-size: clamp(16.5px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
}

.home-hero__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  max-width: 56ch;
}

.home-hero__authors {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.home-hero__doi {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 34px);
}

/* issue card */

.home-hero__side {
  position: relative;
}

.issue-card {
  background: var(--white);
  border: 1px solid var(--rule-strong);
  padding: 16px;
  box-shadow: 18px 18px 0 -1px rgba(20, 17, 13, 0.06);
}

.issue-card__label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-bottom: 10px;
}

.issue-card__cover {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--paper-3);
  overflow: hidden;
}

.issue-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.issue-card__blank {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(20, 17, 13, 0.05) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, var(--paper-2), var(--paper-3));
}

.issue-card__stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 54px;
  height: 54px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oxblood);
  background: rgba(244, 240, 230, 0.9);
  transform: rotate(-8deg);
  line-height: 1.2;
}

.issue-card__stamp span:first-child {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.issue-card__body {
  padding-top: 16px;
}

.issue-card__body h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 7px 0 8px;
}

.issue-card__body p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 16px;
}

/* hero strip */

.hero-strip {
  display: grid;
  grid-template-columns: 150px repeat(3, minmax(0, 1fr)) auto;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  position: relative;
  background: rgba(251, 248, 241, 0.35);
}

.hero-strip__label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 16px 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-strip__rule {
  width: 36px;
  height: 1px;
  background: var(--brass);
}

.hero-strip__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 16px 20px;
  border-left: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.hero-strip__item:hover {
  background: rgba(251, 248, 241, 0.8);
  color: var(--oxblood);
}

.hero-strip__num {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--brass);
  padding-top: 2px;
}

.hero-strip__arrow {
  font-size: 12px;
  color: var(--muted-2);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.hero-strip__item:hover .hero-strip__arrow {
  transform: translate(2px, -2px);
  color: var(--oxblood);
}

.hero-strip__cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 16px 26px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.25s var(--ease);
}

.hero-strip__cta .hero-strip__arrow {
  color: var(--brass-light);
}

.hero-strip__cta:hover {
  background: var(--oxblood);
}

/* ---------- ledger (article rows) ---------- */

.ledger {
  border-top: 1px solid transparent;
}

.ledger__row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 52px;
  gap: clamp(14px, 2vw, 30px);
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background 0.3s var(--ease);
}

.ledger__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--oxblood);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s var(--ease);
}

.ledger__row:hover::before {
  transform: scaleY(1);
}

.ledger__row--compact {
  padding: 16px 0;
}

.ledger__index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--brass);
  padding-top: 5px;
}

.ledger__body {
  min-width: 0;
}

.ledger__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.ledger__date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ledger__doi {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted-2);
}

.ledger__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.022em;
  max-width: 30ch;
}

.ledger__title a {
  transition: color 0.25s var(--ease);
}

.ledger__title a:hover {
  color: var(--oxblood);
}

.ledger__excerpt {
  margin-top: 10px;
  max-width: 74ch;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.ledger__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px dotted var(--rule);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.ledger__authors {
  color: var(--ink-2);
}

.ledger__pages {
  color: var(--muted-2);
}

.ledger__side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ledger__go {
  width: 42px;
  height: 42px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.ledger__go:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: translateX(3px);
}

/* ---------- video band ---------- */

.video-band {
  background: var(--dark);
  color: var(--paper);
  padding: clamp(48px, 6vw, 88px) 0;
  position: relative;
  overflow: hidden;
}

.video-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 100% 100%, rgba(124, 31, 43, 0.28), transparent 60%),
    repeating-linear-gradient(90deg, rgba(244, 240, 230, 0.035) 0 1px, transparent 1px 120px);
  pointer-events: none;
}

.video-band .wrap {
  position: relative;
  z-index: 1;
}

.video-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(24px, 3.4vw, 48px);
  align-items: start;
}

.video-band__lead {
  min-width: 0;
}

.video-band__list {
  display: grid;
  gap: 22px;
}

.video-band__note {
  border-left: 1px solid var(--rule-light);
  padding-left: 18px;
}

.video-band__note p {
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(244, 240, 230, 0.58);
  margin-bottom: 14px;
}

.video-band .arrow-link {
  color: var(--brass-light);
}

/* video card */

.video-card {
  display: block;
  position: relative;
}

.video-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0e0b08;
  overflow: hidden;
  border: 1px solid rgba(244, 240, 230, 0.1);
}

.video-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  filter: saturate(0.85) contrast(1.05);
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
}

.video-card:hover .video-card__media img {
  opacity: 1;
  transform: scale(1.035);
}

.video-card__blank {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(244, 240, 230, 0.06) 0 1px, transparent 1px 18px),
    linear-gradient(150deg, #2a2218, #0e0b08);
}

.video-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.3s var(--ease);
}

.video-card:hover .video-card__play {
  background: var(--oxblood);
  color: var(--paper);
  transform: translate(-50%, -50%) scale(1.08);
}

.video-card__time {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 6px;
  background: rgba(14, 11, 8, 0.78);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.video-card__body {
  padding-top: 14px;
}

.video-card__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 8px;
}

.video-card__rule {
  flex: 1;
  height: 1px;
  background: var(--rule-light);
}

.video-card__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--white);
  transition: color 0.25s var(--ease);
}

.video-card--lg .video-card__title {
  font-size: clamp(24px, 2.6vw, 32px);
}

.video-card:hover .video-card__title {
  color: var(--brass-light);
}

.video-card__note {
  margin-top: 5px;
  font-size: 11.5px;
  color: rgba(244, 240, 230, 0.5);
}

/* ---------- impact ---------- */

.impact {
  background:
    linear-gradient(180deg, rgba(236, 230, 216, 0.7), rgba(244, 240, 230, 0.2)),
    var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.impact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.impact__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  max-width: 16ch;
}

.impact__copy p {
  max-width: 52ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

.impact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 24px;
}

.impact__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: 1px solid var(--rule-strong);
}

.stat {
  padding: clamp(18px, 2.4vw, 30px);
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

.stat:nth-child(2n) {
  border-right: 0;
}

.stat:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.stat__note {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted-2);
}

/* ---------- discussion preview + subscribe ---------- */

.discussion-preview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.quote-list {
  border-top: 1px solid var(--rule-strong);
}

.quote {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.quote__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quote__author {
  color: var(--oxblood);
}

.quote__date {
  color: var(--muted-2);
}

.quote__body {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

.quote__source {
  font-size: 12px;
  color: var(--muted);
}

.quote__source em {
  font-style: normal;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
}

.quote__source:hover em {
  color: var(--oxblood);
  border-color: var(--oxblood);
}

.subscribe-card {
  position: sticky;
  top: 24px;
  background: var(--dark);
  color: var(--paper);
  padding: clamp(24px, 3vw, 36px);
  overflow: hidden;
  position: relative;
}

.subscribe-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  top: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 128, 63, 0.32), transparent 65%);
  pointer-events: none;
}

.subscribe-card .kicker {
  color: var(--brass-light);
  margin-bottom: 14px;
}

.subscribe-card__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.subscribe-card > p {
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(244, 240, 230, 0.6);
  position: relative;
  z-index: 1;
}

.subscribe-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 22px;
  border-bottom: 1px solid var(--rule-light);
  position: relative;
  z-index: 1;
}

.subscribe-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  padding: 12px 0;
  font-size: 14px;
}

.subscribe-form input::placeholder {
  color: rgba(244, 240, 230, 0.35);
}

.subscribe-form input:focus {
  outline: none;
  background: transparent;
}

.subscribe-form .btn {
  flex: none;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  padding: 10px 16px;
  font-size: 9.5px;
}

.subscribe-form .btn:hover {
  background: var(--oxblood);
  border-color: var(--oxblood);
  color: var(--paper);
}

.subscribe-card .form-note {
  color: rgba(244, 240, 230, 0.38);
  position: relative;
  z-index: 1;
}

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

.page-hero {
  padding: clamp(44px, 6vw, 84px) 0 clamp(28px, 3.4vw, 44px);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(168, 128, 63, 0.12), transparent 60%),
    linear-gradient(90deg, transparent calc(63% - 1px), rgba(20, 17, 13, 0.06) 63%, transparent calc(63% + 1px));
  pointer-events: none;
}

.page-hero--short {
  padding-top: clamp(32px, 4vw, 56px);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
  position: relative;
}

.page-hero__main {
  min-width: 0;
}

.page-hero__main .display {
  max-width: 22ch;
  text-wrap: balance;
}

.page-hero__lede {
  margin-top: 18px;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

.page-hero__aside {
  flex: none;
}

.count-block {
  text-align: right;
  border-left: 1px solid var(--rule-strong);
  padding-left: clamp(18px, 2.4vw, 30px);
}

.count-block__num {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 66px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--oxblood);
  font-variant-numeric: tabular-nums;
}

.count-block__label {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- listing toolbar ---------- */

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: 4px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.filter-tabs__tab {
  padding: 13px 16px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.filter-tabs__tab:hover {
  color: var(--ink);
}

.filter-tabs__tab.is-active {
  color: var(--oxblood);
  border-color: var(--oxblood);
}

.searchbar {
  display: flex;
  align-items: center;
  border: 1px solid var(--rule-strong);
  background: rgba(251, 248, 241, 0.6);
  width: min(320px, 100%);
}

.searchbar input {
  border: 0;
  background: transparent;
  padding: 9px 12px;
  font-size: 13px;
}

.searchbar input:focus {
  background: transparent;
}

.searchbar button {
  width: 42px;
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--rule);
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.searchbar button:hover {
  background: var(--ink);
  color: var(--paper);
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
  margin: clamp(24px, 3vw, 40px) 0 8px;
}

.issue-tile {
  display: block;
  background: var(--white);
  border: 1px solid var(--rule);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.issue-tile:hover {
  border-color: var(--rule-strong);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.issue-tile__cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-3);
}

.issue-tile__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.issue-tile__body {
  padding: 16px 18px 20px;
}

.issue-tile__body h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 6px 0 8px;
}

.issue-tile__body p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 12px;
}

.issue-tile__link {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oxblood);
}

/* pagination */

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.pagination__btn {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--rule-strong);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.pagination__btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.pagination__btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.pagination__status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pagination__status strong {
  color: var(--ink);
}

/* ---------- responsive: home + listing ---------- */

@media (max-width: 1080px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 36px;
  }

  .hero-strip {
    grid-template-columns: 130px repeat(3, minmax(0, 1fr));
  }

  .hero-strip__cta {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-top: 1px solid rgba(244, 240, 230, 0.12);
  }

  .video-band__grid {
    grid-template-columns: 1fr;
  }

  .video-band__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .video-band__note {
    grid-column: 1 / -1;
  }

  .impact__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .impact__stats {
    border-left: 0;
  }

  .discussion-preview__grid {
    grid-template-columns: 1fr;
  }

  .subscribe-card {
    position: relative;
    top: 0;
  }
}

@media (max-width: 860px) {
  .home-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-hero__title {
    max-width: none;
  }

  .home-hero__side {
    max-width: 340px;
  }

  .hero-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-strip__label {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
  }

  .hero-strip__item {
    border-top: 1px solid var(--rule);
  }

  .hero-strip__item:nth-child(2) {
    border-left: 0;
  }

  .ledger__row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .ledger__side {
    display: none;
  }

  .issue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero__grid {
    grid-template-columns: 1fr;
  }

  .count-block {
    text-align: left;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: 12px;
  }

  .list-toolbar {
    align-items: stretch;
  }

  .searchbar {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .home-hero {
    padding-top: 28px;
  }

  .home-hero__title {
    font-size: clamp(32px, 9vw, 44px);
  }

  .home-hero__actions .btn {
    flex: 1;
    justify-content: center;
  }

  .hero-strip {
    grid-template-columns: 1fr;
  }

  .hero-strip__item {
    border-left: 0;
  }

  .video-band__list {
    grid-template-columns: 1fr;
  }

  .impact__stats {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--rule) !important;
  }

  .stat:last-child {
    border-bottom: 0 !important;
  }

  .issue-grid {
    grid-template-columns: 1fr;
  }

  .filter-tabs__tab {
    padding: 11px 10px;
    font-size: 8.5px;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .pagination__status {
    order: -1;
    width: 100%;
    text-align: center;
  }
}

/* ---------- article ---------- */

.article-head {
  padding: clamp(26px, 3.4vw, 44px) 0 0;
  border-bottom: 1px solid var(--rule-strong);
  position: relative;
  overflow: hidden;
}

.article-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 90% at 100% 0%, rgba(168, 128, 63, 0.13), transparent 60%),
    linear-gradient(90deg, transparent calc(63% - 1px), rgba(20, 17, 13, 0.05) 63%, transparent calc(63% + 1px));
  pointer-events: none;
}

.article-head .wrap {
  position: relative;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: clamp(22px, 3vw, 34px);
}

.breadcrumbs a:hover {
  color: var(--oxblood);
}

.breadcrumbs__current {
  color: var(--ink-2);
}

.article-kicker {
  margin-bottom: 16px;
}

.article-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.032em;
  max-width: 24ch;
  text-wrap: balance;
}

.article-subtitle {
  margin-top: 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.4;
  color: var(--muted);
  max-width: 52ch;
}

.article-byline {
  margin-top: clamp(22px, 2.8vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-authors {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 14.5px;
  font-weight: 500;
}

.article-author a {
  border-bottom: 1px dotted var(--rule-strong);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.article-author a:hover {
  color: var(--oxblood);
  border-color: var(--oxblood);
}

.article-author sup {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--brass);
  margin-left: 1px;
}

.article-author__sep {
  color: var(--muted-2);
  margin-right: 2px;
}

.article-affiliations {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.article-affiliations sup {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--brass);
  margin-right: 4px;
}

.article-metabar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: clamp(22px, 2.8vw, 32px);
  padding: 13px 0;
  border-top: 1px solid var(--rule);
}

.metabar__item {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.metabar__item[href]:hover .metabar__value {
  color: var(--oxblood);
}

.metabar__label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.metabar__value {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}

.metabar__spacer {
  flex: 1;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 4.6vw, 72px);
  padding-top: clamp(32px, 4vw, 52px);
  align-items: start;
}

.article-main {
  min-width: 0;
}

/* abstract */

.abstract {
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--oxblood);
  padding: clamp(20px, 2.6vw, 30px);
  position: relative;
}

.abstract__label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 12px;
}

.abstract__text {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--ink-2);
  max-width: 66ch;
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dotted var(--rule);
}

.keywords__label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-right: 4px;
}

.keyword {
  padding: 3px 8px;
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.keyword:hover {
  border-color: var(--oxblood);
  color: var(--oxblood);
  background: rgba(124, 31, 43, 0.04);
}

/* article body */

.article-body {
  margin-top: clamp(28px, 3.4vw, 40px);
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.article-body > * + * {
  margin-top: 1.15em;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin-top: 1.9em;
  padding-top: 0.5em;
  border-top: 1px solid var(--rule);
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 1.6em;
}

.article-body h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-top: 1.5em;
}

.article-body a {
  color: var(--oxblood);
  border-bottom: 1px solid rgba(124, 31, 43, 0.35);
}

.article-body a:hover {
  border-color: var(--oxblood);
}

.article-body strong {
  color: var(--ink);
  font-weight: 600;
}

.article-body blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--brass);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
}

.article-body blockquote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
}

.article-body ul li,
.article-body ol li {
  margin: 0.45em 0;
  padding-left: 4px;
}

.article-body ul li::marker {
  color: var(--brass);
}

.article-body ol li::marker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--oxblood);
}

.article-body figure {
  margin: 1.8em 0;
}

.article-body figure img {
  width: 100%;
  border: 1px solid var(--rule);
}

.article-body figcaption {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
}

.article-body th,
.article-body td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--rule-strong);
}

.article-body hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 2.4em auto;
  width: 40%;
}

.article-body pre {
  background: var(--dark);
  color: var(--paper);
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(20, 17, 13, 0.06);
  padding: 1px 5px;
}

.article-body pre code {
  background: none;
  padding: 0;
}

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding: 20px 24px;
  border: 1px solid var(--rule-strong);
  background: var(--paper-2);
}

.callout p {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink-2);
}

/* references + supplementary */

.section-h {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 27px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.refs {
  margin-top: clamp(38px, 4.6vw, 54px);
}

.refs__list {
  counter-reset: ref;
}

.refs__list li {
  counter-increment: ref;
  position: relative;
  padding: 11px 0 11px 38px;
  border-bottom: 1px dotted var(--rule);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

.refs__list li::before {
  content: "[" counter(ref) "]";
  position: absolute;
  left: 0;
  top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--brass);
}

.refs__list a {
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
}

.refs__list a:hover {
  color: var(--oxblood);
  border-color: var(--oxblood);
}

.supp {
  margin-top: clamp(34px, 4vw, 44px);
}

.supp__list {
  display: grid;
  gap: 8px;
}

.supp__list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: rgba(251, 248, 241, 0.6);
  font-size: 13px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.supp__list a:hover {
  border-color: var(--oxblood);
  background: var(--white);
}

.supp__icon {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
}

.supp__list em {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted-2);
  margin-top: 2px;
}

/* cite */

.cite {
  margin-top: clamp(38px, 4.6vw, 54px);
}

.cite__tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule-strong);
}

.cite__tab {
  padding: 9px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cite__tab:hover {
  color: var(--ink);
}

.cite__tab.is-active {
  color: var(--oxblood);
  border-color: var(--oxblood);
}

.cite__panel {
  position: relative;
  background: var(--paper-2);
  padding: 20px 90px 20px 22px;
  border: 1px solid var(--rule);
  border-top: 0;
}

.cite__text {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--ink-2);
  word-break: break-word;
}

.cite__copy {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  border: 1px solid var(--rule-strong);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cite__copy:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* comments */

.comments {
  margin-top: clamp(44px, 5.4vw, 64px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--rule-strong);
}

.comments__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.comments__head .section-h {
  margin-bottom: 0;
}

.comments__head .section-h::after {
  display: none;
}

.comments__count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.comments__intro {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
}

.comments__thread {
  margin-top: 10px;
}

.comment-group {
  border-bottom: 1px solid var(--rule);
  padding: 6px 0;
}

.comment {
  padding: 14px 0;
}

.comment--child {
  margin-left: 26px;
  padding-left: 18px;
  border-left: 1px solid var(--rule);
}

.comment__head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.comment__author {
  color: var(--ink);
  font-weight: 500;
}

.comment__date {
  color: var(--muted-2);
}

.comment__body {
  margin: 8px 0 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 66ch;
  white-space: pre-wrap;
}

.comment__reply {
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.comment__reply:hover {
  color: var(--oxblood);
}

.comment-form {
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: clamp(18px, 2.6vw, 26px);
}

.comment-form__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.comment-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-form > label {
  display: block;
  margin-bottom: 12px;
}

.comment-form__reply {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--muted);
}

.comment-form__reply button {
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oxblood);
  cursor: pointer;
}

.turnstile {
  margin: 4px 0 14px;
  min-height: 0;
}

/* article rail */

.article-rail {
  min-width: 0;
}

.rail-card {
  border: 1px solid var(--rule-strong);
  padding: 18px;
  margin-bottom: 18px;
  background: rgba(251, 248, 241, 0.45);
}

.rail-card--pdf {
  background: var(--white);
}

.rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}

.rail-head__count {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-2);
}

.rail-pdf {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 12.5px;
  line-height: 1.35;
  transition: color 0.2s var(--ease);
}

.rail-pdf:hover {
  color: var(--oxblood);
}

.rail-pdf__icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--oxblood);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.rail-pdf em {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted-2);
  margin-top: 2px;
}

.rail-pdf__arrow {
  margin-left: auto;
  font-size: 16px;
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.rail-pdf:hover .rail-pdf__arrow {
  transform: translateY(3px);
  color: var(--oxblood);
}

.rail-copy {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--rule);
  background: none;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.rail-copy:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.rail-videos {
  display: flex;
  flex-direction: column;
}

.rail-video {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  text-align: left;
  cursor: pointer;
}

.rail-video:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.rail-video__media {
  position: relative;
  width: 74px;
  aspect-ratio: 16 / 9;
  flex: none;
  overflow: hidden;
  background: var(--dark);
}

.rail-video__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.25s var(--ease), transform 0.4s var(--ease);
}

.rail-video:hover .rail-video__media img {
  opacity: 1;
  transform: scale(1.05);
}

.rail-video__blank {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(244, 240, 230, 0.07) 0 1px, transparent 1px 12px),
    var(--dark-2);
}

.rail-video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 7px;
  display: grid;
  place-items: center;
}

.rail-video__body {
  min-width: 0;
}

.rail-video__title {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  transition: color 0.2s var(--ease);
}

.rail-video:hover .rail-video__title {
  color: var(--oxblood);
}

.rail-video__time {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-2);
}

.rail-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  padding-top: 8px;
}

.impact-rows {
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

.impact-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: baseline;
  gap: 2px 10px;
}

.impact-row__num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.impact-row__label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.impact-row__bar {
  grid-column: 1 / -1;
  height: 3px;
  background: var(--paper-3);
  overflow: hidden;
}

.impact-row__bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--oxblood), var(--brass));
  transform-origin: left;
  animation: bar-grow 0.9s var(--ease) both;
}

@keyframes bar-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.author-mini {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.author-mini:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.author-mini__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.author-mini__aff {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.author-mini__bio {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.author-mini__orcid {
  display: inline-block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--oxblood);
}

.related-list {
  display: flex;
  flex-direction: column;
}

.related-item {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}

.related-item:last-child {
  border-bottom: 0;
}

.related-item__title {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.2s var(--ease);
}

.related-item:hover .related-item__title {
  color: var(--oxblood);
}

.related-item__meta {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted-2);
}

/* ---------- video modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 11, 8, 0.86);
  backdrop-filter: blur(3px);
}

.modal__panel {
  position: relative;
  width: min(920px, 100%);
  background: var(--dark);
  color: var(--paper);
  border: 1px solid rgba(244, 240, 230, 0.14);
  box-shadow: var(--shadow);
}

.modal__frame {
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal__frame iframe,
.modal__frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.modal__meta {
  padding: 16px 20px;
}

.modal__kicker {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 5px;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.modal__article {
  margin-top: 3px;
  font-size: 11.5px;
  color: rgba(244, 240, 230, 0.5);
}

.modal__transcript {
  max-height: 180px;
  overflow: auto;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule-light);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(244, 240, 230, 0.66);
}

.modal__transcript[hidden] {
  display: none;
}

.modal__close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(244, 240, 230, 0.3);
  background: rgba(14, 11, 8, 0.6);
  color: var(--paper);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.modal__close:hover {
  background: var(--paper);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .impact-row__bar i {
    animation: none;
  }
}

/* ---------- responsive: article ---------- */

@media (max-width: 1080px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 36px;
  }

  .rail-video__media {
    width: 62px;
  }
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 8px;
  }

  .rail-card {
    margin-bottom: 0;
  }

  .rail-card--authors,
  .rail-card--related {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .article-title {
    font-size: clamp(28px, 8.4vw, 38px);
  }

  .article-metabar {
    gap: 10px 20px;
  }

  .article-metabar .btn {
    width: 100%;
    justify-content: center;
  }

  .article-body {
    font-size: 16px;
  }

  .comment-form__grid {
    grid-template-columns: 1fr;
  }

  .comment--child {
    margin-left: 14px;
    padding-left: 12px;
  }

  .article-rail {
    grid-template-columns: 1fr;
  }

  .cite__panel {
    padding: 20px 18px 52px;
  }

  .cite__copy {
    top: auto;
    bottom: 12px;
  }

  .modal {
    padding: 0;
  }

  .modal__panel {
    width: 100%;
    max-height: 100vh;
    overflow: auto;
  }
}

/* ---------- site shell bits ---------- */

.site-main {
  min-height: 55vh;
}

.mobile-nav[hidden] {
  display: none;
}

.rail-card--video {
  background: var(--paper-2);
}

.rail-card--impact {
  background: var(--white);
  border-top: 2px solid var(--oxblood);
}

/* ---------- video journal page ---------- */

.video-hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--paper);
  padding: clamp(52px, 7vw, 96px) 0 clamp(44px, 5.5vw, 72px);
  border-bottom: 1px solid var(--rule);
}

.video-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(124, 31, 43, 0.5), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(168, 128, 63, 0.18), transparent 60%);
  pointer-events: none;
}

.video-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(244, 240, 230, 0.035) 0 1px, transparent 1px 96px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 80%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 80%);
  pointer-events: none;
}

.video-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}

.video-hero .display {
  max-width: 18ch;
}

.video-hero .display em {
  font-style: italic;
  color: var(--brass-light);
}

.video-hero__lede {
  margin-top: 22px;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(244, 240, 230, 0.72);
}

.video-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(20px, 3vw, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--rule-light);
}

.video-hero__stats > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.video-hero__num {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brass-light);
  font-variant-numeric: tabular-nums;
}

.video-hero__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 240, 230, 0.5);
}

.video-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.6fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: start;
  padding-bottom: clamp(40px, 5.5vw, 72px);
  border-bottom: 1px solid var(--rule);
}

.video-feature__side .kicker {
  margin-bottom: 14px;
}

.video-feature__side .section-head__title {
  margin-bottom: 16px;
}

.video-feature__side p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 14px;
}

.video-feature__note {
  padding-left: 16px;
  border-left: 2px solid var(--brass);
  font-size: 12.5px !important;
  line-height: 1.6 !important;
  color: var(--muted-2) !important;
}

.video-feature__side .arrow-link {
  margin-top: 10px;
}

.video-groups {
  display: grid;
  gap: clamp(48px, 6vw, 84px);
  margin-top: clamp(40px, 5.5vw, 72px);
}

.video-group__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 32px;
  align-items: end;
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--rule-strong);
}

.video-group__head .kicker {
  grid-column: 1 / -1;
  margin-bottom: 6px;
}

.video-group__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 32ch;
}

.video-group__authors {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: right;
  padding-bottom: 4px;
}

.video-group__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* ---------- prose pages (about, ethics, for authors) ---------- */

.prose-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}

.prose-toc {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule-strong);
}

.prose-toc .mono-label {
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--rule);
}

.prose-toc a {
  font-size: 12.5px;
  line-height: 1.4;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  transition: color 0.2s var(--ease), padding-left 0.25s var(--ease);
}

.prose-toc a:hover {
  color: var(--oxblood);
  padding-left: 8px;
}

.prose {
  max-width: 70ch;
  min-width: 0;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 46px 0 16px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 110px;
  text-wrap: balance;
}

.prose > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 30px 0 12px;
}

.prose p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.prose > p:last-child {
  margin-bottom: 0;
}

.prose ul {
  margin: 4px 0 22px;
}

.prose li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 11px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 10px;
  height: 1px;
  background: var(--oxblood);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a {
  color: var(--oxblood);
  border-bottom: 1px solid rgba(124, 31, 43, 0.35);
}

.prose a:hover {
  border-color: var(--oxblood);
}

.prose a.btn {
  border-bottom: 1px solid transparent;
}

.prose__foot {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-strong);
}

.prose__foot p {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 6px 0 0;
}

.callout--paper,
.callout--ink {
  display: block;
  margin: 28px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--brass);
  background: var(--white);
}

.callout--paper p,
.callout--ink p {
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.callout--paper .mono-label,
.callout--ink .mono-label {
  display: block;
  margin-bottom: 8px;
}

.callout--ink {
  background: var(--ink);
  border-color: var(--ink);
  border-left-color: var(--brass);
}

.callout--ink p,
.callout--ink strong {
  color: var(--paper);
}

.callout--ink .mono-label {
  color: var(--brass-light);
}

.callout--ink a {
  color: var(--brass-light);
}

.side-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  min-width: 320px;
  border-top: 1px solid var(--rule-strong);
}

.side-facts > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 18px 13px 0;
  border-bottom: 1px solid var(--rule);
}

.side-facts strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}

.cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 3.5vw, 48px);
  background: var(--ink);
  color: var(--paper);
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(201, 168, 106, 0.35);
  transform: rotate(45deg);
  pointer-events: none;
}

.cta-band .kicker {
  margin-bottom: 10px;
  color: rgba(244, 240, 230, 0.6);
}

.cta-band .section-head__title {
  color: var(--paper);
  max-width: 26ch;
  font-size: clamp(22px, 2.4vw, 32px);
}

.cta-band .btn {
  flex: none;
  position: relative;
  z-index: 1;
}

.cta-band .btn--solid {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.cta-band .btn--solid:hover {
  background: var(--brass-light);
  border-color: var(--brass-light);
}

.cta-band--quiet {
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--rule);
}

.cta-band--quiet::after {
  border-color: rgba(124, 31, 43, 0.25);
}

.cta-band--quiet .kicker {
  color: var(--muted);
}

.cta-band__text {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.45;
  max-width: 50ch;
}

/* ---------- editorial board ---------- */

.board-group {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--rule-strong);
}

.board-group:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.board-group__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 22px;
}

.board-group__role {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.board-group__count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.board-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 190px;
  padding: 22px 20px 20px;
  background: var(--paper);
  transition: background 0.25s var(--ease);
}

.board-card:hover {
  background: var(--white);
}

.board-card__initial {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--oxblood);
}

.board-card__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.board-card__aff {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.board-card__country {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.board-card__orcid {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--brass);
}

.board-card__orcid:hover {
  color: var(--oxblood);
}

/* ---------- discussion page ---------- */

.discussion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.discussion-feed {
  border-top: 1px solid var(--rule-strong);
}

.discussion-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.discussion-item__meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
}

.discussion-item__author {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
}

.discussion-item__date {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

.discussion-item__body {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.discussion-item__source {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.discussion-item__source em {
  font-style: italic;
  color: var(--oxblood);
}

.discussion-form-card {
  position: sticky;
  top: 24px;
  padding: 26px 24px 28px;
  border: 1px solid var(--rule-strong);
  background: var(--white);
}

.discussion-form-card .kicker {
  margin-bottom: 12px;
}

.discussion-form-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.discussion-form-card > p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 18px;
}

.discussion-preview {
  background: linear-gradient(180deg, rgba(236, 230, 216, 0.55), transparent 80%);
}

.discussion-preview__main {
  min-width: 0;
}

/* ---------- contact page ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  border-top: 1px solid var(--rule-strong);
}

.contact-block {
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--rule);
}

.contact-block > a {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--oxblood);
  border-bottom: 1px solid rgba(124, 31, 43, 0.35);
}

.contact-block p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.contact-block--ink {
  grid-column: 1 / -1;
  padding: 18px 22px;
  border: 0;
  background: var(--ink);
}

.contact-block--ink p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  color: rgba(244, 240, 230, 0.78);
}

.contact-form-card {
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--rule-strong);
  background: var(--white);
}

.contact-form-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 56px;
  height: 3px;
  background: var(--oxblood);
}

.contact-form-card .section-head__title {
  font-size: 26px;
  margin-bottom: 22px;
}

.stack-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* ---------- subscribe page ---------- */

.subscribe-page {
  display: grid;
  justify-items: center;
  max-width: 680px;
  margin: 0 auto;
}

.subscribe-page .callout {
  display: block;
  width: 100%;
  margin: 0 0 24px;
  text-align: left;
}

.subscribe-form--page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--rule-strong);
  background: var(--white);
}

.subscribe-form--page input {
  padding: 12px 14px;
  color: var(--ink);
  font-size: 16px;
}

.subscribe-form--page input::placeholder {
  color: var(--muted-2);
}

.subscribe-form--page .btn {
  padding: 14px 22px;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.subscribe-form--page .btn:hover {
  background: var(--oxblood);
  border-color: var(--oxblood);
}

.subscribe-page .form-note {
  width: 100%;
}

/* ---------- issue detail ---------- */

.issue-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(251, 248, 241, 0.5), transparent);
}

.issue-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 100% 0%, rgba(124, 31, 43, 0.08), transparent 60%);
  pointer-events: none;
}

.issue-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.issue-hero__cover {
  border: 1px solid var(--rule-strong);
  box-shadow: var(--shadow);
  background: var(--paper-2);
}

.issue-hero__cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.issue-hero__body .kicker {
  margin-bottom: 12px;
}

.issue-hero__body .display {
  max-width: 24ch;
}

.issue-hero__date {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.issue-hero__desc {
  max-width: 60ch;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
}

.issue-hero__facts {
  display: flex;
  gap: 40px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-strong);
}

.issue-hero__facts > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.issue-hero__facts strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}

/* ---------- responsive: shell + part 3 ---------- */

@media (max-width: 1080px) {
  .board-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .video-feature {
    grid-template-columns: 1fr;
  }

  .video-feature__side {
    max-width: 60ch;
  }

  .contact-layout,
  .discussion-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

@media (max-width: 960px) {
  .masthead__in {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .prose-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .prose-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 18px;
    border-top: 0;
  }

  .prose-toc .mono-label {
    width: 100%;
    padding: 0 0 6px;
    border: 0;
  }

  .prose-toc a {
    padding: 2px 0;
    border: 0;
    font-size: 12px;
  }

  .prose-toc a:hover {
    padding-left: 0;
    text-decoration: underline;
  }

  .contact-layout,
  .discussion-layout {
    grid-template-columns: 1fr;
  }

  .discussion-form-card,
  .contact-form-card {
    position: static;
  }

  .issue-hero__grid {
    grid-template-columns: 160px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .video-hero__grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .video-hero__stats {
    justify-content: start;
  }

  .video-group__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-group__head {
    grid-template-columns: 1fr;
  }

  .video-group__authors {
    text-align: left;
  }

  .board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .issue-hero__grid {
    grid-template-columns: 1fr;
  }

  .issue-hero__cover {
    max-width: 200px;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .contact-block--ink {
    grid-column: auto;
  }

  .side-facts {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .video-hero {
    padding-top: 40px;
  }

  .video-hero__stats {
    grid-template-columns: repeat(3, auto);
    gap: 18px;
  }

  .video-group__grid,
  .board-grid {
    grid-template-columns: 1fr;
  }

  .board-card {
    min-height: 0;
  }

  .form-grid,
  .subscribe-form--page {
    grid-template-columns: 1fr;
  }

  .subscribe-form--page .btn {
    justify-content: center;
  }

  .issue-hero__facts {
    gap: 28px;
  }
}

/* ============================================================
   Part 4A — Admin: shell, sidebar, cards, stats, chart, badges
   ============================================================ */

body.admin {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
  background: var(--paper-2);
  background-image: none;
  color: var(--ink);
}

/* top bar */

.admin__topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 60px;
  padding: 0 22px;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(244, 240, 230, 0.1);
}

.admin__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(201, 168, 106, 0.6);
  color: var(--brass-light);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.admin__brandtext {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.admin__brandtext strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}

.admin__brandtext em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-light);
}

.admin__topright {
  display: flex;
  align-items: center;
  gap: 18px;
}

.admin__view {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 240, 230, 0.7);
}

.admin__view:hover {
  color: var(--white);
}

.admin__who {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin__avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--oxblood);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
}

.admin__who > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.admin__who strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
}

.admin__who em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-light);
}

.admin__logout .abtn--ghost {
  border-color: rgba(244, 240, 230, 0.2);
  color: rgba(244, 240, 230, 0.7);
}

.admin__logout .abtn--ghost:hover {
  border-color: var(--paper);
  color: var(--paper);
  background: rgba(244, 240, 230, 0.06);
}

/* shell: nav + main */

.admin__shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
}

.admin__nav {
  position: sticky;
  top: 60px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px);
  padding: 16px 0 20px;
  background: var(--paper);
  border-right: 1px solid var(--rule);
  overflow-y: auto;
}

.admin__navlink {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: color 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.admin__navlink:hover {
  color: var(--ink);
  background: rgba(20, 17, 13, 0.03);
}

.admin__navlink.is-active {
  color: var(--oxblood);
  border-left-color: var(--oxblood);
  background: rgba(124, 31, 43, 0.06);
}

.admin__navicon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.admin__navicon::before,
.admin__navicon::after {
  content: "";
  position: absolute;
  color: inherit;
}

.admin__navicon[data-icon="grid"]::before {
  left: 1px;
  top: 1px;
  width: 5px;
  height: 5px;
  background: currentColor;
  box-shadow: 7px 0 0 currentColor, 0 7px 0 currentColor, 7px 7px 0 currentColor;
}

.admin__navicon[data-icon="doc"]::before {
  inset: 1px 2px;
  border: 1.2px solid currentColor;
}

.admin__navicon[data-icon="doc"]::after {
  left: 4px;
  right: 4px;
  top: 5px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 3px 0 currentColor;
}

.admin__navicon[data-icon="play"]::before {
  inset: 1px;
  background: currentColor;
  clip-path: polygon(25% 0, 100% 50%, 25% 100%);
}

.admin__navicon[data-icon="layers"]::before {
  inset: 1px 3px 5px 0;
  border: 1.2px solid currentColor;
  transform: skewX(-20deg);
}

.admin__navicon[data-icon="layers"]::after {
  inset: 5px 0 0 3px;
  border: 1.2px solid currentColor;
  transform: skewX(-20deg);
  opacity: 0.45;
}

.admin__navicon[data-icon="users"]::before {
  left: 4px;
  top: 0;
  width: 6px;
  height: 6px;
  border: 1.2px solid currentColor;
  border-radius: 50%;
}

.admin__navicon[data-icon="users"]::after {
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 5px;
  border: 1.2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 6px 6px;
}

.admin__navicon[data-icon="chat"]::before {
  inset: 0 0 3px 0;
  border: 1.2px solid currentColor;
  border-radius: 2px;
}

.admin__navicon[data-icon="chat"]::after {
  left: 3px;
  bottom: 0;
  width: 4px;
  height: 4px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.admin__navicon[data-icon="mail"]::before {
  inset: 2px 0;
  border: 1.2px solid currentColor;
}

.admin__navicon[data-icon="mail"]::after {
  left: 2px;
  right: 2px;
  top: 3px;
  height: 5px;
  background: currentColor;
  clip-path: polygon(0 0, 50% 60%, 100% 0, 100% 25%, 50% 85%, 0 25%);
}

.admin__navicon[data-icon="inbox"]::before {
  inset: 0;
  background: currentColor;
  clip-path: polygon(0 100%, 100% 100%, 100% 30%, 72% 30%, 60% 55%, 40% 55%, 28% 30%, 0 30%);
}

.admin__navicon[data-icon="chart"]::before {
  left: 1px;
  bottom: 1px;
  width: 3px;
  height: 6px;
  background: currentColor;
  box-shadow: 5px -4px 0 currentColor, 10px -8px 0 currentColor;
}

.admin__navicon[data-icon="cog"]::before {
  inset: 2px;
  border: 1.2px solid currentColor;
  border-radius: 50%;
}

.admin__navicon[data-icon="cog"]::after {
  inset: 5px;
  background: currentColor;
  border-radius: 50%;
}

.admin__navicon[data-icon="key"]::before {
  left: 0;
  top: 1px;
  width: 7px;
  height: 7px;
  border: 1.2px solid currentColor;
  border-radius: 50%;
}

.admin__navicon[data-icon="key"]::after {
  left: 7px;
  right: 0;
  top: 4px;
  height: 1.2px;
  background: currentColor;
  box-shadow: -2px 3px 0 currentColor;
}

.admin__navfoot {
  display: grid;
  gap: 3px;
  margin-top: auto;
  padding: 16px 18px 0;
  border-top: 1px solid var(--rule);
}

.admin__navfoot .mono-label {
  font-size: 8.5px;
}

.admin__navfoot p {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted-2);
}

.admin__main {
  min-width: 0;
  padding: 22px clamp(20px, 3vw, 44px) 60px;
}

.admin__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--rule-strong);
}

.admin__head .kicker {
  margin-bottom: 8px;
}

.admin__headactions {
  display: flex;
  align-items: center;
  flex: none;
  gap: 10px;
}

.admin__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.admin__lede {
  max-width: 62ch;
  margin-bottom: 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

.admin__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 18px;
}

.admin__filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.admin__statgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.admin__statgrid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* cards */

.acard {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 22px 22px 24px;
  margin-bottom: 16px;
}

.acard::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 40px;
  height: 2px;
  background: var(--oxblood);
}

.acard__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.acard__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.acard__head .acard__title {
  margin-bottom: 0;
}

.acard__title--light {
  color: var(--white);
}

.acard--ink {
  background: var(--ink);
  border-color: var(--ink);
}

.acard--ink::before {
  background: var(--brass);
}

.acopy {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 16px;
}

.acopy--light {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(244, 240, 230, 0.72);
}

/* stats */

.astat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 18px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
}

.astat__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.astat__value {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.astat__note {
  font-size: 11.5px;
  color: var(--muted);
}

/* chart */

.achart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 160px;
  padding-top: 18px;
  border-bottom: 1px solid var(--rule-strong);
}

.achart--wide {
  height: 200px;
}

.achart__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
  min-width: 0;
}

.achart__bar {
  width: 100%;
  max-width: 28px;
  min-height: 2px;
  background: var(--ink);
  transition: background 0.2s var(--ease);
}

.achart__col:hover .achart__bar {
  background: var(--oxblood);
}

.achart__value {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
}

.achart__day {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--muted-2);
  white-space: nowrap;
}

/* dashboard feed */

.afeed {
  list-style: none;
}

.afeed li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}

.afeed li:last-child {
  border-bottom: 0;
}

.afeed__index {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  padding-top: 3px;
}

.afeed__title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.afeed__title:hover {
  color: var(--oxblood);
}

.afeed li p {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

.afeed__date {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted-2);
  white-space: nowrap;
  padding-top: 3px;
}

/* badges */

.abadge {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  color: var(--muted);
  background: transparent;
  cursor: default;
}

.abadge--published,
.abadge--approved,
.abadge--sent {
  border-color: rgba(63, 107, 74, 0.5);
  color: var(--green);
}

.abadge--online_first,
.abadge--scheduled,
.abadge--pending,
.abadge--queued {
  border-color: rgba(154, 106, 30, 0.5);
  color: var(--amber);
}

.abadge--draft,
.abadge--unsubscribed,
.abadge--inactive,
.abadge--skipped {
  color: var(--muted-2);
}

.abadge--spam,
.abadge--rejected,
.abadge--failed {
  border-color: rgba(142, 43, 37, 0.5);
  color: var(--red);
}

.abadge--new,
.abadge--read,
.abadge--archived {
  border-color: var(--rule-strong);
  color: var(--ink);
}

.abadge--role-admin {
  border-color: var(--oxblood);
  color: var(--oxblood);
}

.abadge--role-editor {
  border-color: rgba(168, 128, 63, 0.6);
  color: var(--brass);
}

.abadge--role-ops {
  border-color: var(--rule-strong);
  color: var(--ink);
}

/* admin buttons */

.abtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.abtn--solid {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.abtn--solid:hover {
  background: var(--oxblood);
  border-color: var(--oxblood);
}

.abtn--outline {
  border-color: var(--rule-strong);
  color: var(--ink);
  background: transparent;
}

.abtn--outline:hover {
  border-color: var(--ink);
  background: rgba(20, 17, 13, 0.04);
}

.abtn--ghost {
  border-color: var(--rule);
  color: var(--muted);
  background: transparent;
}

.abtn--ghost:hover {
  border-color: var(--rule-strong);
  color: var(--ink);
}

.abtn--danger {
  border-color: rgba(142, 43, 37, 0.5);
  color: var(--red);
  background: transparent;
}

.abtn--danger:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.abtn--sm {
  padding: 7px 12px;
  font-size: 10px;
}

.abtn--xs {
  padding: 4px 9px;
  font-size: 9px;
  letter-spacing: 0.1em;
}

/* rank lists */

.arank {
  list-style: none;
}

.arank li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 12.5px;
}

.arank li:last-child {
  border-bottom: 0;
}

.arank__num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
}

.arank__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-2);
}

a.arank__label:hover {
  color: var(--oxblood);
}

.arank__value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* misc */

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.aempty {
  padding: 36px 0;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}

/* flash */

.aflash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 11px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
}

.aflash::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--brass-light);
  transform: rotate(45deg);
  flex: none;
}

.aflash span {
  flex: 1;
}

.aflash a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 240, 230, 0.6);
}

/* filter tabs inside admin */

.filter-tabs--admin {
  border-bottom: 0;
}

.filter-tabs--admin .filter-tabs__tab {
  padding: 7px 0;
  margin-right: 20px;
  font-size: 11px;
}

/* ---------- tables ---------- */

.atable-wrap {
  margin-bottom: 16px;
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--rule);
}

.atable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.atable th {
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule-strong);
  white-space: nowrap;
}

.atable td {
  padding: 11px 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}

.atable tr:last-child td {
  border-bottom: 0;
}

.atable tbody tr:hover td {
  background: rgba(251, 248, 241, 0.7);
}

.atable__title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

a.atable__title:hover {
  color: var(--oxblood);
}

.atable__sub {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

.atable__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.atable--compact th,
.atable--compact td {
  padding: 7px 12px;
}

.atable td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- forms ---------- */

.aform {
  display: grid;
  gap: 18px;
}

.admin__formgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.admin__formmain,
.admin__formside {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.admin__formside {
  position: sticky;
  top: 76px;
}

.admin__formgrid--board {
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
}

.admin__formgrid--board .acard {
  margin-bottom: 0;
}

.afield {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.afield > span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.afield > span em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--muted-2);
}

.afield--sm > span {
  font-size: 8.5px;
}

.afield--wide {
  grid-column: 1 / -1;
}

.afield--check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
}

.afield--check input {
  width: 16px;
  height: 16px;
  accent-color: var(--oxblood);
}

.afield__hint {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted-2);
}

.afield-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.afield-row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ainput {
  width: 100%;
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.ainput:hover {
  border-color: var(--ink-2);
}

.ainput:focus {
  outline: none;
  border-color: var(--oxblood);
  background: #fffdf7;
  box-shadow: 0 0 0 3px rgba(124, 31, 43, 0.08);
}

.ainput::placeholder {
  color: var(--muted-2);
}

textarea.ainput {
  resize: vertical;
  min-height: 80px;
  line-height: 1.55;
}

select.ainput {
  appearance: none;
  padding-right: 32px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.ainput--sm {
  padding: 7px 10px;
  font-size: 12px;
}

.ainput--file {
  padding: 8px;
  font-size: 12px;
  background: var(--paper);
  border-style: dashed;
  color: var(--muted);
}

.ainput--file::file-selector-button {
  margin-right: 10px;
  padding: 6px 10px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  cursor: pointer;
}

.aform__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-strong);
}

.aform__actions .abtn--solid {
  flex: 1;
}

.stack-form {
  display: grid;
  gap: 16px;
}

/* repeatable rows */

.arepeat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 32px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  margin-bottom: 8px;
  background: rgba(251, 248, 241, 0.8);
  border: 1px solid var(--rule);
}

.arepeat--ref {
  grid-template-columns: minmax(0, 1fr) 180px 32px;
}

.arepeat--video {
  grid-template-columns: repeat(6, minmax(0, 1fr)) 32px;
  gap: 10px;
  align-items: start;
}

.arepeat--video .afield {
  grid-column: span 2;
}

.arepeat--video .afield--wide {
  grid-column: span 6;
}

.arepeat--video > .arepeat__remove {
  grid-column: 7;
  grid-row: 1;
}

.arepeat__remove {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.arepeat__remove:hover {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

[data-repeat-list] {
  display: grid;
  gap: 0;
  margin-bottom: 10px;
}

/* file list */

.afilelist {
  display: grid;
  gap: 0;
  margin: 10px 0 0;
  border-top: 1px solid var(--rule);
}

.afilelist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
}

.afilelist li:last-child {
  border-bottom: 0;
}

.afilelist a {
  color: var(--oxblood);
}

.afilelist label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}

/* toggle (inline form in tables) */

.atoggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

/* moderation items (comments & messages) */

.amod__item {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.amod__item:last-child {
  border-bottom: 0;
}

.amod__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 8px;
}

.amod__author {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
}

.amod__email {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.amod__meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.amod__where {
  font-size: 11.5px;
  color: var(--muted);
}

.amod__where a {
  color: var(--oxblood);
}

.amod__body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
  white-space: pre-line;
}

.amod__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

/* flash variants */

.aflash--error {
  background: var(--red);
}

.aflash--error::before {
  background: var(--white);
}

.aflash--ok {
  background: var(--green);
}

.aflash--ok::before {
  background: var(--white);
}

/* login */

body.login {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  background-image:
    radial-gradient(60% 80% at 100% 0%, rgba(124, 31, 43, 0.55), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(168, 128, 63, 0.2), transparent 60%);
}

.login__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  width: min(1180px, calc(100% - 2 * var(--gutter)));
  min-height: 100vh;
  margin-inline: auto;
  padding: 60px 0;
}

.login__rule {
  display: block;
  width: 56px;
  height: 3px;
  margin-bottom: 22px;
  background: var(--brass);
}

.login__brand .kicker {
  color: rgba(244, 240, 230, 0.6);
}

.login__word {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 104px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--white);
}

.login__note {
  max-width: 46ch;
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(244, 240, 230, 0.66);
}

.login__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-light);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 240, 230, 0.5);
}

.login__panel {
  padding: clamp(26px, 3vw, 40px);
  background: var(--paper);
  color: var(--ink);
  border-top: 3px solid var(--brass);
  box-shadow: var(--shadow);
}

.login__panel .aflash {
  margin-top: 14px;
}

.login__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.login__hint {
  margin-top: 16px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted-2);
}

.login .stack-form .abtn {
  margin-top: 4px;
}

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

@media (max-width: 1180px) {
  .admin__formgrid {
    grid-template-columns: 1fr;
  }

  .admin__formside {
    position: static;
  }

  .admin__statgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin__statgrid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin__columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.admin {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .admin__shell {
    grid-template-columns: 1fr;
  }

  .admin__nav {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    height: auto;
    padding: 6px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    overflow-x: auto;
  }

  .admin__navlink {
    padding: 8px 12px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }

  .admin__navlink.is-active {
    border-bottom-color: var(--oxblood);
    border-left-color: transparent;
  }

  .admin__navfoot {
    display: none;
  }

  .admin__main {
    padding: 18px 16px 50px;
  }

  .admin__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin__topright .admin__who > span:last-child {
    display: none;
  }

  .admin__view {
    display: none;
  }

  .login__grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 0;
  }

  .login__brand {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .admin__statgrid,
  .admin__statgrid--three {
    grid-template-columns: 1fr;
  }

  .afield-row,
  .afield-row--three {
    grid-template-columns: 1fr;
  }

  .arepeat,
  .arepeat--ref {
    grid-template-columns: minmax(0, 1fr) 56px 32px;
  }

  .arepeat--video {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arepeat--video .afield,
  .arepeat--video .afield--wide,
  .arepeat--video > .arepeat__remove {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .admin__formgrid--board {
    grid-template-columns: 1fr;
  }

  .atable__actions {
    justify-content: flex-start;
  }

  .achart__day {
    display: none;
  }

  .admin__topbar {
    padding: 0 14px;
  }

  .admin__brandtext em {
    display: none;
  }
}

/* ---------- video modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vw, 40px);
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 9, 0.82);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: min(1040px, 100%);
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(244, 240, 230, 0.12);
  animation: modal-in 0.28s var(--ease) both;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal__media {
  background: #000;
  aspect-ratio: 16 / 9;
}

.modal__media video,
.modal__media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

.modal__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding: 16px 22px 20px;
  border-top: 1px solid rgba(244, 240, 230, 0.1);
}

.modal__caption p {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--white);
}

.modal__caption .modal__article {
  flex-basis: 100%;
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(244, 240, 230, 0.65);
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(244, 240, 230, 0.3);
  background: rgba(20, 17, 13, 0.6);
  color: var(--white);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.modal__close:hover {
  background: var(--oxblood);
  border-color: var(--oxblood);
}

.modal__caption .mono-label {
  color: var(--brass-light);
  white-space: nowrap;
}

/* ---------- interaction states ---------- */

.form-note.is-ok {
  color: var(--green);
}

.form-note.is-error {
  color: var(--red);
}

.cite__copy.is-done {
  border-color: var(--brass);
  color: var(--brass);
}

.turnstile {
  margin: 4px 0 14px;
  min-height: 65px;
}

.ainput[aria-invalid="true"],
.ainput.is-invalid {
  border-color: var(--red);
}

/* ---------- end ---------- */
