/*
  The World Behind the Words — redesign concept
  A lighter companion to Signal & Noise: editorial, inspectable, and deliberately not a badge.
*/

:root {
  --paper: #f7f4eb;
  --paper-bright: #fffdf8;
  --paper-blue: #edf6f7;
  --ink: #10283a;
  --ink-soft: #294455;
  --muted: #66757b;
  --line: rgba(16, 40, 58, 0.14);
  --line-strong: rgba(16, 40, 58, 0.24);
  --navy: #0e2738;
  --navy-2: #173b4d;
  --sky: #cfe8ec;
  --sky-strong: #6fb5be;
  --mint: #d9eee4;
  --mint-strong: #6fa184;
  --sun: #f3ca79;
  --sun-strong: #c98736;
  --peach: #f2b08d;
  --coral: #d9795b;
  --rose: #f4dfda;
  --white: #ffffff;

  /* Night — Signal & Noise named palette tokens (alias the established generics; values unchanged) */
  --sn-navy: var(--navy);
  --sn-ink: var(--ink);
  --sn-signal-blue: var(--sky-strong);
  --sn-calibration-gold: var(--sun);
  --sn-audit-paper: var(--paper);
  --sn-context-mint: var(--mint);

  /* Twilight — Synthia Cipher author-mark tokens. Author byline + cipher glyph ONLY; never page chrome. */
  --sc-aubergine: #211827;
  --sc-iris: #7664a6;
  --sc-copper: #c47855;
  --sc-bone: #f4efe6;

  --shadow-sm: 0 8px 30px rgba(21, 47, 62, 0.07);
  --shadow-lg: 0 24px 70px rgba(21, 47, 62, 0.13);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --measure: 72ch;
  --page: 1180px;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Iowan Old Style, Baskerville, "Times New Roman", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: linear-gradient(180deg, #fbf9f2 0, var(--paper) 48rem, #f8f6ef 100%);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.25;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(16, 40, 58, 0.08) 0 0.6px, transparent 0.8px),
    radial-gradient(circle at 80% 70%, rgba(16, 40, 58, 0.06) 0 0.5px, transparent 0.7px);
  background-size: 19px 19px, 23px 23px;
}

::selection {
  color: var(--navy);
  background: var(--sun);
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-color: rgba(16, 40, 58, 0.34);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--sun-strong);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  color: var(--white);
  background: var(--navy);
  font-weight: 700;
  text-decoration: none;
  white-space: normal;
}

.shell {
  width: min(calc(100% - 2.25rem), var(--page));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 2.25rem), 820px);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.display {
  max-width: 13ch;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 5.4rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.94;
}

.display em {
  color: var(--navy-2);
  font-weight: 400;
}

.page-title {
  max-width: 17ch;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 4.2rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.98;
}

.section-title {
  max-width: 22ch;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.02;
}

.subhead {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.12;
}

.lede {
  max-width: 62ch;
  margin: 1.45rem 0 0;
  color: var(--ink-soft);
  font-size: 1.2rem;
  line-height: 1.58;
}

.prose {
  max-width: var(--measure);
}

.prose p {
  margin: 0 0 1.35rem;
}

.prose h2,
.prose h3 {
  scroll-margin-top: 8rem;
}

.prose strong {
  font-weight: 760;
}

.prose ul {
  margin: 0 0 1.5rem;
  padding-left: 1.3rem;
}

.prose li {
  margin: 0.48rem 0;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(16, 40, 58, 0.1);
  background: rgba(250, 248, 241, 0.88);
  backdrop-filter: blur(18px) saturate(130%);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(210px, max-content) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  padding: 0.55rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.82rem;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(16, 40, 58, 0.22);
  border-radius: 50%;
  background: var(--paper-bright);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.brand-mark::before {
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--navy);
}

.brand-mark::after {
  right: -4px;
  bottom: -4px;
  width: 24px;
  height: 24px;
  background: var(--sun);
}

.brand-mark span {
  position: relative;
  z-index: 1;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: -8px 0 0 var(--navy), 8px 0 0 var(--navy);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0;
}

