/* cynthiawandia.com, v18. Direction C, the cover.
   The page is the dark studio wall behind the seated portrait. Text is the oat of the linen suit.
   One sheet of oat paper lies in the room: the rule table, where a payment is decided. Essays are set on the same paper.
   Two faces: Big Shoulders for the name and the headings, Schibsted Grotesk for everything read at length. */

:root {
  --room: #2a1307;        /* the studio wall behind the seated portrait */
  --room-deep: #1b0b04;   /* the same wall out of the light */
  --oat: #eadfc8;         /* the linen suit in the light */
  --oat-soft: #bda98a;    /* the suit in shadow: secondary text */
  --line: rgba(234, 223, 200, .22);
  --rule: rgba(234, 223, 200, .72);
  --paper: #eadfc8;       /* the sheet is the same oat */
  --ink: #24130b;
  --ink-soft: #57402f;
  --paper-line: #cfc0a2;
  --faded: #6b5b48;       /* rules the table never reached */
  --hold: #9c2a1c; --delay: #875800; --release: #24643f;
  --gut: clamp(18px, 3.6vw, 52px);
  --max: 1480px;
  --display: "Big Shoulders", "Display Fallback Narrow", "Display Fallback", sans-serif;
  --text: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
}

/* Until Big Shoulders arrives, the name and headings are drawn in a system face scaled to the same width,
   so the name on the cover is never wider than the screen. */
@font-face { font-family: "Display Fallback Narrow"; src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"); font-weight: 100 900; size-adjust: 84%; }
@font-face { font-family: "Display Fallback"; src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold"); font-weight: 100 900; size-adjust: 68%; }

:root { color-scheme: dark; }          /* scroll bars and other browser furniture match the room */
.sheet, .essay { color-scheme: light; } /* controls on the paper stay as drawn */
.essay-body pre { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; background: var(--room); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { min-height: 100svh; display: flex; flex-direction: column; background: var(--room); color: var(--oat); font: 400 19px/1.5 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main { flex: 1 0 auto; }  /* a short page still ends on the footer */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--oat); outline-offset: 3px; }
.sheet :focus-visible, .essay :focus-visible { outline-color: var(--ink); }
code { font: .9em/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
b, strong { font-weight: 700; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--oat); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- headings: the poster face, heavy and in capitals ---------- */
h1, h2, .mail a { font-family: var(--display); font-weight: 800; text-transform: uppercase; }
h1 { font-size: clamp(60px, 10vw, 150px); line-height: .84; letter-spacing: -.008em; }
h2 { font-size: clamp(44px, 6.4vw, 96px); line-height: 1; max-width: 13em; text-wrap: balance; }  /* 1 leaves air between a comma and the capitals under it */
h2.minor { font-size: clamp(36px, 4.4vw, 64px); }
h3 { font-size: 21px; line-height: 1.25; font-weight: 700; }

/* ---------- masthead ---------- */
.mast { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 24px; padding-block: 22px; font-size: 16px; }
.mast .name { font-weight: 700; text-decoration: none; }
.mast nav { display: flex; flex-wrap: wrap; gap: 0 clamp(14px, 2vw, 28px); }
.mast nav a { text-decoration: none; padding-block: 6px; }
.mast nav a:hover, .mast nav a[aria-current] { text-decoration: underline; }

/* ---------- the cover: one photograph, one name, one sentence ---------- */
.cover { position: relative; height: min(100svh, 980px); min-height: 560px; overflow: hidden; background: var(--room-deep); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(27, 11, 4, .5) 0, rgba(27, 11, 4, 0) 22%, rgba(27, 11, 4, 0) 52%, rgba(27, 11, 4, .82) 100%); }
.cover .mast { position: absolute; z-index: 2; inset: 0 0 auto 0; padding: 22px var(--gut); }
.cover .mast p { max-width: 17em; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.3; font-weight: 500; }
.cover .mast nav a { padding-block: 0; white-space: nowrap; }
.cover h1 { position: absolute; z-index: 2; left: 0; right: 0; bottom: -0.06em; text-align: center; white-space: nowrap; font-size: 16.4vw; line-height: .8; letter-spacing: -.012em; color: var(--oat); }

/* ---------- under the cover: the statement, then how to reach me ---------- */
.lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 88px); padding-block: clamp(48px, 7vw, 104px); align-items: end; }
.lead .big { font-size: clamp(26px, 3vw, 42px); line-height: 1.18; letter-spacing: -.012em; font-weight: 500; max-width: 21em; }
.lead .where { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.4; font-weight: 600; max-width: 24em; }
.reach { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 18px; font-size: 17px; font-weight: 600; }
.reach a:first-child { flex-basis: 100%; }

