@font-face {
    font-family: 'Norwester';
    src: url('../fonts/norwester.woff') format('woff'),
         url('../fonts/norwester.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Anonymous Pro';
    src: url('../fonts/AnonymousPro-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Anonymous Pro';
    src: url('../fonts/AnonymousPro-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Anonymous Pro';
    src: url('../fonts/AnonymousPro-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Anonymous Pro';
    src: url('../fonts/AnonymousPro-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    overflow: hidden;
    background: #000;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #fff;
}

/* Fixed gold used for beer/wine detail text (brewery/style/ABV/tap/calories,
   description, and price) -- everything else on the screen is white on black. */
:root { --gold: #c9a24b; }

/* Orientation sizing -- set on <body class="landscape"> or <body class="portrait"> */
body.landscape, .screen.landscape { width: 1920px; height: 1080px; }
body.portrait, .screen.portrait { width: 1080px; height: 1920px; }

.screen {
    display: flex;
    flex-direction: column;
    background: #000;
}
.screen.landscape { padding: 56px 72px; }
.screen.portrait { padding: 48px 52px; }

.screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #fff;
    padding-bottom: 22px;
    margin-bottom: 26px;
    flex: 0 0 auto;
}
.screen.portrait .screen-header { flex-direction: column; align-items: flex-start; gap: 6px; }

.screen-header h1 { margin: 0; font-weight: 400; color: #fff; font-family: 'Norwester', 'Georgia', serif; text-transform: uppercase; }
.screen.landscape .screen-header h1 { font-size: 64px; letter-spacing: 2px; }
.screen.portrait .screen-header h1 { font-size: 56px; letter-spacing: 2px; }

.screen-header .subtitle {
    color: #fff;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 6px;
    opacity: 0.85;
}
.screen.landscape .screen-header .subtitle { font-size: 28px; }
.screen.portrait .screen-header .subtitle { font-size: 22px; }

.screen-header .restaurant-name { color: #fff; opacity: 0.85; }
.screen.landscape .screen-header .restaurant-name { font-size: 26px; text-align: right; }
.screen.portrait .screen-header .restaurant-name { font-size: 24px; }

.page-stack { position: relative; flex: 1 1 auto; overflow: hidden; }

.menu-page {
    position: absolute;
    top: 0; left: 0; right: 0;
    visibility: hidden;
    column-count: var(--col-count, 1);
    column-gap: 4em;
    column-fill: balance;
    font-size: 20px; /* fixed, readable base -- no longer adjusted by JS; pagination adapts to fit this instead */
}
.menu-page.active { visibility: visible; }

.category-block { margin-bottom: 1.625em; }
.category-title {
    color: #fff;
    font-family: 'Norwester', 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 0.375em;
    margin-bottom: 0.875em;
    break-after: avoid; /* keep the header attached to at least its first item, never orphaned alone at a column's bottom */
}
.screen.landscape .category-title { font-size: 2.125em; }
.screen.portrait .category-title { font-size: 1.875em; }

.item-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.875em; gap: 1.125em; break-inside: avoid; }
.item-main { flex: 0 0 60%; min-width: 0; }
.item-name { color: #fff; display: flex; align-items: center; gap: 0.75em; }
.screen.landscape .item-name { font-size: 1.6875em; }
.screen.portrait .item-name { font-size: 1.625em; }

/* Beer screens: a simplified layout (tap + brewery-beer name, then
   style, then a line of prices below that) rather than wine's
   side-by-side name/details-plus-prices row -- no description and no
   full brewed_in/ABV/calories sub-line here anymore, so the name and
   tap number can run much larger while each item still takes up
   noticeably less total height than before. Scoped to .mode-beer
   specifically so wine's row layout, sizing, and sub-line are
   unaffected. */
.screen.mode-beer .item-row { flex-direction: column; align-items: flex-start; gap: 0.2em; margin-bottom: 1.1em; }
.screen.landscape.mode-beer .item-name { font-size: 3.4em; gap: 0.4em; }
.screen.portrait.mode-beer .item-name { font-size: 3.2em; gap: 0.4em; }
.screen.mode-beer .item-style {
    color: #fff;
    font-family: 'Anonymous Pro', monospace;
    font-size: 1.5em;
}
.screen.mode-beer .item-prices {
    flex: 0 0 auto;
    justify-content: flex-start;
    width: 100%;
}
.screen.mode-beer .item-prices .price-line { font-size: 1.6em; }

/* Beer name text specifically (not the tap badge, not wine names) --
   scoped to its own class so it doesn't cascade into the tap badge or
   affect wine listings, which share the same .item-name container. */
.beer-name-text { font-family: 'Norwester', 'Georgia', serif; }

/* Tap number badge -- vertically centered against the beer name (not
   baseline-aligned, which looked offset next to the bordered badge box). */
.tap-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-width: 1.5em;
    padding: 0.32em 0.5em;
    border: 2px solid var(--gold);
    border-radius: 6px;
    color: var(--gold);
    font-size: 0.62em;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Beer/wine "details" -- brewery, style, ABV, tap, calories, description,
   and price -- are gold; the name and page chrome stay white. */
.item-sub { font-size: 1.1875em; color: var(--gold); margin-top: 0.125em; font-family: 'Anonymous Pro', monospace; }
.item-desc { font-size: 1.0625em; color: var(--gold); opacity: 0.85; margin-top: 0.125em; font-style: italic; font-family: 'Anonymous Pro', monospace; }
.item-prices {
    color: var(--gold);
    font-family: 'Anonymous Pro', monospace;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: flex-start;
    gap: 0.25em 1.125em;
    flex: 0 0 36%;
}
.item-prices .price-label { font-size: 0.75em; color: var(--gold); opacity: 0.85; display: block; text-transform: uppercase; letter-spacing: 1px; }
.item-prices .price-line { font-size: 1.1875em; color: var(--gold); white-space: nowrap; line-height: 1.35; font-weight: bold; }

.page-dots { flex: 0 0 auto; display: flex; justify-content: center; gap: 10px; padding-top: 14px; }
.page-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.page-dots span.active { background: #fff; }

.empty-state {
    flex: 1; display: flex; align-items: center; justify-content: center;
    font-size: 34px; color: #fff; opacity: 0.6;
}
