/* press/press.css — what every skin shares. Tokens come from /assets/ds/ and are never redefined here.
   Two voices, no third (typography.css): the display serif says the loud thing — a NAME, a place you would
   say out loud; Space Mono says the small true thing underneath — everything structural. Restraint is the
   brand: ink on paper, one slate surface, one lilac accent. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); height: 100%; }
body {
  margin: 0; min-height: 100%; background: var(--paper); color: var(--text-body);
  font-family: var(--font-mono); font-size: var(--mono-body); line-height: var(--leading-body);
}
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: var(--text-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: var(--rule); }

/* ---- the stage: where a place is shown. The frame is the whole of it, edge to edge, no chrome of its own. */
.stage { position: relative; background: var(--paper); min-height: 0; }
.stage > iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--paper); }

/* ---- the ribbon: WHERE YOU ARE, said once. The name is the loud thing; how you are seeing it is the small one. */
.ribbon { display: flex; align-items: baseline; gap: var(--space-4); flex-wrap: wrap;
  padding: var(--space-3) var(--space-5); border-bottom: var(--rule) solid var(--border); background: var(--paper); }
.ribbon .name { font-family: var(--font-display); font-size: var(--display-3); line-height: var(--leading-snug);
  color: var(--text-strong); letter-spacing: var(--tracking-display); word-break: break-word; margin: 0; font-weight: var(--weight-display); }
.ribbon .how { font-size: var(--text-eyebrow); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted); }
.ribbon .spacer { flex: 1; }

/* ---- the strip: a README's first link list, drawn as tabs. With no renderer it was a row of links; it
        still is one — these are anchors, and they work with the script gone. */
.strip { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--border-faint); padding: 0 var(--space-5); scrollbar-width: thin; }
.strip a { flex: none; padding: var(--space-3) var(--space-4); color: var(--text-muted); text-decoration: none;
  font-size: var(--mono-small); border-bottom: var(--rule) solid transparent; margin-bottom: -1px; white-space: nowrap; }
.strip a:hover { color: var(--text-strong); }
.strip a[aria-current="page"] { color: var(--text-strong); border-bottom-color: var(--border); }
.strip .canon { text-transform: uppercase; letter-spacing: var(--tracking-caps); font-size: var(--mono-caption); }
.strip .gap { flex: 1; min-width: var(--space-5); }

/* ---- small controls */
.chip { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-3);
  border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--paper); color: var(--text-strong);
  font-size: var(--mono-small); cursor: pointer; text-decoration: none; line-height: 1.6; }
.chip:hover { background: var(--accent); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip.accent { background: var(--accent); border-color: var(--accent-edge); }
.chip.accent:hover { background: var(--accent-edge); }
.chip:disabled { opacity: .45; cursor: default; background: var(--paper); }
.toggle { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-full); overflow: hidden; }
.toggle button { border: 0; background: var(--paper); padding: var(--space-1) var(--space-3); font-size: var(--mono-small); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.toggle button:disabled { opacity: .4; cursor: default; }
:is(button, a, input, textarea, .chip):focus-visible { outline: var(--rule) solid var(--border); outline-offset: 3px; }

.eyebrow { font-size: var(--text-eyebrow); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted); margin: 0; }
.note { font-size: var(--mono-small); color: var(--text-muted); margin: var(--space-2) 0 0; }
.loud { font-family: var(--font-display); font-weight: var(--weight-display); color: var(--text-strong);
  letter-spacing: var(--tracking-display); line-height: var(--leading-tight); margin: 0; }

/* ---- the bed: where a statement is set. One field, one object, one pile, one verb. */
.bed { display: grid; gap: var(--space-4); }
.bed textarea { width: 100%; min-height: 7rem; resize: vertical; padding: var(--space-4); border: var(--rule) solid var(--border);
  border-radius: 0; background: var(--paper); font-size: var(--mono-body); line-height: var(--leading-body); }