/* ---------- sections ---------- */
main > section { padding-block: clamp(56px, 7.4vw, 112px); }
.intro { max-width: 34em; margin-top: 22px; font-size: clamp(18px, 1.45vw, 21px); }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 84px); margin-top: clamp(32px, 4.4vw, 60px); align-items: start; }
.prose p { max-width: 31em; }
.prose .say { max-width: 20em; }
.prose p + p, .prose h3 + p { margin-top: .9em; }
.prose h3 + .quiet { margin-top: 4px; }
.quiet { font-size: 16px; color: var(--oat-soft); }
.links { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 1.1em; font-weight: 600; }
.say { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.24; font-weight: 500; letter-spacing: -.008em; max-width: 22em; }

/* the five stages are a real sequence, so they are numbered and set as a table */
.stages { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.38; }
.stages caption { caption-side: top; text-align: left; padding-bottom: 14px; font-size: 19px; font-weight: 600; max-width: 26em; }
.stages thead th { text-align: left; white-space: nowrap; font-weight: 400; font-size: 15px; color: var(--oat-soft); padding: 0 16px 8px 0; border-bottom: 1.5px solid var(--rule); }
.stages tbody th, .stages td { text-align: left; vertical-align: top; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line); }
.stages tbody th { font-weight: 700; white-space: nowrap; }
.stages td:nth-child(2) { white-space: nowrap; }
.stages td:last-child { padding-right: 0; }

/* ---------- the sheet: oat paper in a dark room, and the only colour that is not the room's ---------- */
.sheet { margin-top: clamp(40px, 5vw, 72px); background: var(--paper); color: var(--ink); padding: clamp(18px, 2.6vw, 36px); }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.sheet-head a { font-weight: 600; }
.cases { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding: 14px 0; border-bottom: 1px solid var(--paper-line); font-size: 16px; }
.cases span { color: var(--ink-soft); }
.preset { font: inherit; color: inherit; background: none; border: 0; padding: 2px 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.preset:hover { text-decoration-thickness: 2px; }
.preset[aria-pressed="true"] { font-weight: 700; text-decoration-thickness: 3px; }
.sheet-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); padding-top: 22px; }

