/* Public web styles, class names follow prototyp-designu.html. */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.55;
  transition: background-color .4s;
}
img { max-width: 100%; height: auto; }
.wrap {
  max-width: 1200px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: .95; }
h2 { font-size: var(--step-3); font-weight: 900; text-transform: uppercase; letter-spacing: .01em; }
p { margin: 0; }
a { color: inherit; }
.eyebrow { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--hop); outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 30; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.logo { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; text-transform: uppercase; letter-spacing: .02em; color: var(--fg); text-decoration: none; }
.logo img { display: block; height: 40px; width: auto; align-self: center; }
.logo i { display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--beer); box-shadow: inset 0 .14em 0 var(--foam); transition: background .4s; }
.nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--fg); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--beer); text-decoration-thickness: 3px; text-underline-offset: 5px; }
/* On phones the menu wraps under the logo instead of disappearing (there is no cart button to replace it). */
@media (max-width: 760px) {
  .top .wrap { flex-wrap: wrap; row-gap: 6px; }
  .nav { margin-left: 0; width: 100%; gap: 6px 16px; }
  .nav a { font-size: .9rem; }
}

/* Hero */
.hero { padding-block: 48px 24px; display: grid; gap: 32px; }
.hero-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.hero h1 { font-size: var(--step-hero); font-weight: 900; text-transform: uppercase; letter-spacing: -.005em; }
.hero h1 em { font-style: normal; color: var(--fg); background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 90%, transparent 90%); }
.hero-lead { font-size: var(--step-1); max-width: 34ch; color: var(--muted); }
.hero-lead strong { color: var(--fg); }
@media (max-width: 760px) { .hero-head { grid-template-columns: 1fr; } }

