/* Inner Cipher site styles.
   Palette sampled from the app itself: deep indigo ground, navy raised
   cards, gold accent, warm cream serif text. */

:root {
  --ink-deep: #0b1027;
  --ink: #12142f;
  --ink-raised: #0f1329;
  --card: #1d2148;
  --card-edge: #2a2f5e;

  --gold: #ddb463;
  --gold-light: #e8cc85;
  --gold-deep: #d2a64d;

  --cream: #f0eadc;
  --muted: #b7b9d1;
  --muted-dim: #8a8eaf;
  --inactive: #515574;

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Jost', system-ui, sans-serif;

  --night:
    radial-gradient(circle at 20% 12%, rgba(29, 33, 72, 0.38), transparent 62%),
    radial-gradient(circle at 82% 78%, rgba(221, 180, 99, 0.05), transparent 58%),
    linear-gradient(180deg, #0e1229, var(--ink-deep));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-serif);
  background: var(--ink-deep);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.mark {
  display: block;
  opacity: 0.95;
  border-radius: 22%;
}

/* Letterspaced gold caps, as the app uses for section labels */
.label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Constellation backdrop ---------- */

.constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

[data-constellation] {
  position: relative;
}

[data-constellation] > *:not(.constellation) {
  position: relative;
  z-index: 1;
}

/* ---------- Placeholder (index) ---------- */

body.placeholder {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--night);
}

.placeholder main {
  width: 100%;
  max-width: 580px;
  text-align: center;
}

.placeholder .mark {
  width: 46px;
  height: 46px;
  margin: 0 auto 30px;
}

.placeholder .label {
  display: block;
  margin-bottom: 18px;
}

.placeholder h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(44px, 9vw, 68px);
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin-bottom: 22px;
}

.placeholder .lede {
  font-size: 20px;
  line-height: 1.62;
  color: rgba(240, 234, 220, 0.82);
  margin: 0 auto 38px;
  max-width: 40ch;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border: 1px solid rgba(221, 180, 99, 0.42);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 46px;
}

.status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: center;
  padding-top: 30px;
  border-top: 1px solid rgba(183, 185, 209, 0.16);
  font-family: var(--font-sans);
  font-size: 14px;
}

.links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.links a:hover,
.links a:focus-visible {
  color: var(--gold);
  border-bottom-color: rgba(221, 180, 99, 0.5);
}

.placeholder footer {
  margin-top: 34px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--inactive);
}

.placeholder footer a {
  color: var(--muted-dim);
}

.placeholder footer a:hover {
  color: var(--gold);
}

/* ---------- Legal ---------- */

body.legal {
  background: var(--ink-deep);
}

.legal-head {
  background: var(--night);
  border-bottom: 1px solid rgba(183, 185, 209, 0.12);
  padding: 58px 24px 50px;
}

.legal-head .inner,
.legal-body .inner,
.legal-foot .inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal-head .mark {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
}

.legal-head .label {
  display: block;
  margin-bottom: 14px;
}

.legal-head h1 {
  font-weight: 500;
  font-size: clamp(38px, 6.5vw, 54px);
  line-height: 1.06;
  margin-bottom: 18px;
}

.legal-head .attribution {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 60ch;
}

.legal-head .attribution a {
  color: var(--gold);
  text-decoration-color: rgba(221, 180, 99, 0.4);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.legal-nav a {
  padding: 9px 20px;
  border: 1px solid rgba(221, 180, 99, 0.32);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--cream);
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  background: rgba(221, 180, 99, 0.12);
  border-color: var(--gold);
  color: var(--gold-light);
}

.legal-body {
  padding: 56px 24px 76px;
}

.legal-section {
  scroll-margin-top: 24px;
}

.legal-section + .legal-section {
  margin-top: 68px;
  padding-top: 60px;
  border-top: 1px solid rgba(183, 185, 209, 0.14);
}

.section-tag {
  display: block;
  margin-bottom: 12px;
}

.legal-section h2 {
  font-weight: 500;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.12;
  margin-bottom: 10px;
}

.kicker {
  font-size: 19px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 8px;
}

.updated {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--inactive);
  margin-bottom: 30px;
}

.legal-section > p {
  font-size: 19px;
  line-height: 1.72;
  margin-bottom: 20px;
  color: rgba(240, 234, 220, 0.9);
}

/* the rule above is `.legal-section > p`, which out-specifies a bare class,
   so the label, kicker and date need to win it back explicitly */
.legal-section > p.label {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--gold);
}

.legal-section > p.kicker {
  font-size: 19px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 8px;
}

.legal-section > p.updated {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--inactive);
  margin-bottom: 30px;
}

.clause {
  margin-top: 38px;
}

