/* ==========================================================================
   TGB Smash Burgers — site styles
   Design system: see DESIGN.md. Every color comes from a token below;
   components never hard-code colors or add their own `.dark` overrides.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    /* Brand: taken from the burger itself */
    --mustard: #F9A825;       /* yellow mustard seared onto the patty; fills only */
    --mustard-ink: #8F5B00;   /* mustard dark enough for text on light surfaces */
    --on-mustard: #221A14;    /* text/icons placed on a mustard fill */
    --patty: #6B3A1F;
    --pickle: #5E7D2E;

    /* Neutrals: warm, biased toward seared crust rather than cool grey */
    --bg: #FAF8F4;
    --surface: #FFFFFF;
    --surface-2: #F3EEE6;
    --ink: #221A14;
    --ink-muted: #6A5D52;
    --line: #E6DDD1;
    --footer-bg: #221A14;
    --footer-ink: #F5EFE8;
    --footer-muted: #BCAFA2;
    --shadow: 0 1px 2px rgba(34, 26, 20, 0.06), 0 8px 24px -8px rgba(34, 26, 20, 0.18);

    /* Type */
    --font-display: 'Bowlby One', 'Dela Gothic One', 'Arial Black', sans-serif;
    --font-body: 'Poppins', 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-md: 1.125rem;
    --text-lg: 1.375rem;
    --text-xl: 1.75rem;
    --text-2xl: clamp(2rem, 5vw, 2.75rem);
    --text-hero: clamp(2.25rem, 8vw, 4.5rem);

    /* Shape & rhythm */
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --gutter: 1.25rem;
    --section-y: clamp(3.5rem, 8vw, 6rem);

    color-scheme: light;
}

html.dark {
    --mustard-ink: #FBBF3C;
    --bg: #16110D;
    --surface: #211A15;
    --surface-2: #2A221C;
    --ink: #F5EFE8;
    --ink-muted: #BCAFA2;
    --line: #3A2F27;
    --footer-bg: #0E0B09;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -8px rgba(0, 0, 0, 0.6);

    color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 5rem; /* keep anchored sections clear of the sticky header */
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.65;
    background-color: var(--bg);
    color: var(--ink);
    transition: background-color 0.3s, color 0.3s;
}

html:lang(ja) body {
    line-height: 1.85;
}

h1, h2, h3, h4 {
    font-size: inherit;
    font-weight: inherit;
    text-wrap: balance;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

ul {
    list-style: none;
}

button,
select {
    font: inherit;
    color: inherit;
}

.container {
    max-width: 72rem;
    margin: 0 auto;
    padding-inline: var(--gutter);
}

.hidden {
    display: none;
}

/* ---------- Shared type ---------- */
.display {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.02;
    letter-spacing: 0.005em;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--text-2xl);
    line-height: 1.1;
    text-transform: uppercase;
}

.eyebrow {
    display: block;
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mustard-ink);
}

.lede {
    font-size: var(--text-md);
    color: var(--ink-muted);
    max-width: 38rem;
}

.price {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---------- Buttons ---------- */
.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--mustard);
    color: var(--on-mustard);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-sm);
    box-shadow: inset 0 -3px 0 rgba(34, 26, 20, 0.18);
    transition: transform 0.15s, box-shadow 0.15s;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 -3px 0 rgba(34, 26, 20, 0.18), 0 6px 16px -6px rgba(249, 168, 37, 0.7);
}

.button:active {
    transform: translateY(0);
}

.button-small {
    font-size: var(--text-sm);
    padding: 0.6rem 1.2rem;
}

.button-outline {
    background-color: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 2px var(--mustard);
}

.button-outline:hover {
    box-shadow: inset 0 0 0 2px var(--mustard), 0 6px 16px -8px rgba(249, 168, 37, 0.7);
}

/* ---------- Header ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--surface);
    border-bottom: 1px solid var(--line);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 0.75rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo svg {
    width: 2.5rem;
    height: 2.5rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1;
}

.logo-path-dark { fill: var(--ink); }
.logo-path-light { fill: var(--mustard); }
.logo-path-beef { fill: var(--patty); }

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: none;
    gap: 2rem;
    font-weight: 700;
    font-size: var(--text-sm);
    letter-spacing: 0.06em;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    text-decoration: none;
    padding-block: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.nav-links a:hover {
    border-bottom-color: var(--mustard);
}

/* Theme toggle */
#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

