/* Ora Graphic Party!  site.css
   The page is a press sheet. Three ink plates (yellow, fluo pink, medium blue) overprint
   with multiply on paper, or with screen on a black tee. In register they make the key
   colour; out of register they split. Everything below follows from that, including the
   offsets under buttons and pictures: each one is a plate, shifted the way that ink shifts. */

:root {
  color-scheme: light;
  --paper: #f3eee3;
  --sheet: #f8f5ee;
  --text: #2b1817;
  --key: #321414;
  --plate-1: #ffd92e;
  --plate-2: #ff48b0;
  --plate-3: #3255a4;
  --blend: multiply;
  --grain: url("/assets/img/paper.png");
  --grain-size: 200px;
  --focus: #3255a4;
  --text-soft: color-mix(in oklab, var(--text) 74%, var(--paper));
  --rule: color-mix(in oklab, var(--text) 24%, transparent);

  --f-display: "OGP Archivo", "OGP Black", "Hiragino Kaku Gothic StdN", "Hiragino Sans", sans-serif;
  --f-body: "OGP Archivo", "OGP Gothic", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --f-black: "OGP Archivo", "OGP Black", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-mono: "OGP Mono", "OGP Gothic", ui-monospace, "SF Mono", Menlo, monospace;

  /* the sheet: gutter to the trim, then the live area inside it; every section starts at --live */
  --bar-h: 3.5rem;
  --gutter: clamp(1.25rem, 3.6vw, 3rem);
  --pad: clamp(0.75rem, 3vw, 3rem);
  --live: calc(var(--gutter) + var(--pad));
  --measure: 38em;
  --fs-body: clamp(0.9375rem, 0.88rem + 0.22vw, 1.0625rem);
  --fs-sect: clamp(2.5rem, 1rem + 5vw, 5.5rem);
  --fs-name: clamp(2.6rem, 1rem + 7.6vw, 8.25rem);
  --spring: cubic-bezier(0.18, 1.45, 0.32, 1);
}

/* Black tee: inks are screen-printed, so overprints get lighter and register to near-white. */
:root[data-substrate="tee"] {
  color-scheme: dark;
  --paper: #171515;
  --sheet: #201d1d;
  --text: #f1e8e2;
  --key: #ffede8;
  --blend: screen;
  --grain: url("/assets/img/knit.png");
  --grain-size: 96px;
  --focus: #ffd92e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-substrate="paper"]) {
    color-scheme: dark;
    --paper: #171515;
    --sheet: #201d1d;
    --text: #f1e8e2;
    --key: #ffede8;
    --blend: screen;
    --grain: url("/assets/img/knit.png");
    --grain-size: 96px;
    --focus: #ffd92e;
  }
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-h) + 1rem);
  background: var(--paper);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--paper) var(--grain) repeat;
  background-size: var(--grain-size);
  color: var(--text);
  font: 400 var(--fs-body)/1.9 var(--f-body);
  font-stretch: 100%;
  letter-spacing: 0.03em;
  font-kerning: normal;
  line-break: strict;
  word-break: auto-phrase;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, canvas, svg { display: block; max-width: 100%; }
p, h1, h2, h3, dl, dd, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--plate-2); text-decoration-thickness: 2px; }

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

::selection { background: var(--plate-1); color: #2b1817; }

[hidden] { display: none !important; }

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

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 50;
  padding: 0.6rem 1rem; background: var(--text); color: var(--paper);
  text-decoration: none;
}
.skip:focus { top: 0.5rem; }

