/* infinity as code: one stylesheet for every page of the site.
   The look is a letterpress show bill: full-width bands of wood type on poster stock. */

/* ---------- Type ---------- */

@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/anton-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Alfa Slab One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/alfa-slab-one-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Besley";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/besley-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Besley";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/besley-italic-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Rye";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/rye-400-latin.woff2") format("woff2");
}

/* ---------- Ink and stock ---------- */

:root {
  --stock: #f0e2bc;
  --stock-shade: #e4d3a4;
  --ink: #1a1512;
  --red: #b3241b;
  --red-deep: #8f1a13;
  --blue: #1c3d8c;
  --blind: #6b5c37; /* an uninked impression: the outline a blank block leaves in the stock */

  --gothic: "Anton", "Arial Narrow", sans-serif;
  --slab: "Alfa Slab One", "Rockwell", serif;
  --text: "Besley", "Georgia", serif;
  --fancy: "Rye", "Alfa Slab One", serif;

  --body-large: clamp(1.125rem, 1.6cqi, 1.625rem);

  --rule: 0.375rem;
  --hair: 0.1875rem;
  --gutter: clamp(0.75rem, 2.2vw, 2rem);
  --pad: clamp(0.75rem, 1.6cqi, 1.75rem);

  --press: cubic-bezier(0.16, 1, 0.3, 1);

  --sort-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.2l3.2 7 7.6.8-5.7 5.1 1.7 7.5L12 17.7l-6.8 3.9 1.7-7.5L1.2 9l7.6-.8z'/%3E%3C/svg%3E");
  --sort-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24'%3E%3Cpath d='M1 8.5h14V2l12 10-12 10v-6.5H1z'/%3E%3C/svg%3E");
  --salt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -9 0 0 0 7.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.27 0 0 0 0 0.12 0.6 0 0 0 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--ink) var(--stock-shade);
}

body {
  margin: 0;
  padding: var(--gutter);
  background-color: var(--stock);
  background-image: var(--grain);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.45;
  accent-color: var(--red);
  caret-color: var(--red);
}

::selection {
  background: var(--blue);
  color: var(--stock);
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: var(--rule) solid var(--blue);
  outline-offset: 0.2rem;
}

code {
  font-family: var(--text);
  font-style: italic;
  font-weight: 600;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -6rem;
  z-index: 2;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--stock);
  font-family: var(--gothic);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.skip:focus {
  top: var(--gutter);
}

/* ---------- The bill: one tall sheet of stacked bands ---------- */

.bill {
  container-type: inline-size;
  max-width: 105rem;
  margin-inline: auto;
  border-block: var(--rule) solid var(--ink);
}

.band {
  display: block;
  border-top: var(--rule) solid var(--ink);
}

.band--red {
  background: var(--red);
  color: var(--stock);
}

.band--blue {
  background: var(--blue);
  color: var(--stock);
}

.band--ink {
  background: var(--ink);
  color: var(--stock);
}

/* On a flood of ink the focus ring is knocked out in stock, inside the band's edge. */
.band--red :focus-visible,
.band--blue :focus-visible,
.band--ink :focus-visible,
a.band--red:focus-visible {
  outline-color: var(--stock);
}

a.band--red:focus-visible {
  outline-offset: calc(var(--rule) * -2);
}

/* A line of type forced to fill the measure. --r is the line's width in ems;
   site.js measures it once the faces have loaded, the inline value is the fallback. */
.fit {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  font-size: calc(100cqi / var(--r, 8));
  text-align: center;
  text-transform: uppercase;
}

.fit > span {
  display: inline-block;
}

/* Printer's sorts */
.sort {
  display: inline-block;
  flex: none;
  width: 0.8em;
  height: 0.8em;
  background: currentColor;
  -webkit-mask: var(--sort-star) center / contain no-repeat;
  mask: var(--sort-star) center / contain no-repeat;
}

.sort--arrow {
  width: 1.05em;
  -webkit-mask-image: var(--sort-arrow);
  mask-image: var(--sort-arrow);
}

