/* Proof Of Boomer. One two ink screenprint sheet: black #080604, yellow #F9E764, nothing else.
   Both inks and every proportion (margin 3.3%, gutter 2.6%, the display ratio 8.75%) are measured off
   art/ref/poster.jpg. Scale follows Vadim's order of 2026-10-19: base 14, labels 11, one display
   element per screen, the column capped so the sheet never reads oversized. */

@font-face { font-family: "Satoshi"; src: url("/fonts/Satoshi-Black.woff2") format("woff2");   font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/Satoshi-Bold.woff2") format("woff2");    font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/Satoshi-Medium.woff2") format("woff2");  font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/Satoshi-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Azeret"; src: url("/fonts/AzeretMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Azeret"; src: url("/fonts/AzeretMono-Bold.woff2") format("woff2");   font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #080604;
  --plate: #F9E764;
  --sheet-w: 1240px;
  --margin: clamp(14px, 2.2vw, 30px);
  --gutter: clamp(10px, 1.7vw, 24px);
  --pad: 18px;

  --f-sans: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Azeret", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --t-body: 14px;
  --t-small: 12px;
  --t-label: 11px;
  --t-fig: 30px;
  --t-fig-s: 20px;
  --t-head: 15px;

  --row: 44px;
  --press: transform .08s ease-out;
  --fade: opacity .12s linear, background-color .12s linear, color .12s linear;
  --hover: .18s ease-out;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font: 500 var(--t-body)/1.6 var(--f-sans);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
html, body { overflow-x: clip; }

.ground {
  position: relative;
  display: flex; flex-direction: column; min-height: 100vh;
}
.ground::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("/img/grain.png") repeat; opacity: .5;
}

.sheet {
  position: relative; z-index: 1;
  max-width: var(--sheet-w);
  margin: 0 auto;
  padding: var(--margin);
  display: grid;
  grid-template-columns: 38fr 62fr;
  gap: var(--gutter);
  align-items: stretch;
  margin-block: auto;
}

/* --------------------------------------------------------------- panels */
.panel {
  position: relative;
  background: var(--plate);
  min-width: 0;
}
.panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("/img/grain.png") repeat; opacity: .45; mix-blend-mode: multiply;
}
.panel--still, .panel--set { min-height: clamp(360px, 44vh, 470px); }
.panel--detail, .panel--imprint { grid-column: 1 / -1; }

/* ----------------------------------------------------------- the still */
/* The still and the sign are two blocks of one column, never a plate dropped on a picture:
   the frame takes whatever height the column has left, the sign sits under it at its own height. */
.panel--still { overflow: hidden; display: flex; flex-direction: column; }
.still__frame { position: relative; z-index: 1; flex: 1 1 auto; min-height: 168px; }
.still {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 14px;
  object-fit: contain; object-position: 50% 50%;
  transition: opacity var(--hover);
}
.sign {
  position: relative; z-index: 2; flex: 0 0 auto;
  background: var(--ink); color: var(--plate);
  padding: 33px 32px 22px;
}
.sign__name {
  margin: 0; display: flex; flex-direction: column;
  font-weight: 900; line-height: .92; letter-spacing: -.02em;
  text-transform: none;
}
.sign__name .fit { display: block; white-space: nowrap; font-size: 56px; }
.sign__line {
  position: relative; margin: 9px 0 0; padding-top: 11px;
  font-size: var(--t-small); line-height: 1.45; font-weight: 500;
}
.sign__line::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--plate); }

/* ------------------------------------------------------------- the set */
.panel--set { padding: 0; }
.set {
  position: relative; z-index: 1;
  height: 100%;
  display: grid; grid-template-columns: 1fr 184px;
  border: 20px solid transparent;
  border-image: url("/img/cabinet.png") 20 / 20px / 0 stretch;
}
.set__screen { min-width: 0; display: flex; }
.screen {
  position: relative;
  flex: 1; min-width: 0;
  border: 34px solid transparent;
  border-image: url("/img/screen.png") 40 / 34px / 0 stretch;
  padding: 0 4px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.screen__head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; }