.bed textarea::placeholder { color: var(--text-muted); }
.bed .row { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.bed .object { border: 1px dashed var(--ink-faint); padding: var(--space-3) var(--space-4); font-size: var(--mono-small); color: var(--text-muted); cursor: pointer; display: block; }
.bed .object.over, .bed .object:hover { border-color: var(--border); color: var(--text-strong); background: var(--surface-warm); }
.bed .object.has { border-style: solid; border-color: var(--border); color: var(--text-strong); }
.bed input[type=file] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.bed .pilename { border: 0; border-bottom: var(--rule) solid var(--border); background: transparent; padding: var(--space-1) 0; width: 12ch; font-size: var(--mono-small); }
.strikebtn { padding: var(--space-3) var(--space-5); border: var(--rule) solid var(--border); background: var(--ink); color: var(--paper); cursor: pointer; font-weight: var(--weight-mono-bold); }
.strikebtn:hover { background: var(--slate); border-color: var(--slate); }
.strikebtn:disabled { opacity: .45; cursor: default; }

/* ---- slate surfaces: the one dark thing. Used for what is ABOUT TO LEAVE your hands (a pour, a posting). */
.slate { background: var(--surface-inverse); color: var(--text-on-inverse); }
.slate .eyebrow, .slate .note { color: var(--text-on-inverse-dim); }
.slate .loud { color: var(--cream); }
.slate .chip { background: transparent; color: var(--cream); border-color: var(--slate-line); }
.slate .chip:hover { background: var(--slate-deep); }
.slate textarea, .slate .pilename { background: var(--slate-deep); color: var(--cream); border-color: var(--slate-line); }
.slate .bed .object { border-color: var(--slate-line); color: var(--cream-dim); }
.slate .bed .object.over, .slate .bed .object:hover, .slate .bed .object.has { border-color: var(--cream); color: var(--cream); background: var(--slate-deep); }
.slate .strikebtn { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.slate .strikebtn:hover { background: var(--accent-edge); border-color: var(--accent-edge); }

/* ---- the pour: a bottle leaving as light. The code is on paper even on slate — a camera needs the contrast. */
.pour { display: grid; justify-items: center; gap: var(--space-3); text-align: center; }
.pour canvas { background: #fff; padding: var(--space-2); max-width: min(100%, 22rem); height: auto; image-rendering: pixelated; }
.meter { height: var(--rule); background: var(--border-faint); width: 100%; }
.meter > i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .15s linear; }
.slate .meter { background: var(--slate-line); } .slate .meter > i { background: var(--accent); }

/* ---- the rack: what is within reach. Names in serif (you would say them), kinds in mono. */
.rack h3 { font-size: var(--text-eyebrow); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted); font-weight: var(--weight-mono); margin: var(--space-6) 0 var(--space-2); }
.rack h3:first-child { margin-top: 0; }
.rack ul { list-style: none; margin: 0; padding: 0; }
.rack li a { display: block; padding: var(--space-2) 0; color: var(--text-strong); text-decoration: none; font-family: var(--font-display); font-size: 1.25rem; line-height: var(--leading-snug); }
.rack li a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: var(--rule); }
.rack li small { display: block; font-family: var(--font-mono); font-size: var(--mono-caption); color: var(--text-muted); letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.rack .empty { font-size: var(--mono-small); color: var(--text-muted); }
.addr { display: flex; flex-wrap: wrap; gap: 0 var(--space-2); align-items: baseline; border-bottom: var(--rule) solid var(--border); padding-bottom: var(--space-1); }
.addr input { flex: 1 0 100%; min-width: 0; border: 0; background: transparent; padding: var(--space-2) 0; font-size: var(--mono-body); outline: none; }
.addr span { color: var(--text-muted); font-size: var(--mono-caption); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr button { border: 0; background: none; cursor: pointer; font-size: var(--mono-small); text-decoration: underline; text-underline-offset: 3px; }

/* ---- notices: said plainly, dismissed by acting */
.notice { padding: var(--space-3) var(--space-5); background: var(--accent); color: var(--text-on-accent); font-size: var(--mono-small);
  display: flex; gap: var(--space-3); align-items: baseline; flex-wrap: wrap; border-bottom: 1px solid var(--accent-edge); }
.notice b { font-weight: var(--weight-mono-bold); word-break: break-all; }
.notice .spacer { flex: 1; }
.notice a, .notice button { color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

/* ---- caught: a bottle in hand, not yet kept */
.caught { border: var(--rule) solid var(--border); padding: var(--space-4); display: grid; gap: var(--space-3); }
.caught .kind { font-family: var(--font-display); font-size: var(--display-3); color: var(--text-strong); line-height: var(--leading-snug); }
.floorframe iframe { width: 100%; height: 24rem; border: 1px solid var(--border-faint); display: block; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