.inputs fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.inputs legend { display: block; width: 100%; padding: 0 0 8px; font-weight: 700; border-bottom: 1.5px solid var(--ink); }
.tg { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--paper-line); font-size: 16px; line-height: 1.3; cursor: pointer; }
.tg input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--ink); }
.tg input:disabled + span { color: var(--faded); }
.tg em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.pick { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 9px 0; border-bottom: 1px solid var(--paper-line); font-size: 16px; }
.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg label { cursor: pointer; }
.seg label + label { border-left: 1px solid var(--ink); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; padding: 4px 10px; font-size: 15px; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.pick select { font: inherit; font-size: 16px; color: inherit; background: var(--paper); border: 1px solid var(--ink); border-radius: 0; padding: 4px 8px; }
.conf { display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.conf input { width: 132px; accent-color: var(--ink); }

.score b { font-family: var(--display); font-size: clamp(40px, 3.6vw, 52px); line-height: .82; font-weight: 800; font-variant-numeric: tabular-nums; }
.score span { color: var(--ink-soft); }
.levels { list-style: none; padding: 0; margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.levels li { border-top: 6px solid var(--paper-line); padding-top: 7px; font-size: 15px; line-height: 1.25; color: var(--faded); }
.levels li small { display: block; font-size: 13.5px; }
.levels li.on { border-top-color: var(--ink); color: var(--ink); }
.levels li.now { font-weight: 700; }
.meter-note { margin: 12px 0 22px; font-size: 16px; color: var(--ink-soft); }

.rules { list-style: none; padding: 0; border-top: 1.5px solid var(--ink); }
.rules li { display: grid; grid-template-columns: 2.5em minmax(0, 1fr) auto; gap: 10px; padding: 9px 10px; border-bottom: 1px solid var(--paper-line); font-size: 16px; line-height: 1.35; color: var(--faded); }
.rules .rid { font-weight: 700; }
.rules li.passed, .no-js .rules li { color: var(--ink); }
.rules li.fired { color: #fff8ea; font-weight: 600; border-bottom-color: transparent; }
.rules li.fired[data-o="hold"] { background: var(--hold); }
.rules li.fired[data-o="delay"] { background: var(--delay); }
.rules li.fired[data-o="release"] { background: var(--release); }
.rules li.fired[data-o="cancel"] { background: var(--ink); }
.key { margin-top: 12px; font-size: 15px; color: var(--ink-soft); }
.outcome { margin-top: 18px; }
.verdict { font-size: 21px; }
.badge { font-family: var(--display); font-weight: 800; text-transform: uppercase; }
.badge[data-d="hold_for_review"] { color: var(--hold); }
.badge[data-d="delay"] { color: var(--delay); }
.badge[data-d="release"] { color: var(--release); }
#out-rule { color: var(--ink-soft); font-size: 17px; }
#out-note { margin-top: 6px; font-size: 17px; max-width: 36em; }
.truth { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--paper-line); font-size: 16px; color: var(--ink-soft); max-width: 38em; }
.sheet-foot { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--paper-line); font-size: 15px; color: var(--ink-soft); }
.no-js .cases, .no-js .inputs, .no-js .meter, .no-js .verdict { display: none; }  /* with scripts off nothing was computed, so no score and no outcome are shown */
.no-js .sheet-body { grid-template-columns: 1fr; }
@media (min-width: 1001px) {
  /* two columns: what goes in on the left; on the right the decision first, then the score and the table that produced it */
  .out { display: flex; flex-direction: column; }
  .outcome { order: -1; margin: 0 0 24px; padding-bottom: 18px; border-bottom: 1.5px solid var(--ink); }
  .badge { display: block; font-size: clamp(52px, 5.6vw, 80px); line-height: .86; }
  #out-rule { display: block; margin-top: 6px; }
  /* with scripts off there is no decision to lead with, so the note stays under the rules it refers to */
  .no-js .outcome { order: 0; margin: 18px 0 0; padding-bottom: 0; border-bottom: 0; }
}

.warrant { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line); }
.failures { list-style: none; padding: 0; columns: 2; column-gap: clamp(20px, 3vw, 44px); border-top: 1.5px solid var(--rule); }
.failures li { break-inside: avoid; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.failures b { display: inline-block; width: 2.3em; }

/* ---------- the record, set like a ledger: when, where, what ---------- */
.ledger { margin-top: clamp(32px, 4.4vw, 60px); border-top: 1.5px solid var(--rule); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px clamp(28px, 5vw, 84px); padding: 24px 0; border-bottom: 1px solid var(--line); }
.rh { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 4px 16px; align-items: start; }
.row .when { font-variant-numeric: tabular-nums; color: var(--oat-soft); }
.row h3 { font-size: 21px; }
.row h3 span { display: block; margin-top: 4px; font-weight: 400; font-size: 16px; color: var(--oat-soft); }
.row > p:last-child { max-width: 33em; }
.two.after { grid-template-columns: 1fr 1fr; }

/* ---------- the thesis: the second photograph, across the page ---------- */
main > section.band { padding: 0; border-top: 0; }
.band figure { position: relative; height: clamp(360px, 54vw, 780px); overflow: hidden; background: #8e3a2a; }
.band picture, .band img { width: 100%; height: 100%; }
.band img { object-fit: cover; object-position: 66% 0; }
.band figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, rgba(42, 12, 6, .82) 0, rgba(42, 12, 6, .5) 36%, rgba(42, 12, 6, 0) 68%); }
.band h2 { position: absolute; z-index: 1; left: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); bottom: clamp(18px, 3.4vw, 48px); max-width: 6.2em; color: #f6ead2; font-size: clamp(52px, 9.4vw, 152px); line-height: .85; }
.band .wrap { padding-block: clamp(36px, 5vw, 72px) clamp(56px, 7.4vw, 112px); }
.band .two { margin-top: 0; }
.band .lead-in { margin-top: clamp(48px, 6vw, 88px); align-items: baseline; }
.lead-in h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(36px, 4.4vw, 64px); line-height: 1; }  /* the five rules get a heading at the level of the other lists */
.lead-in p { max-width: 33em; }

