/* Double Beers: shared styles for every page. No external fonts, images or scripts. */

/* Rounded display face for browsers without SF Rounded (Chrome, Firefox, Edge, Windows, Android).
   Safari and iOS render the native ui-rounded face instead (each page preloads this 29 KB file, so it's cached once).
   Nunito (SIL Open Font License 1.1, see /assets/db-rounded-OFL.txt), weights 600-1000, English subset. */
@font-face {
  font-family: "DB Rounded";
  src: url("/assets/db-rounded.woff2") format("woff2");
  font-weight: 600 1000;
  font-style: normal;
  font-display: swap;
  size-adjust: 103%;
}

:root {
  color-scheme: dark;
  --bg: #070504;
  --bg-raised: #0f0b08;
  --card: rgba(235, 225, 205, 0.045);
  --line: rgba(245, 180, 60, 0.2);
  --hair: rgba(235, 225, 205, 0.1);
  --cream: #EBE1CD;
  --cream-hi: #FFF6E4;
  --muted: rgba(235, 225, 205, 0.72);
  --gold: #F5B43C;
  --gold-hi: #FFD07A;
  --gold-deep: #C9821C;
  --ink: #1A1206;
  --round: ui-rounded, "SF Pro Rounded", "DB Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 48px);
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--cream);
  font: 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.gold { color: var(--gold); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--gold); color: var(--ink);
  font: 700 15px/1 var(--round); text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: 12px; color: var(--ink); }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 5, 4, 0.66);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--hair); background: rgba(7, 5, 4, 0.82); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; padding-top: env(safe-area-inset-top); }
.brand {
  display: inline-flex; align-items: center; gap: 11px; margin-right: auto;
  color: var(--cream); text-decoration: none; font: 750 18px/1 var(--round); letter-spacing: -0.01em;
}
.brand:hover { color: var(--cream-hi); }
.brand img { width: 34px; height: 34px; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 4px 16px -4px rgba(245, 180, 60, .55); }
.nav-links { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font: 600 15px/1 var(--round); padding: 8px 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--cream-hi); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 28px; border-radius: 999px; border: 0;
  background: linear-gradient(180deg, #FFD887 0%, var(--gold) 48%, #E29A22 100%);
  color: var(--ink); font: 750 18px/1 var(--round); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -2px 0 rgba(120, 66, 0, .22),
    0 0 0 1px rgba(245, 180, 60, .55),
    0 14px 34px -10px rgba(245, 180, 60, .6);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
  cursor: pointer;
}
.btn:hover { color: var(--ink); transform: translateY(-1px); filter: brightness(1.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(120, 66, 0, .22), 0 0 0 1px rgba(245, 180, 60, .7), 0 18px 44px -10px rgba(245, 180, 60, .75); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { padding: 11px 18px; font-size: 15px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 0 1px rgba(245, 180, 60, .5), 0 8px 22px -10px rgba(245, 180, 60, .7); }
.btn-ghost {
  background: rgba(235, 225, 205, .06); color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(235, 225, 205, .22);
}
.btn-ghost:hover { color: var(--cream-hi); background: rgba(235, 225, 205, .1); box-shadow: inset 0 0 0 1px rgba(235, 225, 205, .4); filter: none; }

/* App Store badge slot: hidden until the app is live (see the comment next to each slot). */
.appstore-badge { display: inline-flex; align-items: center; }
.appstore-badge img { height: 54px; width: auto; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  color: var(--gold); font: 700 13px/1 var(--round); letter-spacing: .16em; text-transform: uppercase;
}
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 12px; border-radius: 999px;
  background: rgba(245, 180, 60, .09); box-shadow: inset 0 0 0 1px rgba(245, 180, 60, .28);
  color: var(--cream); font: 650 14px/1 var(--round); letter-spacing: .01em;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px 1px rgba(245, 180, 60, .8); }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--hair); padding: 44px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14.5px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; padding: 0; list-style: none; }
.foot-links a { color: var(--cream); text-decoration: none; font: 600 15px/1.2 var(--round); }
.foot-links a:hover { color: var(--gold); }
.foot-note { margin: 26px 0 0; max-width: 760px; line-height: 1.55; }
.foot-legal { margin: 10px 0 0; font-size: 13px; color: rgba(235, 225, 205, .62); }

@media (max-width: 760px) {
  .nav { gap: 14px; height: 60px; }
  .nav-links { display: none; }
  .brand { font-size: 17px; gap: 10px; }
  .brand img { width: 32px; height: 32px; }
  .btn-sm { padding: 10px 15px; font-size: 14.5px; }
}

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