/* ==========================================================================
   HANBURG QR MENU — Official Brand Logo Tokens (Dark Mode Only)
   - Jet Black:       #0A0908 / #0B0908
   - Hanburg Gold:    #FFB800 / #FFD23F
   - Bull Tangerine:  #F06A00 / #FF7A14
   - Sticker White:   #FFFFFF / #FFF9F0
   - Studio Espresso: #14110E / #1E1813
   ========================================================================== */

:root {
  /* Core Brand Logo Colors */
  --brand-gold: #FFB800;
  --brand-gold-bright: #FFD23F;
  --brand-orange: #F06A00;
  --brand-orange-deep: #CC5200;
  --brand-black: #0A0908;
  --brand-white: #FFFFFF;

  /* Dark Mode Surfaces */
  --bg-canvas: #0B0908;
  --bg-surface: #14110E;
  --bg-surface-elevated: #1E1813;
  --bg-surface-hover: #282018;
  --bg-glass: rgba(11, 9, 8, 0.92);
  --bg-scrim: rgba(5, 4, 3, 0.8);

  /* Branded Frame Borders & Rings */
  --border-subtle: rgba(255, 184, 0, 0.16);
  --border-strong: rgba(255, 184, 0, 0.34);
  --border-accent: #FFB800;
  --frame-ring: rgba(255, 184, 0, 0.38);
  --frame-ring-hover: #FFB800;
  --frame-glow: 0 0 0 1px rgba(255, 184, 0, 0.45), 0 12px 32px -10px rgba(240, 106, 0, 0.38);

  /* Typography Colors */
  --text-primary: #FFF9F0;
  --text-secondary: #D4C5B3;
  --text-muted: #9A8B7A;
  --text-on-accent: #0A0908;

  /* Semantic Accents */
  --accent-primary: #FFB800;
  --accent-primary-hover: #FFD23F;
  --accent-ember: #F06A00;
  --accent-ember-soft: rgba(240, 106, 0, 0.18);
  --accent-herb: #4BB56B;
  --accent-herb-soft: rgba(75, 181, 107, 0.16);
  --accent-soft: rgba(255, 184, 0, 0.15);
  --accent-gradient: linear-gradient(135deg, #FFD23F 0%, #FFB800 50%, #F06A00 100%);

  /* Typography */
  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  /* Fluid Type Scale */
  --text-xs: clamp(0.7rem, 0.66rem + 0.18vw, 0.78rem);
  --text-sm: clamp(0.8rem, 0.76rem + 0.2vw, 0.88rem);
  --text-base: clamp(0.9rem, 0.86rem + 0.22vw, 1rem);
  --text-lg: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  --text-xl: clamp(1.22rem, 1.1rem + 0.6vw, 1.58rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.2rem);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.42);
  --shadow-card: 0 12px 30px -12px rgba(0, 0, 0, 0.72);
  --shadow-float: 0 20px 44px -10px rgba(0, 0, 0, 0.86);
  --shadow-glow: 0 8px 28px -6px rgba(255, 184, 0, 0.42);

  /* Layout Dimensions */
  --header-h: 64px;
  --sticky-top: var(--header-h);
  --sidebar-w: 274px;
  --tray-w: 374px;
  --fold-hinge-w: 24px;
  --fold-hinge-h: 22px;

  /* Safe Areas */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur-med: 260ms;
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 184, 0, 0.28);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-gold);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