/* ---------- method ---------- */
.principles { list-style: none; padding: 0; margin-top: 22px; border-top: 1.5px solid var(--rule); }
.principles li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px clamp(28px, 5vw, 84px); padding: 26px 0; border-bottom: 1px solid var(--line); }
.principles h3 { font-size: clamp(21px, 1.9vw, 26px); line-height: 1.18; max-width: 16em; grid-row: span 2; }
.principles p { max-width: 33em; }
.principles .proof { font-size: 16px; color: var(--oat-soft); max-width: 39em; }

/* ---------- writing ---------- */
.pieces { margin-top: clamp(32px, 4.4vw, 60px); border-top: 1.5px solid var(--rule); }
.piece { display: block; padding: 24px 0 26px; border-bottom: 1px solid var(--line); text-decoration: none; }
.piece b { display: block; font-size: clamp(24px, 3vw, 42px); line-height: 1.12; font-weight: 500; letter-spacing: -.012em; }
.piece .dek { display: block; margin-top: 6px; font-size: 17px; color: var(--oat-soft); max-width: 38em; }
.piece:hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .14em; }
.sub { margin-top: clamp(40px, 5vw, 64px); }
.earlier { list-style: none; padding: 0; margin-top: 14px; border-top: 1.5px solid var(--rule); }
.earlier a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2px clamp(28px, 5vw, 84px); padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.earlier .tag { color: var(--oat-soft); font-size: 16px; }
.earlier b { font-weight: 600; }
.earlier a:hover b { text-decoration: underline; }

/* ---------- about and contact ---------- */
.print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 14%; }
.facts { margin-top: 30px; border-top: 1.5px solid var(--rule); max-width: 36em; }
.facts div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.facts dt { color: var(--oat-soft); }
.two.off { padding-top: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line); }
.plain { list-style: none; padding: 0; border-top: 1.5px solid var(--rule); margin-bottom: 1.1em; max-width: 36em; }
.plain li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.plain b { display: block; }
.mail { margin-top: clamp(26px, 3.4vw, 44px); }
#contact h2 { font-size: clamp(36px, 4.4vw, 64px); }
.mail a { font-size: clamp(22px, 7.3vw, 112px); line-height: 1.1; letter-spacing: -.004em; text-decoration-thickness: .04em; text-underline-offset: .2em; text-decoration-skip-ink: none; overflow-wrap: anywhere; }
@media (min-width: 861px) { .mail a { font-size: min(8vw, 120px); } }
.mail a:hover { text-decoration-thickness: .08em; }

/* ---------- foot ---------- */
.foot { background: var(--room-deep); border-top: 1px solid var(--line); padding-block: 26px 44px; font-size: 15px; color: var(--oat-soft); }
.foot p + p { margin-top: 4px; }