.clause h3 {
  font-weight: 500;
  font-size: 24px;
  color: var(--cream);
  margin-bottom: 12px;
}

.clause p {
  font-size: 18px;
  line-height: 1.74;
  margin-bottom: 16px;
  color: rgba(240, 234, 220, 0.86);
}

.clause ul {
  margin: 0 0 18px 4px;
  list-style: none;
}

.clause li {
  position: relative;
  padding-left: 26px;
  font-size: 18px;
  line-height: 1.72;
  margin-bottom: 12px;
  color: rgba(240, 234, 220, 0.86);
}

/* the app marks list items with a small gold four-point star */
.clause li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 14px;
  color: var(--gold);
}

.clause li strong {
  font-weight: 600;
  color: var(--cream);
}

.contact-strip {
  margin-top: 44px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 14px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(240, 234, 220, 0.88);
}

.contact-strip a {
  color: var(--gold);
}

.legal-foot {
  border-top: 1px solid rgba(183, 185, 209, 0.12);
  padding: 32px 24px 52px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.75;
  color: var(--inactive);
  text-align: center;
}

.legal-foot a {
  color: var(--muted-dim);
}

.legal-foot a:hover {
  color: var(--gold);
}

/* ==========================================================================
   Marketing pages
   Layout patterns adapted from the design handoff: a sticky numbered rail
   beside the content, accordion rows, and cream "printed page" previews that
   show an excerpt of a reading rather than describing one.
   ========================================================================== */

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 16, 39, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(183, 185, 209, 0.12);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  text-decoration: none;
  margin-right: auto;
}

.site-nav .brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--gold);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 92px 0 84px;
  background: var(--night);
  border-bottom: 1px solid rgba(183, 185, 209, 0.12);
}

.hero h1 {
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 66px);
  line-height: 1.06;
  max-width: 16ch;
  margin-bottom: 24px;
}

.hero .sub {
  font-size: 20px;
  line-height: 1.62;
  color: rgba(240, 234, 220, 0.8);
  max-width: 52ch;
}

/* ---------- Section + rail ---------- */

.section {
  padding: 76px 0;
  border-bottom: 1px solid rgba(183, 185, 209, 0.1);
}

.rail {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 44px;
  align-items: start;
}

.rail > .rail-label {
  position: sticky;
  top: 96px;
}

.rail-label .num {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.rail-label .note {
  font-size: 16px;
  font-style: italic;
  color: var(--muted-dim);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .rail {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .rail > .rail-label {
    position: static;
  }
}

.section h2 {
  font-weight: 500;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.14;
  margin-bottom: 16px;
}

.section .intro {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(240, 234, 220, 0.84);
  max-width: 62ch;
  margin-bottom: 34px;
}

/* ---------- Accordion (catalogue + faq) ---------- */

.acc-row {
  border-top: 1px solid rgba(183, 185, 209, 0.16);
}

.acc-row:last-child {
  border-bottom: 1px solid rgba(183, 185, 209, 0.16);
}

.acc-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.acc-head .title {
  font-size: 21px;
}

.acc-head .tag {
  font-size: 16px;
  font-style: italic;
  color: var(--muted-dim);
}

.acc-head .lead {
  flex: 1;
  border-bottom: 1px dotted rgba(183, 185, 209, 0.28);
  transform: translateY(-4px);
}

.acc-head .sign {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--gold);
  width: 1em;
  text-align: center;
}

.acc-body {
  display: none;
  padding: 0 0 26px;
}

.acc-row[data-open='true'] .acc-body {
  display: block;
}

.acc-body p {
  font-size: 17px;
  line-height: 1.72;
  color: rgba(240, 234, 220, 0.84);
  max-width: 62ch;
  margin-bottom: 18px;
}

/* ---------- Printed page previews ---------- */

.pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 620px;
}

@media (max-width: 620px) {
  .pages {
    grid-template-columns: 1fr;
  }
}

.page-card {
  aspect-ratio: 17 / 22;
  background: #f6f1e6;
  color: #2a2618;
  border-radius: 3px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
  padding: 22px 20px 16px;
  display: flex;
  flex-direction: column;
  font-size: 10.5px;
  line-height: 1.6;
  overflow: hidden;
}

.page-card .kicker {
  font-family: var(--font-sans);
  font-size: 7.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9a7b36;
  margin-bottom: 8px;
}