#theme-toggle svg {
    width: 3.5rem;
    height: 1.75rem;
    overflow: visible;
}

.track {
    fill: var(--line);
    transition: fill 0.5s ease;
}

.knob-group {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .knob-group {
    transform: translateX(60px);
}

.sun {
    opacity: 1;
    transform-origin: 30px 30px;
    transition: all 0.5s ease;
}

.dark .sun {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
}

.sun circle { fill: #F59E0B; }
.sun path { stroke: #F59E0B; }

.moon {
    opacity: 0;
    transform-origin: 30px 30px;
    transform: scale(0.5) rotate(-45deg);
    transition: all 0.5s ease;
}

.dark .moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 2px rgba(253, 224, 71, 0.8));
}

.moon path { fill: #FDE047; }

/* Language switcher */
#lang-switcher {
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-muted);
    transition: color 0.2s;
}

.mobile-menu-btn:hover {
    color: var(--ink);
}

.mobile-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

@media (max-width: 767px) {
    .nav-controls {
        gap: 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--surface);
        border-bottom: 1px solid var(--line);
        padding: 1rem var(--gutter);
        gap: 0.75rem;
    }
}

/* ---------- Hero ---------- */
.hero {
    padding-block: clamp(3rem, 7vw, 5.5rem);
    background-color: var(--surface);
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        gap: 4rem;
    }
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.hero h1 {
    font-size: var(--text-hero);
}

/* A swipe of mustard behind the key words. Mustard text on white fails
   contrast, so the words stay ink and the mustard sits underneath. */
.hero .highlight {
    background-image: linear-gradient(transparent 52%, var(--mustard) 52%, var(--mustard) 90%, transparent 90%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding-inline: 0.06em;
}

/* Japanese: no spaces to break on, so size down and keep the product name whole */
html:lang(ja) .hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    line-height: 1.25;
}

html:lang(ja) .hero .highlight {
    white-space: nowrap;
    background-image: linear-gradient(transparent 50%, var(--mustard) 50%, var(--mustard) 82%, transparent 82%);
}

/* On the dark ground, mustard text itself has plenty of contrast.
   Kept after the :lang(ja) rule, which has equal specificity and would
   otherwise re-add the band behind mustard text (reads as a strikethrough). */
html.dark .hero .highlight {
    color: var(--mustard);
    background-image: none;
}

/* ---------- Pop-up card (home hero) ---------- */
.popup-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1.25rem;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--bg);
    border: 2px solid var(--mustard);
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.popup-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.popup-card .eyebrow {
    grid-column: 1 / -1;
}

.popup-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.popup-card-venue {
    font-weight: 700;
    font-size: var(--text-md);
    line-height: 1.3;
}

.popup-card-meta {
    color: var(--ink-muted);
    font-size: var(--text-sm);
}

.popup-card-more {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--line);
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--mustard-ink);
}

/* Tear-off calendar date, used on both pages */
.date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 5rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.date-block-month {
    width: 100%;
    background-color: var(--mustard);
    color: var(--on-mustard);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding-block: 0.2rem;
}

.date-block-day {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.15;
    padding-top: 0.25rem;
}

.date-block-dow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    padding-bottom: 0.35rem;
}

/* ---------- Menu ---------- */
.menu {
    padding-block: var(--section-y);
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.menu-item {
    display: flex;
    flex-direction: column;
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.menu-item-art {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 13rem;
    padding: 1.5rem 1.5rem 1.25rem;
    background-color: var(--surface-2);
    background-image: radial-gradient(circle at 50% 110%, rgba(249, 168, 37, 0.28), transparent 65%);
}

.menu-item-art svg {
    width: 100%;
    max-width: 15rem;
    height: auto;
}

.menu-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
}

/* Menu-board row: name on the left, dotted leader, price on the right */
.menu-item-head {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.menu-item-head::after {
    content: "";
    order: 1;
    flex: 1;
    border-bottom: 2px dotted var(--line);
    transform: translateY(-0.3em);
}

.menu-item-head .price {
    order: 2;
}

.menu-item h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--text-xl);
    line-height: 1.1;
    text-transform: uppercase;
}

