:root {
  --color-siren-tint: #FFE6E4;
  --color-siren-lit: #F96457;
  --color-siren: #D31E1F;
  --color-siren-deep: #9B1014;
  --color-siren-dark: #521210;
  --color-hivis-tint: #F7FDC2;
  --color-hivis: #E0F604;
  --color-hivis-deep: #B7CC03;
  --color-hivis-off: #899445;
  --color-reflector: #DDE4E9;
  --color-reflector-shade: #A4AEB6;
  --color-canvas-light: #E8D5B4;
  --color-canvas: #D1AE79;
  --color-canvas-shade: #AB8452;
  --color-leather: #6B462C;
  --color-soot-950: #0F0B09;
  --color-soot-900: #1B1613;
  --color-soot-800: #2A2420;
  --color-soot-700: #3C3530;
  --color-soot-500: #68605A;
  --color-soot-300: #B0A9A3;
  --color-feather: #FCFBF7;
  --color-eggshell: #F9F2E3;
  --color-eggshell-shade: #EEE1CC;
  --color-yolk-tint: #FFF2CB;
  --color-yolk: #EFB301;
  --color-yolk-deep: #D78111;
  --color-engineer-tint: #FFE8D7;
  --color-engineer: #E37802;
  --color-engineer-deep: #A74901;
  --color-medic-tint: #D5FAE9;
  --color-medic: #01B384;
  --color-medic-deep: #016549;
  --color-diver: #4DD3DE;
  --color-diver-deep: #03707C;
  --color-pilot: #0F74CC;
  --color-pilot-deep: #044B94;
  --color-ray-red: #D2181A;
  --color-ray-orange: #FA7D12;
  --font-display: "Bagel Fat One", "Arial Black", system-ui, sans-serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-stamp: "Doto", ui-monospace, "SF Mono", Menlo, monospace;
}

/* Chicken Rescue Squad: the carton, on the web.
   The colour and face variables in :root are written by build.py from facts.py. */

@font-face {
  font-family: "Bagel Fat One";
  src: url("../fonts/bagel-fat-one.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Doto";
  src: url("../fonts/doto.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  --gutter: clamp(0.75rem, 4vw, 2rem);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ink: var(--color-soot-900);
  --ray: calc(360deg / 28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-soot-900);
  background: var(--color-soot-900);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure, dl, dd {
  margin: 0;
}
h1, h2, h3, h4 {
  overflow-wrap: break-word;
  text-wrap: balance;
}
ul, ol {
  padding: 0;
  list-style: none;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--color-soot-950);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--color-hivis);
  border-radius: 4px;
}
::selection {
  background: var(--color-hivis);
  color: var(--color-soot-950);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--color-hivis);
  color: var(--color-soot-950);
  font-weight: 800;
  border-radius: 4px;
}
.skip:focus {
  top: 0.75rem;
}

/* --- Lettering ------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.t-hero { font-size: clamp(1.7rem, 0.55rem + 7.4vw, 5.4rem); }
.t-1 { font-size: clamp(1.6rem, 0.9rem + 4.4vw, 3.9rem); }
.t-2 { font-size: clamp(1.45rem, 1rem + 2.6vw, 2.9rem); }
.t-3 { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem); }
.t-4 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); }
/* The display face pressed into pulp: dark ink, a hairline of light under it. */
.pressed {
  color: var(--pressed);
  text-shadow: 0 0.04em 0 var(--emboss);
}
.eyebrow {
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.15;
}
/* Dot-matrix ink, like the code printed on an egg. */
.stamp {
  font-family: var(--font-stamp);
  font-weight: 900;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.lede {
  font-size: clamp(1.02rem, 0.95rem + 0.45vw, 1.22rem);
  line-height: 1.5;
}
.link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}
.link:hover {
  text-decoration-style: solid;
}