.brand-copy small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.primary-nav a {
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--ink);
  background: rgba(16, 40, 58, 0.055);
}

.primary-nav a[aria-current="page"] {
  color: var(--navy);
  background: var(--sky);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.header-cta,
.button-primary {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 8px 20px rgba(14, 39, 56, 0.16);
}

.header-cta:hover,
.button-primary:hover {
  transform: translateY(-1px);
  background: var(--navy-2);
  box-shadow: 0 12px 26px rgba(14, 39, 56, 0.2);
}

.button-secondary {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 253, 248, 0.7);
}

.button-secondary:hover {
  transform: translateY(-1px);
  background: var(--paper-bright);
  box-shadow: var(--shadow-sm);
}

.button svg,
.header-cta svg {
  width: 1rem;
  height: 1rem;
}

.header-cta {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.primary-nav {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

/* Hero */
.hero {
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.orbit-art {
  position: relative;
  min-height: 490px;
  isolation: isolate;
}

.orbit-art::before {
  content: "";
  position: absolute;
  inset: 7% 2% 2% 7%;
  z-index: -2;
  border-radius: 48% 52% 57% 43% / 49% 42% 58% 51%;
  background:
    radial-gradient(circle at 57% 42%, rgba(255, 255, 255, 0.94) 0 15%, transparent 15.4%),
    radial-gradient(circle at 57% 42%, var(--sun) 0 24%, transparent 24.5%),
    radial-gradient(circle at 57% 42%, rgba(207, 232, 236, 0.88) 0 43%, transparent 43.4%),
    radial-gradient(circle at 57% 42%, rgba(217, 238, 228, 0.88) 0 59%, transparent 59.4%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.95), rgba(207, 232, 236, 0.62));
  box-shadow: var(--shadow-lg);
  transform: rotate(-6deg);
}

.orbit-ring {
  position: absolute;
  left: 51%;
  top: 46%;
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid rgba(16, 40, 58, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(13deg);
}

.orbit-ring::before,
.orbit-ring::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(16, 40, 58, 0.22);
  border-radius: 50%;
}

.orbit-ring::before {
  inset: 13%;
}

.orbit-ring::after {
  inset: 31%;
  border-style: solid;
}

.orbit-core {
  position: absolute;
  left: 51%;
  top: 46%;
  display: grid;
  width: 116px;
  aspect-ratio: 1;
  place-items: center;
  border: 8px solid rgba(255, 253, 248, 0.78);
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 16px 46px rgba(14, 39, 56, 0.26);
  font-family: var(--font-serif);
  font-size: 2rem;
  transform: translate(-50%, -50%);
}

.orbit-node {
  position: absolute;
  display: grid;
  min-width: 126px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(16, 40, 58, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.orbit-node strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.orbit-node span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0;
}

.orbit-node.origin {
  left: 1%;
  top: 21%;
  border-top: 4px solid var(--sun-strong);
  transform: rotate(-2deg);
}

.orbit-node.structure {
  right: -1%;
  top: 14%;
  border-top: 4px solid var(--sky-strong);
  transform: rotate(2deg);
}

.orbit-node.reference {
  right: 3%;
  bottom: 7%;
  border-top: 4px solid var(--mint-strong);
  transform: rotate(-1deg);
}

.signal-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 6px rgba(16, 40, 58, 0.08);
}

.signal-dot.one { left: 28%; top: 8%; }
.signal-dot.two { right: 7%; top: 45%; width: 5px; height: 5px; }
.signal-dot.three { left: 12%; bottom: 18%; width: 6px; height: 6px; }
.signal-dot.four { right: 33%; bottom: 1%; width: 4px; height: 4px; }

/* Inner page hero */
.page-hero {
  padding: clamp(3.5rem, 8vw, 6.2rem) 0 clamp(2.6rem, 6vw, 4.7rem);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
}

.hero-seal {
  position: relative;
  width: clamp(150px, 18vw, 230px);
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--paper-bright) 0 23%, transparent 23.5%),
    radial-gradient(circle, var(--sun) 0 38%, transparent 38.5%),
    radial-gradient(circle, var(--sky) 0 58%, transparent 58.5%),
    radial-gradient(circle, var(--mint) 0 76%, transparent 76.5%);
  box-shadow: var(--shadow-sm);
}