/* ---------- Header band (same on every page) ---------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  font-family: var(--gothic);
  font-size: clamp(1rem, 1.5cqi, 1.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.masthead > * {
  display: flex;
  align-items: center;
  padding: 0.55em var(--pad);
}

.mark {
  gap: 0.12em;
  padding-left: 0;
  font-family: var(--slab);
  font-size: 1.7em;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  text-decoration: none;
}

.mark svg {
  width: 1.5em;
  height: 0.8em;
  overflow: visible;
}

.mark path {
  fill: none;
  stroke: var(--red);
  stroke-width: 10;
}

.crumbs {
  flex: 1 1 auto;
  gap: 0.6em;
  border-left: var(--hair) solid var(--ink);
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

.crumbs__here {
  color: var(--red);
}

.madeup {
  gap: 0.6em;
  background: var(--ink);
  color: var(--stock);
}

.madeup .sort {
  color: var(--stock);
}

.byline {
  gap: 0.45em;
  padding-right: 0;
  text-decoration: none;
}

.byline:hover span {
  text-decoration: underline;
}

/* ---------- Headline ---------- */

.headline {
  font-weight: 400;
  line-height: 1;
}

.headline .fit > span {
  -webkit-mask: var(--salt) 0 0 / 2.1em 2.1em;
  mask: var(--salt) 0 0 / 2.1em 2.1em;
}

.headline__act {
  padding-block: 0.02em 0.04em;
  font-family: var(--gothic);
  line-height: 1.04;
  word-spacing: -0.04em;
  color: var(--red);
  text-shadow: 0.014em 0.012em 0 var(--blue);
}

/* The gothic's first letter carries a wide left bearing; pull the line back to the rule. */
.headline__act > span {
  transform: translateX(-0.022em);
}

.headline__turn {
  border-top: var(--rule) solid var(--ink);
  padding-block: 0.1em 0.02em;
  font-family: var(--slab);
  line-height: 1.02;
}