.mono {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

/* ---------- plates (any element with data-plated, built by plates.js) ---------- */

[data-plated] { position: relative; }
[data-plated] .pl { display: inline; mix-blend-mode: var(--blend); }
[data-plated] .pl[data-n="1"] { color: var(--plate-1); }
[data-plated] .pl[data-n="2"],
[data-plated] .pl[data-n="3"] { position: absolute; inset: 0; pointer-events: none; }
[data-plated] .pl[data-n="2"] { color: var(--plate-2); }
[data-plated] .pl[data-n="3"] { color: var(--plate-3); }
[data-plated] .pl {
  --mis: 0;
  transform: translate(calc(var(--dx) * var(--mis)), calc(var(--dy) * var(--mis)));
  transition: transform 0.7s var(--spring);
}
/* the direction each ink drifts: yellow up-left, pink right, blue down */
[data-plated] .pl[data-n="1"] { --dx: -0.035em; --dy: -0.02em; }
[data-plated] .pl[data-n="2"] { --dx: 0.03em; --dy: 0.008em; }
[data-plated] .pl[data-n="3"] { --dx: 0.004em; --dy: 0.032em; }
[data-plated].is-loose .pl { --mis: 1; }

/* ---------- masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  height: var(--bar-h);
  padding-inline: var(--live);
  background: var(--paper) var(--grain) repeat;
  background-size: var(--grain-size);
  border-bottom: 1px solid var(--rule);
}
.masthead__home {
  font: 900 1.125rem/1 var(--f-display);
  font-stretch: 62%;
  text-decoration: none;
  white-space: nowrap;
}
.masthead__home .short { display: none; }
.masthead__nav { display: flex; justify-content: flex-end; gap: clamp(0.85rem, 2.4vw, 2.25rem); }
.masthead__nav a {
  font: 600 0.9375rem/1 var(--f-display);
  font-stretch: 100%;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding-block: 0.5rem;
  white-space: nowrap;
}
.masthead__nav a:hover { text-decoration: underline; text-decoration-color: var(--plate-2); text-decoration-thickness: 2px; }

.substrate { display: inline-flex; border: 1px solid var(--text); }
.substrate button {
  padding: 0.45rem 0.6rem;
  border: 0;
  border-radius: 0;
  background: none;
  font: 700 0.8125rem/1 var(--f-body);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.substrate button + button { border-left: 1px solid var(--text); }
.substrate button[aria-pressed="true"] { background: var(--text); color: var(--paper); }

@media (max-width: 34rem) {
  .masthead { padding-inline: var(--gutter); }
  .masthead__home .full { display: none; }
  .masthead__home .short { display: inline; }
  .masthead__nav a { font-size: 0.875rem; }
}
@media (max-width: 22.5rem) {
  .masthead { gap: 0.6rem; }
  .masthead__nav { gap: 0.7rem; }
  .masthead__nav a { font-size: 0.8125rem; }
  .substrate button { padding-inline: 0.45rem; }
}

/* ---------- section scaffolding ---------- */

.wrap { padding-inline: var(--live); max-width: 96rem; margin-inline: auto; }

.sect {
  font: 900 var(--fs-sect)/0.86 var(--f-display);
  font-stretch: 62%;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin-bottom: clamp(1.75rem, 4vw, 3.5rem);
}
.sect .pl { white-space: nowrap; }

/* ---------- press (hero) ---------- */

.press {
  position: relative;
  overflow-x: clip;
  display: flex;
  min-height: calc(100svh - var(--bar-h));
  padding: max(2.4rem, var(--gutter)) var(--gutter);
}
.press__sheet {
  --side-w: clamp(15rem, 24vw, 22rem);
  --gap: clamp(1.5rem, 3.4vw, 3.5rem);
  position: relative;
  flex: 1;
  display: grid;
  padding: var(--pad);
  container: sheet / inline-size;
}
.press__main {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "slug" "mark" "side";
  gap: clamp(1.25rem, 4vw, 2.25rem);
  align-content: center;
}
/* above the wordmark, whose huge glyphs overflow its box (and move with the plates) */
.slug { grid-area: slug; position: relative; z-index: 2; line-height: 2.2; text-transform: uppercase; }

/* an ink drum switch inside running text: its colour chip and its name */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.15em 0.1em;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  white-space: nowrap;
  text-decoration: underline dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  line-height: 1.4;
  position: relative;
}
/* a larger target around the small label, stopping short of the chips on the next line */
.chip::after { content: ""; position: absolute; inset: -0.25em -0.3em; }
.chip:hover { text-decoration-style: solid; text-decoration-color: currentColor; }
.chip__swatch { width: 1.05em; height: 1.05em; flex: none; background: var(--swatch); mix-blend-mode: var(--blend); }
.chip[data-drum="1"] { --swatch: var(--plate-1); }
.chip[data-drum="2"] { --swatch: var(--plate-2); }
.chip[data-drum="3"] { --swatch: var(--plate-3); }
.chip:active .chip__swatch { transform: scale(0.85); }

