/* Caffery's 2026 — design tokens */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- Palette: Warm (default) ---- */
  --cream: oklch(0.972 0.015 80);
  --cream-2: oklch(0.945 0.02 80);
  --ink: oklch(0.18 0.012 60);
  --ink-2: oklch(0.30 0.012 60);
  --ink-3: oklch(0.55 0.012 60);
  --line: oklch(0.88 0.012 80);

  --coral: oklch(0.72 0.18 30);
  --lilac: oklch(0.78 0.12 310);
  --lime: oklch(0.86 0.18 120);

  /* semantic */
  --bg: var(--cream);
  --bg-2: var(--cream-2);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --accent: var(--coral);
  --accent-2: var(--lilac);

  /* type */
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* scale */
  --step--1: clamp(0.75rem, 0.73rem + 0.1vw, 0.8rem);
  --step-0:  clamp(0.92rem, 0.9rem + 0.1vw, 1rem);
  --step-1:  clamp(1.05rem, 1rem + 0.2vw, 1.18rem);
  --step-2:  clamp(1.3rem, 1.2rem + 0.6vw, 1.65rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.2vw, 2.4rem);
  --step-4:  clamp(2.25rem, 1.8rem + 2.2vw, 3.5rem);
  --step-5:  clamp(3rem, 2.2rem + 4vw, 5rem);
  --step-6:  clamp(4rem, 3rem + 5.5vw, 7rem);

  /* radii */
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  --maxw: 1440px;
  --gutter: clamp(20px, 3vw, 48px);

  --shadow-sm: 0 1px 2px oklch(0.18 0.012 60 / 0.06), 0 2px 6px oklch(0.18 0.012 60 / 0.04);
  --shadow-md: 0 6px 24px oklch(0.18 0.012 60 / 0.08);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---- Palette: Cool ---- */
[data-palette="cool"] {
  --cream: oklch(0.965 0.008 230);
  --cream-2: oklch(0.93 0.012 230);
  --ink: oklch(0.17 0.02 260);
  --ink-2: oklch(0.28 0.02 260);
  --ink-3: oklch(0.52 0.02 260);
  --line: oklch(0.86 0.012 230);
  --coral: oklch(0.72 0.16 220);
  --lilac: oklch(0.78 0.12 290);
  --lime: oklch(0.85 0.14 180);
}

/* ---- Palette: Bold ---- */
[data-palette="bold"] {
  --cream: oklch(0.98 0.005 100);
  --cream-2: oklch(0.94 0.01 100);
  --ink: oklch(0.15 0.02 260);
  --ink-2: oklch(0.25 0.02 260);
  --ink-3: oklch(0.5 0.02 260);
  --line: oklch(0.88 0.008 100);
  --coral: oklch(0.68 0.22 25);
  --lilac: oklch(0.70 0.19 295);
  --lime: oklch(0.88 0.19 115);
}

/* ---- Palette: Mono + lime ---- */
[data-palette="mono"] {
  --cream: oklch(0.97 0.002 100);
  --cream-2: oklch(0.92 0.004 100);
  --ink: oklch(0.14 0 0);
  --ink-2: oklch(0.28 0 0);
  --ink-3: oklch(0.52 0 0);
  --line: oklch(0.86 0.002 100);
  --coral: oklch(0.86 0.18 120);
  --lilac: oklch(0.14 0 0);
  --lime: oklch(0.86 0.18 120);
}

/* ---- Palette: Dark ---- */
[data-palette="dark"] {
  --cream: oklch(0.15 0.012 60);
  --cream-2: oklch(0.21 0.012 60);
  --ink: oklch(0.97 0.015 80);
  --ink-2: oklch(0.88 0.015 80);
  --ink-3: oklch(0.65 0.015 80);
  --line: oklch(0.28 0.012 60);
  --coral: oklch(0.78 0.18 30);
  --lilac: oklch(0.82 0.14 310);
  --lime: oklch(0.88 0.18 120);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  font-size: var(--step-0);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}
.display {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}
.display-xl { font-size: var(--step-6); }
.display-lg { font-size: var(--step-5); }
.display-md { font-size: var(--step-4); }
.display-sm { font-size: var(--step-3); }

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