.page-card h4 {
  font-weight: 500;
  font-size: 17px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.page-card .quote {
  font-style: italic;
  border-left: 1.5px solid #c8a768;
  padding-left: 9px;
  margin-bottom: 10px;
  color: #4a422c;
}

.page-card .strip {
  display: flex;
  gap: 12px;
  border-top: 1px solid rgba(42, 38, 24, 0.18);
  border-bottom: 1px solid rgba(42, 38, 24, 0.18);
  padding: 7px 0;
  margin-bottom: 10px;
}

.page-card .strip div {
  flex: 1;
}

.page-card .strip .k {
  font-family: var(--font-sans);
  font-size: 6.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a7c55;
  display: block;
}

.page-card .strip .v {
  font-size: 12px;
}

.page-card .foot {
  margin-top: auto;
  font-family: var(--font-sans);
  font-size: 6.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a8e69;
}

/* ---------- Definition rows (method, signs, animals, elements) ---------- */

.def-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 26px;
  padding: 24px 0;
  border-top: 1px solid rgba(183, 185, 209, 0.14);
}

.def-row:last-child {
  border-bottom: 1px solid rgba(183, 185, 209, 0.14);
}

.def-row .term {
  font-size: 21px;
  color: var(--cream);
}

.def-row .term small {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-top: 5px;
}

.def-row .body {
  font-size: 17px;
  line-height: 1.72;
  color: rgba(240, 234, 220, 0.84);
  max-width: 60ch;
}

.def-row .body a {
  color: var(--gold);
}

@media (max-width: 700px) {
  .def-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* numeral / glyph variant: big serif figure or symbol in the left column */
.def-row.figure .term {
  font-size: 56px;
  line-height: 1;
  color: var(--gold);
}

.def-row.figure .term small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

.def-row .glyph {
  font-size: 34px;
  color: var(--gold);
  line-height: 1;
}

/* ---------- Date rows ---------- */

.date-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(183, 185, 209, 0.12);
}

.date-row .when {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 3px;
}

/* ---------- Phone triptych ---------- */

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

.phones figure img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent);
  mask-image: linear-gradient(180deg, #000 76%, transparent);
}

.phones figcaption {
  margin-top: 14px;
}

.phones .cap {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}

.phones p {
  font-size: 16px;
  line-height: 1.62;
  color: var(--muted);
}

@media (max-width: 780px) {
  .phones {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 320px;
  }
}

/* ---------- Callout ---------- */

.callout {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 14px;
  padding: 22px 26px;
  margin-top: 30px;
}

.callout .kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.callout p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(240, 234, 220, 0.88);
}

/* ---------- Birth date widget ---------- */

.probe {
  margin-top: 30px;
  padding: 24px 26px;
  border: 1px solid rgba(221, 180, 99, 0.3);
  border-radius: 14px;
}

.probe label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.probe input {
  background: rgba(11, 16, 39, 0.6);
  border: 1px solid rgba(183, 185, 209, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 15px;
}

.probe-out {
  display: none;
  gap: 30px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.probe-out[data-shown='true'] {
  display: flex;
}

.probe-out div .k {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dim);
  display: block;
  margin-bottom: 4px;
}

.probe-out div .v {
  font-size: 26px;
  color: var(--gold);
}

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

.site-foot {
  padding: 54px 0 60px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
}

@media (max-width: 760px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.foot-grid h5 {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 14px;
}

.foot-grid ul {
  list-style: none;
}

.foot-grid li {
  margin-bottom: 9px;
}

.foot-grid a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.foot-grid a:hover {
  color: var(--gold);
}

.foot-note {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(183, 185, 209, 0.12);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--inactive);
}

/* ---------- Odds and ends used across pages ---------- */

.note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-dim);
}

.probe .note {
  margin-top: 14px;
  max-width: 56ch;
}

.probe .note:empty {
  display: none;
}

.site-foot .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  text-decoration: none;
  margin-bottom: 12px;
}

.site-foot .brand img {
  width: 28px;
  height: 28px;
  border-radius: 22%;
}

.hero .status {
  margin-top: 34px;
  margin-bottom: 0;
}

/* ==========================================================================
   Mobile
   The rail collapses, the phone triptych stacks, and anything that was a
   fixed-width column becomes full width. Nav links stay visible but shrink
   rather than disappearing behind a menu the site is too small to need.
   ========================================================================== */