.wordmark {
  --cap: 0.686;
  grid-area: mark;
  position: relative;
  width: 100cqi;
  margin: 0;
  container: wordmark / inline-size;
  font: 900 1rem/1 var(--f-display);
  font-stretch: 62%;
  letter-spacing: 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.wordmark__plate { display: block; mix-blend-mode: var(--blend); will-change: transform; transform-origin: 50% 45%; }
/* only the wordmark's own box presses: the glyphs that spill out of it never take a tap */
.wordmark__plate { pointer-events: none; }
/* press.js stamps the plates in; if it never runs, they appear on their own */
.js .wordmark__plate,
.js .marks { opacity: 0; animation: show 0s 1.6s forwards; }
@keyframes show { to { opacity: 1; } }
.wordmark__plate[data-plate="1"] { color: var(--plate-1); }
.wordmark__plate[data-plate="2"] { color: var(--plate-2); position: absolute; inset: 0; }
.wordmark__plate[data-plate="3"] { color: var(--plate-3); position: absolute; inset: 0; }
.wl {
  display: block;
  font-size: calc(100cqi / var(--ink-w));
  line-height: var(--cap);
  height: calc(var(--cap) * 1em);
  margin-left: calc(var(--lsb) * -1em);
  white-space: nowrap;
}
.wl + .wl { margin-top: 3.4cqi; }
.wl--ora { --ink-w: 1.563; --lsb: 0.03; }
.wl--graphic { --ink-w: 3.301; --lsb: 0.03; }
.wl--party { --ink-w: 2.666; --lsb: 0.04; }
.wl--party > span { display: inline-block; will-change: transform; transform-origin: 50% 100%; }

.press__side { grid-area: side; display: grid; gap: clamp(1.25rem, 3vw, 2rem); align-content: end; }
.lede {
  font: 700 clamp(1.0625rem, 0.8rem + 0.85vw, 1.4375rem)/1.6 var(--f-body);
  letter-spacing: 0.04em;
}
.press__controls { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }

.lever {
  position: relative;
  min-width: 8.5rem;
  padding: 1.05rem 1.6rem 1rem;
  border: 0;
  border-radius: 0;
  background: var(--text);
  color: var(--paper);
  font: 900 1.375rem/1 var(--f-black);
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  box-shadow: 6px 1.5px 0 var(--plate-2);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}
.lever:hover { box-shadow: 9px 2px 0 var(--plate-2); transform: translateX(-2px); }
.lever:active { box-shadow: 0 0 0 var(--plate-2); transform: translate(6px, 1.5px); }
.gauge { color: var(--text-soft); }
.tiltbtn {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--text);
  border-radius: 0;
  background: none;
  letter-spacing: 0.06em;
}
.tiltbtn[aria-pressed="true"] { background: var(--text); color: var(--paper); }
.gauge output { color: var(--text); font-variant-numeric: tabular-nums; }

.press__confetti {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  mix-blend-mode: var(--blend);
}

/* printer's marks: one layer per plate, moved together with that plate, all outside the trim */
.marks { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: var(--blend); will-change: transform; }
.marks[data-plate="1"] { color: var(--plate-1); }
.marks[data-plate="2"] { color: var(--plate-2); }
.marks[data-plate="3"] { color: var(--plate-3); }
.marks { --mk: clamp(26px, 18px + 2.4vw, 34px); --trim: calc(var(--mk) * -20 / 34); }
.marks svg { position: absolute; width: var(--mk); height: var(--mk); overflow: visible; }
.marks .tl { left: var(--trim); top: var(--trim); }
.marks .tr { right: var(--trim); top: var(--trim); transform: scaleX(-1); }
.marks .bl { left: var(--trim); bottom: var(--trim); transform: scaleY(-1); }
.marks .br { right: var(--trim); bottom: var(--trim); transform: scale(-1, -1); }
.marks .ct { left: calc(50% - var(--mk) / 2); top: calc(var(--mk) * -0.95); }
.marks .cb { left: calc(50% - var(--mk) / 2); bottom: calc(var(--mk) * -0.95); }

@media (min-width: 48rem) and (min-aspect-ratio: 1/1) {
  .press__main {
    grid-template-columns: auto var(--side-w);
    grid-template-rows: auto 1fr;
    grid-template-areas: "mark slug" "mark side";
    justify-content: center;
    column-gap: var(--gap);
    row-gap: 0;
  }
  .slug { align-self: start; }
  .press__side { align-self: end; }
  .wordmark {
    width: min(
      calc(100cqi - var(--side-w) - var(--gap)),
      calc((100svh - var(--bar-h) - 2 * var(--pad) - 6.5rem) / 0.95)
    );
  }
}