.screen__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); }
.screen__titles { min-width: 0; }
.screen__week { background: var(--ink); color: var(--plate); font-family: var(--f-mono); font-size: var(--t-label); font-weight: 700; padding: 7px 16px; flex: none; }
.screen__title { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.05; letter-spacing: -.01em; }
.screen__sub { margin: 3px 0 0; font-size: var(--t-label); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.chan { flex: 1; min-height: 300px; display: flex; flex-direction: column; }

/* --------------------------------------------------------- the figures */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 14px; }
.fig { display: flex; flex-direction: column; justify-content: flex-start; padding: 2px 0 10px; min-width: 0; }
.fig--lead { position: relative; grid-column: 1 / -1; margin-bottom: 10px; padding-bottom: 12px; }
.fig--lead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); }
.fig__label { font-size: var(--t-label); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.fig__value {
  font-family: var(--f-mono); font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: var(--t-fig-s); line-height: 1.2; margin-top: 3px; word-break: break-word;
}
.fig--lead .fig__value { font-size: var(--t-fig); }
.fig__under { font-size: var(--t-label); line-height: 1.4; margin-top: 2px; min-height: 15px; }
.fig--clock .fig__value { font-size: 17px; letter-spacing: -.01em; }
.split { position: relative; margin-top: auto; padding-top: 12px; display: grid; gap: 4px; }
.split::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); }
.split__row { display: grid; grid-template-columns: 40px 1fr; align-items: baseline; gap: 10px; }
.split__pct { font-family: var(--f-mono); font-weight: 700; font-size: 17px; }
.split__pct::after { content: "%"; font-size: 11px; }
.split__what { font-size: var(--t-small); }

.closed { position: relative; margin-top: 12px; padding-top: 12px; }
.closed::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); }
.closed__label { font-size: var(--t-label); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.closed__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.closed__cell { display: flex; flex-direction: column; min-width: 0; }
.closed__cell b { font-family: var(--f-mono); font-weight: 700; font-size: var(--t-small); }
.closed__cell i { font-style: normal; font-size: var(--t-label); line-height: 1.4; }

/* ----------------------------------------------------------- the steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.step__n {
  font-family: var(--f-mono); font-weight: 900; font-size: 15px;
  text-align: center; line-height: 22px; height: 22px;
}
.step__n::after { content: "."; }
.step__text { margin: 0 0 6px; font-size: var(--t-small); line-height: 1.5; }
.step__act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; }
.step__body { min-width: 0; }
.result {
  margin: 12px 0 0; padding: 9px var(--pad); min-height: 40px;
  background: var(--ink); color: var(--plate); font-size: var(--t-small); line-height: 1.45;
}

/* ---------------------------------------------------------- the fields */
.key {
  appearance: none; border: 2px solid var(--ink); background: var(--plate); color: var(--ink);
  font: 700 var(--t-label)/1 var(--f-sans); text-transform: uppercase; letter-spacing: .1em;
  height: var(--row); padding: 0 17px; cursor: pointer;
  transition: var(--fade), var(--press);
}
.key:hover:not(:disabled) { background: var(--ink); color: var(--plate); }
.key:active:not(:disabled) { transform: translateY(2px); }
.key:disabled { opacity: .5; cursor: not-allowed; }
.key--act { background: var(--ink); color: var(--plate); }
.key--act:hover:not(:disabled) { background: var(--plate); color: var(--ink); }
.field {
  appearance: none; border: 2px solid var(--ink); background: var(--plate); color: var(--ink);
  font: 500 var(--t-small)/1 var(--f-mono); height: var(--row); padding: 0 16px;
  min-width: 0; max-width: 100%; flex: 1 1 150px;
}
.field--area { height: auto; padding: 14px 16px; line-height: 1.5; resize: none; width: 100%; font-family: var(--f-sans); font-size: var(--t-small); }
.field::placeholder { color: var(--ink); opacity: .5; }
.field:focus-visible, .key:focus-visible, .chankey:focus-visible, .markkey:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 2px;
}
.key--act:focus-visible { outline-color: var(--ink); }
.code {
  font-family: var(--f-mono); font-size: var(--t-small); font-weight: 700; max-width: 100%;
  background: var(--ink); color: var(--plate); padding: 0 16px; height: var(--row);
  display: inline-flex; align-items: center; overflow-wrap: anywhere; min-width: 0;
}
.slot { font-size: var(--t-label); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; min-height: 15px; }