@media (max-width: 720px) {
  .wrap {
    padding: 0 20px;
  }

  .site-nav .wrap {
    height: auto;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-nav .brand {
    margin-right: 0;
    width: 100%;
  }

  /* shown again, smaller: the earlier rule hid these entirely */
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .hero {
    padding: 56px 0 52px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero .sub {
    font-size: 18px;
  }

  .section {
    padding: 52px 0;
  }

  .rail-label .num {
    margin-bottom: 6px;
  }

  /* the dotted leader and italic tag crowd a narrow row */
  .acc-head {
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 17px 0;
  }

  .acc-head .lead {
    display: none;
  }

  .acc-head .title {
    font-size: 19px;
    flex: 1;
  }

  .acc-head .sign {
    margin-left: auto;
  }

  .pages {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .def-row.figure .term {
    font-size: 44px;
  }

  .probe input {
    width: 100%;
  }

  .probe-out {
    gap: 22px;
  }

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

/* keep long words and email addresses from forcing a sideways scroll */
body {
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
}

/* The cream page cards sit inside .acc-body, whose `p` rule sets cream text
   on a cream background. Restate the card's own type here, after it. */
.page-card p {
  font-size: 10.5px;
  line-height: 1.6;
  color: #4a422c;
  max-width: none;
  margin-bottom: 8px;
}

.page-card .quote {
  color: #3a3320;
}

.page-card h4 {
  color: #2a2618;
}

/* second, quieter row of links under the centred home page */
.links-quiet {
  border-top: 0;
  padding-top: 14px;
  font-size: 13px;
}

.links-quiet a {
  color: var(--inactive);
}

/* phone-today.png is 650x1102 while the others are 650x1162, so the captions
   started at three different heights. Force one aspect and crop from the top. */
.phones figure {
  display: flex;
  flex-direction: column;
}

.phones figure img {
  aspect-ratio: 650 / 1162;
  object-fit: cover;
  object-position: top center;
}

.phones figcaption {
  margin-top: auto;
  padding-top: 14px;
}

/* ==========================================================================
   One sky behind everything
   A single fixed canvas sits behind the whole document rather than a canvas
   per hero, so the constellation, the sexagenary ring and the shooting stars
   carry across every page and keep drifting as you scroll.
   ========================================================================== */

/* solid ground on the body so every part of a long page is painted, with the
   gradient carried by the fixed sky layer instead. background-attachment:
   fixed was the obvious way to do this and the wrong one: it leaves anything
   past the first viewport unpainted in print and in full page captures, and
   is unreliable on mobile Safari. */
body {
  background: var(--ink-deep);
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--night);
}

.sky .constellation {
  position: absolute;
  inset: 0;
}

/* content rides above the sky */
.site-nav,
.hero,
.section,
.site-foot,
.legal-head,
.legal-body,
.legal-foot,
.placeholder main {
  position: relative;
  z-index: 1;
}

/* the heroes had their own gradient, which would hide the sky behind them */
.hero,
.legal-head,
body.legal,
body.placeholder {
  background: none;
}

/* keep the reading column legible over a moving background */
.legal-body {
  background: rgba(11, 16, 39, 0.82);
}

.section:nth-of-type(even) {
  background: rgba(11, 16, 39, 0.35);
}

/* ==========================================================================
   Centred treatment
   Maxine's structure on the centred axis: her section numbering moves from a
   left rail to a centred label above each heading, the measure narrows, and
   headings centre while prose stays left aligned inside the column, because
   centred paragraphs are tiring to read.
   ========================================================================== */

body.centred .wrap {
  max-width: 760px;
}

body.centred .hero {
  text-align: center;
  padding: 104px 0 92px;
}

body.centred .hero .mark {
  width: 46px;
  height: 46px;
  margin: 0 auto 30px;
}

body.centred .hero .label {
  display: block;
  margin-bottom: 18px;
}

body.centred .hero h1 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

body.centred .hero .sub {
  margin-left: auto;
  margin-right: auto;
  max-width: 46ch;
}

/* the rail collapses: label above, content below, both centred */
body.centred .rail {
  grid-template-columns: 1fr;
  gap: 0;
}

body.centred .rail-label {
  position: static;
  text-align: center;
  margin-bottom: 30px;
}

body.centred .rail-label .note {
  max-width: 44ch;
  margin: 0 auto;
}

body.centred .section h2 {
  text-align: center;
}

body.centred .section .intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* blocks centre, prose inside them does not */
body.centred .pages,
body.centred .callout,
body.centred .probe {
  margin-left: auto;
  margin-right: auto;
}

body.centred .def-row {
  grid-template-columns: 1fr;
  gap: 10px;
  text-align: center;
}

body.centred .def-row .body {
  max-width: 54ch;
  margin: 0 auto;
  text-align: left;
}

body.centred .def-row.figure .term {
  font-size: 50px;
}

body.centred .probe {
  text-align: center;
}

body.centred .probe-out {
  justify-content: center;
}

body.centred .probe .note {
  margin-left: auto;
  margin-right: auto;
}

body.centred .acc-body p {
  max-width: 58ch;
}

body.centred .site-foot {
  text-align: center;
}

body.centred .foot-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 620px;
  margin: 0 auto;
}

body.centred .site-foot .brand {
  justify-content: center;
}

@media (max-width: 720px) {
  body.centred .hero {
    padding: 64px 0 56px;
  }
  body.centred .foot-grid {
    grid-template-columns: 1fr;
  }
}