.hero-seal::before,
.hero-seal::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px dashed rgba(16, 40, 58, 0.25);
  border-radius: 50%;
}

.hero-seal::after {
  inset: 29%;
  border-style: solid;
}

/* Layer navigation */
.layer-nav-wrap {
  border-block: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.54);
}

.layer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.layer-tab {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1.15rem 1.3rem;
  border-right: 1px solid var(--line);
  text-decoration: none;
}

.layer-tab:last-child {
  border-right: 0;
}

.layer-tab:hover {
  background: rgba(255, 253, 248, 0.8);
}

.layer-tab[aria-current="page"] {
  background: var(--paper-bright);
}

.layer-tab[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: -1px;
  height: 4px;
  border-radius: 99px 99px 0 0;
  background: var(--tab-color, var(--navy));
}

.layer-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--paper-bright);
  font-size: 0.75rem;
  font-weight: 850;
}

.layer-tab-copy {
  display: grid;
  line-height: 1.2;
}

.layer-tab-copy strong {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 650;
}

.layer-tab-copy small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.layer-tab.origin { --tab-color: var(--sun-strong); }
.layer-tab.structure { --tab-color: var(--sky-strong); }
.layer-tab.reference { --tab-color: var(--mint-strong); }

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-soft {
  background: rgba(255, 253, 248, 0.58);
}

.section-blue {
  background: linear-gradient(180deg, rgba(237, 246, 247, 0.84), rgba(237, 246, 247, 0.36));
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: 3rem;
}