/* ---------- Components ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.btn .arrow { width: 16px; height: 16px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  background: var(--bg);
  color: var(--fg-2);
}
.chip-solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }

.tag-n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

/* Image placeholder: subtle stripes + mono caption */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      45deg,
      var(--cream-2) 0 12px,
      var(--bg) 12px 24px
    );
  border-radius: var(--r-md);
  overflow: hidden;
  color: var(--fg-2);
  display: grid;
  place-items: center;
}
.ph-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: var(--r-pill);
  color: var(--fg-2);
}
.ph-dark {
  background:
    repeating-linear-gradient(
      45deg,
      oklch(0.25 0.012 60) 0 12px,
      var(--ink) 12px 24px
    );
  color: var(--bg);
}
.ph-dark .ph-label { background: var(--ink); color: var(--bg); border-color: var(--ink-2); }

.ph-accent {
  background:
    repeating-linear-gradient(
      45deg,
      oklch(from var(--accent) calc(l - 0.08) c h) 0 12px,
      var(--accent) 12px 24px
    );
}

/* Marquee */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  gap: var(--s-6);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex;
  gap: var(--s-6);
  align-items: center;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.marquee-track.reverse { animation-direction: reverse; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); display: inline-block;
  flex: none;
}

/* ===== Site header — utility bar + nav + drawers ===== */
.site-header { position: sticky; top: 0; z-index: 40; }

/* --- Utility bar (announcement ticker) --- */
.util {
  background: var(--ink);
  color: var(--bg);
  border-bottom: 1px solid oklch(from var(--ink) calc(l + 0.08) c h);
}
.util-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-5);
  align-items: center;
  height: 38px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.util-left { display: flex; align-items: center; gap: var(--s-5); min-width: 0; overflow: hidden; }
.util-live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px;
  border: 1px solid oklch(from var(--bg) l c h / 0.25);
  border-radius: var(--r-pill);
  font-size: 10px; letter-spacing: 0.12em;
  color: var(--bg); flex: none;
}
.util-live .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 var(--coral);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 oklch(from var(--coral) l c h / 0.6); }
  70%  { box-shadow: 0 0 0 8px oklch(from var(--coral) l c h / 0); }
  100% { box-shadow: 0 0 0 0 oklch(from var(--coral) l c h / 0); }
}
.ticker {
  overflow: hidden;
  min-width: 0;
  flex: 1;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.ticker-track {
  display: inline-flex;
  gap: 40px;
  align-items: center;
  animation: tk 55s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes tk {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tk-item {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--bg); text-decoration: none; opacity: 0.9;
  transition: opacity .2s var(--ease);
}
.tk-item:hover { opacity: 1; }
.tk-badge {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 10px; line-height: 1;
  background: var(--coral); color: var(--ink);
  flex: none;
}
.tk-item[data-kind="merch"]    .tk-badge { background: var(--lilac); }
.tk-item[data-kind="alert"]    .tk-badge { background: var(--bg); color: var(--ink); }
.tk-item[data-kind="schedule"] .tk-badge { background: var(--coral); }
.tk-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  opacity: 0.7;
}
.tk-text { color: var(--bg); font-family: var(--sans); font-size: 13px; letter-spacing: -0.005em; }

.util-right { display: flex; gap: 18px; align-items: center; flex: none; }
.util-right a {
  color: var(--bg); opacity: 0.75;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px;
  transition: opacity .2s var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.util-right a:hover { opacity: 1; }
.al-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--coral);
  display: inline-block; margin-left: 2px;
  animation: pulse 1.8s infinite;
}

/* --- Main nav --- */
.nav {
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-6);
  align-items: center;
  padding: 14px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav-links { display: flex; justify-content: center; gap: 2px; align-items: center; flex-wrap: wrap; }
.nav-actions { display: flex; gap: 8px; align-items: center; }

