/* Mythodeon's website: one stylesheet, three font files, no script.

   The plan, in six lines:
   1. Idea     The site is a theatre programme, and tonight's performance is your own books.
   2. Colour   Velvet crimson leads, in flat fields that reach the screen's edges. Plaster
               blush is the paper, blackcurrant the ink and the dark of the house, and gilt
               with limelight the one accent. At night the house lights go down: same theatre.
   3. Type     Besley, a Clarendon as the Victorian playbill knew it, set wide and condensed
               like the lines of a bill; Literata, the face the app sets books in, to read.
   4. Layout   A crimson pelmet caps every page. Home runs the length of an evening: the
               curtain, the programme on blush, the house in the dark, a gold ticket.
   5. Picture  One drawing: the curtain parts on a giant open book under a single light,
               its lines lifting off as sound, with a full house of readers in front.
   6. Motion   One moment as the page opens: the light settles, the sound lifts off, the
               curtain breathes. Then stillness, unless the reader's pointer stirs the stage. */

/* ---- The fonts -------------------------------------------------------------
   Besley and Literata, both under the SIL Open Font License 1.1 (licences/OFL-*.txt).
   site/README.md says where the files came from and how they were cut down.
   Each covers the characters in unicode-range, and scripts/site_check.sh fails
   when a page uses one that neither has. */