.section-head .lede {
  margin-top: 0.15rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.three-up {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.four-up {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow-sm);
}

.card.flat {
  box-shadow: none;
}

.card h2,
.card h3 {
  margin: 0;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card-kicker {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.card-link::after {
  content: "→";
  transition: transform 160ms ease;
}

.card-link:hover::after {
  transform: translateX(4px);
}

.path-card {
  min-height: 330px;
  padding: clamp(1.6rem, 4vw, 2.7rem);
  border-radius: var(--radius-lg);
}

.path-card::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 12rem;
  aspect-ratio: 1;
  border: 1px solid rgba(16, 40, 58, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 2.7rem rgba(16, 40, 58, 0.035), 0 0 0 5.4rem rgba(16, 40, 58, 0.02);
}

.path-card.issues-card {
  background: linear-gradient(145deg, #fffdf8 0%, #f9e9dc 100%);
}

.path-card.publication-card {
  background: linear-gradient(145deg, #fffdf8 0%, #dff0ec 100%);
}

.path-card .subhead {
  max-width: 14ch;
}

.path-card p {
  max-width: 42ch;
  color: var(--ink-soft);
}

.best-for {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.best-for::before {
  content: "↳";
  color: var(--ink);
  font-weight: 800;
}

.layer-card {
  min-height: 250px;
  border-top: 5px solid var(--layer-color);
  box-shadow: none;
}

.layer-card.origin { --layer-color: var(--sun-strong); }
.layer-card.structure { --layer-color: var(--sky-strong); }
.layer-card.reference { --layer-color: var(--mint-strong); }

.layer-card .layer-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 1.15rem;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--layer-color) 16%, var(--paper-bright));
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.layer-card p {
  color: var(--ink-soft);
}

.lens-links {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.principle {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: clamp(1.6rem, 4vw, 2.7rem);
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(circle at 90% 20%, rgba(111, 181, 190, 0.22), transparent 20rem),
    var(--navy);
  box-shadow: var(--shadow-lg);
}

.principle-mark {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--sun);
  font-family: var(--font-serif);
  font-size: 2rem;
}

.principle h2,
.principle h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
}

.principle p {
  max-width: 65ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

/* Issues */
.issue-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.3rem 0 2rem;
}

.search-box {
  position: relative;
  flex: 1 1 320px;
  max-width: 520px;
}

.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  min-height: 50px;
  padding: 0.72rem 1rem 0.72rem 2.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.search-box input::placeholder {
  color: #7b878b;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-button {
  min-height: 40px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.72);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 780;
}

.filter-button:hover {
  background: var(--paper-bright);
}

.filter-button[aria-pressed="true"] {
  border-color: var(--navy);
  color: var(--white);
  background: var(--navy);
}

.issue-count {
  min-height: 1.5em;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.featured-issue {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.2rem;
  padding: clamp(1.7rem, 4vw, 2.7rem);
  border: 1px solid rgba(201, 135, 54, 0.28);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 93% 22%, rgba(243, 202, 121, 0.5), transparent 13rem),
    linear-gradient(145deg, #fffdf8, #f9ede0);
  box-shadow: var(--shadow-sm);
}

.issue-number {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.featured-issue h2 {
  max-width: 19ch;
  margin: 0.45rem 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 2.55rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.03;
}

.featured-orbit {
  position: relative;
  width: 160px;
  aspect-ratio: 1;
  border: 1px solid rgba(16, 40, 58, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.33), 0 0 0 44px rgba(111, 181, 190, 0.1);
}

.featured-orbit::before,
.featured-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.featured-orbit::before {
  inset: 25%;
  border: 8px solid rgba(255, 253, 248, 0.85);
  background: var(--navy);
}

.featured-orbit::after {
  right: 4%;
  top: 16%;
  width: 17px;
  aspect-ratio: 1;
  background: var(--sun);
  box-shadow: -118px 79px 0 -4px var(--sky-strong), -42px 131px 0 -5px var(--mint-strong);
}

.issue-list {
  display: grid;
  gap: 0.72rem;
}

.issue-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.1rem;
  min-height: 88px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.72);
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.issue-row:hover {
  transform: translateY(-1px);
  background: var(--paper-bright);
  box-shadow: var(--shadow-sm);
}

.issue-row[hidden] {
  display: none;
}

.issue-index {
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.issue-copy {
  min-width: 0;
}

.issue-copy a {
  display: inline;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.18;
  text-decoration: none;
}

.issue-copy a::after {
  content: " ↗";
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.72em;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: max-content;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 820;
  line-height: 1.2;
}

.status-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-complete {
  color: #376c53;
  background: var(--mint);
}

.status-origin {
  color: #895719;
  background: #f7e6bd;
}

.status-scheduled {
  color: #3f6e78;
  background: var(--sky);
}

.status-building {
  color: #80635c;
  background: var(--rose);
}

.no-results {
  padding: 2rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
  background: rgba(255, 253, 248, 0.5);
}

/* Reading layout */
.reading-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.on-this-page {
  position: sticky;
  top: 110px;
  padding: 1rem 0;
}

.on-this-page p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.on-this-page ol {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.on-this-page a {
  display: block;
  padding: 0.35rem 0.6rem;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.on-this-page a:hover {
  border-left-color: var(--sky-strong);
  color: var(--ink);
  background: rgba(255, 253, 248, 0.58);
}

.reading-content {
  min-width: 0;
}

.content-section {
  padding: 0 0 4.3rem;
  margin-bottom: 4.3rem;
  border-bottom: 1px solid var(--line);
}

.content-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.content-section h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: 2.55rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.04;
}

.content-section h3 {
  margin: 2.1rem 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0;
}

.content-section > p,
.content-section .prose > p {
  max-width: var(--measure);
}

.at-a-glance {
  margin-bottom: clamp(3rem, 7vw, 5.4rem);
}

.glance-card {
  min-height: 190px;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.76);
}

.glance-card .glyph {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--sky);
  font-family: var(--font-serif);
  font-weight: 700;
}

.glance-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  line-height: 1.12;
}

.glance-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.52;
}

.role-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin: 1.5rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-bright);
}