/* ------------------------------------------------------ seniority card */
.card { border: 2px solid var(--ink); }
.card__row { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 18px; }
.card__row + .card__row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); }
.card__k { font-size: var(--t-label); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.card__v { font-family: var(--f-mono); font-size: var(--t-small); font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.card__v--fig { font-size: 17px; }
.checks { margin-top: 12px; }
.checks__label { font-size: var(--t-label); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.checks__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0 6px; }
.check {
  border: 2px solid var(--ink); padding: 10px 16px; font-size: var(--t-label); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; text-align: center;
}
.check.is-pass { background: var(--ink); color: var(--plate); }
.checks__note { margin: 0; font-size: var(--t-label); line-height: 1.45; }

/* --------------------------------------------------------- the archive */
.lead { margin: 0 0 10px; font-size: var(--t-small); }
.write__label { font-size: var(--t-label); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; display: block; margin-bottom: 5px; }
.write__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.counter { font-family: var(--f-mono); font-size: var(--t-label); font-weight: 700; }

/* ----------------------------------------------------------- the rules */
.rules { margin: 0; padding: 0 0 0 20px; display: grid; gap: 7px; font-size: var(--t-small); line-height: 1.5; }
.rules li::marker { font-family: var(--f-mono); font-weight: 700; font-size: var(--t-label); }
.rules b { font-weight: 900; }

/* ------------------------------------------------------------ the rail */
.set__rail { display: flex; flex-direction: column; padding-left: 14px; margin-left: 14px; border-left: 3px solid var(--ink); min-width: 0; }
.rail__mark {
  background: var(--ink); color: var(--plate); font-size: var(--t-label); font-weight: 900;
  letter-spacing: .1em; text-transform: uppercase; padding: 7px 16px; align-self: flex-start; margin-bottom: 8px;
}
.keys { display: grid; gap: 5px; }
.chankey {
  appearance: none; border: 2px solid var(--ink); background: var(--plate); color: var(--ink);
  display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px; cursor: pointer; text-align: left;
  transition: var(--fade), var(--press);
}
.chankey__n { font-family: var(--f-mono); font-size: var(--t-label); font-weight: 700; }
.chankey__w { font-size: var(--t-small); font-weight: 900; letter-spacing: -.01em; }
.chankey:hover { background: var(--ink); color: var(--plate); }
.chankey:active { transform: translateY(2px); }
.chankey.is-open { background: var(--ink); color: var(--plate); }
/* What used to be a band of speaker grille: the week itself, readable from any channel. */
.rail__now { flex: 1 1 auto; margin: 14px 0 10px; display: flex; flex-direction: column; gap: 6px; }
/* The text is inset 16 px like the channel keys above it, while the rule under each row runs the
   full width of the rail: the rail is a bordered box, so its text keeps the inner padding. */
.now__label {
  font-size: var(--t-label); font-weight: 900; text-transform: uppercase; letter-spacing: .12em;
  padding: 0 16px 7px;
}
.now__row {
  position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 7px 16px 0;
}
.now__row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); }
.now__k { font-size: var(--t-label); font-weight: 700; white-space: nowrap; }
.now__v { font-family: var(--f-mono); font-size: var(--t-small); font-weight: 700; text-align: right; }
.rail__foot { margin-top: auto; display: flex; align-items: center; gap: 9px; }
.rail__knob { width: 34px; height: 34px; transition: transform .28s ease-out; }
.rail__sig { font-size: var(--t-label); font-weight: 700; letter-spacing: .02em; }

/* ---------------------------------------------------------- the detail */
.panel--detail { padding: var(--pad); }
.det__head { position: relative; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-bottom: 11px; margin-bottom: 12px; }
.det__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); }
.det__title { margin: 0; font-size: var(--t-head); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.det__note { margin: 0; font-size: var(--t-label); }

.roll { display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); gap: 4px; align-items: end; }
.yr { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; text-align: center; }
.yr__bar { background: var(--ink); width: 100%; height: 4px; transition: height .28s ease-out; }
.yr__bar--empty { background: transparent; border: 2px solid var(--ink); opacity: .55; }
.yr__n { font-family: var(--f-mono); font-size: var(--t-label); font-weight: 700; margin-top: 4px; }
.yr--none .yr__n { opacity: .5; }
.yr__bar { width: 70%; margin: 0 auto; }
.yr__y { font-size: 10px; letter-spacing: .02em; font-weight: 700; }
.yr__w { font-size: 10px; opacity: .7; }