/* Sections */
section.block { padding-block: 72px 24px; }
.block-head { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.block-head p { max-width: 52ch; color: var(--muted); }
.page-head { padding-block: 48px 0; }
.page-head h1 { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 900; text-transform: uppercase; }
.empty { color: var(--muted); }

/* Tap wall: right under the hero, like in the prototype */
.hero + .block-taps { padding-top: 0; }
.tapwall { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.15fr); gap: 24px; align-items: stretch; }
.taps { display: grid; grid-template-columns: repeat(var(--cols, 8), minmax(0, 1fr)); gap: 10px; align-items: end; align-content: center; margin: 0; padding: 20px 16px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.taps::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 10px); opacity: .9; }
.tap { display: grid; justify-items: center; gap: 8px; background: none; border: 0; padding: 0 0 22px; position: relative; min-width: 0; }
.tap:disabled { cursor: default; }
.tap .num { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.tap .deg { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1; }
.tap .deg sup { font-size: .5em; vertical-align: .9em; }
/* Steel keg icon with a band in the beer colour (--c). The metal looks the same in both themes. */
.keg-icon {
  display: block; width: 100%; max-width: 88px; aspect-ratio: 72 / 92; position: relative;
  border-radius: 10px / 8px;
  background: linear-gradient(90deg, #747b82 0%, #c4c9ce 18%, #eef0f2 32%, #b2b8be 56%, #8c939a 80%, #666d74 100%);
  box-shadow: 0 8px 14px -10px rgba(0, 0, 0, .6);
  transition: transform .2s;
}
/* Top and bottom rim, a little wider than the body */
.keg-icon::before, .keg-icon::after {
  content: ""; position: absolute; left: -3%; right: -3%; height: 9%; border-radius: 4px;
  background: linear-gradient(90deg, #5f666d 0%, #d3d7db 30%, #9aa1a8 62%, #575e65 100%);
}
.keg-icon::before { top: 0; }
.keg-icon::after { bottom: 0; }
/* Beer colour between the two ribs, shaded like the round body */
.keg-icon .band {
  position: absolute; left: 0; right: 0; top: 33%; bottom: 33%;
  border-block: 3px solid #a7aeb5;
  background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .22) 32%, transparent 56%, rgba(0, 0, 0, .32)), var(--c, transparent);
}
.tap .name { font-size: .78rem; font-weight: 600; text-align: center; line-height: 1.2; min-height: 2.4em; overflow-wrap: anywhere; }
.tap:disabled .name { color: var(--muted); font-weight: 500; }
.tap[aria-pressed="true"]::before { content: ""; position: absolute; left: 50%; bottom: 4px; width: 26px; height: 6px; margin-left: -13px; border-radius: 3px; background: var(--fg); }
.tap:not(:disabled):hover .keg-icon { transform: translateY(-3px); }

.details { display: grid; }
.detail { background: var(--fg); color: var(--bg); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; align-content: start; }
.detail .eyebrow { color: color-mix(in srgb, var(--bg) 65%, var(--fg)); }
.detail h3 { font-size: var(--step-3); font-weight: 900; text-transform: uppercase; }
.detail .brew { font-weight: 500; opacity: .8; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.detail-photo { flex: none; width: 64px; height: 120px; object-fit: contain; object-position: top; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; }
.stats div { border-top: 1px solid color-mix(in srgb, var(--bg) 25%, var(--fg)); padding-top: 6px; }
.stats dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.stats dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.stats .stat-wide { grid-column: 1 / -1; }
.keg { display: grid; gap: 6px; }
.keg-bar { height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--bg) 18%, var(--fg)); overflow: hidden; }
.keg-bar span { display: block; height: 100%; background: var(--beer); transition: width .6s, background .4s; }
.keg small { font-family: var(--font-mono); font-size: .75rem; opacity: .8; }
.prices { display: flex; gap: 8px; flex-wrap: wrap; }
.price-chip { border: 1.5px solid color-mix(in srgb, var(--bg) 40%, var(--fg)); border-radius: 999px; padding: 4px 12px; font-family: var(--font-mono); font-size: .85rem; }
@media (max-width: 900px) { .tapwall { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .taps { grid-template-columns: repeat(var(--cols-mobile, 4), minmax(0, 1fr)); row-gap: 18px; } }

/* Fridge filter by beer type */
.ranges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.range-btn { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px 6px 8px; font-weight: 600; font-size: .9rem; }
.range-btn i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 3px 0 var(--foam); }
.range-btn small { font-family: var(--font-mono); font-weight: 400; color: var(--muted); font-size: .72rem; }
.range-btn[aria-pressed="true"] { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.range-btn[aria-pressed="true"] small { color: inherit; opacity: .7; }
.range-btn.plain { padding-left: 14px; }
.range-btn:disabled { opacity: .4; cursor: not-allowed; }
.shelf-filters { display: grid; gap: 10px; }
.ranges-label { align-self: center; min-width: 4.5em; font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
/* On phones every filter row scrolls sideways instead of wrapping into many lines. */
@media (max-width: 620px) {
  .shelf-filters .ranges { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .shelf-filters .ranges::-webkit-scrollbar { display: none; }
  .shelf-filters .range-btn, .ranges-label { flex: none; white-space: nowrap; }
}

/* Shelf */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.bottle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; align-content: start; }
.bottle .shape { grid-row: span 5; width: 44px; height: 120px; position: relative; }
.bottle .photo { grid-row: span 5; width: 44px; height: 120px; object-fit: contain; object-position: bottom; }
.bottle .shape::before { content: ""; position: absolute; left: 15px; top: 0; width: 14px; height: 34px; background: var(--c); border-radius: 3px 3px 0 0; filter: brightness(.82); }
.bottle .shape::after { content: ""; position: absolute; left: 4px; right: 4px; top: 30px; bottom: 0; background: var(--c); border-radius: 12px 12px 4px 4px; box-shadow: inset -6px 0 0 rgba(0,0,0,.15), inset 5px 0 0 rgba(255,255,255,.15); }
.bottle .shape b { position: absolute; z-index: 1; left: 4px; right: 4px; top: 62px; height: 32px; background: var(--foam); color: #1C1813; display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 1rem; }
.bottle h3 { font-size: 1.45rem; font-weight: 700; text-transform: uppercase; }
.bottle .brew { color: var(--muted); font-size: .88rem; }
.bottle .type { font-weight: 600; font-size: .88rem; }
.bottle .meta { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bottle .buy { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px; }
.bottle .buy strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bottle .stock { font-family: var(--font-mono); font-size: .72rem; color: var(--hop); }
/* "NOVINKA" label: on the corner of a bottle card or above a tap, inline in the tap detail. */
.bottle { position: relative; }
.new-badge { position: absolute; z-index: 2; top: -9px; right: 12px; background: var(--accent); color: #1C1813; font-family: var(--font-mono); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1; padding: 4px 7px; border-radius: 999px; white-space: nowrap; }
.tap .new-badge { top: -6px; right: auto; left: 50%; transform: translateX(-50%); }
.new-badge.inline { position: static; display: inline-block; margin-left: 6px; vertical-align: middle; }
/* Can (packaging "plech"): no neck, straight body with a metal rim. */
.bottle .shape.can::before { left: 6px; right: 6px; width: auto; top: 26px; height: 6px; border-radius: 3px 3px 0 0; background: #B9B4AC; filter: none; }
.bottle .shape.can::after { left: 6px; right: 6px; top: 31px; border-radius: 3px 3px 5px 5px; }
.bottle .shape.can b { left: 6px; right: 6px; }
.shelf-count { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin-top: 14px; }
.shelf-more { margin-top: 18px; }
.shelf-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; color: var(--muted); }

/* Events */
.events { display: grid; gap: 0; border-top: 2px solid var(--fg); }
.event { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding-block: 18px; border-bottom: 1px solid var(--line); }
.event .date { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; line-height: .9; font-variant-numeric: tabular-nums; }
.event .date small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.event h3 { font-size: 1.6rem; font-weight: 700; text-transform: uppercase; }
.event h3 a { color: inherit; text-decoration: none; }
.event h3 a:hover { text-decoration: underline; text-decoration-color: var(--beer); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.event p { color: var(--muted); font-size: .95rem; }
.event .act { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.event .seats { font-family: var(--font-mono); font-size: .8rem; white-space: nowrap; }
@media (max-width: 620px) { .event { grid-template-columns: 80px minmax(0, 1fr); } .event .act { grid-column: 2; } }

.event-detail .notice { font-family: var(--font-mono); font-size: .85rem; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 14px; justify-self: start; }

/* Text */
.text-layout { display: grid; gap: 32px; }
.text-layout.has-image { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
.text-image { margin: 0; }
.text-image img { display: block; border-radius: var(--radius); }
@media (max-width: 760px) { .text-layout.has-image { grid-template-columns: 1fr; } }
.prose { max-width: 68ch; display: grid; gap: 14px; font-size: 1.05rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; }
.prose a { text-decoration-color: var(--beer); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 2px solid var(--fg); padding-top: 24px; }
.contact-grid h3 { font-size: 1.6rem; font-weight: 900; text-transform: uppercase; margin-bottom: 10px; }
.contact-grid address { font-style: normal; }
.contact-grid p + p { margin-top: 4px; }
.hours { border-collapse: collapse; font-family: var(--font-mono); font-size: .85rem; font-variant-numeric: tabular-nums; }
.hours th { font-weight: 500; text-align: left; padding: 3px 18px 3px 0; }
.hours td { padding: 3px 0; }
.hours-note { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.legal-note { margin-top: 24px; font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 20px; } }

/* Buttons */
.btn-line { display: inline-block; border: 1.5px solid var(--fg); background: transparent; color: var(--fg); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .85rem; text-decoration: none; }
.btn-line:hover { background: var(--fg); color: var(--bg); }

/* Error pages */
.error-page { min-height: 50vh; align-content: center; }
.error-page .hero-lead { display: grid; gap: 20px; }
.error-details { margin: 0; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-family: var(--font-mono); font-size: .78rem; line-height: 1.5; white-space: pre-wrap; }

/* Footer */
footer { margin-top: 80px; background: var(--fg); color: var(--bg); }
footer .wrap { padding-block: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
footer h2, footer h3 { font-size: 1.6rem; font-weight: 900; text-transform: uppercase; margin-bottom: 10px; }
footer table { border-collapse: collapse; font-family: var(--font-mono); font-size: .85rem; font-variant-numeric: tabular-nums; }
footer td { padding: 3px 18px 3px 0; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid color-mix(in srgb, var(--bg) 25%, var(--fg)); padding-top: 16px; font-size: .8rem; opacity: .75; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }
footer .wrap.footer-short { grid-template-columns: 1fr; gap: 16px; padding-block: 32px; }
.footer-line { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; }
.footer-line strong { font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; text-transform: uppercase; }
.footer-line a { color: inherit; }
footer .wrap.footer-short .legal { grid-column: auto; }

@media (prefers-reduced-motion: reduce) {
  .keg-bar span, .keg-icon { transition: none; }
  body, .logo i, .hero h1 em { transition: none; }
}
