/* PAGES OPTIONAL · pagesoptional.com
   Reference lock (Refero, 2026-11-19). The brand owns the tokens; the references own the manner.
   Leading: Klim "specimen as spectacle". Colour is an environment: the yellow field runs from the top
     bar to the foot, broken once by a flat black room where the films are shown (Klim keeps its
     galleries on black; Cards Against Humanity cuts to flat black stages with no gradient or glow). The object gets the room. Controls are small labels (16px, 28px high,
     2px corners) beside monumental lettering. Chapter title in a left rail, reading column beside it.
     Ruled directory rows. A long pause, then a signature.
   Borrowed: Cards Against Humanity "deadpan cardboard anarchy". Helvetica, bold, sentence case with a
     full stop, tight leading. Big plain explanatory paragraphs. Text at full contrast, never grey.
   The book is an object you can pick up (book.js, three.js): flat colour, no lighting, no perspective,
     so at rest it is the logo. Drag it and it spins. It is sized to the screen height as well as the
     width, with room to turn, so it never runs off the top or the bottom.
   Role rules: red and page-cream belong to the book and its pages and nothing else. Hairline brown is for rules only;
     secondary text uses the darker directory ink.
   Rejected: a centred headline over a pill button, cards, shadows, gradients, uppercase spaced labels,
     a second typeface, any colour that is not already in the logo. */

:root {
  --field: #f2b90c;   /* the channel's yellow: the whole environment */
  --ink: #161412;     /* lettering */
  --quiet: #4a3900;   /* secondary text on yellow (6:1) */
  --rule: #8a6a00;    /* hairlines only */
  --recess: #dfa90a;  /* backing behind media while it loads */
  --red: #d7301f;     /* the book's cover */
  --page: #fbf6ea;    /* the book's pages */
  --sans: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
  --inset: 16px;
  --gutter: 10px;
  --bar: 48px;
  /* The widest the book may be and still clear the top and bottom of the first screen while it turns */
  --fit: calc((100svh - var(--bar) - 24px) * 0.72);
}
@media (min-width: 900px) { :root { --inset: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--field); color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--field); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--inset); top: 10px; z-index: 10; background: var(--ink); color: var(--field); padding: 4px 8px; }
.i { width: 1em; height: 1em; flex: none; fill: currentColor; }

/* Top bar: small labels floating on the field */
.bar {
  position: sticky; top: 0; z-index: 5; height: var(--bar);
  display: flex; align-items: center; justify-content: space-between; gap: var(--gutter);
  padding-inline: var(--inset); background: var(--field);
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; height: 28px; }
.brand svg { height: 26px; width: auto; }
.bar nav { display: flex; gap: 5px; margin-right: -8px; }
.bar nav a.wide { display: none; }
@media (min-width: 720px) { .bar nav a.wide { display: inline-flex; } }

.label {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px;
  border-radius: 2px; text-decoration: none; white-space: nowrap;
  transition: background-color 50ms ease-out, color 50ms ease-out;
}
.outline {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px;
  border: 1px solid var(--ink); border-radius: 2px; text-decoration: none; white-space: nowrap;
  transition: background-color 50ms ease-out, color 50ms ease-out;
}
@media (hover: hover) { .label:hover, .outline:hover { background: var(--ink); color: var(--field); } }
.label:active, .outline:active { background: var(--ink); color: var(--field); }
@media (pointer: coarse) { .label { height: 44px; } .outline { height: 44px; padding: 0 14px; } .brand { height: 44px; } }