.idea {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  padding: 0.5em var(--pad);
  font-size: clamp(1.25rem, 2.15cqi, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
  color: var(--blue);
}

.idea .sort {
  color: var(--red);
}

/* ---------- The call: the primary action as a full reverse band ---------- */

.call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.2em 1em;
  padding: 0.2em var(--pad) 0.26em;
  font-family: var(--gothic);
  font-size: clamp(2.25rem, 4.8cqi, 5.4rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.18s var(--press);
}

.call__go {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

.call__go .sort {
  transition: transform 0.3s var(--press);
}

.call__note {
  font-family: var(--text);
  font-size: max(0.32em, 1.0625rem);
  font-weight: 700;
  line-height: 1.47;
  letter-spacing: 0;
  text-transform: none;
}

.call:hover {
  background: var(--red-deep);
}

.call:hover .sort {
  transform: translateX(0.18em);
}

.call:active {
  background: var(--ink);
}

/* ---------- Section heads ---------- */

.head {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.3em var(--pad) 0.34em;
  font-family: var(--slab);
  font-size: clamp(1.5rem, 3.4cqi, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  text-wrap: balance;
}

.head .sort {
  font-size: 0.6em;
}

/* ---------- The context-window panel (same on every page) ----------
   Five equal blocks. No order between them, no sizes.
   data-state="inked": this page fills the slot. data-state="blind": it does not. */

.window {
  border-top: var(--rule) solid var(--ink);
}

.slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--hair);
  background: var(--ink);
  border-block: var(--hair) solid var(--ink);
}

.slot {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: clamp(8.5rem, 13cqi, 13rem);
  padding: var(--pad);
  background-color: var(--stock);
  background-image: var(--grain);
}

.slot__name {
  font-family: var(--gothic);
  font-size: clamp(1.4rem, 2.4cqi, 2.9rem);
  white-space: nowrap;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.slot__fill {
  font-size: clamp(1.0625rem, 1.5cqi, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}

.slot[data-state="blind"] .slot__name {
  color: transparent;
  letter-spacing: 0.03em;
  -webkit-text-stroke: 0.055em var(--blind);
}

.slot[data-state="blind"] .slot__fill {
  color: var(--blind);
  font-style: italic;
}

.slot[data-state="inked"] {
  background: var(--blue);
  color: var(--stock);
}

.window__caption {
  padding-block: 0.06em 0.1em;
  font-family: var(--gothic);
  line-height: 1.15;
  color: var(--red);
}

/* ---------- The company (home page) ---------- */

.company {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-top: var(--hair) solid var(--ink);
}

.company__about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1.25rem, 3cqi, 3rem) var(--pad);
  border-right: var(--hair) solid var(--ink);
  font-size: var(--body-large);
}

.company__about p {
  max-width: 34em;
}

.company__stamp {
  font-family: var(--fancy);
  font-size: clamp(1.75rem, 3.6cqi, 3.75rem);
  line-height: 1.05;
  color: var(--red);
}

.cast ul {
  display: grid;
}

.cast li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 1em;
  padding: 0.35em var(--pad);
  font-family: var(--slab);
  font-size: clamp(1.5rem, 3.3cqi, 3.4rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.cast li + li {
  border-top: var(--hair) solid var(--ink);
}

.cast li:nth-child(1) {
  color: var(--red);
}

.cast li:nth-child(2) {
  color: var(--blue);
}

.cast small {
  font-family: var(--gothic);
  font-size: max(0.5em, 1rem);
  letter-spacing: 0.08em;
  color: var(--ink);
}

.cast__lead {
  padding: 0.6em var(--pad);
  border-bottom: var(--hair) solid var(--ink);
  font-family: var(--gothic);
  font-size: clamp(1.125rem, 1.9cqi, 2rem);
  letter-spacing: 0.05em;
}

/* ---------- The line-up: the path through the four scenarios ---------- */

.lineup li {
  border-top: var(--hair) solid var(--ink);
}

.lineup a {
  display: grid;
  grid-template-columns: clamp(3.25rem, 9cqi, 9rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--pad);
  padding-right: var(--pad);
  text-decoration: none;
  transition: background-color 0.18s var(--press), color 0.18s var(--press);
}

.lineup__no,
.steps__no {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding-block: 0.12em;
  background: var(--ink);
  color: var(--stock);
  font-family: var(--slab);
  font-size: clamp(2.25rem, 6cqi, 6rem);
  line-height: 1;
  transition: background-color 0.18s var(--press);
}

.lineup__what {
  display: grid;
  gap: 0.15rem;
  padding-block: clamp(0.75rem, 1.6cqi, 1.5rem);
}

.lineup__title {
  font-family: var(--gothic);
  font-size: clamp(2rem, 5cqi, 5.25rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.lineup__gist {
  max-width: 44em;
  font-size: var(--body-large);
  font-weight: 600;
}

.lineup .sort {
  font-size: clamp(1.5rem, 3cqi, 3rem);
  color: var(--red);
  transition: transform 0.3s var(--press), color 0.18s var(--press);
}

.lineup li:nth-child(odd) .lineup__title {
  font-family: var(--slab);
  font-size: clamp(1.6rem, 3.9cqi, 4.1rem);
  color: var(--blue);
}

.lineup a:hover,
.lineup a:focus-visible {
  background: var(--red);
  color: var(--stock);
}

.lineup a:hover .lineup__title,
.lineup a:focus-visible .lineup__title,
.lineup a:hover .sort,
.lineup a:focus-visible .sort {
  color: var(--stock);
}

.lineup a:hover .sort {
  transform: translateX(0.2em);
}

.lineup a:focus-visible {
  outline-color: var(--stock);
  outline-offset: calc(var(--rule) * -2);
}

.keys {
  padding: 0.7em var(--pad);
  border-top: var(--hair) solid var(--ink);
  font-size: clamp(1.0625rem, 1.4cqi, 1.375rem);
  font-weight: 600;
}

.keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em 0.9em;
}

.keys[hidden] {
  display: none;
}

.keys__switch {
  padding: 0.25em 0.8em 0.3em;
  border: var(--hair) solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 1.1em;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.18s var(--press), color 0.18s var(--press);
}

.keys__switch:hover {
  background: var(--stock-shade);
}

.keys__switch[aria-pressed="true"] {
  background: var(--ink);
  color: var(--stock);
}

.keys kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.35em;
  border: var(--hair) solid var(--ink);
  font-family: var(--gothic);
  font-size: 1.05em;
  line-height: 1.3;
  text-align: center;
}

/* ---------- Imprint (footer, same on every page) ---------- */

.imprint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  padding: clamp(1.25rem, 2.6cqi, 2.5rem) var(--pad);
  font-size: clamp(1.0625rem, 1.5cqi, 1.5rem);
}

.imprint__truth {
  display: grid;
  flex: 1 1 20em;
  gap: 0.35rem;
  max-width: 46em;
  font-weight: 600;
}

.imprint__truth strong {
  font-family: var(--gothic);
  font-size: 1.5em;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.imprint__maker {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--gothic);
  font-size: 1.35em;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.imprint__maker:hover span {
  text-decoration: underline;
}

.imprint__maker img {
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  box-shadow: 0 0 0 var(--hair) var(--stock);
}

/* ---------- Scenario pages: a document inside the bill ----------
   The frame is the bill. The reading column inside it stays calm. */

/* Wayfinder: where you are among the five pages. */
.wayfinder ol {
  display: flex;
  flex-wrap: wrap;
  border-top: var(--hair) solid var(--ink);
  font-family: var(--gothic);
  font-size: clamp(1rem, 1.5cqi, 1.5rem);
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.wayfinder li {
  display: flex;
  flex: 1 1 auto;
}

.wayfinder li + li {
  border-left: var(--hair) solid var(--ink);
}

.wayfinder a {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em var(--pad);
  text-decoration: none;
  transition: background-color 0.18s var(--press), color 0.18s var(--press);
}

.wayfinder b {
  font-family: var(--slab);
  font-size: 1.15em;
  font-weight: 400;
  letter-spacing: 0;
}

.wayfinder a:not([aria-current]):hover {
  background: var(--red);
  color: var(--stock);
}

.wayfinder a:focus-visible {
  outline-offset: calc(var(--rule) * -1);
}

/* On a flood the ring is knocked out in stock. */
.wayfinder a:hover:focus-visible,
.wayfinder [aria-current]:focus-visible {
  outline-color: var(--stock);
}

.wayfinder [aria-current] {
  background: var(--ink);
  color: var(--stock);
}

/* Title: one fitted line, then the opening in the reading face. */
.page-title {
  font-weight: 400;
}

.page-title .fit {
  padding-block: 0.06em 0.1em;
  font-family: var(--gothic);
  line-height: 1.08;
  color: var(--red);
}

.lede,
.prose {
  max-width: 42em;
  padding: clamp(1rem, 2.2cqi, 2rem) var(--pad);
  font-size: var(--body-large);
  line-height: 1.55;
}

.lede {
  font-weight: 600;
}

.prose p + p {
  margin-top: 0.8em;
}

/* Steps: what happens, in order. The numbers carry the sequence. */
.steps li {
  display: grid;
  grid-template-columns: clamp(3.25rem, 9cqi, 9rem) minmax(0, 1fr);
  border-top: var(--hair) solid var(--ink);
}

.steps__what {
  align-self: center;
  max-width: 42em;
  padding: clamp(0.9rem, 1.8cqi, 1.75rem) var(--pad);
  font-size: var(--body-large);
  line-height: 1.55;
}

.steps__what strong {
  font-weight: 800;
}

.steps__from {
  display: block;
  margin-top: 0.35rem;
  font-size: max(0.8em, 1.0625rem);
  font-style: italic;
}

/* The point: the one thing to take away from the page. */
.point {
  padding: clamp(1.25rem, 3cqi, 3rem) var(--pad);
  font-family: var(--gothic);
  font-size: clamp(2.25rem, 6cqi, 6rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.point span {
  display: block;
}

/* The turn takes the other voice, as the headline does. */
.point span + span {
  margin-top: 0.12em;
  font-family: var(--slab);
  font-size: 0.74em;
  letter-spacing: 0;
}

/* Source: part of a real file from the repo, shown as it is written. */
.source {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-top: var(--hair) solid var(--ink);
}

.source .prose {
  border-right: var(--hair) solid var(--ink);
}

.source__file {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.source__name {
  padding: 0.6em var(--pad);
  border-bottom: var(--hair) solid var(--ink);
  font-family: var(--gothic);
  font-size: clamp(1rem, 1.5cqi, 1.5rem);
  letter-spacing: 0.05em;
  line-height: 1.47;
  overflow-wrap: anywhere;
}

.source pre {
  flex: 1 1 auto;
  margin: 0;
  padding: clamp(1rem, 2cqi, 1.75rem) var(--pad);
  overflow-x: auto;
  background: var(--stock-shade);
  font-family: ui-monospace, "Cascadia Mono", "Consolas", "Menlo", "DejaVu Sans Mono", monospace;
  font-size: clamp(1.0625rem, 1.4cqi, 1.375rem);
  line-height: 1.6;
  white-space: pre-wrap;
  tab-size: 2;
}

.source pre code {
  font: inherit;
}

/* The way forward and the contact line. */
.contact {
  padding: 0.9em var(--pad);
  font-size: var(--body-large);
  font-weight: 600;
}

@container (max-width: 62rem) {
  .source {
    grid-template-columns: 1fr;
  }

  .source .prose {
    border-right: 0;
    border-bottom: var(--hair) solid var(--ink);
  }
}

@container (max-width: 44rem) {
  /* Numbers only on a narrow sheet; the names stay for screen readers. */
  .wayfinder span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .wayfinder a {
    position: relative;
    justify-content: center;
    min-height: 2.75rem;
  }

  .page-title .fit {
    padding: 0.3em var(--pad);
    white-space: normal;
    font-size: clamp(2rem, 12cqi, 3.5rem);
    text-align: left;
    text-wrap: balance;
  }
}

/* ---------- Narrow sheets ---------- */

@container (max-width: 62rem) {
  .slots {
    grid-template-columns: 1fr;
  }

  .slot {
    min-height: 0;
  }

  .slot__name {
    font-size: clamp(2rem, 7cqi, 3.5rem);
  }

  .window__caption.fit {
    padding: 0.5em var(--pad);
    white-space: normal;
    font-size: clamp(1.5rem, 6cqi, 3rem);
    text-align: left;
  }

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

  .company__about {
    border-right: 0;
    border-bottom: var(--hair) solid var(--ink);
  }
}

@container (max-width: 44rem) {
  .masthead > * {
    padding-block: 0.5em;
  }

  .mark {
    padding-left: var(--pad);
  }

  .crumbs {
    justify-content: flex-end;
    border-left: 0;
  }

  .madeup,
  .byline {
    flex: 1 1 100%;
    justify-content: center;
    padding-inline: var(--pad);
  }

  .madeup {
    letter-spacing: 0.04em;
    text-align: center;
    text-wrap: balance;
  }

  .madeup .sort,
  .keys {
    display: none;
  }

  .headline .fit > span {
    -webkit-mask: none;
    mask: none;
  }

  .cast li {
    flex-direction: column;
    gap: 0.1em;
  }

  .byline {
    border-top: var(--hair) solid var(--ink);
  }

  .idea .sort {
    display: none;
  }

  .lineup a {
    grid-template-columns: 3.25rem minmax(0, 1fr);
  }

  .lineup a > .sort {
    display: none;
  }
}

/* ---------- Short, wide screens: keep the call above the fold ---------- */

@media (min-width: 60rem) and (max-height: 47.5rem) {
  .masthead > * {
    padding-block: 0.2em;
  }

  .idea {
    padding-block: 0.2em;
  }

  .headline ~ .call {
    padding-block: 0.04em 0.08em;
  }
}

@media (hover: none) {
  .keys {
    display: none;
  }
}

/* ---------- The press-pull: one authored moment as the page opens ---------- */

@media (prefers-reduced-motion: no-preference) {
  .headline__act {
    animation: second-pass 0.9s var(--press) 0.15s backwards;
  }

  .slot[data-state="inked"] {
    animation: stamp 0.5s var(--press) 0.35s backwards;
  }

  @keyframes second-pass {
    from {
      text-shadow: 0 0 0 var(--blue);
      transform: scale(1.012);
    }
  }

  @keyframes stamp {
    from {
      background-color: var(--stock);
      color: var(--blind);
      transform: scale(1.03);
    }
  }
}

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

@media print {
  body {
    background-image: none;
  }
}