/* ---------- statement ---------- */

.statement { padding-block: clamp(5rem, 14vw, 11rem) clamp(4rem, 10vw, 8rem); }
.statement__text {
  max-width: 18em;
  font: 900 clamp(1.625rem, 0.9rem + 3.3vw, 4.25rem)/1.5 var(--f-black);
  font-feature-settings: "palt";
  letter-spacing: 0.02em;
}
/* The three disciplines arrive out of register, each led by its own ink, and come into
   register as the sentence reaches "一つに総括". Plates are text-shadows here, not copies,
   so the words can wrap anywhere like the rest of the sentence. */
.ink-word {
  --mis: 0;
  text-shadow:
    calc(var(--y-dx) * var(--mis)) calc(var(--y-dy) * var(--mis)) 0 var(--plate-1),
    calc(var(--p-dx) * var(--mis)) calc(var(--p-dy) * var(--mis)) 0 var(--plate-2),
    calc(var(--b-dx) * var(--mis)) calc(var(--b-dy) * var(--mis)) 0 var(--plate-3);
  --y-dx: -0.02em; --y-dy: -0.012em;
  --p-dx: 0.018em; --p-dy: 0.005em;
  --b-dx: 0.003em; --b-dy: 0.02em;
  transition: text-shadow 1.1s var(--spring);
}
.ink-word[data-ink="1"] { --y-dx: -0.085em; --y-dy: -0.05em; }
.ink-word[data-ink="2"] { --p-dx: 0.08em; --p-dy: 0.02em; transition-delay: 0.18s; }
.ink-word[data-ink="3"] { --b-dx: 0.01em; --b-dy: 0.085em; }
.ink-word[data-ink="1"] { transition-delay: 0.36s; }
.statement__text.is-loose .ink-word { --mis: 1; }

/* ---------- line up ---------- */

.lineup { padding-block: clamp(3rem, 8vw, 7rem); }
.acts { border-top: 1px solid var(--rule); }
.act {
  padding-block: clamp(1.75rem, 4.5vw, 3.25rem);
  border-bottom: 1px solid var(--rule);
}
/* the whole row is one link: name, role and portrait */
.act__link { display: grid; grid-template-columns: 1fr; gap: 1.25rem; text-decoration: none; }
.act__text { display: grid; gap: 0.85rem; align-content: end; }
.act__name {
  font: 900 var(--fs-name)/0.92 var(--f-black);
  font-stretch: 62%;
  font-feature-settings: "palt";
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
/* Latin caps at the same size look a size smaller than kanji; bring the cap height up to the kanji face */
.act__name[lang="en"] { font-size: calc(var(--fs-name) * 1.22); line-height: 0.86; }
.act__name .aka,
.member__name .aka,
.next a .aka { font-size: 0.42em; letter-spacing: 0.02em; vertical-align: 0.62em; margin-inline: 0.12em; text-transform: none; }
.act__role {
  font: 600 clamp(0.875rem, 0.8rem + 0.3vw, 1.0625rem)/1.4 var(--f-display);
  font-stretch: 100%;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.2s;
}
.act__link:hover .act__role,
.act__link:focus-visible .act__role { text-decoration-color: var(--ink); }
.act__pic {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}
.act__pic img,
.act__pic canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.act__pic canvas { mix-blend-mode: var(--blend); touch-action: pan-y; }
.act__pic.is-screened img { visibility: hidden; }
.act[data-ink="1"] { --ink: var(--plate-1); }
.act[data-ink="2"] { --ink: var(--plate-2); }
.act[data-ink="3"] { --ink: var(--plate-3); }

@media (min-width: 48rem) {
  .act__link { grid-template-columns: minmax(0, 1fr) clamp(14rem, 36vw, 32rem); align-items: end; gap: var(--gutter); }
}

/* ---------- about ---------- */

.about { padding-block: clamp(4rem, 10vw, 9rem); }
.about__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.entry { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.25rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.entry__word {
  font: 900 clamp(3.5rem, 2rem + 6vw, 7rem)/0.9 var(--f-display);
  font-stretch: 62%;
  letter-spacing: -0.01em;
}
.entry__gloss { font-weight: 700; letter-spacing: 0.08em; }
.entry__gloss .mono { margin-right: 0.75rem; color: var(--text-soft); }
.poem__lead {
  font: 900 clamp(1.75rem, 1rem + 2.6vw, 3rem)/1.4 var(--f-black);
  font-feature-settings: "palt";
  letter-spacing: 0.04em;
  margin-bottom: 1.5em;
}
.poem p + p { margin-top: 1.4em; }
.poem { max-width: var(--measure); }

.water { position: relative; display: grid; gap: 0.9rem; }
.water__pool { position: relative; aspect-ratio: 1; }
.water__pool canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  mix-blend-mode: var(--blend);
  cursor: crosshair;
  touch-action: manipulation;
}
.water__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; }
.water__throw {
  padding: 0.7rem 1.1rem;
  border: 1.5px solid var(--text);
  border-radius: 0;
  background: none;
  font-weight: 700;
  letter-spacing: 0.12em;
  box-shadow: 1px 5px 0 var(--plate-3);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}