.menu-item p {
    color: var(--ink-muted);
}

.addons {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 2px dashed var(--line);
    border-radius: var(--radius);
}

.addons h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--text-lg);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.addons ul {
    display: grid;
    gap: 1rem 2.5rem;
}

@media (min-width: 768px) {
    .addons ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.addons li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.addons h4 {
    font-weight: 700;
    font-size: var(--text-md);
}

.addons p {
    color: var(--ink-muted);
    font-size: var(--text-sm);
}

.addons .price {
    font-size: var(--text-md);
}

.menu-tax-note {
    margin-top: 1.25rem;
    font-size: var(--text-sm);
    color: var(--ink-muted);
}

/* ---------- About ---------- */
.about {
    padding-block: var(--section-y);
    background-color: var(--surface);
    border-top: 1px solid var(--line);
}

.about .container {
    display: grid;
    gap: 1rem;
}

@media (min-width: 900px) {
    .about .container {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
        gap: 4rem;
        align-items: start;
    }
}

.about p {
    font-size: var(--text-md);
    color: var(--ink-muted);
    max-width: 40rem;
}

.about strong {
    color: var(--ink);
}

/* ---------- Footer ---------- */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-ink);
    padding-block: 3rem;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

footer h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--text-lg);
    text-transform: uppercase;
}

.footer-hours {
    font-weight: 700;
    color: var(--mustard);
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--footer-muted);
}

.footer-social a {
    color: var(--mustard);
    transition: opacity 0.2s;
}

.footer-social a:hover {
    opacity: 0.8;
}

.footer-social svg {
    width: 1.5rem;
    height: 1.5rem;
}

.footer-copyright {
    margin-top: 1rem;
    font-size: var(--text-sm);
    color: var(--footer-muted);
}

/* ---------- Event page ---------- */
.event-hero {
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
    background-color: var(--surface);
    border-bottom: 1px solid var(--line);
}

.event-hero .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-back {
    align-self: flex-start;
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--mustard-ink);
    text-decoration: none;
}

.event-back:hover {
    text-decoration: underline;
}

.event-hero h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
}

.event-subtitle {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--ink-muted);
}

.event-facts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem 1.5rem;
    align-items: center;
    margin-top: 1rem;
}

@media (min-width: 720px) {
    .event-facts {
        grid-template-columns: auto repeat(3, minmax(0, 1fr));
    }
}

.event-fact {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-left: 1rem;
    border-left: 1px solid var(--line);
}

.event-fact-value {
    font-weight: 700;
}

@media (max-width: 719px) {
    .event-fact {
        grid-column: 1 / -1;
    }

    .event-facts .date-block + .event-fact {
        grid-column: 2;
    }
}

.event-body {
    padding-block: var(--section-y);
}

.event-body .container > * {
    max-width: 52rem;
}

.event-body .container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.event-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-section h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--text-xl);
    line-height: 1.15;
    text-transform: uppercase;
}

.event-section p,
.event-section li {
    color: var(--ink-muted);
}

.event-section strong {
    color: var(--ink);
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-list li {
    padding-left: 1.25rem;
    position: relative;
}

.event-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--mustard);
}

/* Our stall: the one card on the page */
.event-stall {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 1.5rem;
    align-items: start;
    padding: 1.5rem;
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.event-stall-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: var(--mustard);
    color: var(--on-mustard);
    text-align: center;
}

.event-stall-number span:first-child {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.event-stall-number span:last-child {
    font-family: var(--font-display);
    font-size: 1.75rem;
    line-height: 1;
}

.event-stall-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.event-stall h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--text-lg);
    text-transform: uppercase;
}

@media (max-width: 479px) {
    .event-stall {
        grid-template-columns: 1fr;
    }
}

.event-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.event-flyer {
    display: grid;
    gap: 1.5rem;
}

.event-flyer img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.event-note {
    font-size: var(--text-sm);
}

/* ---------- Accessibility ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--mustard);
    color: var(--on-mustard);
    padding: 0.5rem 1rem;
    z-index: 100;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

button:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 3px solid var(--mustard);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .button:hover,
    .popup-card:hover {
        transform: none;
    }
}