@font-face {
  font-family: "Besley";
  src: url("/fonts/besley.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DC, U+2009-200A, U+2013-2014,
    U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2032-2033, U+2039-203A, U+20AC, U+2212, U+2605-2606,
    U+2619-261C, U+261E, U+2766-2767;
}

@font-face {
  font-family: "Literata";
  src: url("/fonts/literata.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DC, U+2009-200A, U+2013-2014,
    U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2032-2033, U+2039-203A, U+20AC, U+2122, U+2212;
}

@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DC, U+2009-200A, U+2013-2014,
    U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2032-2033, U+2039-203A, U+20AC, U+2122, U+2212;
}

/* Faces already on Apple devices, standing in for the moment before the fonts
   arrive, and sized to run as wide as they do, so that nothing jumps when they
   change places. Elsewhere the stacks below fall to Georgia or Noto Serif. */
@font-face {
  font-family: "Besley stand-in";
  src: local("Superclarendon Black"), local("Superclarendon-Black");
  font-weight: 750 900;
  size-adjust: 91.5%;
}

@font-face {
  font-family: "Besley stand-in";
  src: local("Superclarendon Bold"), local("Superclarendon-Bold");
  font-weight: 400 749;
  size-adjust: 89%;
}

@font-face {
  font-family: "Literata stand-in";
  src: local("Iowan Old Style Roman"), local("IowanOldStyle-Roman");
  font-weight: 400 599;
  size-adjust: 105.5%;
}

@font-face {
  font-family: "Literata stand-in";
  src: local("Iowan Old Style Bold"), local("IowanOldStyle-Bold");
  font-weight: 600 700;
  size-adjust: 104.5%;
}

@font-face {
  font-family: "Literata stand-in";
  src: local("Iowan Old Style Italic"), local("IowanOldStyle-Italic");
  font-style: italic;
  size-adjust: 114%;
}

/* ---- end of the fonts ---- */

:root {
  color-scheme: light dark;

  /* The theatre's colours. */
  --velvet: #a1122f;
  --velvet-deep: #7e0c26;
  --velvet-light: #bc2143;
  --gilt: #edbb45;
  --gilt-deep: #b98227;
  --limelight: #fdeec2;
  --blush: #f7dad3;
  --paper: #fff5ee;
  --ink: #2a0c17;

  /* What each does on the page. The night theme changes these, never the rules below. */
  --ground: var(--blush);
  --ground-2: #f0cbc2;
  --card: var(--paper);
  --text: var(--ink);
  --text-soft: #5e3640;
  --display-ink: var(--velvet);
  --link: var(--velvet);
  --rule: #dfa9a0;
  --focus: var(--velvet);

  --curtain: var(--velvet);
  --curtain-fold: var(--velvet-deep);
  --curtain-light: var(--velvet-light);
  --pelmet: var(--velvet-deep);
  --on-curtain: #fbe4de;

  --house: #260a15;
  --house-2: #3f1223;
  --house-far: #3d1021;
  --house-seat: #54172c;
  --on-house: #f7dad3;
  --on-house-soft: #d3aaa6;

  --stage: #2d0c1c;
  --stage-2: #3c1228;
  --stage-wing: #210814;
  --stage-floor: #45162b;
  --stage-board: #5a2038;
  --beam: #ffe2c4;
  --page-shade: #e9c4bb;
  --page-line: #5b3340;

  --notice-bg: #ffe27a;
  --notice-text: #2e2200;

  /* Type. */
  --display: "Besley", "Besley stand-in", "Clarendon", "Rockwell", "Roboto Slab", Georgia, serif;
  --reading: "Literata", "Literata stand-in", "Charter", "Palatino Linotype", Palatino, "Noto Serif", Georgia, serif;
  --plain: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", "Droid Sans Mono", monospace;

  /* Measures. */
  --gutter: clamp(16px, 4vw, 3rem);
  --wide: 76rem;
  --measure: 38rem;
  --edge: max(var(--gutter), calc((100% - var(--wide)) / 2));
  --house-h: clamp(5.75rem, 11vw, 10rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1d0911;
    --ground-2: #2b0f1a;
    --card: #2e101c;
    --text: #f1d5ce;
    --text-soft: #c9a39f;
    --display-ink: #f7b3b1;
    --link: #ff9fae;
    --rule: #4f1c2c;
    --focus: var(--gilt);

    --curtain: #86102a;
    --curtain-fold: #650b20;
    --curtain-light: #a31a39;
    --pelmet: #5e0a1d;
    --on-curtain: #f6dcd6;

    --house: #110308;
    --house-2: #2a0c18;
    --house-far: #2b0b17;
    --house-seat: #3d1021;
    --on-house: #f1d5ce;
    --on-house-soft: #c9a39f;

    --stage: #1f0813;
    --stage-2: #2e0d1d;
    --stage-wing: #130409;
    --stage-floor: #3a1224;
    --stage-board: #4d1a30;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 1.125rem/1.6 var(--reading);
  font-variant-numeric: oldstyle-nums;
  overflow-wrap: break-word;
}

@media (min-width: 48rem) {
  body {
    font-size: 1.1875rem;
  }
}

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

p,
li,
dd {
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

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

strong {
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-variant-numeric: lining-nums;
  text-wrap: balance;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.6rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 0.4rem;
  background: var(--paper);
  color: var(--ink);
  font: 700 1rem/1.2 var(--display);
  --focus: var(--gilt);
}

.skip:focus {
  top: 1rem;
}

/* Test and local copies say so at the top of every page (scripts/build_site.sh).
   Plain type on a yellow slip, so that nobody takes it for part of the design. */
.env-banner {
  position: relative;
  z-index: 6;
  margin: 0;
  padding: 0.55rem var(--gutter);
  background: var(--notice-bg);
  color: var(--notice-text);
  text-align: center;
  font: 500 0.95rem/1.4 var(--plain);
}

.env-banner strong {
  letter-spacing: 0.08em;
  margin-right: 0.4em;
}

/* A setting not chosen yet (site/site.conf), on the test and local copies. */
.placeholder {
  padding: 0 0.3em;
  border-radius: 0.2em;
  background: var(--notice-bg);
  color: var(--notice-text);
  font-family: var(--plain);
  font-size: 0.92em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---- The pelmet: the header on every page ---- */

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 0.75rem;
  padding: 0.55rem var(--edge) 0.5rem;
  background: var(--pelmet);
  color: var(--on-curtain);
  -webkit-font-smoothing: antialiased;
  --focus: var(--gilt);
}

/* Its scalloped edge, trimmed in gold. */
.site-header::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  height: 1.0625rem;
  background: radial-gradient(circle at 50% 0, var(--pelmet) 0.78rem, var(--gilt) 0.81rem 0.94rem, transparent 0.97rem) center top / 2rem 1.0625rem repeat-x;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  color: inherit;
  text-decoration: none;
}

.wordmark {
  font: 900 clamp(1.15rem, 0.5rem + 3.2vw, 1.4rem) / 1 var(--display);
  letter-spacing: -0.01em;
}

/* Where the logo goes once it is chosen. Hidden on the public site; shown as
   an empty frame on the test and local copies. */
.logo-slot {
  display: none;
}

.env-test .logo-slot,
.env-local .logo-slot {
  display: inline-block;
  width: 1.35em;
  height: 1.35em;
  font-size: clamp(1.15rem, 0.5rem + 3.2vw, 1.4rem);
  border: 1.5px dashed currentColor;
  border-radius: 0.35rem;
  opacity: 0.75;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(0.85rem, 4vw, 1.25rem);
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: inherit;
  font: 600 0.9375rem/1.2 var(--display);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(50% + 0.85em) / 0 2px no-repeat;
  transition: background-size 0.2s ease-out;
}

.site-header nav a:hover {
  background-size: 100% 2px;
}

.site-header nav a[aria-current="page"] {
  background-image: linear-gradient(var(--gilt), var(--gilt));
  background-size: 100% 2px;
}

@media (min-width: 48rem) {
  .site-header {
    padding-block: 0.8rem 0.75rem;
  }

  .wordmark,
  .env-test .logo-slot,
  .env-local .logo-slot {
    font-size: 1.7rem;
  }

  .brand {
    gap: 0.6rem;
  }

  .site-header nav {
    column-gap: 1.75rem;
  }

  .site-header nav a {
    font-size: 1.0625rem;
  }
}

/* ---- Home: the curtain ---- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  color: var(--on-curtain);
  -webkit-font-smoothing: antialiased;
  --focus: var(--gilt);
}

/* The curtain itself: one colour, hanging in a few soft folds. */
.hero,
.finale {
  background: var(--curtain);
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 3.4rem,
      color-mix(in srgb, var(--curtain-fold) 30%, transparent) 3.9rem 4.25rem,
      transparent 4.9rem 9.6rem,
      color-mix(in srgb, var(--curtain-light) 18%, transparent) 10rem 10.2rem,
      transparent 10.7rem 13.5rem,
      color-mix(in srgb, var(--curtain-fold) 24%, transparent) 14rem 14.4rem,
      transparent 15rem 19rem
    ),
    var(--curtain);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(2.4rem, 7vw, 4rem) var(--edge) 0;
}

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

.kicker {
  margin: 0;
  font: 700 1.0625rem/1.3 var(--display);
  font-stretch: 87.5%;
  letter-spacing: 0.01em;
}

.kicker::before {
  content: "\2605";
  content: "\2605" / "";
  margin-right: 0.5em;
  color: var(--gilt);
}

/* The headline, set like three lines of a playbill: wide, condensed, then a voice. */
.bill {
  container-type: inline-size;
  max-width: 38rem;
  margin: 0.6rem 0 0;
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.012em;
  overflow-wrap: normal;
}

.bill span {
  display: block;
}

/* Each line is sized to fill the measure, as a compositor would set a bill:
   the widths are the lines' own, in ems, in these faces. The vw sizes are for
   browsers without container units. */
.bill-1 {
  font-size: clamp(2.6rem, 17vw, 5.85rem);
  font-size: 20.2cqi;
}

.bill-2 {
  /* Clear of the tail of the g in the line above. */
  margin-top: 0.32em;
  font-stretch: 75%;
  font-size: clamp(1.8rem, 11.6vw, 3.95rem);
  font-size: 13.7cqi;
}

.bill-3 {
  margin-top: 0.04em;
  color: var(--gilt);
  font: italic 400 clamp(2.5rem, 16.4vw, 5.6rem) / 0.98 var(--reading);
  font-size: 19.4cqi;
  letter-spacing: -0.01em;
}

.hero .lead {
  margin: 1.1rem 0 0;
  max-width: 30em;
}

.lead {
  font-size: clamp(1.125rem, 0.98rem + 0.6vw, 1.3125rem);
  line-height: 1.5;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.1rem;
  margin: 1.4rem 0 0;
}

.button {
  --button-bg: var(--gilt);
  --button-ink: var(--ink);
  --button-edge: var(--gilt-deep);
  display: inline-block;
  padding: 0.95rem 1.5rem 0.9rem;
  border-radius: 0.45rem;
  background: var(--button-bg);
  color: var(--button-ink);
  font: 800 1.1875rem/1.1 var(--display);
  font-variant-numeric: lining-nums;
  text-decoration: none;
  box-shadow: 0 0.3rem 0 var(--button-edge);
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.button:hover {
  transform: translateY(0.1rem);
  box-shadow: 0 0.2rem 0 var(--button-edge);
}

.button:active {
  transform: translateY(0.3rem);
  box-shadow: 0 0 0 var(--button-edge);
}

/* The Google Play button before the app is live: a link with nowhere to go yet. */
.button[aria-disabled="true"] {
  padding: calc(0.95rem - 2px) calc(1.5rem - 2px) calc(0.9rem - 2px);
  border: 2px dashed currentColor;
  background: none;
  color: inherit;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.soon {
  font: italic 400 1.125rem/1.2 var(--reading);
}

.hero .small {
  margin: 0.9rem 0 0;
  font-style: italic;
  font-size: 1.0625rem;
}

.small::before {
  content: "\261E";
  content: "\261E" / "";
  margin-right: 0.45em;
  font: 400 1.15em/1 var(--display);
  font-style: normal;
  vertical-align: -0.04em;
}

.hero-art {
  width: min(100%, 36rem);
  margin: 1.4rem auto 0;
}

.stage {
  display: block;
  width: 100%;
  height: auto;
}

/* The full house, along the foot of the curtain. */
.house {
  position: absolute;
  inset: auto 0 0;
  display: block;
  width: 100%;
  height: var(--house-h);
  pointer-events: none;
}

/* On a phone the copy closes up, so that the curtain reaches the first screen. */
@media (max-width: 30rem) {
  .hero-inner {
    padding-top: 1.75rem;
  }

  .hero .lead {
    margin-top: 0.9rem;
    font-size: 1.0625rem;
    line-height: 1.45;
  }

  .hero .cta {
    margin-top: 1.15rem;
  }

  .hero .small {
    margin-top: 0.7rem;
  }

  .hero-art {
    margin-top: 0.9rem;
  }
}

@media (min-width: 62rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    column-gap: clamp(1.25rem, 3.4vw, 3rem);
    padding-top: clamp(2.75rem, 4vw, 3.5rem);
  }

  .hero-copy {
    align-self: center;
    padding-bottom: calc(var(--house-h) + 1.25rem);
  }

  .bill {
    max-width: 29rem;
  }

  .hero-art {
    align-self: end;
    width: 100%;
    max-width: 46rem;
    margin: 0 0 0 auto;
  }

  .stage {
    overflow: visible;
  }
}

/* The drawing's colours. One light, from above and a little to the left. */
.seam {
  display: none;
}

@media (min-width: 62rem) {
  .seam {
    display: inline;
  }
}

.st-back {
  fill: var(--stage);
}

.st-glow {
  fill: var(--stage-2);
}

.st-wing {
  fill: var(--stage-wing);
}

.st-wing2 {
  fill: var(--stage-wing);
  opacity: 0.5;
}

.st-floor {
  fill: var(--stage-floor);
}

.st-board {
  stroke: var(--stage-board);
  stroke-width: 1.5;
}

.st-shadow {
  fill: var(--stage-wing);
  opacity: 0.6;
}

.beam {
  fill: var(--beam);
  opacity: 0.16;
}

.pool {
  fill: var(--beam);
  opacity: 0.4;
}

.pool-heart {
  opacity: 0.5;
}

.bk-board {
  fill: var(--gilt);
}

.bk-board-shade {
  fill: var(--gilt-deep);
}

.bk-page {
  fill: var(--paper);
}

.bk-page-shade {
  fill: var(--page-shade);
}

.bk-edge {
  fill: #ead7ca;
}

.bk-edge2 {
  fill: #f6e8dc;
}

.bk-edge-shade {
  fill: #c79a97;
}

.bk-edge-shade2 {
  fill: #d8aea8;
}

.st-ladder {
  stroke: var(--gilt-deep);
  stroke-width: 3;
  stroke-linecap: round;
}

.bk-gutter {
  fill: #cfa39f;
}

.bk-gutter-lit {
  fill: #f1d9cf;
}

.bk-cap,
.bk-ribbon {
  fill: var(--velvet-light);
}

.bk-line {
  stroke: var(--page-line);
  stroke-width: 2.6;
  stroke-linecap: round;
}

.bk-line-shade {
  stroke: #7a4852;
}

.bk-line-gone {
  stroke: #ecd6cc;
  stroke-width: 2.2;
}

.wave {
  stroke: var(--limelight);
  stroke-width: 3.2;
  stroke-linecap: round;
}

.wave-2 {
  opacity: 0.9;
}

.wave-3 {
  opacity: 0.75;
}

.wave-4 {
  opacity: 0.6;
}

.wave-5 {
  opacity: 0.45;
}

.mote {
  fill: var(--limelight);
  opacity: 0.7;
}

.c-main {
  fill: var(--curtain);
}

.c-fold {
  fill: var(--curtain-fold);
}

.c-light {
  fill: var(--curtain-light);
}

.trim {
  stroke: var(--gilt);
  stroke-width: 4;
  stroke-linecap: round;
}

.trim-beads {
  stroke: var(--gilt);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 0.01 9.5;
}

.cord {
  fill: var(--gilt);
}

.cord-twist {
  stroke: var(--gilt-deep);
  stroke-width: 2;
}

.cord-line {
  stroke: var(--gilt);
  stroke-width: 3;
}

.row-far {
  fill: var(--house-far);
}

.row-near {
  fill: var(--house);
}

.seat {
  fill: var(--house-2);
}

.seat-rim {
  stroke: var(--house-far);
  stroke-width: 3;
  stroke-linecap: round;
}

.hp-band {
  stroke: var(--on-house);
  stroke-width: 5;
}

.hp-cup,
.rd-page {
  fill: var(--on-house);
}

.rd-page-shade {
  fill: var(--page-shade);
}

/* ---- Home: the programme ---- */

.band {
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--edge);
}

.display {
  margin: 0;
  color: var(--display-ink);
  font-weight: 900;
  font-size: clamp(2.9rem, 1.9rem + 5.2vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
}

.programme {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 5rem);
}

.act {
  min-width: 0;
}

.act h3 {
  margin: 0 0 0.6rem;
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.1;
}

.act h3::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 0.3rem;
  margin-bottom: 0.9rem;
  background: var(--display-ink);
}

