/* 5ohclock — riso beer mat. Two inks on paper. Brutalist: square corners, heavy rules, no gradients/shadows/cards. */
@font-face { font-family: 'Anybody'; src: url('../fonts/anybody-var.woff2') format('woff2'); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; }
@font-face { font-family: 'Martian Mono'; src: url('../fonts/martian-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Martian Mono'; src: url('../fonts/martian-mono-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Martian Mono'; src: url('../fonts/martian-mono-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --paper: #F1EBDD;
  --ink: #141210;
  --accent: #FF48B0;      /* the ONE accent */
  --muted: #5C564C;
  --unlit: #2B2824;
  --mono: 'Martian Mono', ui-monospace, monospace;
  --sans: 'Anybody', Impact, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--paper); }
body { color: var(--ink); font-family: var(--sans); -webkit-text-size-adjust: 100%; }
a { color: var(--ink); }
button { font: inherit; color: var(--ink); cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--accent); }

.app { width: 100%; max-width: 480px; height: 100vh; height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; position: relative; overflow: hidden; background: var(--paper); }
@media (min-width: 520px) { .app { border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); } html { background: var(--ink); } }

/* ticker */
.ticker { height: 28px; flex: none; overflow: hidden; background: var(--accent); border-bottom: 2px solid var(--ink); display: flex; align-items: center; }
.ticker__track { display: flex; white-space: nowrap; animation: tick 28s linear infinite; font: 800 10px var(--mono); letter-spacing: .5px; }
.ticker__track span { padding-right: 28px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* header / wordmark */
.head { display: flex; align-items: stretch; height: 214px; flex: none; border-bottom: 3px solid var(--ink); }
.head__five { position: relative; width: 150px; overflow: hidden; border-right: 3px solid var(--ink); flex: none; }
.five { position: absolute; font: 900 290px/1 var(--sans); font-stretch: 50%; mix-blend-mode: multiply; }
.five--pink { left: 2px; top: -36px; color: var(--accent); }   /* misregistered pink copy, ~5px behind the ink */
.five--ink { left: -6px; top: -42px; color: var(--ink); }
.head__right { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.head__top { padding: 12px 14px 10px; border-bottom: 2px solid var(--ink); }
.oh { margin: 0; font: 900 30px/.9 var(--sans); font-stretch: 150%; letter-spacing: -.5px; }
.led { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); padding: 8px 12px 8px 14px; color: var(--accent); }
.led svg { display: block; height: 30px; width: auto; overflow: visible; transform: skewX(-7deg); }
.led__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); align-self: flex-start; }
.led__dot.off { background: var(--unlit); }
.head__bot { padding: 10px 14px 4px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.lbl { font: 700 9px var(--mono); letter-spacing: 1px; }
.clock { font: 800 28px/1.1 var(--mono); letter-spacing: -1px; }
.hood { position: relative; align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid var(--ink); font: 800 11px var(--mono); padding: 4px 0; max-width: 100%; }
.hood span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hood select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.hood:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--accent); }

.ico { display: inline-block; height: .95em; width: auto; vertical-align: -.1em; margin: 0 .5em; }
.ico--down { margin: 0 0 0 .5em; width: .8em; height: 1em; vertical-align: -.15em; }
.ico--x { width: .8em; height: .8em; vertical-align: 0; }

/* tabs */
.tabs { display: flex; gap: 18px; padding: 10px 16px; border-bottom: 2px solid var(--ink); flex: none; }
.tabs button { background: transparent; border: 0; padding: 6px; min-height: 40px; min-width: 44px; font: 800 12px var(--mono); }
.tabs button[aria-pressed="true"] { background: var(--accent); }

/* list */
.list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 130px; }
.row { display: grid; grid-template-columns: 112px minmax(0, 1fr); border-bottom: 2px solid var(--ink); color: var(--ink); text-decoration: none; }
.row__time { border-right: 2px solid var(--ink); padding: 12px 10px; display: flex; flex-direction: column; justify-content: space-between; }
.row--last .row__time { background: var(--accent); }
.timer { font: 800 24px/1 var(--mono); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.timer--long { font-size: 20px; }
.tlabel { font: 700 9px var(--mono); letter-spacing: 1px; margin-top: 6px; }
.row__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.name { font: 900 28px/.9 var(--sans); font-stretch: 55%; text-transform: uppercase; overflow-wrap: anywhere; }
.specials { font: 400 11px/1.45 var(--mono); }
.bar { display: flex; gap: 3px; }
.bar i { flex: 1; height: 10px; border: 1.5px solid var(--ink); }
.bar i.on { background: var(--ink); }
.row--last .bar i.on { background: var(--accent); }
.meta { font: 700 10px var(--sans); font-stretch: 150%; letter-spacing: .5px; text-transform: uppercase; }

.msg { padding: 28px 16px; border-bottom: 2px solid var(--ink); }
.msg b { display: block; font: 900 34px/.9 var(--sans); font-stretch: 55%; text-transform: uppercase; margin-bottom: 10px; }
.msg p { margin: 0; font: 400 12px/1.5 var(--mono); }

.foot { padding: 18px 16px; font: 700 9px/1.5 var(--mono); letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }

/* dock + stamp */
.dock { position: absolute; left: 0; right: 0; bottom: 0; height: 76px; background: var(--paper); border-top: 3px solid var(--ink); display: flex; align-items: center; padding: 0 16px; }
.dock button { background: var(--paper); border: 2px solid var(--ink); padding: 0 14px; min-height: 44px; font: 800 11px var(--mono); }
.stamp { position: absolute; right: 16px; bottom: 12px; width: 108px; height: 108px; border-radius: 50%; background: var(--ink); color: var(--paper); border: 0; display: flex; align-items: center; justify-content: center; transform: rotate(-9deg); box-shadow: 4px 4px 0 var(--accent); text-decoration: none; }
.stamp::before { content: ''; position: absolute; inset: 6px; border: 2px dashed var(--paper); border-radius: 50%; }
.stamp span { text-align: center; font: 900 21px/.88 var(--sans); font-stretch: 60%; }
[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 360px) { .head__five { width: 126px; } .five { font-size: 250px; } .five--pink { top: -30px; } .five--ink { top: -36px; } .name { font-size: 24px; } }