.water__throw:active { transform: translate(1px, 5px); box-shadow: 0 0 0 var(--plate-3); }
.water__state { color: var(--text-soft); }

@media (min-width: 60rem) {
  .about__grid { grid-template-columns: minmax(0, 1.05fr) auto; align-items: start; }
  .about__text { order: 2; }
  .water { order: 1; position: sticky; top: calc(var(--bar-h) + 1.5rem); }
  .water__pool { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--bar-h) - 7rem); width: 100%; }
  .poem {
    writing-mode: vertical-rl;
    block-size: auto;
    inline-size: min(27em, calc(100svh - var(--bar-h) - 6rem));
    max-width: none;
    font-size: 1.0625rem;
    line-height: 2.05;
    letter-spacing: 0.08em;
  }
  .poem__lead { margin-bottom: 0; margin-left: 1.2em; line-height: 1.45; letter-spacing: 0.06em; }
  .poem p + p { margin-top: 0; margin-left: 1.6em; }
}

/* ---------- contact ---------- */

.contact { padding-block: clamp(4rem, 10vw, 9rem) clamp(5rem, 12vw, 10rem); }
.ticket {
  position: relative;
  overflow: clip;
  max-width: 68rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  padding-top: clamp(2.25rem, 5vw, 3.25rem);
  background: var(--sheet);
  color: var(--text);
  border: 1px solid var(--rule);
}
/* perforation along the top: the stub tears off here */
.ticket::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 1.1rem;
  border-top: 1.5px dashed color-mix(in oklab, var(--text) 40%, transparent);
}
.ticket__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1.75rem; }
.ticket__head > span:first-child { text-transform: uppercase; }
.ticket__head a { text-decoration-color: var(--rule); }
.ticket__body { display: grid; gap: 0 clamp(2rem, 5vw, 4rem); }
.ticket__field { display: grid; gap: 0.5rem; align-content: start; margin: 0 0 1.5rem; padding: 0; border: 0; min-width: 0; }
.ticket__field > label,
.ticket__field legend { font-weight: 700; letter-spacing: 0.06em; padding: 0; margin-bottom: 0.25rem; }
.ticket__choice { display: flex; align-items: flex-start; gap: 0.7rem; line-height: 1.6; cursor: pointer; }
.ticket__choice + .ticket__choice { margin-top: 0.55rem; }
.ticket input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  flex: none;
  width: 1.15rem; height: 1.15rem;
  margin: 0.2rem 0 0;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.ticket input[type="radio"]:checked { background: var(--text); box-shadow: inset 0 0 0 3.5px var(--sheet); }
