/* hardtbrewery.com — "taproom board" style (style B, phones first).
   Layout: one phone-width column; sections follow the garage left to right as you scroll
   (taps and kegs, then unitanks, then the hot side). Dark single-theme by design. */
:root {
  --bg: #171412;          /* garage at night */
  --surface: #221d1a;     /* board panel */
  --surface-2: #2c2622;   /* raised panel */
  --line: #3d342d;
  --fg: #f2e9dc;          /* chalk cream */
  --muted: #b9a993;
  --faint: #8a7b69;
  --accent: #e8a33a;      /* amber: brand, gravity */
  --accent-ink: #1b1510;
  --cool: #79b8d6;        /* temperature series, cold things */
  --ok: #7cc38a;
  --warn: #e8c13a;
  --bad: #ec6b52;
  --steel: #a9b0b5;
  --steel-dark: #5f666b;
  --f-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --f-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.5 var(--f-body);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: #f5bf63; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: 2.3rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* page frame */
.wrap { max-width: 760px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.stack { display: flex; flex-direction: column; gap: 16px; }
main.wrap { display: flex; flex-direction: column; gap: 36px; padding-block: 20px 48px; }
section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 110px; }
.eyebrow { font: 700 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.section-head { display: flex; flex-direction: column; gap: 6px; }
.section-head p { color: var(--muted); max-width: 60ch; }

/* header + nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 30; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-direction: column; gap: 8px; padding-block: 10px 0; }
.brandrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wordmark { font: 800 1.6rem/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--fg); text-decoration: none; }
.wordmark span { color: var(--accent); }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter-r)) 0 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; font: 700 .95rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 10px 10px 12px; border-bottom: 3px solid transparent; }
.nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }

/* status bar */
.status { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--faint); }
.status[data-state="fresh"] .dot { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.status[data-state="old"] .dot { background: var(--warn); }
.status[data-state="stale"] { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, var(--surface)); }
.status[data-state="stale"] .dot { background: var(--bad); }
.status b { font-weight: 700; }
.status .when { margin-left: auto; color: var(--muted); white-space: nowrap; }
.demo-banner { padding: 8px 12px; border-radius: 8px; border: 1px dashed var(--warn); color: var(--warn); font-size: .9rem; }

/* hero: what's pouring */
.pour-now { display: flex; flex-direction: column; gap: 10px; }
.pour-now h1 { font-size: 2.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 600; font-size: .95rem; }
.chip .swatch { width: 14px; height: 14px; border-radius: 50%; }
button.chip { font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; }
button.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* garage map */
.garage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 8px 6px; overflow-x: auto; }
.garage > svg { display: block; width: 100%; min-width: 680px; height: auto; }
.garage-caption { font-size: .85rem; color: var(--faint); padding: 2px 6px 4px; }
.zone { cursor: pointer; }
.zone:hover .zone-hit, .zone:focus-visible .zone-hit { fill: color-mix(in srgb, var(--accent) 12%, transparent); stroke: var(--accent); }
.zone-hit { fill: transparent; stroke: transparent; stroke-dasharray: 4 4; }