/* First screen: the book gets the room, the name is the lettering */
.stage {
  position: relative; overflow: hidden;
  min-height: calc(100svh - var(--bar));
  display: flex; flex-direction: column;
  padding: 12px var(--inset) 20px;
}
.stage .book { position: relative; z-index: 1; order: 2; flex: none; width: min(84vw, 44svh); margin: 16px -2vw 0 auto; }
.stage .book svg { width: 100%; height: auto; }
.tag {
  position: relative; z-index: 2; order: 1;
  font-weight: 700; font-size: clamp(20px, 5.6vw, 24px); line-height: 1.08; letter-spacing: -0.01em;
}
.name {
  position: relative; z-index: 2; order: 3; margin-top: auto; padding: 18px 0 0.16em;
  font-weight: 700; font-size: 22vw; line-height: 0.84; letter-spacing: -0.03em; margin-left: -0.045em;
}
.cta { position: relative; z-index: 2; order: 4; margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
/* The book as an object: a canvas laid over the stage, with the words on top */
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.stage canvas.gl { touch-action: pan-y; }
.stage canvas.gl.held { cursor: grabbing !important; }
.stage.live .book { visibility: hidden; }
.stage .name, .stage .tag { pointer-events: none; }
@media (min-width: 700px) and (max-width: 899px) {
  .stage .book { position: absolute; order: 0; margin: 0; width: min(58vw, var(--fit)); right: 0; top: 44%; transform: translateY(-50%); }
  .tag { font-size: 26px; }
  .cta { order: 2; margin-top: 20px; }
  .name { order: 3; font-size: 15.4vw; padding-top: 0; }
}
@media (min-width: 900px) {
  .stage { min-height: max(calc(100svh - var(--bar)), 46vw); padding: 20px var(--inset) 8px; }
  .stage .book { position: absolute; order: 0; margin: 0; width: min(44vw, var(--fit)); right: 0; top: 50%; transform: translateY(-50%); }
  .tag { font-size: clamp(26px, 2.5vw, 38px); }
  .cta { order: 2; margin-top: 22px; }
  .name { order: 3; font-size: 15.4vw; padding-top: 0; }
}

/* Chapters: title in the left rail, reading column beside it */
.chapter {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  padding: clamp(84px, 9.5vw, 137px) var(--inset) 0;
}
.chapter > h2 { grid-column: 1 / -1; font-size: 24px; line-height: 1.25; font-weight: 700; margin-bottom: 20px; }
.chapter > .col { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .chapter > h2 { grid-column: 1 / 4; margin-bottom: 0; }
  .chapter > .col { grid-column: 4 / 11; }
  .chapter > .col.wide { grid-column: 4 / 13; }
}
.editorial p { font-size: clamp(24px, 2.7vw, 38px); line-height: 1.2; letter-spacing: -0.012em; text-wrap: pretty; }
.editorial p + p { margin-top: 0.72em; }
.editorial strong { font-weight: 700; }

/* The room: one flat black stage where the films are shown */
.room { background: var(--ink); color: var(--field); margin-top: clamp(84px, 9.5vw, 137px); padding-bottom: clamp(84px, 9.5vw, 137px); }
.room ::selection { background: var(--field); color: var(--ink); }
.room :focus-visible { outline-color: var(--field); }
.room .caption span { color: #b98d09; }
.room .proof img { background: #24211d; }

/* Proof: the picture, with its caption tight beneath */
.proof { display: block; position: relative; text-decoration: none; }
.proof .play {
  position: absolute; left: 10px; bottom: 10px; height: 36px; padding: 0 12px 0 10px; gap: 8px;
  background: var(--field); color: var(--ink); font-weight: 700;
}
@media (hover: hover) { .proof:hover .play { background: var(--ink); color: var(--field); } }
@media (pointer: coarse) { .proof .play { height: 44px; } }
.proof img { width: 100%; height: auto; border-radius: 2px; background: var(--recess); }
.proof figcaption, .caption { margin-top: 6px; line-height: 1.3333; }
.caption b { font-weight: 700; }
.caption span { color: var(--quiet); }
.nb { display: inline-block; }
.aside { margin-top: clamp(28px, 3.4vw, 48px); font-size: clamp(24px, 2.7vw, 38px); line-height: 1.2; letter-spacing: -0.012em; text-wrap: balance; }

/* Directory: ruled rows that invert under the pointer */
.dir { list-style: none; padding: 0; border-bottom: 1px solid var(--rule); }
.dir a {
  position: relative; z-index: 0;
  display: grid; grid-template-columns: 24px minmax(0, 1fr) 20px; align-items: center; column-gap: 12px;
  min-height: 60px; padding: 8px 0;
  border-top: 1px solid var(--rule); text-decoration: none;
  transition: color 50ms ease-out;
}
.dir a::before { content: ""; position: absolute; inset: -1px -8px; z-index: -1; border-radius: 2px; background: var(--ink); opacity: 0; transition: opacity 50ms ease-out; }
.dir .i { width: 22px; height: 22px; }
.dir .i.go { width: 18px; height: 18px; justify-self: end; }
.dir .who { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; }
.dir .who b { font-size: 20px; line-height: 1.3; font-weight: 700; }
.dir .who span { color: var(--quiet); text-wrap: balance; }
@media (max-width: 559px) { .dir .who { flex-direction: column; align-items: flex-start; } .dir a { min-height: 68px; } }
@media (hover: hover) {
  .dir a:hover { color: var(--field); }
  .dir a:hover::before { opacity: 1; }
  .dir a:hover .who span { color: inherit; }
}
.dir a:active { color: var(--field); }
.dir a:active::before { opacity: 1; }
.dir a:active .who span { color: inherit; }

/* Closing: a long breath, then the signature and a small directory */
.colophon {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px;
  padding: clamp(150px, 27vw, 400px) var(--inset) 20px; align-items: end;
}
.sign { grid-column: 1 / -1; font-weight: 700; font-size: clamp(46px, 9.2vw, 140px); line-height: 0.9; letter-spacing: -0.03em; margin-left: -0.04em; text-wrap: balance; }
.colophon nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; margin-left: -8px; }
.fine { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; padding-top: 10px; border-top: 1px solid var(--rule); color: var(--quiet); }
.fine span { text-wrap: balance; }
.fine { font-size: 13px; align-items: center; }
/* The credit: the WIBIL mark at the size it has on wibil.io's own pages */
.by { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; text-decoration: none; color: var(--quiet); }
.by svg { width: 60px; height: auto; fill: var(--ink); }
@media (hover: hover) { .by:hover { color: var(--ink); } }
@media (pointer: coarse) { .by { min-height: 44px; } }
@media (min-width: 900px) {
  .sign { grid-column: 1 / 10; }
  .colophon nav { grid-column: 10 / 13; flex-direction: column; align-items: flex-start; padding-bottom: 0.6vw; }
}

/* The privacy page: the same room, set for reading */
.title { padding: clamp(40px, 8vw, 110px) var(--inset) 0; }
.title h1 { font-weight: 700; font-size: clamp(64px, 15.4vw, 240px); line-height: 0.84; letter-spacing: -0.03em; margin-left: -0.045em; }
.title p { margin-top: 18px; color: var(--quiet); }
.prose { max-width: 40em; }
.prose p, .prose li { font-size: 18px; line-height: 1.5; text-wrap: pretty; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 0.9em; }
.prose ul { padding-left: 1.1em; }
.prose li + li { margin-top: 0.45em; }
.prose a { text-decoration: underline; text-underline-offset: 0.16em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
@media (hover: hover) { .prose a:hover { background: var(--ink); color: var(--field); text-decoration: none; } }
.colophon.short { padding-top: clamp(110px, 16vw, 220px); }