.role-panel {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.role-panel + .role-panel {
  border-left: 1px solid var(--line);
  background: var(--paper-blue);
}

.role-label {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(16, 40, 58, 0.07);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.role-panel h3 {
  margin: 0 0 0.55rem;
}

.role-panel p {
  color: var(--ink-soft);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.4rem;
  margin-top: 1.7rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: var(--line-strong);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 1rem;
}

.timeline-dot {
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--navy);
  background: var(--paper-bright);
  font-size: 0.72rem;
  font-weight: 850;
}

.timeline-copy {
  padding: 0.25rem 0 1rem;
}

.timeline-copy h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.timeline-copy p {
  margin: 0;
  color: var(--ink-soft);
}

.callout {
  margin: 1.7rem 0;
  padding: 1.25rem 1.35rem;
  border-left: 4px solid var(--callout, var(--sky-strong));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: color-mix(in srgb, var(--callout) 10%, var(--paper-bright));
}

.callout p {
  margin: 0;
}

.callout.sun { --callout: var(--sun-strong); }
.callout.mint { --callout: var(--mint-strong); }
.callout.coral { --callout: var(--coral); }

/* "The conversation behind this" — author–AI attribution entry (Origin pages). */
.convo-card {
  margin: 1.7rem 0 0;
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--sky-strong);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: color-mix(in srgb, var(--sky-strong) 8%, var(--paper-bright));
}
.convo-card .eyebrow { margin: 0 0 0.4rem; }
.convo-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.14;
  color: var(--navy);
}
.convo-card .convo-desc { margin: 0 0 0.75rem; color: var(--ink-soft); }
.convo-card .convo-go { margin: 0; }
.convo-card .convo-go a {
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--sky-strong) 55%, transparent);
  padding-bottom: 1px;
}
.convo-card .convo-go a:hover { border-bottom-color: var(--sky-strong); }

.quote-block {
  margin: 2rem 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-md);
  color: var(--white);
  background: var(--navy);
}

.quote-block blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 2.05rem;
  letter-spacing: 0;
  line-height: 1.16;
}

.quote-block p {
  margin: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  font-weight: 760;
}

.link-stack {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.resource-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.72);
  text-decoration: none;
}

.resource-link:hover {
  background: var(--paper-bright);
  box-shadow: var(--shadow-sm);
}

.resource-link strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.resource-link span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.resource-link::after {
  content: "↗";
  color: var(--muted);
}

/* Structure process */
.snapshot-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 1.7rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: rgba(255, 253, 248, 0.65);
  font-size: 0.8rem;
}

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

.process-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 2rem 0 2.5rem;
}

.process-flow::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 32px;
  height: 1px;
  background: var(--line-strong);
}

.process-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.process-dot {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 7px solid var(--paper);
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 0 0 1px var(--line-strong);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 650;
}

.process-step:first-child .process-dot {
  color: var(--navy);
  background: var(--sun);
}

.process-step:last-child .process-dot {
  color: var(--navy);
  background: var(--mint);
}

.process-step strong {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  line-height: 1.2;
}

.process-step small {
  margin-top: 0.24rem;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.25;
}

.constraint-card {
  border-top: 5px solid var(--accent);
  box-shadow: none;
}

.constraint-card.constrain { --accent: var(--sky-strong); }
.constraint-card.prevent { --accent: var(--sun-strong); }
.constraint-card.limit { --accent: var(--coral); }

.constraint-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.constraint-card li {
  margin: 0.55rem 0;
}

.admission-rule {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  margin: 2.2rem 0;
  padding: clamp(1.45rem, 3vw, 2rem);
  border: 1px solid rgba(201, 135, 54, 0.3);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.9), rgba(247, 230, 189, 0.62));
}

.admission-rule .badge {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--sun);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
}

.admission-rule h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.6rem;
}

.admission-rule p {
  margin: 0;
  color: var(--ink-soft);
}

.check-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.check-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.78);
}

.check-card[open] {
  background: var(--paper-bright);
  box-shadow: var(--shadow-sm);
}

.check-card summary {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  cursor: pointer;
  list-style: none;
}

.check-card summary::-webkit-details-marker {
  display: none;
}

.check-card summary::after {
  content: "+";
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-soft);
  font-weight: 600;
}

.check-card[open] summary::after {
  content: "−";
  color: var(--white);
  background: var(--navy);
}

.check-index {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--sky);
  font-family: var(--font-serif);
  font-weight: 700;
}

.check-card summary strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: 0;
}