.act p {
  margin: 0;
  max-width: var(--measure);
}

.act p + p,
.act-bill p:last-child {
  margin-top: 0.75rem;
}

/* The bill: what it reads, in the type of a bill. Three lines, each sized to
   fill the measure: the divisors are the lines' own widths in ems. The list's
   own size is nought, so that only the gaps below stand between its words. */
.formats {
  container-type: inline-size;
  margin: 1.1rem 0 1.2rem;
  padding: 0;
  list-style: none;
  color: var(--display-ink);
  font: 900 0/1 var(--display);
  font-stretch: 75%;
}

.formats li {
  display: inline;
  font-size: clamp(1.9rem, 9.4vw, 5rem);
  font-size: calc(100cqi / 9.65);
  line-height: 1.02;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.formats li + li {
  margin-left: 0.36em;
}

.formats li:nth-child(even) {
  color: var(--text);
}

.formats li:nth-child(4)::after,
.formats li:nth-child(6)::after {
  content: "\A";
  white-space: pre;
}

.formats li:nth-child(5),
.formats li:nth-child(7) {
  margin-left: 0;
}

.formats li:nth-child(n + 5) {
  font-size: clamp(2.1rem, 10.6vw, 5.6rem);
  font-size: calc(100cqi / 8.45);
}

.formats li:nth-child(n + 7) {
  font-size: clamp(1.95rem, 9.7vw, 5.2rem);
  font-size: calc(100cqi / 9.3);
}

/* The company: a cast list, with its leaders. */
.cast {
  margin: 1.2rem 0 1.3rem;
  max-width: 30rem;
}

.cast div {
  display: grid;
  grid-template-columns: auto minmax(1.5rem, 1fr) auto;
  align-items: baseline;
  padding: 0.28rem 0;
}

.cast div::before {
  content: "";
  grid-area: 1 / 2;
  margin: 0 0.6rem;
  border-bottom: 0.17rem dotted var(--text-soft);
  transform: translateY(-0.22rem);
}

.cast dt {
  grid-area: 1 / 1;
  margin: 0;
  font: 900 clamp(1.75rem, 1.4rem + 1.6vw, 2.4rem) / 1.05 var(--display);
  letter-spacing: -0.01em;
}

.cast dd {
  grid-area: 1 / 3;
  margin: 0;
  font-style: italic;
  font-size: 1.25rem;
}

.smallprint {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.55;
}

/* Lights down: a phone with its screen off, still reading. */
.dark-phone {
  display: block;
  width: min(100%, 25rem);
  height: auto;
  margin: 1.4rem 0 0;
}

.ph-body {
  fill: var(--text);
}

.ph-screen {
  fill: var(--house);
}

.ph-glint {
  fill: var(--house-2);
}

.ph-wave {
  stroke: var(--display-ink);
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The range of speeds, drawn as the scale it is. */
.act .speed {
  display: grid;
  grid-template-columns: auto minmax(4rem, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  margin: 1.5rem 0 0;
  max-width: 25rem;
  font: 900 1.6rem/1 var(--display);
  font-variant-numeric: lining-nums;
  color: var(--display-ink);
}

.speed-track {
  position: relative;
  height: 1.4rem;
  background:
    linear-gradient(var(--text), var(--text)) center / 100% 0.2rem no-repeat,
    repeating-linear-gradient(90deg, var(--text) 0 2px, transparent 2px 20%) center / calc(100% - 2px) 0.9rem no-repeat;
}

.speed-track::after {
  content: "";
  position: absolute;
  left: 20%;
  top: 50%;
  width: 1.4rem;
  height: 1.4rem;
  border: 0.25rem solid var(--ground);
  border-radius: 50%;
  background: var(--display-ink);
  transform: translate(-50%, -50%);
}

/* House rules: the one notice on the wall. */
.act-rules h3::before {
  content: "\2619";
  content: "\2619" / "";
  display: inline;
  width: auto;
  height: auto;
  margin: 0 0.45em 0 0;
  background: none;
  color: var(--display-ink);
  font-weight: 400;
}

.act-rules h3::after {
  content: "\2767";
  content: "\2767" / "";
  margin-left: 0.45em;
  color: var(--display-ink);
  font-weight: 400;
}

.act-rules {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 0.2rem solid var(--display-ink);
  outline: 1px solid var(--display-ink);
  outline-offset: -0.6rem;
  background: var(--card);
}

.rules {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 2.5rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.rules strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--display-ink);
  font: 900 clamp(1.9rem, 1.5rem + 1.8vw, 2.6rem) / 1 var(--display);
  font-stretch: 75%;
}

.pointer {
  margin-top: 1.5rem;
}

.act .pointer {
  margin-top: 1.5rem;
}

.pointer::before {
  content: "\261E";
  content: "\261E" / "";
  margin-right: 0.5em;
  color: var(--display-ink);
  font: 400 1.3em/1 var(--display);
  vertical-align: -0.08em;
}

@media (min-width: 62rem) {
  .rules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .programme > .display,
  .act-bill,
  .act-rules {
    grid-column: 1 / -1;
  }

  .act-bill {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
  }

  .act-bill > * {
    grid-column: 1;
  }

  .act-bill .formats {
    grid-column: 2;
    grid-row: 1 / span 4;
    margin: 0;
  }

  .act-company {
    grid-column: 1 / span 6;
  }

  .act-lights {
    grid-column: 8 / span 5;
  }
}

/* ---- Home: the house, in the dark ---- */

.dark {
  background: var(--house);
  color: var(--on-house);
  -webkit-font-smoothing: antialiased;
  --focus: var(--gilt);
  --link: var(--on-house);
}

.dark .display {
  color: var(--on-house);
}

.gathering {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
}

/* The heading never outgrows its column: its longest word is 5.4 ems wide. */
.gathering-copy {
  min-width: 0;
  container-type: inline-size;
}

.gathering .display {
  font-size: min(clamp(2.9rem, 1.9rem + 5.2vw, 5.75rem), 17.6cqi);
}

.gathering p {
  margin: 1.4rem 0 0;
  max-width: 31rem;
}

.gathering .lead {
  margin-top: 1.6rem;
}

.plan-figure {
  margin: 0;
}

.plan {
  display: block;
  width: 100%;
  height: auto;
}

.plan-figure figcaption {
  margin-top: 0.9rem;
  color: var(--on-house-soft);
  font-style: italic;
  font-size: 1.0625rem;
  text-align: center;
}

.plan-stage {
  fill: var(--curtain);
}

.plan-lights {
  stroke: var(--gilt);
  stroke-width: 3;
  stroke-dasharray: 1 13;
  stroke-linecap: round;
}

.plan-seats {
  stroke-width: 11;
  stroke-linecap: round;
}

.plan-empty {
  stroke: var(--house-seat);
}

.plan-taken {
  stroke: var(--on-house-soft);
}

.plan-yours {
  fill: var(--gilt);
}

.plan-halo {
  stroke: var(--gilt);
  stroke-width: 2;
}

@media (min-width: 62rem) {
  .gathering {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

/* What is in rehearsal. */
.premium {
  position: relative;
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding: clamp(1.75rem, 5vw, 3.25rem);
  border: 1px solid var(--gilt);
  outline: 1px solid var(--gilt);
  outline-offset: 0.35rem;
}

.premium h2 {
  margin: 0;
  color: var(--gilt);
  font-weight: 800;
  font-size: clamp(1.35rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: 1.15;
}

.premium p {
  margin: 0.9rem 0 0;
  max-width: 24em;
  color: var(--limelight);
  font-style: italic;
  font-size: clamp(1.6rem, 1.15rem + 2.3vw, 2.9rem);
  line-height: 1.2;
  text-wrap: balance;
}

.stamp {
  display: inline-block;
  margin: 1.6rem 0 0;
  padding: 0.35rem 0.8rem 0.3rem;
  border: 0.16rem solid currentColor;
  border-radius: 0.3rem;
  color: var(--gilt);
  font: 900 1.25rem/1 var(--display);
  font-stretch: 75%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

@media (min-width: 70rem) {
  .premium p {
    max-width: none;
  }

  .premium p span {
    display: block;
  }

  .premium .stamp {
    position: absolute;
    right: clamp(1.5rem, 5vw, 3.5rem);
    top: clamp(1.5rem, 4vw, 2.75rem);
    margin: 0;
  }
}

/* ---- Home: the ticket ---- */

.finale {
  overflow: hidden;
  overflow: clip;
  color: var(--on-curtain);
  --focus: var(--paper);
}

.ticket {
  --notch: 0.75rem;
  --stub: 3.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--stub) auto;
  max-width: 54rem;
  margin: 0 auto;
  background: var(--gilt);
  color: var(--ink);
  --focus: var(--ink);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 var(--stub), transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% var(--stub), transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle var(--notch) at 0 var(--stub), transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% var(--stub), transparent 98%, #000) right / 51% 100% no-repeat;
}

.ticket-stub {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font: 900 1.5rem/1 var(--display);
  font-stretch: 75%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ticket-body {
  border-top: 0.25rem dotted var(--curtain);
}

.ticket-body {
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 5vw, 3rem) clamp(1.75rem, 4vw, 2.75rem);
}

.ticket h2 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.6rem, 1.8rem + 4vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
}

.terms {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem 2rem;
  margin: 1.4rem 0 0;
}

.terms div {
  padding-top: 0.5rem;
  border-top: 0.14rem solid var(--ink);
}

.terms dt {
  margin: 0;
  font: 700 0.95rem/1.2 var(--display);
  font-stretch: 87.5%;
}

.terms dd {
  margin: 0.15rem 0 0;
  font-size: 1.25rem;
  line-height: 1.25;
  font-variant-numeric: lining-nums;
}

.ticket .button {
  --button-bg: var(--velvet);
  --button-ink: var(--paper);
  --button-edge: var(--ink);
}

.ticket .button[aria-disabled="true"] {
  color: var(--ink);
}

@media (min-width: 40rem) {
  .terms {
    grid-template-columns: repeat(3, minmax(0, auto));
    justify-content: start;
  }
}

@media (min-width: 48rem) {
  .ticket {
    --stub: 5.25rem;
    grid-template-columns: var(--stub) minmax(0, 1fr);
    grid-template-rows: auto;
    -webkit-mask: radial-gradient(circle var(--notch) at var(--stub) 0, transparent 98%, #000) top / 100% 51% no-repeat,
      radial-gradient(circle var(--notch) at var(--stub) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle var(--notch) at var(--stub) 0, transparent 98%, #000) top / 100% 51% no-repeat,
      radial-gradient(circle var(--notch) at var(--stub) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  }

  .ticket-stub {
    font-size: 1.9rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }

  .ticket-body {
    border-top: 0;
    border-left: 0.25rem dotted var(--curtain);
  }

  /* Set down on the curtain a little askew, as a ticket lands. */
  .ticket {
    transform: rotate(-1.4deg);
  }
}

/* On a big screen that is also tall, the first screen is given more of both. */
@media (min-width: 100rem) and (min-height: 60rem) {
  :root {
    --wide: 86rem;
  }

  .hero .bill {
    max-width: 33rem;
  }

  .hero-art {
    max-width: 51rem;
  }
}

/* ---- The foot of every page ---- */

.site-footer {
  position: relative;
  padding: 2.5rem var(--edge) 3rem;
  background: var(--pelmet);
  color: var(--on-curtain);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  --focus: var(--gilt);
  --link: var(--on-curtain);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: auto 0 100%;
  height: 1.0625rem;
  background: radial-gradient(circle at 50% 100%, var(--pelmet) 0.78rem, var(--gilt) 0.81rem 0.94rem, transparent 0.97rem) center bottom / 2rem 1.0625rem repeat-x;
  pointer-events: none;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.6rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--gilt);
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font: 600 1.0625rem/1.2 var(--display);
  text-decoration: none;
}

.site-footer nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.site-footer nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--gilt);
  text-decoration-thickness: 2px;
}

.site-footer p {
  margin: 0.35rem 0;
  max-width: 46rem;
}

/* ---- The pages for reading: privacy, terms, support, licences ---- */

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 clamp(2rem, 5vw, 5rem);
  padding: clamp(3.25rem, 7vw, 5.5rem) var(--edge) clamp(3.5rem, 8vw, 6rem);
}

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

.page h1 {
  margin: 0;
  color: var(--display-ink);
  font-weight: 900;
  font-size: clamp(2.75rem, 1.9rem + 4.6vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
}

.meta {
  margin: 1.1rem 0 0;
  max-width: var(--measure);
  color: var(--text-soft);
  font-style: italic;
}

.prose {
  min-width: 0;
  max-width: 44rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

/* Text keeps to a reading measure; tables and licence texts may run wider. */
.prose > :not(details, .table-wrap) {
  max-width: var(--measure);
}

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

/* A printer's leaf to close the page, as at the end of a chapter. */
.prose::after {
  content: "\2766";
  content: "\2766" / "";
  display: block;
  max-width: var(--measure);
  margin-top: 3rem;
  color: var(--display-ink);
  font: 400 1.75rem/1 var(--display);
  text-align: center;
}

.prose p,
.prose ul,
.prose ol,
.prose dl {
  margin: 1rem 0 0;
}

.prose .lead {
  margin-top: 0;
}

.prose h2 {
  margin: 3rem 0 0;
  padding-top: 1.1rem;
  border-top: 0.2rem solid var(--display-ink);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.35rem + 0.7vw, 1.8rem);
  line-height: 1.15;
  scroll-margin-top: 1.5rem;
}

.prose h2 + p,
.prose h2 + ul,
.prose h2 + dl,
.prose h2 + details {
  margin-top: 0.9rem;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose li {
  padding-left: 0.2rem;
}

.prose li + li {
  margin-top: 0.5rem;
}

.prose li::marker {
  color: var(--display-ink);
}

.prose li > ul {
  margin-top: 0.5rem;
}

/* The heading a link has just jumped to. */
.prose h2:target,
.prose dt:target {
  color: var(--display-ink);
}

/* Questions and their answers. */
.prose dt {
  margin-top: 1.7rem;
  font: 700 1.25rem/1.25 var(--display);
  scroll-margin-top: 1.5rem;
}

.prose dt:first-child {
  margin-top: 0;
}

.prose dd {
  margin: 0.4rem 0 0;
}

/* The way in to a long page: folded away under the title on a narrow screen,
   standing in the margin on a wide one. The same list is in the page twice,
   and only one of the two is ever shown. */
.toc {
  display: none;
  min-width: 0;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding: 1.1rem 0 1.2rem;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  line-height: 1.35;
}

.toc-fold {
  min-width: 0;
  margin-top: 1.5rem;
  max-width: var(--measure);
}

.toc-fold details {
  margin: 0;
}

.toc-fold ol {
  margin: 0.4rem 1rem 0.6rem;
  padding: 0;
  list-style: none;
}

.toc-fold a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text);
  text-decoration: none;
}

.toc-fold li + li a {
  border-top: 1px solid var(--rule);
}

.toc-title {
  margin: 0 0 0.6rem;
  font: 700 1rem/1.2 var(--display);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 0.32rem 0;
  color: var(--text);
  text-decoration: none;
}

.toc a:hover {
  color: var(--link);
  text-decoration: underline;
}

@media (min-width: 62rem) {
  .page-toc {
    grid-template-columns: minmax(0, 14rem) minmax(0, 44rem) minmax(0, 1fr);
    column-gap: clamp(2rem, 4.5vw, 4rem);
  }

  .page-toc .page-head {
    grid-column: 1 / -1;
  }

  .toc-fold {
    display: none;
  }

  .page-toc .toc {
    display: block;
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    padding-bottom: 0;
  }

  .page-toc .prose {
    grid-column: 2;
    grid-row: 2;
  }
}

/* Where to write: the one thing on the support page that should be found at once. */
.box-office {
  margin-top: 1.25rem;
  padding: 1.25rem 1.4rem 1.35rem;
  border-left: 0.35rem solid var(--display-ink);
  background: var(--card);
}

.box-office > :first-child {
  margin-top: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.4;
  font-variant-numeric: lining-nums tabular-nums;
}

th,
td {
  padding: 0.45rem 1rem 0.45rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

th {
  border-bottom: 0.14rem solid var(--text);
  font: 700 0.95rem/1.3 var(--display);
}

/* On a narrow screen, a table's columns keep fixed shares, so that names and
   licences stay on a line where they can. */
@media (max-width: 40rem) {
  table {
    table-layout: fixed;
    font-size: 0.8125rem;
  }

  th,
  td {
    padding-right: 0.6rem;
  }

  th {
    font-size: 0.8125rem;
  }

  th:first-child {
    width: 36%;
  }

  th:nth-child(2) {
    width: 21%;
  }
}

details {
  margin: 0.75rem 0 0;
  border: 1px solid var(--rule);
  border-radius: 0.3rem;
  background: var(--card);
}

summary {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  font: 600 1.0625rem/1.3 var(--display);
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary:hover {
  color: var(--link);
}

summary::before {
  content: "+";
  content: "+" / "";
  flex: none;
  width: 1ch;
  color: var(--display-ink);
  font-weight: 900;
  text-align: center;
}

details[open] > summary::before {
  content: "\2212";
  content: "\2212" / "";
}

details[open] > summary {
  border-bottom: 1px solid var(--rule);
}

details > :not(summary) {
  margin: 1rem;
}

pre {
  overflow-x: auto;
  padding: 0;
  font: 0.8125rem/1.55 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 4;
}

code {
  font: 0.9em var(--mono);
  overflow-wrap: anywhere;
}

/* ---- A page that isn't there ---- */

.lost {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 2rem clamp(2rem, 5vw, 5rem);
  padding: clamp(3.25rem, 7vw, 5.5rem) var(--edge) clamp(3.5rem, 8vw, 6rem);
}

.lost h1 {
  margin: 0;
  color: var(--display-ink);
  font-weight: 900;
  font-size: clamp(2.75rem, 1.9rem + 4.6vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
}

.lost p {
  margin: 1rem 0 0;
  max-width: 30rem;
}

.lost .lead {
  margin-top: 1.4rem;
  font-style: italic;
}

/* The stage, under its arch. */
.ghost {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50% 50% 0 0 / 34% 34% 0 0;
}

.glow {
  fill: var(--limelight);
}

.glow-far {
  opacity: 0.06;
}

.glow-mid {
  opacity: 0.08;
}

.glow-near {
  opacity: 0.16;
}

.lamp-stand {
  fill: #8a6470;
}

.lamp-flex {
  stroke: #6b4553;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.lamp-bulb {
  fill: var(--limelight);
}

.lamp-cage {
  stroke: #8a6470;
  stroke-width: 2.2;
  stroke-linecap: round;
}

@media (min-width: 62rem) {
  .lost {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

/* ---- What moves ----
   One moment as the page opens, over within five seconds: the light settles,
   the sound lifts off the page, the curtain takes a breath. After that the
   page is still, and stirs again only under the reader's own pointer. So
   nothing moves for long by itself, and nothing at all moves for readers who
   ask for less motion (the rule at the end). */

@keyframes settle {
  from {
    opacity: 0.2;
    transform: rotate(-7deg);
  }

  60% {
    opacity: 1;
    transform: rotate(1.2deg);
  }

  to {
    transform: rotate(0);
  }
}

/* Each of these starts and ends at rest. The second of each pair is the same
   movement under another name, which is how a hover starts it afresh. */
@keyframes drift-right {
  50% {
    transform: translate(5px, -3px);
  }
}

@keyframes drift-left {
  50% {
    transform: translate(-5px, -3px);
  }
}

@keyframes stir-right {
  50% {
    transform: translate(5px, -3px);
  }
}

@keyframes stir-left {
  50% {
    transform: translate(-5px, -3px);
  }
}

@keyframes breathe {
  50% {
    transform: scale(1.016, 1.008);
  }
}

@keyframes breathe-on {
  50% {
    transform: scale(1.016, 1.008);
  }
}

@keyframes glow {
  50% {
    opacity: 0.25;
  }
}

@keyframes flicker {
  18% {
    opacity: 0.09;
  }

  36% {
    opacity: 0.2;
  }

  58% {
    opacity: 0.11;
  }

  80% {
    opacity: 0.19;
  }
}

@keyframes flicker-on {
  18% {
    opacity: 0.09;
  }

  36% {
    opacity: 0.2;
  }

  58% {
    opacity: 0.11;
  }

  80% {
    opacity: 0.19;
  }
}

.light {
  transform-origin: 342px -40px;
  animation: settle 2.2s cubic-bezier(0.3, 0.6, 0.3, 1) 0.2s backwards;
}

.drape-l {
  transform-origin: 112px 270px;
  animation: breathe 4.4s ease-in-out 0.3s 1;
}

.drape-r {
  transform-origin: 608px 270px;
  animation: breathe 4.1s ease-in-out 0.6s 1;
}

.wave {
  animation: drift-right 2.1s ease-in-out 0.4s 2;
}

.wave-2,
.wave-4 {
  animation-name: drift-left;
  animation-delay: 0.7s;
}

.wave-3 {
  animation-delay: 0.55s;
}

.glow-near {
  animation: flicker 4.4s linear 0.4s 1;
}

.hero-art:hover .drape-l,
.hero-art:hover .drape-r {
  animation: breathe-on 5.6s ease-in-out infinite;
}

.hero-art:hover .wave {
  animation: stir-right 3.4s ease-in-out infinite;
}

.hero-art:hover .wave-2,
.hero-art:hover .wave-4 {
  animation-name: stir-left;
  animation-duration: 4.2s;
}

.plan-figure:hover .plan-halo {
  animation: glow 1.8s ease-in-out infinite;
}

.ghost:hover .glow-near {
  animation: flicker-on 4.4s linear infinite;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---- On paper ---- */

@media print {
  :root {
    --ground: #fff;
    --card: #fff;
    --text: #000;
    --text-soft: #333;
    --display-ink: #000;
    --link: #000;
    --rule: #999;
  }

  body {
    font-size: 11pt;
  }

  .env-banner,
  .skip,
  .site-header nav,
  .site-footer nav,
  .toc,
  .hero-art,
  .house {
    display: none;
  }

  .site-header,
  .site-footer,
  .hero,
  .dark,
  .finale {
    background: none;
    color: #000;
  }

  .site-header::after,
  .site-footer::before {
    display: none;
  }

}