.ticket input[type="text"],
.ticket input[type="email"],
.ticket textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--text);
  border-radius: 0;
  background: transparent;
  line-height: 1.7;
}
.ticket textarea { resize: vertical; min-height: 9rem; }
.ticket [aria-invalid="true"] { border-color: #c21f5b; }
.ticket__error { color: #c21f5b; font-weight: 700; font-size: 0.875rem; }
:root[data-substrate="tee"] .ticket [aria-invalid="true"] { border-color: #ff7ab8; }
:root[data-substrate="tee"] .ticket__error { color: #ff7ab8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-substrate="paper"]) .ticket [aria-invalid="true"] { border-color: #ff7ab8; }
  :root:not([data-substrate="paper"]) .ticket__error { color: #ff7ab8; }
}
.ticket__send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.ticket__submit {
  padding: 1rem 1.6rem;
  border: 0;
  border-radius: 0;
  background: var(--text);
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 0.12em;
  box-shadow: -5px -3px 0 var(--plate-1);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}
.ticket__submit:active { transform: translate(-5px, -3px); box-shadow: 0 0 0 var(--plate-1); }
.ticket__note { color: var(--text-soft); font-size: 0.875rem; line-height: 1.7; }
.ticket__stamp {
  position: absolute; right: clamp(1rem, 4vw, 2.5rem); top: clamp(2.5rem, 6vw, 3.5rem);
  display: grid; place-items: center;
  width: 6.5rem; height: 6.5rem;
  border: 4px double var(--plate-2);
  border-radius: 50%;
  color: var(--plate-2);
  font: 900 1.75rem/1 var(--f-black);
  letter-spacing: 0.08em;
  mix-blend-mode: var(--blend);
  transform: rotate(-14deg);
  opacity: 0;
  pointer-events: none;
}
.ticket.is-stamped .ticket__stamp { animation: stamp 0.5s var(--spring) forwards; }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(-14deg) scale(1.7); }
  60% { opacity: 0.95; }
  100% { opacity: 0.9; transform: rotate(-14deg) scale(1); }
}
.ticket__check:not(:empty) { margin-top: 0.5rem; }
.ticket__status { margin-top: 1.25rem; min-height: 1.6em; font-weight: 700; line-height: 1.6; }
.ticket__status:empty { margin-top: 0; }
.ticket__submit:disabled { opacity: 0.55; cursor: progress; }
/* honeypot for form robots: off-screen, out of the tab order, hidden from assistive tech */
.ticket__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 60rem) {
  .ticket__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
}

/* ---------- colophon ---------- */

.colophon {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--rule);
}
.proof {
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
  /* one line at any width: the line is 7.9em wide at this width axis */
  font: 900 min(clamp(2.25rem, 1rem + 6vw, 5.5rem), calc((100vw - 2 * var(--live)) / 8.3))/0.9 var(--f-display);
  font-stretch: 62%;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}
.proof .pl[data-n="1"] { --dx: -0.022em; --dy: -0.014em; }
.proof .pl[data-n="2"] { --dx: 0.02em; --dy: 0.004em; }
.proof .pl[data-n="3"] { --dx: 0.002em; --dy: 0.022em; }
/* far enough apart that each ink reads on its own, so a drum change shows at once */
.proof .pl { --mis: 2.6; }
.proof.is-loose .pl { --mis: 9; transition-duration: 0.12s; }
.colophon__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
}
.colophon__list dt { margin-bottom: 0.35rem; color: var(--text-soft); text-transform: uppercase; }
.colophon__list dd { line-height: 1.75; }
.drums { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.drum {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.65rem 0.4rem 0.45rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: none;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.drum:hover { border-color: var(--text); }
.drum__swatch { width: 1rem; height: 1rem; background: var(--swatch); mix-blend-mode: var(--blend); }
.drum[data-drum="1"] { --swatch: var(--plate-1); }
.drum[data-drum="2"] { --swatch: var(--plate-2); }
.drum[data-drum="3"] { --swatch: var(--plate-3); }
.textbtn {
  padding: 0;
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.colophon__end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: clamp(2.5rem, 6vw, 4rem); }

/* ---------- member pages ---------- */

.member { --ink: var(--plate-3); --pic-dx: 1px; --pic-dy: 12px; }
.member[data-ink="1"] { --ink: var(--plate-1); --pic-dx: -12px; --pic-dy: -7px; }
.member[data-ink="2"] { --ink: var(--plate-2); --pic-dx: 12px; --pic-dy: 3px; }
.member__hero {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4rem);
}
.member__plate { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; text-transform: uppercase; }
.member__name {
  font: 900 clamp(3.25rem, 1.2rem + 9vw, 10rem)/0.9 var(--f-black);
  font-stretch: 62%;
  font-feature-settings: "palt";
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin-top: 0.9rem;
}
.member__name[lang="en"] { font-size: clamp(3.75rem, 1.4rem + 10.5vw, 11.5rem); line-height: 0.86; }
.member__role { margin-top: 1.25rem; font-weight: 700; letter-spacing: 0.06em; }
.member__pic { position: relative; width: min(100%, 34rem); isolation: isolate; }
.member__pic img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.member__pic::after {
  content: "";
  position: absolute; inset: 0;
  transform: translate(var(--pic-dx), var(--pic-dy));
  background: var(--ink);
  mix-blend-mode: var(--blend);
  z-index: -1;
}
.member__body { display: grid; gap: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(4rem, 10vw, 8rem); }
.member__bio { max-width: var(--measure); font-size: clamp(1rem, 0.94rem + 0.25vw, 1.125rem); line-height: 2; }
.member__bio p + p { margin-top: 1em; }
.sub {
  font: 900 clamp(1.875rem, 1rem + 2.6vw, 3.25rem)/0.9 var(--f-display);
  font-stretch: 62%;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 1.5rem; font-weight: 700; }

@media (min-width: 52rem) {
  .member__hero { grid-template-columns: minmax(0, 1fr) minmax(16rem, 30rem); align-items: end; }
}

/* skill set as a press colour bar: each patch is screened to the rating (5/5 solid, 4/5 is 80%...) */
.patches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 6.5rem), 1fr)); gap: 1.25rem 0.5rem; }
.patch { display: grid; gap: 0.45rem; align-content: start; }
.patch__swatch {
  aspect-ratio: 1.6;
  background-color: var(--ink);
  mix-blend-mode: var(--blend);
  background-size: 8px 8px;
}
.patch[data-level="4"] .patch__swatch { background-image: radial-gradient(circle, var(--paper) 2px, transparent 2.4px); }
.patch[data-level="3"] .patch__swatch { background-image: radial-gradient(circle, var(--paper) 2.85px, transparent 3.25px); }
.patch[data-level="2"] .patch__swatch { background-color: transparent; background-image: radial-gradient(circle, var(--ink) 2.85px, transparent 3.25px); }
.patch[data-level="1"] .patch__swatch { background-color: transparent; background-image: radial-gradient(circle, var(--ink) 2px, transparent 2.4px); }
.patch__name { font-weight: 700; font-size: 0.875rem; line-height: 1.4; }
.patch__level { color: var(--text-soft); }