.check-card summary span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.check-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.check-field {
  padding: 1.15rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

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

.check-field.wide {
  grid-column: 1 / -1;
  border-right: 0;
}

.field-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.check-field p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Reference ledger */
.ledger {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}

.ledger::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 25px;
  bottom: 25px;
  width: 1px;
  background: var(--line-strong);
}

.ledger-entry {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.ledger-icon {
  z-index: 1;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 7px solid var(--paper);
  border-radius: 50%;
  color: var(--navy);
  background: var(--entry-color, var(--mint));
  box-shadow: 0 0 0 1px var(--line-strong);
  font-family: var(--font-serif);
  font-weight: 700;
}

.ledger-copy {
  padding: 0.2rem 0 1.3rem;
}

.ledger-copy h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
}

.ledger-copy p {
  max-width: 65ch;
  margin: 0;
  color: var(--ink-soft);
}

.ledger-entry.reader { --entry-color: var(--sun); }
.ledger-entry.tightened { --entry-color: var(--sky); }
.ledger-entry.framing { --entry-color: var(--peach); }
.ledger-entry.rules { --entry-color: var(--mint); }
.ledger-entry.narrow { --entry-color: var(--rose); }

.record-card {
  min-height: 245px;
  box-shadow: none;
}

.record-card .record-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--navy);
  background: var(--sky);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
}

.record-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Issue records */
.issue-record .page-hero {
  padding-bottom: clamp(2.4rem, 5vw, 4rem);
}

.issue-record .page-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: start;
}

.issue-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1rem;
}

.issue-eyebrow .eyebrow {
  margin: 0;
}

.issue-hero-card {
  padding: 1.25rem;
  background: rgba(255, 253, 248, 0.9);
}

.issue-hero-card h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
}

.issue-hero-card p {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.issue-hero-card .status-chip {
  margin-bottom: 0.85rem;
}

.issue-quick-links {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.issue-quick-links a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(237, 246, 247, 0.45);
  font-size: 0.84rem;
  font-weight: 780;
  text-decoration: none;
}

.issue-quick-links a::after {
  content: "↗";
  color: var(--muted);
}

.issue-record-content {
  min-width: 0;
}

.issue-record-content > .section-title {
  margin-bottom: 0.75rem;
}

.issue-record-content > .status {
  max-width: 68ch;
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.short-version {
  margin: 0 0 1.5rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid rgba(111, 181, 190, 0.26);
  border-left: 5px solid var(--sky-strong);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.95), rgba(237, 246, 247, 0.64));
  box-shadow: var(--shadow-sm);
}