.reads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 14px; }
.read { position: relative; padding: 10px 0 7px; }
.read::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); }
.read__k { display: block; font-size: var(--t-label); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.read__v { display: block; font-size: var(--t-small); }

.weeks, .archive { display: grid; gap: 2px; }
.empty { margin: 0; font-size: var(--t-small); }
.week, .entry { position: relative; display: grid; gap: 10px; padding: 11px 0 8px; font-size: var(--t-small); }
.week::before, .entry::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); }
.week { grid-template-columns: 74px 1fr 110px 92px; align-items: baseline; }
.entry { grid-template-columns: 56px 1fr; align-items: baseline; }
.entry__y, .week__w { font-family: var(--f-mono); font-weight: 700; }
.entry__t { line-height: 1.5; }

.weights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px 14px; }
.wrow { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: baseline; padding: 11px 0 6px; }
.wrow::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); }
.wrow__y { font-size: var(--t-small); font-weight: 700; }
.wrow__w { font-family: var(--f-mono); font-size: 17px; font-weight: 700; }
.wrow__n { grid-column: 1 / -1; font-size: var(--t-label); }
.wrow--add .wrow__w { font-size: var(--t-small); }
.risk { grid-column: 1 / -1; margin: 12px 0 0; font-size: var(--t-label); opacity: .75; }

/* --------------------------------------------------------- the imprint */
.panel--imprint {
  padding: 16px 20px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
}
.imprint__id { display: flex; flex-direction: column; }
.imprint__ticker { font-size: var(--t-fig-s); font-weight: 900; letter-spacing: -.01em; line-height: 1.1; }
.imprint__name { font-size: var(--t-label); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.imprint__ca { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.imprint__label { font-size: var(--t-label); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.imprint__addr {
  font-family: var(--f-mono); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; min-width: 0;
  background: var(--ink); color: var(--plate); padding: 10px 16px; user-select: all;
}
.imprint__keys { display: flex; gap: 6px; }
.markkey {
  width: 46px; height: 46px; background: var(--ink); display: grid; place-items: center;
  transition: var(--fade), var(--press);
}
.markkey img { width: 26px; height: 26px; display: block; }
.markkey:hover { filter: brightness(1.35); }
.markkey:active { transform: translateY(2px); }
.markkey.is-off { opacity: .38; cursor: not-allowed; }
.slot--inline { min-width: 54px; }

/* ------------------------------------------------------------ phone up */
@media (max-width: 1099px) {
  .sheet { grid-template-columns: 1fr; }
  .panel--still { height: auto; min-height: 0; }
  .still__frame { flex: 0 0 auto; height: clamp(240px, 46vw, 380px); }
  .panel--set { height: auto; min-height: 460px; }
  .sign { padding: 24px 24px 18px; }
  .sign__name .fit { font-size: 44px; }
  .roll { grid-template-columns: repeat(9, 1fr); row-gap: 10px; }
  .reads, .weights { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 719px) {
  :root { --pad: 14px; }
  .set { grid-template-columns: 1fr; border-width: 14px; border-image-width: 14px; }
  .set__rail {
    order: -1; border-left: 0; padding-left: 0; margin-left: 0; margin-bottom: 12px;
    border-bottom: 3px solid var(--ink); padding-bottom: 12px;
  }
  .keys { grid-template-columns: repeat(3, 1fr); }
  .rail__now { flex: 0 0 auto; margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 14px; }
  .now__label { grid-column: 1 / -1; }
  /* the weight is on the screen's own line at this width, and four cells keep the grid complete */
  .now__row--weight { display: none; }
  .now__row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .now__v { text-align: left; }
  .rail__foot { margin-top: 12px; }
  .screen { border-width: 24px; border-image-width: 24px; padding: 0 8px; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .split__row { grid-template-columns: 34px 1fr; }
  .week { grid-template-columns: 60px 1fr; }
  .week__amt, .week__tx { grid-column: 2; }
  .panel--imprint { grid-template-columns: 1fr; gap: 12px; }
  .imprint__keys { justify-content: flex-start; }
  .reads, .weights { grid-template-columns: 1fr; }
  .roll { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 389px) {
  .sign__name .fit { font-size: 38px; }
  .keys { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