.empty-sheet {
  position: relative;
  display: grid; place-items: center; gap: 0.6rem;
  min-height: 15rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1.5px dashed var(--rule);
}
.empty-sheet__big { font: 900 clamp(2rem, 1.2rem + 3vw, 3.25rem)/1 var(--f-black); letter-spacing: 0.1em; }

.next {
  display: grid; gap: 0.5rem;
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--rule);
}
.next a { font: 900 clamp(1.75rem, 1rem + 3vw, 3.25rem)/1.1 var(--f-black); font-stretch: 62%; text-decoration: none; text-transform: uppercase; justify-self: start; }
.next a[lang="en"] { font-size: clamp(2.125rem, 1.2rem + 3.7vw, 4rem); line-height: 1; }

/* ---------- 404 ---------- */

.gone { display: grid; gap: 2rem; padding-block: clamp(3rem, 8vw, 6rem); }
.gone svg { width: min(70vw, 18rem); height: auto; overflow: visible; }
.gone svg .ink { mix-blend-mode: var(--blend); }
.gone .ink--1 { fill: var(--plate-1); transform: translate(-4px, -2px); }
.gone .ink--2 { fill: var(--plate-2); transform: translate(4px, 1px); }
.gone .ink--3 { fill: var(--plate-3); transform: translate(-1px, 4px); }
.gone h1 { font: 900 clamp(2rem, 1rem + 4vw, 4rem)/1.3 var(--f-black); font-feature-settings: "palt"; }

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- print: the sheet comes out as a poster with its marks ---------- */

@media print {
  @page { size: A4; margin: 12mm; }
  :root { --paper: #fff; --text: #000; --grain: none; --blend: multiply; }
  body { background: #fff; color: #000; font-size: 10pt; }
  .masthead, .skip, .lever, .gauge, .press__confetti, .water, .drums, .textbtn, .ticket, [data-print-hide] { display: none !important; }
  .press { min-height: auto; break-after: page; }
  .wordmark { width: 100% !important; }
  .press__main { grid-template-columns: 1fr !important; grid-template-areas: "slug" "mark" "side" !important; }
  section { break-inside: avoid-page; }
  a { text-decoration: none; }
  .act__pic { display: none; }
  .poem { writing-mode: horizontal-tb !important; inline-size: auto !important; }
  .poem__lead { margin: 0 0 1em !important; }
  .poem p + p { margin: 1em 0 0 !important; }
  .contact .sect::after { content: "oragp.com"; display: block; margin-top: 0.5em; font: 400 12pt/1 var(--f-mono); letter-spacing: 0.06em; text-transform: none; }
}