.short-version .label {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.short-version p {
  max-width: var(--measure);
  margin: 0 0 0.9rem;
}

.summary-block {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "t1 t2 t3"
    "u1 u2 u3";
  gap: 0.85rem;
  margin: 1.6rem 0 1.8rem;
}

.summary-block > p.sub {
  margin: 0 0 -0.35rem;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.summary-block ul {
  min-height: 100%;
  margin: 0;
  padding: 1.1rem 1.1rem 1.1rem 1.35rem;
  border: 1px solid var(--line);
  border-top: 5px solid var(--sky-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.72);
}

.summary-block > p.sub:nth-of-type(1) { grid-area: t1; }
.summary-block > p.sub:nth-of-type(2) { grid-area: t2; }
.summary-block > p.sub:nth-of-type(3) { grid-area: t3; }
.summary-block > ul:nth-of-type(1) { grid-area: u1; }
.summary-block > ul:nth-of-type(2) { grid-area: u2; }
.summary-block > ul:nth-of-type(3) { grid-area: u3; }

.summary-block ul:nth-of-type(2) {
  border-top-color: var(--sun-strong);
}

.summary-block ul:nth-of-type(3) {
  border-top-color: var(--mint-strong);
}

.summary-block li {
  margin: 0.42rem 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.summary-card-title {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ledger-hint {
  margin: 2rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
}

.issue-record-content details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.76);
}

.issue-record-content details + details {
  margin-top: 0.7rem;
}

.issue-record-content details[open] {
  background: var(--paper-bright);
  box-shadow: var(--shadow-sm);
}

.issue-record-content summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.18;
}

.issue-record-content summary::-webkit-details-marker {
  display: none;
}

.issue-record-content summary::after {
  content: "+";
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 1rem;
}

.issue-record-content details[open] summary::after {
  content: "−";
  color: var(--white);
  background: var(--navy);
}

.detail-body {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.detail-body p {
  margin: 0;
  padding: 1rem 1.1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.detail-body p + p {
  border-top: 1px solid var(--line);
}

.field {
  display: block;
  margin-bottom: 0.34rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.disclosure {
  color: var(--muted) !important;
}

.issue-next {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.issue-next a,
.issue-next span {
  display: grid;
  min-height: 88px;
  align-content: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.74);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.issue-next strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.24rem;
  font-weight: 600;
  text-transform: none;
}

.issue-next .current {
  border-top: 5px solid var(--sun-strong);
  background: var(--paper-bright);
}

.xwalk-wrap {
  overflow-x: auto;
  margin-top: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.72);
}

.xwalk {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.xwalk th,
.xwalk td {
  padding: 0.95rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.xwalk th:last-child,
.xwalk td:last-child {
  border-right: 0;
}

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

.xwalk th {
  color: var(--muted);
  background: rgba(237, 246, 247, 0.7);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.xwalk td {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.rowid {
  display: inline-flex;
  margin-bottom: 0.2rem;
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
  color: var(--navy);
  background: var(--sky);
  font-size: 0.68rem;
  font-weight: 850;
}

.st-unresolved {
  color: #895719 !important;
  background: rgba(247, 230, 189, 0.45);
}

/* Footer */
.site-footer {
  padding: 3.5rem 0 2rem;
  color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(circle at 90% 10%, rgba(111, 181, 190, 0.18), transparent 24rem),
    var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) repeat(auto-fit, minmax(150px, 0.7fr));
  gap: clamp(2rem, 6vw, 5rem);
}

.footer-brand {
  max-width: 38ch;
}

.footer-brand h2 {
  margin: 0 0 0.8rem;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-column h3 {
  margin: 0 0 0.85rem;
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  width: fit-content;
  margin: 0.5rem 0;
  font-size: 0.88rem;
  text-decoration: none;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.53);
  font-size: 0.76rem;
}

/* Author byline + cipher glyph — Synthia Cipher signs the footer (glyph only; never a portrait). */
.footer-bottom .author-byline {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: rgba(255, 255, 255, 0.53);
}
.footer-bottom .cipher-glyph {
  flex: none;
  display: inline-block;
  width: 15px;
  height: 15px;
  background: center / contain no-repeat url("cipher-glyph.svg");
}

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

[hidden] {
  display: none !important;
}

@supports not (color: color-mix(in srgb, white, black)) {
  .layer-card .layer-icon,
  .callout {
    background: var(--paper-blue);
  }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: minmax(190px, max-content) minmax(0, 1fr) auto;
    min-height: 68px;
  }

  .primary-nav {
    justify-content: center;
    padding: 0;
    scrollbar-width: none;
  }

  .primary-nav::-webkit-scrollbar {
    display: none;
  }

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

  .orbit-art {
    width: min(100%, 640px);
    min-height: 450px;
    margin-inline: auto;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

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

  .reading-layout {
    grid-template-columns: 1fr;
  }

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

  .on-this-page {
    position: static;
    overflow-x: auto;
    padding: 0 0 0.7rem;
  }

  .on-this-page p {
    margin-bottom: 0.45rem;
  }

  .on-this-page ol {
    display: flex;
    flex-wrap: wrap;
    width: auto;
    gap: 0.35rem;
  }

  .on-this-page a {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.65);
  }

  .process-flow {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 1.6rem;
  }

  .process-flow::before {
    display: none;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .shell,
  .narrow {
    width: min(calc(100% - 1.35rem), var(--page));
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand cta"
      "nav nav";
    gap: 0.45rem 0.8rem;
    padding: 0.55rem 0 0.7rem;
  }

  .brand {
    grid-area: brand;
  }

  .primary-nav {
    grid-area: nav;
    justify-self: start;
  }

  .header-cta {
    grid-area: cta;
  }

  .brand-copy small {
    display: none;
  }

  .brand-mark,
  .header-cta svg {
    display: none;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .header-cta {
    min-height: 40px;
    padding: 0.62rem 0.75rem;
    font-size: 0.78rem;
  }

  .header-cta span {
    display: inline;
  }

  .hero {
    padding-top: 3.6rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .display {
    font-size: 3.25rem;
  }

  .page-title {
    max-width: 100%;
    font-size: 3.05rem;
    overflow-wrap: anywhere;
  }

  .section-title,
  .content-section h2 {
    font-size: 2.25rem;
  }

  .subhead {
    font-size: 1.65rem;
  }

  .lede {
    font-size: 1.08rem;
  }

  .orbit-art {
    max-width: 330px;
    min-height: 370px;
    overflow: hidden;
  }

  .orbit-art::before {
    inset: 9% 0 2% 0;
  }

  .orbit-core {
    width: 92px;
    border-width: 6px;
    font-size: 1.55rem;
  }

  .orbit-node {
    min-width: 96px;
    padding: 0.6rem 0.7rem;
  }

  .orbit-node strong {
    font-size: 1rem;
  }

  .orbit-node.origin {
    left: 0.35rem;
    top: 26%;
  }

  .orbit-node.structure {
    right: 0.35rem;
    top: 19%;
  }

  .orbit-node.reference {
    right: 0.35rem;
    bottom: 12%;
  }

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

  .hero-seal {
    display: none;
  }

  .layer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    scrollbar-width: none;
  }

  .layer-nav::-webkit-scrollbar {
    display: none;
  }

  .layer-tab {
    gap: 0.45rem;
    padding: 0.85rem 0.45rem;
  }

  .layer-number {
    width: 28px;
    height: 28px;
    font-size: 0.68rem;
  }

  .layer-tab-copy strong {
    font-size: 0.96rem;
  }

  .layer-tab-copy small {
    font-size: 0.63rem;
  }

  .split,
  .three-up,
  .four-up,
  .summary-block,
  .issue-next,
  .role-split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .summary-block {
    grid-template-areas:
      "t1"
      "u1"
      "t2"
      "u2"
      "t3"
      "u3";
  }

  .role-panel + .role-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

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

  .featured-orbit {
    display: none;
  }

  .issue-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.8rem;
  }

  .issue-row .status-chip {
    grid-column: 2;
    justify-self: start;
  }

  .process-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .check-body {
    grid-template-columns: 1fr;
  }

  .check-field,
  .check-field:nth-child(2n),
  .check-field:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .check-field:last-child {
    border-bottom: 0;
  }

  .check-card summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    padding: 0.9rem;
  }

  .check-card summary strong {
    font-size: 1.08rem;
  }

  .admission-rule {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 430px) {
  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-copy strong {
    font-size: 0.9rem;
  }

  .process-flow {
    grid-template-columns: 1fr;
  }

  .process-step {
    grid-template-columns: auto 1fr;
    justify-items: start;
    gap: 0.8rem;
    text-align: left;
  }

  .process-step strong,
  .process-step small {
    grid-column: 2;
  }

  .process-step small {
    margin-top: -0.7rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .orbit-ring {
    animation: orbit-drift 36s linear infinite;
  }

  .hero-seal::before {
    animation: seal-drift 28s linear infinite reverse;
    transform-origin: center;
  }

  @keyframes orbit-drift {
    from { transform: translate(-50%, -50%) rotate(13deg); }
    to { transform: translate(-50%, -50%) rotate(373deg); }
  }

  @keyframes seal-drift {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-seal,
  .orbit-art,
  .on-this-page,
  .issue-tools,
  .header-cta,
  .hero-actions {
    display: none !important;
  }

  body {
    color: #111;
    background: #fff;
  }

  .section,
  .page-hero {
    padding: 1.5rem 0;
  }

  .reading-layout {
    display: block;
  }

  .card,
  .check-card,
  .principle {
    color: #111;
    background: #fff;
    box-shadow: none;
  }

  a {
    color: #111;
  }
}