/* --- Cartons: one colour of pulp each, as the app dyes its regions ----------- */
.dye-engine { --pulp: #F96457; --lit: #FFE6E4; --well: #D31E1F; --deep: #9B1014; --pressed: #521210; --on: #0F0B09; --mute: #1B1613; --emboss: rgb(252 251 247 / 0.55); }
.dye-natural { --pulp: #E8D5B4; --lit: #F9F2E3; --well: #D1AE79; --deep: #AB8452; --pressed: #6B462C; --on: #1B1613; --mute: #3C3530; --emboss: rgb(252 251 247 / 0.55); }
.dye-paper { --pulp: #F9F2E3; --lit: #FCFBF7; --well: #EEE1CC; --deep: #D1AE79; --pressed: #1B1613; --on: #1B1613; --mute: #3C3530; --emboss: rgb(252 251 247 / 0.55); }
.dye-reward { --pulp: #EFB301; --lit: #FFF2CB; --well: #D78111; --deep: #D78111; --pressed: #0F0B09; --on: #0F0B09; --mute: #1B1613; --emboss: rgb(252 251 247 / 0.55); }
.dye-town { --pulp: #9DD96F; --lit: #F7F0D6; --well: #5D9847; --deep: #2E734B; --pressed: #265632; --on: #1B1613; --mute: #2A2420; --emboss: rgb(252 251 247 / 0.55); }
.dye-bay { --pulp: #3FA1B6; --lit: #91DAE9; --well: #165B81; --deep: #103058; --pressed: #1B1613; --on: #1B1613; --mute: #1B1613; --emboss: rgb(252 251 247 / 0.55); }
.dye-forest { --pulp: #EAB07D; --lit: #F3E0B0; --well: #E37802; --deep: #A74901; --pressed: #683834; --on: #1B1613; --mute: #2A2420; --emboss: rgb(252 251 247 / 0.55); }
.dye-peaks { --pulp: #B8D1EB; --lit: #F1F8FD; --well: #83BEF0; --deep: #545E6F; --pressed: #3C3530; --on: #1B1613; --mute: #3C3530; --emboss: rgb(252 251 247 / 0.55); }
.dye-valley { --pulp: #4C5872; --lit: #869BB1; --well: #363B41; --deep: #0F0B09; --pressed: #B8D1EB; --on: #FCFBF7; --mute: #B8D1EB; --emboss: rgb(15 11 9 / 0.35); }
.dye-canyon { --pulp: #E8B681; --lit: #FBE7C4; --well: #BD6440; --deep: #683834; --pressed: #683834; --on: #1B1613; --mute: #2A2420; --emboss: rgb(252 251 247 / 0.55); }
.dye-island { --pulp: #563A38; --lit: #C67447; --well: #382E2C; --deep: #1E1615; --pressed: #D1AE79; --on: #F9F2E3; --mute: #E8D5B4; --emboss: rgb(15 11 9 / 0.35); }
.dye-capital { --pulp: #D3D1CB; --lit: #FCFBF7; --well: #75BDD6; --deep: #044B94; --pressed: #32363B; --on: #1B1613; --mute: #3C3530; --emboss: rgb(252 251 247 / 0.55); }
.dye-night { --pulp: #1B1613; --lit: #3C3530; --well: #0F0B09; --deep: #0F0B09; --pressed: #E0F604; --on: #F9F2E3; --mute: #B0A9A3; --emboss: rgb(15 11 9 / 0.35); }

/* Pulp is fibrous: the app's four lattices of flecks. */
.carton {
  position: relative;
  color: var(--on);
  background-color: var(--pulp);
  background-image:
    radial-gradient(circle at center, color-mix(in srgb, var(--deep) 38%, transparent) 0 1px, transparent 1.7px),
    radial-gradient(circle at center, color-mix(in srgb, var(--lit) 62%, transparent) 0 1.4px, transparent 2.1px),
    radial-gradient(circle at center, color-mix(in srgb, var(--deep) 38%, transparent) 0 1.2px, transparent 1.9px),
    radial-gradient(circle at center, color-mix(in srgb, var(--lit) 62%, transparent) 0 1.6px, transparent 2.3px);
  background-size: 82px 74px, 58px 86px, 106px 62px, 134px 118px;
  background-position: 18px 23px, 41px 53px, 48px 50px, 113px 17px;
}
/* The moulded ridge along a carton's top edge: humps with a lit rim. */
.ridge::before {
  --r: clamp(11px, 2.4vw, 20px);
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: var(--r);
  pointer-events: none;
  background: radial-gradient(circle at 50% 100%, var(--pulp) calc(var(--r) - 3.5px), var(--lit) calc(var(--r) - 3px)) 50% 0 / calc(var(--r) * 2) 100% repeat-x;
  -webkit-mask: radial-gradient(circle at 50% 100%, #000 calc(var(--r) - 0.5px), #0000 var(--r)) 50% 0 / calc(var(--r) * 2) 100% repeat-x;
  mask: radial-gradient(circle at 50% 100%, #000 calc(var(--r) - 0.5px), #0000 var(--r)) 50% 0 / calc(var(--r) * 2) 100% repeat-x;
}
.band {
  padding-block: clamp(3.25rem, 2rem + 7vw, 7.5rem);
}
.wrap {
  width: min(100% - 2 * var(--gutter), 75rem);
  margin-inline: auto;
}
.wrap--narrow {
  width: min(100% - 2 * var(--gutter), 52rem);
}

/* The squad's sunburst, as on the icon. */
.rays {
  background:
    radial-gradient(circle at var(--ray-x, 50%) var(--ray-y, 60%), rgb(255 214 92 / 0.42), transparent 34%),
    radial-gradient(circle at var(--ray-x, 50%) var(--ray-y, 60%), transparent 42%, rgb(96 8 10 / 0.42) 100%),
    repeating-conic-gradient(
      from calc(var(--ray) * -0.5) at var(--ray-x, 50%) var(--ray-y, 60%),
      var(--c1, var(--color-ray-red)) 0 calc(var(--ray) - 0.12deg),
      var(--c2, var(--color-ray-orange)) var(--ray) calc(var(--ray) * 2 - 0.12deg),
      var(--c1, var(--color-ray-red)) calc(var(--ray) * 2)
    );
}

/* --- Section heads ------------------------------------------------------------ */
.sec-head {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  max-width: 44rem;
  margin-bottom: clamp(1.75rem, 4.5vw, 3.25rem);
}
.sec-head--center {
  justify-items: center;
  text-align: center;
  margin-inline: auto;
}
.sec-more {
  margin-top: clamp(1.75rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Motion that arrives the way the app's parts do ----------------------------
   AOS (the library) only watches the scroll and adds .aos-animate. Nothing is
   hidden unless it is running: the page is whole without scripts. */
html.aos-ready [data-aos] {
  transition-property: opacity, transform;
  transition-duration: 0.62s;
  transition-timing-function: var(--ease-out);
}
html.aos-ready [data-aos="drop"] {
  opacity: 0;
  transform: translate3d(0, -1.5rem, 0) scale(0.97);
  transition-timing-function: var(--ease-spring);
}
html.aos-ready [data-aos="rise"] {
  opacity: 0;
  transform: translate3d(0, 1.75rem, 0);
}
html.aos-ready [data-aos="slip"] {
  opacity: 0;
  transform: translate3d(-1.5rem, 0, 0) rotate(-2.5deg);
}
html.aos-ready [data-aos="stamp"] {
  opacity: 0;
  transform: scale(1.4) rotate(-16deg);
  transition-duration: 0.34s;
  transition-timing-function: cubic-bezier(0.5, 0, 0.3, 1.4);
}
html.aos-ready [data-aos].aos-animate {
  opacity: 1;
  transform: none;
}
html.aos-ready [data-aos-delay="80"].aos-animate { transition-delay: 0.08s; }
html.aos-ready [data-aos-delay="160"].aos-animate { transition-delay: 0.16s; }
html.aos-ready [data-aos-delay="240"].aos-animate { transition-delay: 0.24s; }
html.aos-ready [data-aos-delay="320"].aos-animate { transition-delay: 0.32s; }
html.aos-ready [data-aos-delay="400"].aos-animate { transition-delay: 0.4s; }
html.aos-ready [data-aos-delay="480"].aos-animate { transition-delay: 0.48s; }

@keyframes bob {
  to { transform: translateY(-0.4rem); }
}
@keyframes drift {
  to { transform: translateY(-0.55rem) rotate(calc(var(--tilt, 0deg) + 3deg)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- The ticket: the app's main action. Hi-vis paper, a notch punched in each
   side, a thick printed lower edge. It lifts under the pointer and sinks when pressed. */
.ticket {
  --paper: var(--color-hivis);
  --edge: 5px;
  --r: 8px;
  --notch: 8px;
  --line: 2px;
  --cut: radial-gradient(circle var(--notch) at 0 50%, #0000 calc(100% - 0.5px), #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 50%, #0000 calc(100% - 0.5px), #000) right / 51% 100% no-repeat;
  position: relative;
  display: inline-flex;
  max-width: 100%;
  padding: 0 0 var(--edge);
  border: 0;
  background: none;
  color: var(--color-soot-950);
  text-decoration: none;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.ticket::before {
  content: "";
  position: absolute;
  inset: var(--edge) 0 0;
  border-radius: var(--r);
  background: var(--ink);
  -webkit-mask: var(--cut);
  mask: var(--cut);
}
.ticket-paper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 4.25rem;
  padding: 0.55rem 1.05rem 0.55rem 1.2rem;
  border-radius: var(--r);
  background: var(--ink);
  -webkit-mask: var(--cut);
  mask: var(--cut);
  transition: transform 0.16s var(--ease-spring);
}
.ticket-paper::before {
  --in: calc(var(--notch) + var(--line));
  content: "";
  position: absolute;
  inset: var(--line);
  border-radius: calc(var(--r) - var(--line));
  background: var(--paper);
  -webkit-mask: radial-gradient(circle var(--in) at calc(var(--line) * -1) 50%, #0000 calc(100% - 0.5px), #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--in) at calc(100% + var(--line)) 50%, #0000 calc(100% - 0.5px), #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle var(--in) at calc(var(--line) * -1) 50%, #0000 calc(100% - 0.5px), #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--in) at calc(100% + var(--line)) 50%, #0000 calc(100% - 0.5px), #000) right / 51% 100% no-repeat;
}
.ticket-paper > * {
  position: relative;
}
.ticket:hover .ticket-paper {
  transform: translateY(-2px);
}
.ticket:active .ticket-paper {
  transform: translateY(calc(var(--edge) - 1px));
  transition-duration: 0.05s;
}
.ticket-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.35rem;
}
.ticket-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  min-width: 0;
}
/* The stub tears off along a perforation. */
.ticket-badge + .ticket-text {
  align-self: stretch;
  padding-left: 0.75rem;
  border-left: 2px dotted color-mix(in srgb, var(--ink) 60%, transparent);
}
.ticket-over,
.ticket-line {
  font-weight: 800;
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.1;
}
.ticket-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.7rem + 1.75vw, 1.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.ticket-go {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-left: auto;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  transition: transform 0.2s var(--ease-spring);
}
.ticket:hover .ticket-go {
  transform: translateX(3px);
}
.ticket--paper { --paper: var(--color-feather); }
.ticket--small { --edge: 4px; }
.ticket--small .ticket-paper {
  min-height: 2.85rem;
  padding: 0.4rem 0.95rem 0.4rem 1.05rem;
}
.ticket--small .ticket-title { font-size: 1.02rem; }
.ticket--small .ticket-go {
  width: 1.6rem;
  height: 1.6rem;
  font-size: 0.65rem;
}
.ticket--wide { display: flex; width: 100%; }
/* An unprinted ticket: nothing to send yet. */
.ticket:disabled,
.ticket[aria-disabled="true"] {
  --paper: var(--color-hivis-off);
  cursor: not-allowed;
}
.ticket:disabled .ticket-paper,
.ticket[aria-disabled="true"] .ticket-paper {
  transform: none;
}
@media (max-width: 21.2rem) {
  .ticket-go { display: none; }
  .ticket-badge {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.1rem;
  }
  .ticket-paper {
    gap: 0.5rem;
    padding-inline: 0.95rem 0.8rem;
  }
}
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
}

/* --- Paper: labels, slips and tags ------------------------------------------- */
/* The name label: paper with a pinked edge, glued on. */
.kicker {
  --t: 4px;
  display: inline-block;
  padding: 0.5rem 1.05rem 0.48rem;
  background: var(--color-feather);
  color: var(--color-soot-900);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.15;
  transform: rotate(-1.6deg);
  -webkit-mask: conic-gradient(from 45deg at left, #0000, #000 1deg 89deg, #0000 90deg) left / 51% calc(var(--t) * 2) repeat-y,
    conic-gradient(from 225deg at right, #0000, #000 1deg 89deg, #0000 90deg) right / 51% calc(var(--t) * 2) repeat-y;
  mask: conic-gradient(from 45deg at left, #0000, #000 1deg 89deg, #0000 90deg) left / 51% calc(var(--t) * 2) repeat-y,
    conic-gradient(from 225deg at right, #0000, #000 1deg 89deg, #0000 90deg) right / 51% calc(var(--t) * 2) repeat-y;
}
.kicker b {
  color: var(--color-siren);
  font-weight: 800;
}
/* A paper slip with a colour band down its left side. */
.slip {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 100%;
  padding: 0.6rem 0.85rem 0.62rem 1.15rem;
  border-radius: 2px;
  background: var(--color-feather);
  color: var(--color-soot-900);
  box-shadow: 0 2px 0 rgb(15 11 9 / 0.2);
}
.slip::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.45rem;
  bottom: 0.45rem;
  width: 0.26rem;
  background: var(--band, var(--color-siren));
}
.slip .stamp {
  color: var(--color-siren);
  font-size: 0.95rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.36rem 0.55rem 0.34rem;
  border-radius: 3px;
  background: var(--color-feather);
  color: var(--color-soot-900);
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 2px 0 rgb(15 11 9 / 0.25);
}
.tag--dark {
  background: var(--color-soot-900);
  color: var(--color-hivis);
  box-shadow: 0 0 0 1.5px var(--color-hivis);
}
.tag--yolk {
  background: var(--color-yolk);
  color: var(--color-soot-950);
}
/* A dotted rule, as paper is ruled in the app. */
.rule {
  height: 2px;
  border: 0;
  margin: 0;
  background: radial-gradient(circle, currentColor 0.9px, #0000 1.2px) 0 50% / 6px 2px repeat-x;
  opacity: 0.45;
}

/* --- Cups, eggs and wells ----------------------------------------------------- */
.cups {
  display: flex;
  justify-content: center;
  gap: calc(var(--s, 3rem) * 0.16);
  overflow: hidden;
}
.cup {
  position: relative;
  flex: none;
  width: var(--s, 3rem);
  height: calc(var(--s, 3rem) * 0.92);
}
.cup::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 7%;
  height: calc(var(--s, 3rem) * 0.42);
  border-radius: 50%;
  background: radial-gradient(ellipse 58% 54% at 50% 58%, var(--deep) 98%, var(--well) 100%);
  box-shadow: 0 0 0 calc(var(--s, 3rem) * 0.045) var(--lit);
}
.cup > i {
  position: absolute;
  left: 5%;
  right: 5%;
  top: -20%;
  bottom: 7%;
  overflow: hidden;
  border-radius: 0 0 50% 50% / 0 0 calc(var(--s, 3rem) * 0.21) calc(var(--s, 3rem) * 0.21);
}
.cup > i::after {
  content: "";
  position: absolute;
  left: 19%;
  right: 19%;
  bottom: calc(var(--s, 3rem) * 0.06);
  height: calc(var(--s, 3rem) * 0.64);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: linear-gradient(98deg, var(--egg, var(--color-feather)) 57%, var(--shade, var(--color-eggshell-shade)) 57.6%);
  transition: transform 0.28s var(--ease-spring);
}
.cup:hover > i::after {
  transform: translateY(-22%);
}

/* A big cup that holds a picture: the well behind, the front lip over its foot. */
.nest {
  position: relative;
  display: block;
  width: var(--nest, 12rem);
  max-width: 100%;
  aspect-ratio: 1 / 1.02;
  container-type: inline-size;
}
.nest-well {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34cqw;
  border-radius: 50%;
  background: radial-gradient(ellipse 60% 56% at 50% 57%, var(--deep) 98%, var(--well) 100%);
  box-shadow: 0 0 0 2.2cqw var(--lit);
}
.nest-hold {
  position: absolute;
  inset: -24cqw 0 0;
  overflow: hidden;
  border-radius: 0 0 50% 50% / 0 0 17cqw 17cqw;
}
.nest-hold img {
  position: absolute;
  left: 8cqw;
  width: 84cqw;
  max-width: none;
  bottom: -9cqw;
}

/* --- The phone, and the cup it stands in -------------------------------------- */
.phone {
  display: block;
  border-radius: 13% / 6.1%;
  background: var(--color-soot-900);
  box-shadow: 0 0 0 2px var(--color-soot-950), 0.4rem 0.7rem 0 rgb(15 11 9 / 0.2), 0 1.4rem 2rem -0.9rem rgb(15 11 9 / 0.6);
}
.phone img {
  display: block;
  width: 94%;
  margin: 3%;
  border-radius: 10.8% / 5%;
}
.stage {
  position: relative;
  width: var(--stage-w, 20rem);
  max-width: 100%;
  aspect-ratio: 1 / 1.5;
  container-type: inline-size;
}
.stage-well {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30cqw;
  border-radius: 50%;
  background: radial-gradient(ellipse 62% 58% at 50% 56%, var(--deep) 98%, var(--well) 100%);
  box-shadow: 0 0 0 1.7cqw var(--lit);
}
.stage-hold {
  position: absolute;
  inset: -10cqw 0 0;
  overflow: hidden;
  border-radius: 0 0 50% 50% / 0 0 15cqw 15cqw;
}
.stage-hold .phone {
  position: absolute;
  left: 23cqw;
  width: 54cqw;
  bottom: -5cqw;
}
.stage-pal {
  position: absolute;
  right: 6cqw;
  width: 52cqw;
  max-width: none;
  bottom: 93cqw;
  animation: bob 2.6s ease-in-out infinite alternate;
}
.float {
  position: absolute;
  width: 23cqw;
  max-width: none;
  filter: drop-shadow(0 0.5cqw 0 rgb(15 11 9 / 0.22));
  transform: rotate(var(--tilt, 0deg));
  animation: drift 3.4s ease-in-out infinite alternate;
}

/* --- A stamp: the round seal that lands on finished paper ------------------------ */
.seal {
  --c: var(--color-medic-deep);
  flex: none;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.15rem;
  width: 5.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--c);
  outline: 2px dashed var(--c);
  outline-offset: -9px;
  color: var(--c);
  background: color-mix(in srgb, var(--color-feather) 82%, transparent);
  font-size: 1.5rem;
  transform: rotate(var(--tilt, -8deg));
}

/* --- Someone speaks: a mascot and a paper bubble ------------------------------- */
.says {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}
.says > img {
  flex: none;
  width: clamp(4.5rem, 20vw, 7rem);
}
.says-paper {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 1rem 0.95rem;
  margin-bottom: 1.1rem;
  border-radius: 0.9rem 0.9rem 0.9rem 0.2rem;
  background: var(--color-feather);
  color: var(--color-soot-900);
  box-shadow: 0 3px 0 rgb(15 11 9 / 0.18);
  line-height: 1.4;
}
.says-paper .eyebrow {
  color: var(--color-siren);
}

/* --- The lid: the bar on top of every page -------------------------------------- */
.lid {
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: inset 0 -3px 0 var(--well);
  transition: box-shadow 0.2s;
}
.lid.is-stuck {
  box-shadow: inset 0 -3px 0 var(--well), 0 0.6rem 1.2rem -0.6rem rgb(15 11 9 / 0.5);
}
.lid-in {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  min-height: 4.1rem;
  padding-block: 0.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  margin-right: auto;
  text-decoration: none;
}
.brand img {
  flex: none;
  width: clamp(1.9rem, 9vw, 2.75rem);
  height: auto;
  transition: transform 0.3s var(--ease-spring);
}
.brand:hover img {
  transform: rotate(-10deg) scale(1.06);
}
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(0.82rem, 0.2rem + 4.2vw, 1.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--pressed);
  text-shadow: 0 1px 0 var(--emboss);
}
.brand-name b {
  font-weight: 400;
  color: var(--color-feather);
  text-shadow: 0 1px 0 rgb(15 11 9 / 0.3);
}
.lid-nav {
  display: none;
}
.lid-nav a {
  position: relative;
  display: block;
  padding: 0.55rem 0.15rem;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
}
/* An egg pops up over the page you are on, as in the app's bottom bar. */
.lid-nav a::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.2rem;
  width: 0.62rem;
  height: 0.76rem;
  margin-left: -0.31rem;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: linear-gradient(98deg, var(--color-feather) 57%, var(--color-eggshell-shade) 57.6%);
  opacity: 0;
  transform: translateY(0.5rem) scale(0.6);
  transition: transform 0.25s var(--ease-spring), opacity 0.15s;
}
.lid-nav a:hover::before,
.lid-nav a[aria-current="page"]::before {
  opacity: 1;
  transform: none;
}
.lid-get {
  display: none;
}
.burger {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: var(--color-soot-900);
  color: var(--color-hivis);
  font-size: 1.05rem;
}
.burger .fa-xmark,
.burger[aria-expanded="true"] .fa-bars {
  display: none;
}
.burger[aria-expanded="true"] .fa-xmark {
  display: inline-block;
}
.drawer {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100dvh - 4.1rem);
  overflow-y: auto;
  padding: 0.75rem var(--gutter) 1.5rem;
  box-shadow: 0 1.2rem 1.6rem -1rem rgb(15 11 9 / 0.6);
}
.drawer ul {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 1.1rem;
}
.drawer li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
  text-decoration: none;
  color: var(--pressed);
  text-shadow: 0 1px 0 var(--emboss);
  border-bottom: 2px dotted color-mix(in srgb, var(--pressed) 45%, transparent);
}
.drawer li a[aria-current="page"] {
  color: var(--color-feather);
  text-shadow: 0 1px 0 rgb(15 11 9 / 0.3);
}
.lid-nav ul {
  display: flex;
  gap: clamp(0.9rem, 1.7vw, 1.6rem);
}
@media (min-width: 62rem) {
  .lid-nav {
    display: block;
  }
  .lid-get {
    display: inline-flex;
  }
  .burger,
  .drawer {
    display: none !important;
  }
}

/* --- The foot of every page ---------------------------------------------------- */
.foot {
  padding-block: clamp(2.75rem, 6vw, 4.5rem) 1.5rem;
}
.foot-grid {
  display: grid;
  gap: 2.25rem;
}
.foot-brand {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
  max-width: 30rem;
}
.foot-name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.8rem + 2vw, 1.7rem);
  line-height: 1;
  padding: 0.6rem 1.15rem;
  transform: rotate(-1.2deg);
}
.foot-cols {
  display: grid;
  gap: 1.75rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}
.foot-cols h2 {
  margin-bottom: 0.8rem;
  color: var(--color-hivis);
}
.foot-cols li + li {
  margin-top: 0.5rem;
}
.foot a:not(.ticket),
.foot-link {
  text-decoration: none;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}
.foot a:not(.ticket):hover,
.foot-link:hover {
  color: var(--color-hivis);
  text-decoration: underline dotted 2px;
  text-underline-offset: 0.22em;
}
.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: 0.86rem;
  color: var(--mute);
  border-top: 2px dotted rgb(176 169 163 / 0.4);
}
/* The reflector stripe off the squad's jackets. */
.tape {
  height: 0.9rem;
  background: linear-gradient(var(--color-hivis) 0 30%, var(--color-reflector) 30% 70%, var(--color-hivis) 70%);
}
@media (min-width: 62rem) {
  .foot-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 4rem;
  }
}

/* --- The cookie note: a slip that rises from the bottom edge --------------------- */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0 var(--gutter) max(0.75rem, env(safe-area-inset-bottom));
  pointer-events: none;
  animation: cookie-in 0.5s var(--ease-out) both;
}
@keyframes cookie-in {
  from { transform: translateY(110%); }
}
.cookie-slip {
  pointer-events: auto;
  display: grid;
  gap: 0.9rem 1.5rem;
  width: min(100%, 62rem);
  margin-inline: auto;
  padding: 1rem clamp(0.9rem, 3vw, 1.5rem) 1.1rem;
  border-radius: 0.9rem;
  background: var(--color-feather);
  color: var(--color-soot-900);
  border: 2px solid var(--color-soot-900);
  box-shadow: 0 5px 0 var(--color-soot-900), 0 1.5rem 2.5rem -1rem rgb(15 11 9 / 0.7);
  max-height: calc(100dvh - 1.5rem);
  overflow-y: auto;
}
.cookie-slip p {
  font-size: 0.95rem;
  line-height: 1.45;
}
.cookie-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.05;
  margin-bottom: 0.3rem;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
}
/* Captain Cluck looks over the edge of the note, where there is room for him. */
.cookie-pal {
  display: none;
}
@media (min-width: 56rem) {
  .cookie-slip {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }
  .cookie-pal {
    display: block;
    width: 4.25rem;
    margin-block: -0.4rem;
  }
}

/* --- Forms: paper, ruled, with red pencil for what is wrong ---------------------- */
.sheet {
  position: relative;
  padding: clamp(1.1rem, 4vw, 2.25rem);
  border-radius: 0.5rem;
  background: var(--color-feather);
  color: var(--color-soot-900);
  box-shadow: 0 0 0 2px var(--color-soot-900), 0 6px 0 var(--color-soot-900);
}
.field {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 1.35rem;
}
.field label {
  color: var(--color-soot-500);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.5rem 0 0.4rem;
  border: 0;
  border-radius: 0;
  border-bottom: 2px dotted var(--color-soot-300);
  background: transparent;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.75;
  color: var(--color-soot-950);
  appearance: none;
  -webkit-appearance: none;
}
.field textarea {
  min-height: calc(1.75em * 5 + 1rem);
  resize: vertical;
  border-bottom: 0;
  /* Five ruled lines, as on the app's report sheet. */
  background: repeating-linear-gradient(transparent 0 calc(1.75em - 2px), var(--color-eggshell-shade) calc(1.75em - 2px) 1.75em) 0 0.5rem;
}
.field select {
  padding-right: 2rem;
  background: no-repeat right 0.2rem center / 0.8rem
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 5l6 6 6-6' fill='none' stroke='%231B1613' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 0;
  box-shadow: none;
  border-bottom: 2px solid var(--color-soot-950);
  background-color: var(--color-hivis-tint);
}
.field ::placeholder {
  color: var(--color-soot-300);
  font-weight: 500;
}
.field-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-height: 1.3rem;
  font-size: 0.86rem;
  font-weight: 700;
}
.field-error {
  color: var(--color-siren);
  transform: rotate(-0.6deg);
}
.field-count {
  margin-left: auto;
  color: var(--color-soot-500);
}
.field.is-wrong input,
.field.is-wrong textarea {
  border-bottom-color: var(--color-siren);
}

/* --- Tones: the three jobs, for a card's rays, a cup and an egg ------------------ */
.tone-red { --c1: #D31E1F; --c2: #BC191B; --well: #9B1014; --deep: #521210; --lit: #FFE6E4; --egg: #D31E1F; --shade: #9B1014; }
.tone-orange { --c1: #E37802; --c2: #CC6B00; --well: #A74901; --deep: #6B2F00; --lit: #FFE8D7; --egg: #E37802; --shade: #A74901; }
.tone-green { --c1: #01B384; --c2: #019E74; --well: #016549; --deep: #01402E; --lit: #D5FAE9; --egg: #01B384; --shade: #016549; }

/* A stamp keeps its tilt once it has landed. */
html.aos-ready [data-aos="stamp"].aos-animate {
  transform: rotate(var(--tilt, -8deg));
}

/* --- Home: the hero ------------------------------------------------------------- */
.hero {
  --stage-w: clamp(11rem, 60vw, 20rem);
  --tray-pad: clamp(3rem, 8vw, 4.75rem);
  --tray-h: calc(var(--tray-pad) + var(--stage-w) * 0.34);
  --ray-x: 50%;
  --ray-y: calc(100% - var(--tray-h) - var(--stage-w) * 0.62);
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(1.75rem, 5vw, 4rem) 0 var(--tray-pad);
  color: var(--color-feather);
}
.hero-rays {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-tray {
  position: absolute;
  inset: auto 0 0;
  height: var(--tray-h);
  z-index: -1;
}
.hero-tray .cups {
  --s: calc(var(--tray-pad) * 0.6);
  position: absolute;
  inset: auto 0 calc(var(--tray-pad) * 0.1);
}
.hero-grid {
  display: grid;
  gap: clamp(1.5rem, 5vw, 3rem);
  align-items: end;
}
.hero-copy {
  display: grid;
  gap: 1.15rem;
  justify-items: start;
  min-width: 0;
}
.hero-title {
  text-shadow: 0 0.055em 0 rgb(15 11 9 / 0.45);
}
.hero-title span {
  display: block;
  color: var(--color-hivis);
}
.hero-lede {
  max-width: 34rem;
  font-weight: 600;
  text-shadow: 0 1px 0 rgb(15 11 9 / 0.4);
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.hero-facts li {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem 0.4rem;
  border-radius: 3px;
  background: var(--color-feather);
  color: var(--color-soot-900);
  box-shadow: 0 2px 0 rgb(15 11 9 / 0.3);
}
.hero-facts .stamp {
  color: var(--color-siren);
  font-size: 1.25rem;
}
.hero-stage {
  display: grid;
  justify-items: center;
}
.hero-stage .stage {
  margin-bottom: calc(var(--tray-pad) * -0.36);
}
.float-1 { left: -9cqw; top: 16cqw; --tilt: -12deg; }
.float-2 { left: -5cqw; top: 76cqw; --tilt: 9deg; animation-delay: -1.2s; }
.float-3 { right: -12cqw; top: 62cqw; --tilt: 11deg; animation-delay: -2.1s; }
@media (min-width: 62rem) {
  .hero {
    --stage-w: clamp(19rem, 29vw, 26rem);
    --ray-x: calc(50% + min(18rem, 25vw));
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
  .hero-copy {
    padding-bottom: calc(var(--stage-w) * 0.42);
  }
}

/* --- The squad's cards ---------------------------------------------------------- */
.cards {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0.6rem;
  background: var(--color-feather);
  color: var(--color-soot-900);
  box-shadow: 0 0 0 2px var(--color-soot-900), 0 6px 0 var(--color-soot-900);
}
.card-art {
  --ray-x: 50%;
  --ray-y: 72%;
  position: relative;
  display: grid;
  justify-items: center;
  padding: 3rem 1rem 0.9rem;
  border-bottom: 2px solid var(--color-soot-900);
}
.card-art .nest {
  --nest: min(100%, 12.5rem);
}
.card .nest-hold img {
  transition: transform 0.35s var(--ease-spring);
}
.card:hover .nest-hold img {
  transform: translateY(-7%);
}
.card-no {
  position: absolute;
  left: 0.9rem;
  top: 0.8rem;
  font-size: 1.9rem;
  color: var(--color-feather);
}
.card-role {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
}
.card-body {
  display: grid;
  gap: 0.6rem;
  padding: 1.1rem 1.15rem 1.3rem;
}
.card-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 0.75rem;
}
.card-name .stamp {
  color: var(--color-siren);
  font-size: 0.95rem;
}
.card-motto {
  font-weight: 800;
}
.card-job {
  display: grid;
  gap: 0.3rem;
  font-weight: 700;
}
.card-job .eyebrow {
  color: var(--color-soot-500);
}

/* --- How a rescue goes ---------------------------------------------------------- */
.how-grid {
  display: grid;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.how-stage {
  --stage-w: clamp(11rem, 58vw, 19rem);
  display: grid;
  justify-items: center;
}
.how-stage .stage {
  aspect-ratio: 1 / 1.3;
}
.beats {
  display: grid;
  gap: 1.4rem;
}
.beat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.beat h3 {
  margin-bottom: 0.3rem;
}
.beat-no {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3.6rem;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: linear-gradient(98deg, var(--egg) 57%, var(--shade) 57.6%);
  color: var(--color-feather);
  font-size: 1.1rem;
  box-shadow: 0 3px 0 rgb(15 11 9 / 0.25);
}
@media (min-width: 62rem) {
  .how-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

/* --- The rescue map ------------------------------------------------------------- */
.route {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem) 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stop {
  display: grid;
  justify-items: center;
}
.stop-disc {
  display: block;
  width: min(100%, 11.5rem);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  border: 0.45rem solid var(--pulp);
  outline: 0.22rem solid var(--lit);
  box-shadow: 0 0.5rem 0 rgb(15 11 9 / 0.35);
  transition: transform 0.3s var(--ease-spring);
}
.stop:hover .stop-disc {
  transform: scale(1.05) rotate(-3deg);
}
.stop-disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stop-label {
  --band: var(--pulp);
  z-index: 1;
  margin-top: -1.4rem;
  transform: rotate(-2deg);
}
.stop:nth-child(even) .stop-label {
  transform: rotate(1.6deg);
}
.stop-label b {
  font-weight: 400;
  font-size: clamp(0.95rem, 0.8rem + 0.8vw, 1.2rem);
  line-height: 1;
}
.stop-label .eyebrow {
  color: var(--color-soot-500);
  font-size: 0.6rem;
}
@media (min-width: 48rem) {
  .route {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .stop:nth-child(even) {
    margin-top: 2.75rem;
  }
}
@media (max-width: 21.2rem) {
  .route {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- The album: tabs are eggs, the page is paper on rings -------------------------- */
.album-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.album {
  min-width: 0;
}
.album-tabs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 2.5rem));
  gap: 0.35rem;
  padding: 0.5rem 0.4rem 0.7rem 1.3rem;
}
.album-tab {
  aspect-ratio: 5 / 6;
  padding: 0;
  border: 0;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: linear-gradient(98deg, var(--pulp) 57%, var(--well) 57.6%);
  color: var(--on);
  font-family: var(--font-stamp);
  font-weight: 900;
  font-size: 0.82rem;
  box-shadow: 0 3px 0 rgb(15 11 9 / 0.28);
  transition: transform 0.25s var(--ease-spring);
}
.album-tab:hover {
  transform: translateY(-3px);
}
.album-tab[aria-selected="true"] {
  transform: translateY(-7px);
  box-shadow: 0 0 0 2px var(--color-soot-900), 0 5px 0 var(--color-soot-900);
}
.album-page {
  position: relative;
  margin-left: 1.1rem;
  border-radius: 0.4rem;
  background: var(--color-eggshell);
  color: var(--color-soot-900);
  box-shadow: 0 0 0 2px var(--color-soot-900), 0 6px 0 var(--color-soot-900);
}
/* The rings the page hangs on. */
.album-page::before {
  --ring: radial-gradient(closest-side, #0000 52%, var(--color-soot-900) 56% 94%, #0000 100%);
  content: "";
  position: absolute;
  left: -1.15rem;
  top: 0;
  bottom: 0;
  width: 1.9rem;
  background: var(--ring) center 18% / 1.7rem 0.8rem no-repeat, var(--ring) center 50% / 1.7rem 0.8rem no-repeat, var(--ring) center 82% / 1.7rem 0.8rem no-repeat;
}
.album-band {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem 0.6rem 1.25rem;
  border-radius: 0.3rem 0.3rem 0 0;
  border-bottom: 2px solid var(--color-soot-900);
  background: var(--pulp);
  color: var(--on);
}
.album-band h3 {
  margin-right: auto;
  font-size: clamp(1.02rem, 0.9rem + 1vw, 1.45rem);
}
.album-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--color-feather);
  color: var(--color-soot-900);
  font-size: 0.85rem;
}
.stickers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem 0.25rem;
  padding: 1rem 0.75rem 0.5rem 1.25rem;
}
.sticker {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  width: 100%;
  padding: 0.3rem 0.1rem;
  border: 0;
  border-radius: 0.5rem;
  background: none;
  font-weight: 700;
  font-size: 0.85rem;
}
.sticker img {
  width: min(100%, 6.2rem);
  filter: drop-shadow(0 3px 0 rgb(15 11 9 / 0.16));
  transition: transform 0.3s var(--ease-spring);
}
.sticker:hover img {
  transform: translateY(-4px) rotate(-5deg) scale(1.05);
}
.sticker[aria-pressed="true"] img {
  transform: scale(1.1) rotate(4deg);
}
.sticker span {
  padding: 0 0.3rem;
  border-radius: 2px;
}
.sticker[aria-pressed="true"] span {
  background: var(--color-hivis);
}
.album-note {
  min-height: 3.6em;
  margin: 0.4rem 0.9rem 1rem 1.25rem;
  padding-top: 0.7rem;
  border-top: 2px dotted var(--color-soot-300);
  font-size: 0.95rem;
}
.badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem 0.75rem;
  max-width: 30rem;
}
.badges li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.25rem;
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.25;
  text-align: center;
}
.badges img {
  width: 3.6rem;
  filter: drop-shadow(0 2px 0 rgb(15 11 9 / 0.2));
  transition: transform 0.3s var(--ease-spring);
}
.badges li:hover img {
  transform: rotate(-8deg) scale(1.08);
}
.badges b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.95rem;
}
.badges-more {
  margin-bottom: 1.25rem;
  font-weight: 700;
}
@media (min-width: 62rem) {
  .album-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}
@media (max-width: 21.2rem) {
  .badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .album-tabs {
    grid-template-columns: repeat(4, minmax(0, 2.5rem));
    row-gap: 0.6rem;
  }
}

/* --- The base: a station of rooms under a red roof ----------------------------------- */
.base-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.station {
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
}
.station-roof {
  height: clamp(2.4rem, 9vw, 4.2rem);
  margin: 0 -3%;
  background: var(--color-siren);
  box-shadow: inset 0 -7px 0 var(--color-siren-deep);
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
}
.rooms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.7rem;
  border: 2px solid var(--color-soot-900);
  border-top: 0;
  background: var(--color-eggshell);
  box-shadow: 0 6px 0 var(--color-soot-900);
}
.room--lookout {
  grid-column: 1 / -1;
  justify-self: center;
  width: 54%;
}
.room-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--color-soot-900);
  border-radius: 0.3rem;
  background: var(--color-canvas-light);
}
.room-tile img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.35s var(--ease-out);
}
.room-tile:hover img {
  transform: scale(1.06);
}
.room-tile .tag {
  position: absolute;
  left: 0.35rem;
  bottom: 0.35rem;
  font-size: 0.56rem;
}
.room-tile[aria-pressed="true"] {
  box-shadow: 0 0 0 3px var(--color-hivis), 0 0 0 5px var(--color-soot-900);
}
.station-says {
  --band: var(--color-engineer);
  display: block;
  margin-top: 1.5rem;
  font-weight: 700;
}
@media (min-width: 62rem) {
  .base-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

/* --- A look inside: a rail of phones ------------------------------------------------- */
.look {
  overflow: hidden;
}
.look-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.look-head .sec-head {
  margin-bottom: 0;
}
.rail-keys {
  display: flex;
  gap: 0.6rem;
}
.disc {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 0;
  border-radius: 50%;
  background: var(--color-soot-900);
  color: var(--color-hivis);
  box-shadow: 0 4px 0 rgb(15 11 9 / 0.35);
  transition: transform 0.15s var(--ease-spring);
}
.disc:hover {
  transform: translateY(-2px);
}
.disc:active {
  transform: translateY(3px);
}
.rail {
  --edge: max(var(--gutter), calc((100% - 75rem) / 2));
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(1.5rem, 4vw, 2.75rem);
  padding: 0.75rem var(--edge) 1.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: thin;
  scrollbar-color: var(--well) transparent;
}
.shot {
  flex: none;
  display: grid;
  gap: 1rem;
  justify-items: center;
  align-content: start;
  width: clamp(9.25rem, 40vw, 15rem);
  scroll-snap-align: start;
}
.shot:nth-child(even) {
  padding-top: 1.75rem;
}
.shot .phone {
  width: 100%;
}
.shot .slip {
  flex-direction: row;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.25;
}

/* --- Good to know: slips with a stamp on each ------------------------------------------ */
.knows {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.25rem) clamp(1rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
}
.know {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 1.1rem 1.1rem 1.2rem;
  border-radius: 0.4rem;
  background: var(--color-feather);
  color: var(--color-soot-900);
  box-shadow: 0 0 0 2px var(--color-soot-900), 0 5px 0 var(--color-soot-900);
}
.know h3 {
  margin-bottom: 0.25rem;
}
.know p {
  font-size: 0.97rem;
  line-height: 1.45;
}
.know .seal {
  width: 4.4rem;
  font-size: 1.35rem;
}
@media (max-width: 21.2rem) {
  .know {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- The last call: the squad in the tray ---------------------------------------------- */
.cta {
  --ray-x: 50%;
  --ray-y: 60%;
  --nest: clamp(4.6rem, 25vw, 11.5rem);
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: clamp(3.5rem, 9vw, 6.5rem);
  color: var(--color-feather);
  text-align: center;
}
.cta-rays {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.cta-in {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}
.cta-in .store-row {
  justify-content: center;
}
.cta-icon {
  width: clamp(5rem, 18vw, 7.5rem);
  border-radius: 22.5%;
  box-shadow: 0 0 0 3px var(--color-feather), 0 0.5rem 0 rgb(15 11 9 / 0.3);
  transform: rotate(-5deg);
}
.cta h2 {
  text-shadow: 0 0.055em 0 rgb(15 11 9 / 0.45);
}
.cta .lede {
  max-width: 32rem;
  font-weight: 600;
  text-shadow: 0 1px 0 rgb(15 11 9 / 0.4);
}
/* flow-root: the trio's lift moves the trio, not the tray. */
.cta-tray {
  display: flow-root;
  margin-top: calc(var(--nest) * 0.95 + 1.5rem);
  padding: 0 var(--gutter) clamp(0.9rem, 3vw, 1.6rem);
}
.trio {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(0.4rem, 3vw, 2.5rem);
  margin-top: calc(var(--nest) * -0.62);
}
.trio li:nth-child(2) {
  --nest: clamp(5.2rem, 28vw, 13rem);
}

/* --- The top of an inner page ---------------------------------------------------------- */
.top {
  --drop: clamp(3rem, 7vw, 5rem);
  padding-block: clamp(2.25rem, 6vw, 4.5rem) var(--drop);
}
.top-in {
  display: grid;
  gap: 2rem;
  align-items: end;
}
.top-copy {
  display: grid;
  gap: 1rem;
  justify-items: start;
  max-width: 46rem;
}
.top-art {
  --nest: clamp(8rem, 34vw, 13rem);
  justify-self: center;
}
@media (min-width: 48rem) {
  .top-in {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* --- How to play ----------------------------------------------------------------------- */
.legends {
  display: grid;
  gap: 1.25rem clamp(1rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.legend {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 0.6rem;
  background: color-mix(in srgb, var(--lit) 72%, transparent);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--deep) 45%, transparent);
}
.legend h3 {
  margin-bottom: 0.2rem;
}
.legend p {
  font-size: 0.97rem;
  line-height: 1.45;
}
.spot {
  --s: 4.6rem;
}
.spot > b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17%;
  display: grid;
  place-items: center;
  font-size: calc(var(--s) * 0.34);
  line-height: 1;
}
.spot > b.on-egg {
  bottom: 27%;
  color: var(--color-feather);
  font-size: calc(var(--s) * 0.2);
}
.spot--fire > b {
  color: #FF881C;
  text-shadow: 0 2px 0 #D92E0F;
}
.spot--crushed > b {
  color: var(--color-soot-950);
}
.spot--water {
  --well: #3EA2DC;
  --deep: #1567A6;
  --lit: #91DAE9;
}
.spot--none::before {
  background: none;
  box-shadow: none;
  border: 2px dashed color-mix(in srgb, var(--deep) 75%, transparent);
}
.jobs {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.job {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1.1rem;
  border-radius: 0.5rem;
  background: var(--color-feather);
  color: var(--color-soot-900);
  box-shadow: 0 0 0 2px var(--color-soot-900), 0 5px 0 var(--color-soot-900);
}
.job .eyebrow {
  margin-bottom: 0.35rem;
  color: var(--shade);
}
.job h3 {
  margin-bottom: 0.3rem;
}
.stars-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.count {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}
.count-slip {
  font-weight: 700;
}
.count-slip .stamp {
  font-size: 1.2rem;
}
/* Stars are golden eggs: they show best in a dark tray. */
.count-eggs {
  --s: 3.6rem;
  --well: #3C3530;
  --deep: #0F0B09;
  --lit: #68605A;
  display: flex;
  gap: 0.5rem;
  padding: 0.9rem 0.8rem 0.45rem;
  border-radius: 0.6rem;
  background: var(--color-soot-900);
  box-shadow: 0 4px 0 rgb(15 11 9 / 0.25);
}
.pays {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.pay {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  align-content: start;
  padding: 1.4rem 1.1rem 1.5rem;
  border-radius: 0.5rem;
  background: var(--color-feather);
  text-align: center;
  box-shadow: 0 0 0 2px var(--color-soot-900), 0 5px 0 var(--color-soot-900);
}
.pay-art {
  display: grid;
  place-items: center;
  width: 8.5rem;
  max-width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--color-eggshell-shade);
}
.pay-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pay:first-child .pay-art {
  overflow: visible;
  background: none;
}
.pay:first-child .pay-art img {
  object-fit: contain;
}
.drill-note {
  display: grid;
  justify-items: center;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.drill-note .says {
  max-width: 38rem;
}
@media (min-width: 62rem) {
  .stars-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

/* --- The squad page -------------------------------------------------------------------- */
.file {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.file-card {
  width: 100%;
  max-width: 24rem;
  justify-self: center;
}
.file-notes {
  display: grid;
  gap: 1.2rem;
  justify-items: start;
}
.file-facts {
  display: grid;
  gap: 0.6rem;
  width: 100%;
  max-width: 30rem;
}
.file-facts div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px dotted color-mix(in srgb, var(--on) 35%, transparent);
}
.file-facts dt {
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.file-facts dd {
  font-weight: 700;
}
.plain-list {
  display: grid;
  gap: 0.75rem;
}
.plain-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: baseline;
  font-weight: 600;
}
@media (min-width: 56rem) {
  .file {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
  .file--flip .file-card {
    order: 2;
  }
}

/* --- About us -------------------------------------------------------------------------- */
.story {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.story-copy {
  display: grid;
  gap: 1rem;
  justify-items: start;
}
.story-art {
  display: grid;
  justify-items: center;
}
.story-art .nest {
  --nest: clamp(9rem, 40vw, 15rem);
  z-index: 1;
  margin-bottom: -1.4rem;
}
.story-tray {
  --s: 2.6rem;
  width: min(100%, 24rem);
  padding: 2rem 0.8rem 0.8rem;
  border-radius: 0.8rem;
  box-shadow: inset 0 -5px 0 var(--well), 0 6px 0 rgb(15 11 9 / 0.2);
}
.story-tray .cups {
  flex-wrap: wrap;
  row-gap: 0.3rem;
}
.builts {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.built {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: 1.3rem 1.2rem 1.4rem;
  border-radius: 0.5rem;
  background: var(--color-feather);
  color: var(--color-soot-900);
  box-shadow: 0 0 0 2px var(--color-soot-900), 0 5px 0 var(--color-soot-900);
}
.built-ico {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: var(--color-soot-900);
  color: var(--color-hivis);
  font-size: 1.15rem;
}
.makers {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.card-id {
  display: grid;
  gap: 0.6rem;
  font-style: normal;
}
.card-id .eyebrow {
  color: var(--color-siren);
}
.id-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.4rem;
}
.id-list li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: baseline;
  overflow-wrap: anywhere;
}
@media (min-width: 56rem) {
  .story {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
  .makers {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* --- Questions ------------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: start;
}
.faq-side {
  display: grid;
  gap: 1.5rem;
}
.faq-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.faq-jumps .tag {
  padding: 0.55rem 0.7rem;
  font-size: 0.7rem;
  text-decoration: none;
}
.faq-jumps .tag:hover {
  background: var(--color-hivis);
}
.faq-more {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}
.faq-groups {
  display: grid;
  gap: clamp(2.25rem, 5vw, 3.5rem);
  min-width: 0;
}
.asks {
  display: grid;
  gap: 0.7rem;
  scroll-margin-top: 6rem;
}
.asks-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}
.asks-head .beat-no {
  flex: none;
  width: 2.6rem;
  height: 3.1rem;
  font-size: 1rem;
}
.ask {
  border-radius: 0.45rem;
  background: var(--color-feather);
  box-shadow: 0 0 0 2px var(--color-soot-900), 0 4px 0 var(--color-soot-900);
}
.ask summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem 0.95rem 1.15rem;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.ask summary::-webkit-details-marker {
  display: none;
}
.ask-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--color-soot-900);
  color: var(--color-hivis);
  font-size: 0.8rem;
  transition: transform 0.3s var(--ease-spring);
}
.ask[open] .ask-mark {
  transform: rotate(45deg);
  background: var(--color-siren);
  color: var(--color-feather);
}
.ask[open] summary {
  margin-bottom: 0.85rem;
  border-bottom: 2px dotted var(--color-soot-300);
}
.ask p {
  max-width: 44rem;
  padding: 0 1.15rem 1.1rem;
}
@media (min-width: 62rem) {
  .faq {
    grid-template-columns: 17rem minmax(0, 1fr);
  }
  .faq-side {
    position: sticky;
    top: 6rem;
  }
}

/* --- Contact us ------------------------------------------------------------------------ */
.contact {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: start;
}
.report-code {
  position: absolute;
  right: 1.1rem;
  top: 1.1rem;
  color: var(--color-siren);
  font-size: 0.95rem;
}
.report h2 {
  margin-bottom: 1.25rem;
}
.report-wrong {
  margin-top: 0.6rem;
  color: var(--color-siren);
}
.report-sent {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  padding-block: 1rem;
}
.report-sent:focus {
  outline: 0;
}
.report-sent b {
  overflow-wrap: anywhere;
}
.report-seal {
  --c: var(--color-medic-deep);
  width: 6rem;
  font-size: 2rem;
  animation: seal-lands 0.34s cubic-bezier(0.5, 0, 0.3, 1.4) both;
}
@keyframes seal-lands {
  from {
    opacity: 0;
    transform: scale(1.6) rotate(-24deg);
  }
}
.where {
  display: grid;
  gap: 1.25rem;
}
.where-pal {
  --nest: clamp(7rem, 30vw, 10rem);
}
.where-list {
  display: grid;
  gap: 0.8rem;
}
.where-list .slip {
  display: flex;
  width: 100%;
  overflow-wrap: anywhere;
}
.where-list .eyebrow {
  color: var(--color-soot-500);
}
.contact-faq {
  margin-top: 1.5rem;
  font-weight: 600;
}
@media (min-width: 62rem) {
  .contact {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

/* --- Paperwork: the four legal texts --------------------------------------------------- */
.legal-top .wrap {
  display: grid;
  gap: 1rem;
  justify-items: start;
}
.legal-title {
  color: var(--pressed);
  text-shadow: 0 0.04em 0 var(--emboss);
}
.legal-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}
.legal-dates span {
  padding: 0.4rem 0.7rem;
  border-radius: 3px;
  background: var(--color-feather);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 0 rgb(15 11 9 / 0.2);
}
.legal-main {
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem);
}
.legal-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
.legal-side {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}
.choice {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
  scroll-margin-top: 6rem;
}
.legal-toc {
  border-radius: 0.45rem;
  background: var(--color-feather);
  box-shadow: 0 0 0 2px var(--color-soot-900), 0 4px 0 var(--color-soot-900);
}
.legal-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
  list-style: none;
}
.legal-toc summary::-webkit-details-marker {
  display: none;
}
.legal-toc summary .stamp {
  color: var(--color-siren);
}
.legal-toc ol {
  display: grid;
  padding: 0 1rem 1rem;
}
.legal-toc a {
  display: block;
  padding: 0.32rem 0;
  border-bottom: 1px dotted var(--color-soot-300);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-decoration: none;
}
.legal-toc a:hover {
  color: var(--color-siren);
}
.legal-doc {
  min-width: 0;
  max-width: 46rem;
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}
.legal-doc > * + * {
  margin-top: 0.85rem;
}
.legal-doc > .legal-h2 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 2.6rem;
  padding-top: 1.1rem;
  border-top: 2px dotted var(--color-soot-300);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.09em;
  line-height: 1.3;
  scroll-margin-top: 6rem;
}
.legal-num {
  flex: none;
  color: var(--color-siren);
  font-size: 1.15em;
}
.legal-doc > .legal-h3 {
  margin-top: 1.6rem;
  font-weight: 800;
  font-size: 1.08rem;
}
.legal-h3 .legal-num {
  margin-right: 0.2rem;
  font-size: 1em;
}
.legal-list {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.4rem;
}
.legal-list li {
  position: relative;
}
/* A bullet is a small red egg. */
.legal-list:not(.legal-list--numbered) li::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.52em;
  width: 0.5rem;
  height: 0.6rem;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: var(--color-siren);
}
.legal-list--numbered {
  padding-left: 0;
}
.legal-n {
  color: var(--color-siren);
  font-weight: 800;
}
.legal-fill {
  width: fit-content;
  max-width: 100%;
  padding: 0.45rem 0.8rem;
  border-left: 0.3rem solid var(--color-siren);
  border-radius: 3px;
  background: var(--color-feather);
  font-weight: 700;
  box-shadow: 0 2px 0 rgb(15 11 9 / 0.18);
}
.legal-doc a {
  font-weight: 700;
  text-decoration: underline dotted 2px;
  text-underline-offset: 0.2em;
}
.legal-doc a:hover {
  color: var(--color-siren);
  text-decoration-style: solid;
}
.legal-button {
  padding: 0.35rem 0.8rem;
  border: 2px solid var(--color-soot-900);
  border-radius: 0.4rem;
  background: var(--color-hivis);
  font-weight: 800;
  box-shadow: 0 3px 0 var(--color-soot-900);
}
.legal-button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--color-soot-900);
}
.legal-table {
  overflow-x: auto;
  border-radius: 0.4rem;
  background: var(--color-feather);
  box-shadow: 0 0 0 2px var(--color-soot-900), 0 4px 0 var(--color-soot-900);
}
.legal-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.legal-table th {
  padding: 0.7rem 0.8rem;
  background: var(--color-soot-900);
  color: var(--color-hivis);
  font-size: 0.78rem;
  text-align: left;
}
.legal-table td {
  padding: 0.7rem 0.8rem;
  vertical-align: top;
  border-top: 2px dotted var(--color-soot-300);
}
@media (max-width: 47.99rem) {
  .legal-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .legal-table tr {
    display: grid;
    padding: 0.5rem 0;
  }
  .legal-table td {
    display: grid;
    grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr);
    gap: 0.6rem;
    padding: 0.35rem 0.8rem;
    border-top: 0;
  }
  .legal-table td::before {
    content: attr(data-label);
    color: var(--color-soot-500);
    font-weight: 800;
    font-size: 0.72rem;
  }
}
@media (max-width: 23rem) {
  .legal-table td {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }
}
@media (min-width: 62rem) {
  .legal-grid {
    grid-template-columns: 18.5rem minmax(0, 1fr);
    gap: 3.5rem;
  }
  .legal-side {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100dvh - 6.5rem);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .legal-toc {
    max-height: 100%;
    overflow: auto;
  }
}