.nav a.navlink {
  font-size: 14px;
  color: var(--fg-2);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav a.navlink:hover { background: var(--cream-2); color: var(--fg); }
.nav a.navlink.active { background: var(--ink); color: var(--bg); }

.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.icon-btn:hover { background: var(--cream-2); border-color: var(--ink-3); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot-badge {
  position: absolute; top: 7px; right: 7px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 2px var(--bg);
}

/* --- Drawers (alerts + shop) --- */
.scrim {
  position: fixed; inset: 0;
  background: oklch(from var(--ink) l c h / 0.4);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
  z-index: 45;
}
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(480px, 92vw);
  background: var(--bg);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  z-index: 50;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.drawer.open { transform: translateX(0) !important; }
.drawer-inner {
  display: flex; flex-direction: column;
  height: 100%;
}
.drawer-head {
  padding: var(--s-6) var(--s-6) var(--s-5);
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 {
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 6px 0 0;
  line-height: 1.1;
  max-width: 18ch;
}
.drawer-head .close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  font-size: 14px; color: var(--fg);
}
.drawer-head .close:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.drawer-foot {
  padding: var(--s-5) var(--s-6);
  border-top: 1px solid var(--line);
  display: flex; gap: var(--s-3); justify-content: space-between; align-items: center;
  background: var(--cream-2);
}

/* Alerts list */
.al-list {
  flex: 1; overflow-y: auto;
  padding: var(--s-3) 0;
}
.al-item {
  display: block;
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--line);
  transition: background .15s var(--ease);
}
.al-item:hover { background: var(--cream-2); }
.al-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.al-tag {
  background: var(--ink); color: var(--bg);
  padding: 3px 8px; border-radius: var(--r-pill);
  font-size: 10px;
}
.al-item:nth-child(1) .al-tag { background: var(--coral); color: var(--ink); }
.al-item:nth-child(4) .al-tag { background: var(--lilac); color: var(--ink); }
.al-when { color: var(--fg-3); }
.al-title {
  font-size: var(--step-1); font-weight: 500;
  letter-spacing: -0.015em; line-height: 1.25;
  color: var(--fg);
  margin-bottom: 6px;
}
.al-body { font-size: 14px; color: var(--fg-2); line-height: 1.45; }

/* Shop grid */
.sp-grid {
  flex: 1; overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
}
.sp-item { display: flex; flex-direction: column; gap: 8px; }
.sp-ph {
  aspect-ratio: 1/1;
  background:
    repeating-linear-gradient(45deg, var(--cream-2) 0 10px, var(--bg) 10px 20px);
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.sp-item:nth-child(1) .sp-ph { background: var(--cream-2); }
.sp-item:nth-child(2) .sp-ph { background: var(--ink); }
.sp-item:nth-child(3) .sp-ph { background: var(--coral); }
.sp-item:nth-child(4) .sp-ph { background: var(--lilac); }
.sp-item:nth-child(5) .sp-ph { background: var(--cream-2); border-color: var(--ink-3); }
.sp-name { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.sp-meta {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Mobile — hide ticker label on small screens */
@media (max-width: 900px) {
  .util-live { display: none; }
  .util-right a:not([data-open="alerts"]) { display: none; }
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr; }
}

.logo {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo .dot { width: 12px; height: 12px; }

/* Input */
.input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: 15px;
  background: var(--bg);
  color: var(--fg);
}
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

/* Section */
section { padding: var(--s-8) 0; }
.section-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-7);
  border-top: 1px solid var(--ink);
  padding-top: var(--s-4);
}
.section-label h2 {
  font-size: var(--step-3);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  max-width: 24ch;
}

/* Utility */
.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { scrollbar-width: none; }

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Footer */
footer.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: var(--s-9) 0 var(--s-6);
  margin-top: var(--s-10);
}
footer.site-footer .huge {
  font-weight: 600;
  letter-spacing: -0.025em;
  font-size: var(--step-4);
  line-height: 1;
}
footer.site-footer a { color: var(--bg); opacity: 0.8; }
footer.site-footer a:hover { opacity: 1; color: var(--accent); }

/* Tweaks panel */
.tweaks-fab, .tweaks-panel { position: fixed; z-index: 50; font-family: var(--sans); }
.tweaks-panel {
  right: 20px; bottom: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-md);
  min-width: 240px;
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 { margin: 0 0 10px; font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-3); }
.tweaks-panel .row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tweaks-panel button.opt {
  padding: 6px 10px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--bg); color: var(--fg-2); font-size: 12px; cursor: pointer;
}
.tweaks-panel button.opt.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