/* equipment panels (kegerator, stand, hot side) */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.panel-head .tag { font: 700 .8rem/1 var(--f-body); letter-spacing: .1em; color: var(--faint); }
.kegs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.keg { appearance: none; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); border-radius: 10px; padding: 10px 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; text-align: center; font: inherit; min-width: 0; }
.keg:hover { border-color: var(--accent); }
.keg[data-empty="true"] { cursor: default; opacity: .75; }
.keg svg { width: 100%; max-width: 92px; height: auto; }
.keg .k-name { font: 800 1.05rem/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .03em; overflow-wrap: anywhere; }
.keg .k-style { font-size: .8rem; color: var(--muted); line-height: 1.2; }
.keg .k-pct { font: 800 1.5rem/1 var(--f-display); color: var(--accent); }
.keg .k-left { font-size: .82rem; color: var(--muted); line-height: 1.2; }
.keg .k-pos { font: 700 .72rem/1 var(--f-body); letter-spacing: .1em; color: var(--faint); }
.ontap-pill { font: 700 .7rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.ontap-pill.off { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.gauge-row { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .9rem; color: var(--muted); }
.gauge-row b { color: var(--fg); font-weight: 700; }

.tanks { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.tank { appearance: none; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); border-radius: 10px; padding: 10px 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font: inherit; text-align: center; min-width: 0; }
.tank:hover { border-color: var(--accent); }
.tank svg { width: 100%; max-width: 130px; height: auto; }
.tank .t-name { font: 800 1.1rem/1.05 var(--f-display); text-transform: uppercase; overflow-wrap: anywhere; }
.tank .t-stage { font: 700 .75rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.tank .t-read { font-size: .85rem; color: var(--muted); line-height: 1.3; }
.chiller { width: 84px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .74rem; color: var(--muted); text-align: center; line-height: 1.25; }
.chiller b { color: var(--fg); }

.hotside { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.vessel { appearance: none; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); border-radius: 10px; padding: 12px; display: flex; gap: 12px; align-items: center; cursor: pointer; font: inherit; text-align: left; min-width: 0; }
.vessel:hover { border-color: var(--accent); }
.vessel svg { width: 48px; height: 56px; flex: none; }
.vessel b { display: block; font: 800 1.05rem/1.1 var(--f-display); text-transform: uppercase; }
.vessel span { display: block; font-size: .85rem; color: var(--muted); line-height: 1.25; }

/* cards & lists */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover .card { border-color: var(--accent); }
.beer-list { display: flex; flex-direction: column; gap: 10px; }
.beer-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.beer-row .meta { font-size: .88rem; color: var(--muted); }
.beer-row .name { font: 800 1.25rem/1.05 var(--f-display); text-transform: uppercase; overflow-wrap: anywhere; }
.beer-row .right { text-align: right; font-size: .85rem; color: var(--muted); }
.beer-row .right b { display: block; font: 800 1.3rem/1 var(--f-display); color: var(--fg); }
.dim { opacity: .38; }

/* on-tap list */
.tap-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.tap-row .swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); }
.tap-row .name { font: 800 1.2rem/1.05 var(--f-display); text-transform: uppercase; overflow-wrap: anywhere; }
.tap-row .meta { font-size: .88rem; color: var(--muted); }
.tap-row .right { text-align: right; font-size: .82rem; color: var(--muted); }
.tap-row .right b { display: block; font: 800 1.35rem/1 var(--f-display); color: var(--fg); }

/* glass */
.glass { width: 44px; height: 58px; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.stat { background: var(--surface-2); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat small { font: 700 .72rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.stat b { font: 800 1.45rem/1.05 var(--f-display); font-variant-numeric: tabular-nums; }
.stat span { font-size: .78rem; color: var(--muted); line-height: 1.2; }

/* tasting profile bars */
.profile { display: flex; flex-direction: column; gap: 7px; }
.prow { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 6.5em; gap: 10px; align-items: center; font-size: .92rem; }
.prow .bar { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; display: flex; gap: 2px; }
.prow .bar i { flex: 1; background: var(--surface-2); border-radius: 2px; }
.prow .bar i.on { background: var(--accent); }
.prow .word { color: var(--muted); font-size: .85rem; }
.basis { font-size: .82rem; color: var(--faint); }

/* beer page */
.beer-hero { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; }
.beer-hero .glass { width: 76px; height: 100px; }
.beer-hero .style { color: var(--muted); }
.pill { display: inline-block; font: 700 .72rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.pill.hot { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.toc { display: flex; flex-wrap: wrap; gap: 6px; }
.toc a { font: 700 .85rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 8px 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.prose { display: flex; flex-direction: column; gap: 12px; max-width: 68ch; }
.prose h2 { font-size: 1.4rem; margin-top: 10px; }
.prose h3 { font-size: 1.1rem; margin-top: 6px; }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.prose code { font-size: .88em; background: var(--surface-2); padding: 1px 4px; border-radius: 4px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 700 .75rem/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); background: var(--surface); }
tr:last-child td { border-bottom: 0; }
.footnotes { font-size: .85rem; color: var(--muted); display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; overflow-wrap: anywhere; }
sup a { text-decoration: none; }
.timeline { display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline div { position: relative; padding: 0 0 14px 18px; }
.timeline div::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline time { display: block; font-size: .82rem; color: var(--faint); }
.notyet { color: var(--faint); font-style: italic; }

/* charts */
.chart { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text, .chart .lbl { fill: var(--faint); font: 12px var(--f-body); font-variant-numeric: tabular-nums; }
.chart .ptitle { fill: var(--muted); font: 700 12px var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
.chart .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .evt { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 2 4; }
.chart .tip { position: absolute; top: 0; pointer-events: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font-size: .82rem; line-height: 1.35; white-space: nowrap; transform: translateX(-50%); }
.chart .tip[hidden] { display: none; }
.chart-note { font-size: .82rem; color: var(--faint); }

/* bottom sheet */
.sheet-back { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 40; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 88vh; overflow-y: auto; background: var(--surface); border-top: 1px solid var(--line); border-radius: 16px 16px 0 0;
  padding: 10px var(--gutter-r) calc(24px + env(safe-area-inset-bottom, 0px)) var(--gutter); box-shadow: 0 -10px 30px rgba(0,0,0,.5); }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.sheet-inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.sheet-close { appearance: none; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); border-radius: 8px; padding: 8px 12px; font: 700 .9rem var(--f-body); cursor: pointer; align-self: flex-end; }
@media (min-width: 820px) { .sheet { left: 50%; right: auto; width: 760px; transform: translateX(-50%); } }

/* forms */
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.form input[type=email] { font: inherit; padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); }
.form .checks { display: flex; flex-direction: column; gap: 8px; }
.form .checks label { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; }
.form .checks input { width: 20px; height: 20px; accent-color: var(--accent); }
.btn { appearance: none; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font: 800 1.1rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; padding: 14px 18px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

footer.site-footer { border-top: 1px solid var(--line); padding-block: 22px 30px; color: var(--faint); font-size: .88rem; }
footer.site-footer .wrap { display: flex; flex-direction: column; gap: 6px; }

/* animation */
@keyframes rise { from { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } to { transform: translateY(-120px); opacity: 0; } }
.bubble { animation: rise linear infinite; }
@keyframes fillup { from { transform: scaleY(0); } }
.fill-anim { transform-box: fill-box; transform-origin: bottom; animation: fillup 1.4s cubic-bezier(.2,.8,.2,1) both; }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; opacity: 0; } .fill-anim { animation: none; } }

@media (max-width: 420px) {
  h1 { font-size: 2rem; }
  .pour-now h1 { font-size: 2.2rem; }
  .prow { grid-template-columns: 6.5em minmax(0, 1fr); }
  .prow .word { grid-column: 2; margin-top: -4px; }
}

/* status board and lifecycle */
.board h2 { margin-top: 1.4rem; }
.board-sub { color: var(--muted); font-size: .9rem; margin: -.2rem 0 .6rem; }
.tap-row .also { display: block; margin-top: 2px; font-size: .82rem; color: var(--accent); }
.keg .k-state { font-size: .8rem; color: var(--accent); line-height: 1.25; margin: 2px 0; }
.flow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .6rem; }
.flow a { font: 700 .8rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.flow a:not(:last-child)::after { content: " →"; color: var(--accent); }
.stage { margin-bottom: 14px; }
.stage-head { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; }
.stage-head svg { width: 48px; height: 56px; }
.stage-head h2 { margin: 0; }
.states { list-style: none; padding: 0; margin: .4rem 0; display: grid; gap: 8px; }
.chip-static { display: inline-block; font: 700 .72rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink); margin-right: 4px; }
.supplier { font-size: .95rem; }
.supplier a { color: var(--accent); }