/* ---------- essay pages: a dark masthead, then the essay on the same oat paper as the rule table ---------- */
.sub-mast { border-bottom: 1px solid var(--line); }
.sub-mast .name { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; text-transform: uppercase; }
.paper { padding-block: clamp(18px, 2.6vw, 36px) clamp(40px, 5vw, 72px); }
.essay { background: var(--paper); color: var(--ink); padding: clamp(30px, 4.6vw, 68px) clamp(18px, 2.6vw, 36px) clamp(44px, 6.4vw, 88px); }
@media (min-width: 861px) { .essay-body { --g: clamp(24px, 4vw, 64px); padding-left: calc((100% - var(--g)) * 5 / 12 + var(--g)); } }
.essay .back { font-size: 16px; font-weight: 600; }
.essay .meta { margin-top: 26px; font-size: 16px; color: var(--ink-soft); }
.essay h1 { margin-top: 10px; font-size: clamp(46px, 7vw, 96px); line-height: .88; text-wrap: balance; }
.essay .dek { margin-top: 22px; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.32; font-weight: 500; max-width: 28em; }
.essay-body { margin-top: clamp(32px, 4.4vw, 56px); padding-top: clamp(28px, 3.6vw, 44px); border-top: 1.5px solid var(--ink); font-size: 19px; line-height: 1.62; }
.essay-body > * { max-width: 34em; }
.essay-body p + p { margin-top: 1.05em; }
.essay-body h2 { margin: 1.9em 0 .5em; font-family: var(--text); font-size: 26px; line-height: 1.2; font-weight: 700; text-transform: none; letter-spacing: -.006em; max-width: 24em; }
.essay-body blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--ink); font-size: 22px; line-height: 1.38; font-weight: 500; }
.essay-body pre { max-width: none; margin: 1.5em 0; padding: 16px 18px; background: var(--room); color: var(--oat); overflow-x: auto; font: 14.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.essay-body pre code { font: inherit; }
.essay .note { margin-top: 2.2em; font-size: 16px; color: var(--ink-soft); }
.more { padding-block: clamp(36px, 5vw, 64px); }
.more h2, h2.sub { font: 700 21px/1.25 var(--text); text-transform: none; max-width: none; }
.lost { min-height: 62svh; }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .sheet-body { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .out, .outcome { display: contents; }
  .verdict { order: -1; position: sticky; top: 0; z-index: 2; margin: 0; padding: 12px 0 10px; background: var(--paper); border-bottom: 1.5px solid var(--ink); }
  .badge { font-size: 34px; line-height: 1; }
  .inputs { padding-top: 20px; }
  #out-note { margin-top: 14px; }
}
@media (max-width: 860px) {
  body { font-size: 17.5px; }
  h2 { line-height: 1.04; }
  .cover .mast nav a:not(.keep) { display: none; }
  .cover img { object-position: 50% 10%; }
  .cover h1 { white-space: normal; font-size: 27vw; line-height: .85; bottom: .03em; }
  .lead, .two, .two.after, .principles li, .row, .earlier a { grid-template-columns: 1fr; }
  .lead { align-items: start; }
  .principles h3 { grid-row: auto; }
  .failures { columns: 1; }
  .stages thead { display: none; }
  .stages, .stages caption, .stages tbody, .stages tr, .stages th, .stages td { display: block; }
  .stages caption { max-width: none; padding-bottom: 6px; border-bottom: 1.5px solid var(--rule); }
  .stages tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .stages tbody th, .stages td { padding: 0; border: 0; white-space: normal; }
  .stages td:nth-child(2) { font-size: 15px; color: var(--oat-soft); }
  .stages td:nth-child(2)::before { content: "Decided by: "; }
  .row, .earlier a { gap: 4px; }
  .rh { grid-template-columns: 1fr; }
  .row > p:last-child { margin-top: 6px; }
  .band figure { height: 92vw; }
  .band img { object-position: 74% 20%; }
  .band h2 { font-size: 13.4vw; max-width: none; line-height: .88; }
  .band figure::after { background: linear-gradient(to top, rgba(42, 12, 6, .8) 0, rgba(42, 12, 6, .5) 30%, rgba(42, 12, 6, 0) 62%); }
  .print img { aspect-ratio: 1 / 1; object-position: 50% 10%; }
  .facts div { grid-template-columns: 7em minmax(0, 1fr); }
  .sub-mast .mast { flex-wrap: wrap; }
  .paper { padding-block: 0; }
  .paper > .wrap { padding-inline: 0; }
  .essay { padding-inline: var(--gut); }
  .essay-body { font-size: 17.5px; line-height: 1.58; }
  .essay .dek { font-size: 21px; line-height: 1.28; }
}
@media (max-width: 860px) and (min-aspect-ratio: 1/1) {
  /* a phone on its side, or a short wide window: the stacked name would fill the screen, so it goes back on one line */
  .cover { min-height: min(560px, 100svh); }
  .cover h1 { white-space: nowrap; font-size: 16.4vw; line-height: .8; bottom: -0.06em; }
}
@media (max-width: 560px) {
  /* the About heading is one sentence on three set lines; on a phone it runs on and wraps where it fits */
  #about h2 br { display: none; }
}
@media (max-width: 420px) {
  .rules li { grid-template-columns: 2.2em minmax(0, 1fr); }
  .rules .rout { grid-column: 2; font-size: 14.5px; }
  .levels li { font-size: 13.5px; } .levels li small { font-size: 12.5px; }
  .conf input { width: 104px; }
}

/* ---------- paper: on a printer the room is white and the text is ink ---------- */
@page { margin: 15mm 14mm; }
@media print {
  :root { --room: #fff; --room-deep: #fff; --oat: #24130b; --oat-soft: #57402f; --line: #c9c2b6; --rule: #24130b; --paper: #fff; --paper-line: #ddd6ca; }
  :root { color-scheme: light; }
  html, body { background: #fff; }
  body { display: block; min-height: 0; font-size: 11.5pt; }
  .skip, .cases, .inputs, .cover::after, .cover .mast nav, .mast nav, .band figure::after { display: none !important; }
  /* paper is narrower than 860px, so the phone rules apply here too. Every part of the cover and the band is set again. */
  .cover { height: auto; min-height: 0; overflow: visible; background: none; display: flex; flex-direction: column; padding: 0 var(--gut); }
  .cover picture { order: 3; margin-top: 14px; }
  .cover img { position: static; width: 190px; height: 238px; object-position: 50% 12%; }
  .cover .mast { position: static; order: 2; padding: 8px 0 0; }
  .cover .mast p { max-width: none; font-size: 15pt; }
  .cover h1 { position: static; order: 1; text-align: left; white-space: normal; font-size: 58pt; line-height: .86; color: var(--oat); }
  .lead { grid-template-columns: 1fr; padding-block: 18px 22px; gap: 14px; }
  .lead .big { font-size: 14pt; line-height: 1.32; }
  h2 { font-size: 30pt; } h2.minor { font-size: 24pt; }
  main > section { padding-block: 22px; }
  .sheet { border: 1px solid var(--ink); }
  .sheet-body { grid-template-columns: 1fr; }
  .band figure { height: auto; overflow: visible; background: none; break-inside: avoid; }
  .band picture { display: block; height: 240px; }
  .band img { object-position: 66% 18%; }
  .band h2 { position: static; color: var(--oat); max-width: none; padding: 14px var(--gut) 0; font-size: 34pt; }
  .print img { max-width: 220px; }
  .foot { background: none; }
  .paper, .essay { background: none; padding: 0; }
  .paper > .wrap { padding-inline: var(--gut); }
  .essay-body pre { background: none; color: var(--ink); border: 1px solid var(--line); overflow: visible; white-space: pre-wrap; overflow-wrap: anywhere; }
  .verdict { position: static; }
  .mail a { font-size: 30pt !important; }
  .reach a[href^="http"]::after, #contact .links a::after { content: " (" attr(href) ")"; font-weight: 400; font-size: 9.5pt; }
  h1, h2, h3 { break-inside: avoid; }
  h2, h3, .when, .stages caption { break-after: avoid; }
  .rules li.fired, .seg input:checked + span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .row, .principles li, .piece, .rules, .stages tr, .failures li { break-inside: avoid; }
}
