/* ===================================================================
   TC BEST — Design System
   A premium "Best Of" voting experience for the Tri-Cities.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700;9..144,800;9..144,900&family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Brand palette — Columbia River + Wine Country + Desert Sun */
  --ink:           #0E1B2C;   /* near-black river */
  --ink-2:         #1A2B40;
  --ink-3:         #2A3E58;
  --slate:         #4A5A75;
  --slate-2:       #6B7A92;
  --muted:         #A3ADBF;
  --line:          #E5E2DA;
  --paper:         #FAF7F1;   /* warm cream */
  --paper-2:       #F3EFE6;
  --paper-3:       #ECE6D8;
  --white:         #FFFFFF;

  --wine:          #7C2D3F;   /* regional wine */
  --wine-2:        #9B3A4F;
  --wine-glow:     rgba(124, 45, 63, 0.12);

  --coral:         #FF6B47;   /* desert sunset */
  --coral-2:       #FF8866;
  --amber:         #E8B547;   /* wheat field */
  --amber-2:       #F5C76A;
  --sage:          #8FA68E;   /* vineyard */
  --teal:          #2D6E7E;   /* river */

  --success:       #2E8B57;
  --danger:        #C2453D;
  --warning:       #E8A33D;

  /* Type scale (clamp = fluid) — calmer scale, less dramatic at the top end */
  --fs-xs:    clamp(0.72rem, 0.7rem + 0.1vw, 0.76rem);
  --fs-sm:    clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --fs-base:  clamp(0.94rem, 0.9rem + 0.15vw, 1rem);
  --fs-md:    clamp(1.02rem, 0.98rem + 0.2vw, 1.14rem);
  --fs-lg:    clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --fs-xl:    clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --fs-2xl:   clamp(2rem, 1.5rem + 2vw, 3rem);
  --fs-3xl:   clamp(2.6rem, 1.8rem + 3vw, 4.2rem);
  --fs-hero:  clamp(3rem, 2rem + 4.5vw, 6rem);

  /* Spacing — generous, with more options at the top end */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4.5rem;
  --sp-9: 7rem;  --sp-10: 10rem;

  /* Radii */
  --r-sm: 6px; --r-md: 12px; --r-lg: 18px; --r-xl: 28px; --r-2xl: 40px; --r-pill: 999px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(14, 27, 44, 0.04), 0 1px 4px rgba(14, 27, 44, 0.06);
  --sh-2: 0 4px 16px rgba(14, 27, 44, 0.08), 0 2px 6px rgba(14, 27, 44, 0.04);
  --sh-3: 0 14px 40px rgba(14, 27, 44, 0.12), 0 4px 14px rgba(14, 27, 44, 0.06);
  --sh-4: 0 30px 80px rgba(14, 27, 44, 0.18), 0 8px 24px rgba(14, 27, 44, 0.08);
  --sh-glow-coral: 0 10px 40px rgba(255, 107, 71, 0.30);
  --sh-glow-wine:  0 10px 40px rgba(124, 45, 63, 0.30);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur-1: 160ms; --dur-2: 280ms; --dur-3: 480ms; --dur-4: 720ms;

  /* Layout */
  --container: 1280px;
  --container-wide: 1480px;
  --nav-h: 76px;

  /* Fonts */
  --ff-display: 'Fraunces', 'Georgia', serif;
  --ff-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* Dark mode (auto + .dark override) */
.dark, [data-theme="dark"] {
  --paper:   #0E1623;
  --paper-2: #131F30;
  --paper-3: #1B2A3F;
  --white:   #182434;
  --ink:     #F2EFE6;
  --ink-2:   #DDD6C5;
  --ink-3:   #B7B0A2;
  --slate:   #8B95A7;
  --slate-2: #6E788B;
  --muted:   #5C6478;
  --line:    #233247;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--coral); color: var(--paper); }

html, body { height: 100%; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { object-fit: cover; }

a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* ===================== TYPOGRAPHY ===================== */
.t-eyebrow {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 600;
  color: var(--slate);
}
.t-eyebrow.on-dark { color: rgba(255,255,255,.7); }
.t-eyebrow .dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--coral); border-radius: 50%;
  margin-right: .6rem; vertical-align: middle;
  animation: pulse 2s var(--ease) infinite;
}

h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--ink);
}
h1 { font-size: var(--fs-3xl); font-weight: 500; }
h2 { font-size: var(--fs-2xl); font-weight: 500; }
h3 { font-size: var(--fs-xl); font-weight: 500; }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); font-weight: 600; }

.display { font-family: var(--ff-display); font-weight: 400; }
.display em { font-style: italic; font-variation-settings: 'opsz' 144; color: var(--wine); }
.display .italic-coral { font-style: italic; color: var(--coral); font-weight: 500; }
.script { font-style: italic; font-weight: 300; font-variation-settings: 'opsz' 144; }

.body-lg { font-size: var(--fs-md); line-height: 1.6; color: var(--slate); }
.body-sm { font-size: var(--fs-sm); color: var(--slate); }
.mono { font-family: var(--ff-mono); font-size: .85em; letter-spacing: -0.02em; }

/* ===================== LAYOUT ===================== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-5); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--sp-5); }
.section { padding: var(--sp-9) 0; }
.section-sm { padding: var(--sp-7) 0; }
.section-lg { padding: var(--sp-10) 0; }

.grid { display: grid; gap: var(--sp-5); }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--sp-2); } .gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); } .gap-5 { gap: var(--sp-5); } .gap-6 { gap: var(--sp-6); }
.text-center { text-align: center; }
.text-muted { color: var(--slate); }
.text-coral { color: var(--coral); }
.text-wine { color: var(--wine); }

/* ===================== NAVIGATION ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(250, 247, 241, 0.95); }
.dark .nav { background: rgba(14, 22, 35, 0.78); }
.dark .nav.scrolled { background: rgba(14, 22, 35, 0.95); }

.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--sp-5);
}
.brand {
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--ff-display); font-size: 1.5rem; font-weight: 500;
  color: var(--ink); letter-spacing: -0.02em;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 1rem; font-weight: 700;
  font-style: italic;
  position: relative; overflow: hidden;
}
.brand-mark::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, var(--coral) 100%);
  opacity: .85;
}
.brand-mark span { position: relative; z-index: 2; }
.brand-sub { font-size: .68rem; letter-spacing: .14em; color: var(--slate); text-transform: uppercase; font-family: var(--ff-body); display: block; line-height: 1; margin-top: 2px; font-weight: 500; }
.brand-block { display: flex; flex-direction: column; line-height: 1; }
.brand-block .main { font-family: var(--ff-display); font-size: 1.4rem; font-weight: 500; letter-spacing: -.02em; }

.nav-links { display: flex; align-items: center; gap: .4rem; }
.nav-link {
  padding: .55rem .95rem; border-radius: var(--r-pill);
  font-size: .92rem; font-weight: 500;
  color: var(--ink-3); transition: all var(--dur-1) var(--ease);
  position: relative;
}
.nav-link:hover { color: var(--ink); background: var(--paper-2); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--coral);
}

.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-search {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .9rem; border-radius: var(--r-pill);
  background: var(--paper-2); color: var(--slate);
  font-size: .85rem; transition: all var(--dur-1) var(--ease);
  border: 1px solid transparent;
}
.nav-search:hover { background: var(--white); border-color: var(--line); }
.nav-search kbd {
  font-family: var(--ff-mono); font-size: .7rem;
  background: var(--white); padding: 1px 6px; border-radius: 4px;
  border: 1px solid var(--line); color: var(--slate);
}

.nav-burger {
  display: none; width: 40px; height: 40px;
  border-radius: var(--r-md);
  align-items: center; justify-content: center;
  background: var(--paper-2);
}
.nav-burger span {
  width: 18px; height: 1.5px; background: var(--ink);
  display: block; position: relative;
}
.nav-burger span::before, .nav-burger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink);
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-search { display: none; }
  .nav-burger { display: flex; }
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem;
  font-size: .92rem; font-weight: 600;
  border-radius: var(--r-pill);
  transition: all var(--dur-2) var(--ease);
  white-space: nowrap; cursor: pointer;
  position: relative; overflow: hidden;
  letter-spacing: -0.01em;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--coral); box-shadow: var(--sh-glow-coral); transform: translateY(-1px); }

.btn-coral { background: var(--coral); color: var(--white); }
.btn-coral:hover { background: var(--wine); box-shadow: var(--sh-glow-wine); transform: translateY(-1px); }

.btn-wine { background: var(--wine); color: var(--paper); }
.btn-wine:hover { background: var(--ink); box-shadow: var(--sh-3); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.btn-light { background: var(--white); color: var(--ink); box-shadow: var(--sh-1); }
.btn-light:hover { box-shadow: var(--sh-3); transform: translateY(-1px); }

.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { padding: .7rem; }

/* ===================== HERO ===================== */
.hero {
  position: relative; overflow: hidden;
  padding: var(--sp-9) 0 var(--sp-10);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(255,107,71,.10), transparent 60%),
    radial-gradient(700px 400px at 5% 90%, rgba(124,45,63,.08), transparent 60%),
    var(--paper);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: .25; pointer-events: none;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 60%, transparent 100%);
}

.hero-inner {
  max-width: var(--container-wide); margin: 0 auto;
  padding: 0 var(--sp-5); position: relative; z-index: 2;
}
.hero-title {
  font-family: var(--ff-display);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -0.04em;
  max-width: 16ch;
  margin: var(--sp-5) 0 var(--sp-5);
}
.hero-title em {
  font-style: italic; color: var(--wine);
  font-variation-settings: 'opsz' 144;
}
.hero-title .badge-of {
  display: inline-block; padding: .1em .35em;
  background: var(--coral); color: var(--white);
  border-radius: 16px; font-style: italic;
  font-weight: 500; transform: rotate(-2deg);
  margin: 0 .1em;
}
.hero-sub {
  font-size: var(--fs-md); max-width: 50ch;
  color: var(--slate); line-height: 1.55; font-weight: 400;
}
.hero-cta { margin-top: var(--sp-6); display: flex; gap: .8rem; flex-wrap: wrap; }

.hero-stats {
  margin-top: var(--sp-8); display: grid;
  grid-template-columns: repeat(4, 1fr); gap: var(--sp-5);
  padding-top: var(--sp-6); border-top: 1px solid var(--line);
}
.stat-num {
  font-family: var(--ff-display); font-size: clamp(2rem, 1.4rem + 1.5vw, 3rem);
  font-weight: 500; line-height: 1; color: var(--ink);
  letter-spacing: -0.03em;
}
.stat-num sup { font-size: .55em; color: var(--coral); vertical-align: super; font-weight: 500; }
.stat-label {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--slate); margin-top: .3rem; font-weight: 500;
}

/* Hero decorative card stack */
.hero-cards {
  position: absolute; right: -40px; top: 0;
  width: 46%; height: 100%; pointer-events: none;
  display: none;
}
@media (min-width: 1100px) { .hero-cards { display: block; } }

.hero-card-mini {
  position: absolute; border-radius: var(--r-lg);
  background: var(--white); box-shadow: var(--sh-3);
  padding: var(--sp-4); width: 240px;
  transform-origin: center;
}
.hero-card-mini.c1 { top: 12%; right: 8%; transform: rotate(4deg); width: 270px; }
.hero-card-mini.c2 { top: 38%; right: 28%; transform: rotate(-3deg); width: 230px; }
.hero-card-mini.c3 { top: 62%; right: 6%; transform: rotate(2deg); width: 260px; }

.hcm-img {
  width: 100%; aspect-ratio: 16/10; border-radius: var(--r-md);
  margin-bottom: var(--sp-3); background: var(--paper-3);
}
.hcm-title { font-family: var(--ff-display); font-size: 1.1rem; font-weight: 500; }
.hcm-row { display: flex; justify-content: space-between; align-items: center; margin-top: .5rem; font-size: .78rem; color: var(--slate); }

.hero-deadline {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .5rem .95rem .5rem .55rem;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-pill);
  font-size: .85rem; font-weight: 500;
}
.hero-deadline .pill-tag {
  background: var(--coral); color: var(--white);
  padding: .25rem .65rem; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}

/* ===================== COUNTDOWN ===================== */
.countdown { display: inline-flex; gap: .5rem; align-items: baseline; font-family: var(--ff-mono); font-weight: 500; }
.countdown .cd-num { font-family: var(--ff-display); font-size: 1.1em; font-weight: 600; color: var(--paper); }

/* ===================== CATEGORY GRID (homepage) ===================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-4);
}
.cat-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); padding: var(--sp-6);
  background: var(--white); border: 1px solid var(--line);
  transition: all var(--dur-3) var(--ease);
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 220px;
  text-decoration: none; color: var(--ink);
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
  border-color: transparent;
}
.cat-card.size-lg { grid-column: span 6; min-height: 320px; }
.cat-card.size-md { grid-column: span 4; min-height: 260px; }
.cat-card.size-sm { grid-column: span 3; min-height: 220px; }
.cat-card.size-xl { grid-column: span 8; min-height: 360px; }

@media (max-width: 1100px) {
  .cat-card.size-lg, .cat-card.size-xl { grid-column: span 12; }
  .cat-card.size-md { grid-column: span 6; }
  .cat-card.size-sm { grid-column: span 6; }
}
@media (max-width: 640px) {
  .cat-card { grid-column: span 12 !important; }
}

.cat-card .cat-num {
  font-family: var(--ff-mono); font-size: .8rem;
  color: var(--slate); letter-spacing: 0;
}
.cat-card .cat-title {
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 1.2rem + 1vw, 2.3rem);
  line-height: 1; font-weight: 500;
  margin-top: var(--sp-2); letter-spacing: -0.02em;
}
.cat-card .cat-title em { font-style: italic; color: var(--wine); }
.cat-card .cat-meta {
  margin-top: var(--sp-3); display: flex; justify-content: space-between;
  align-items: end; gap: var(--sp-3);
  font-size: .85rem; color: var(--slate);
}
.cat-card .cat-meta strong { color: var(--ink); font-weight: 600; }
.cat-card .cat-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--paper-2); display: grid; place-items: center;
  transition: all var(--dur-2) var(--ease);
}
.cat-card:hover .cat-arrow {
  background: var(--ink); color: var(--paper);
  transform: rotate(-45deg) scale(1.05);
}
.cat-card .cat-bg {
  position: absolute; inset: 0; opacity: .06;
  font-family: var(--ff-display); font-size: 16rem;
  line-height: 1; pointer-events: none;
  display: grid; place-items: end center;
  font-weight: 800; color: var(--ink);
  overflow: hidden;
}
.cat-card .cat-thumbnails {
  display: flex; gap: -8px; margin-top: var(--sp-3);
}
.cat-thumb {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--white); background: var(--paper-3);
  margin-left: -10px;
}
.cat-thumb:first-child { margin-left: 0; }

.cat-card[data-accent="coral"]:hover { background: linear-gradient(135deg, #FFF1EC 0%, var(--white) 100%); }
.cat-card[data-accent="wine"]:hover { background: linear-gradient(135deg, #FAEEF1 0%, var(--white) 100%); }
.cat-card[data-accent="teal"]:hover { background: linear-gradient(135deg, #EAF3F5 0%, var(--white) 100%); }
.cat-card[data-accent="amber"]:hover { background: linear-gradient(135deg, #FBF3DE 0%, var(--white) 100%); }
.cat-card[data-accent="sage"]:hover { background: linear-gradient(135deg, #EEF2EE 0%, var(--white) 100%); }

/* ===================== NOMINEE / BUSINESS CARDS ===================== */
.nominee-grid {
  display: grid; gap: var(--sp-5);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.nominee {
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all var(--dur-2) var(--ease);
  display: flex; flex-direction: column;
}
.nominee:hover { box-shadow: var(--sh-3); transform: translateY(-3px); }
.nominee-img {
  aspect-ratio: 4/3; background: var(--paper-3);
  position: relative; overflow: hidden;
}
.nominee-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease); }
.nominee:hover .nominee-img img { transform: scale(1.06); }
.nominee-tag {
  position: absolute; top: var(--sp-3); left: var(--sp-3);
  padding: .3rem .7rem; border-radius: var(--r-pill);
  background: rgba(14, 27, 44, .8);
  color: var(--paper); backdrop-filter: blur(8px);
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.nominee-body { padding: var(--sp-4); flex: 1; display: flex; flex-direction: column; }
.nominee-body h4 { font-size: 1.18rem; line-height: 1.15; }
.nominee-body .meta { display: flex; gap: var(--sp-3); align-items: center; margin-top: .35rem; color: var(--slate); font-size: .82rem; }
.nominee-body .meta .dot { width: 3px; height: 3px; background: var(--slate); border-radius: 50%; }
.nominee-body p { margin-top: var(--sp-3); color: var(--slate); font-size: .9rem; line-height: 1.5; flex: 1; }
.nominee-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.nominee-vote {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .88rem; color: var(--ink);
  background: var(--white); padding: .5rem .85rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); transition: all var(--dur-2) var(--ease);
}
.nominee-vote:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nominee-vote.voted { background: var(--coral); color: var(--white); border-color: var(--coral); }
.nominee-stats { font-size: .8rem; color: var(--slate); font-family: var(--ff-mono); }

/* ===================== BADGES ===================== */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  padding: .25rem .65rem; border-radius: var(--r-pill);
  background: var(--paper-2); color: var(--ink-3);
  text-transform: uppercase;
}
.badge-coral { background: var(--coral); color: var(--white); }
.badge-wine { background: var(--wine); color: var(--paper); }
.badge-ink { background: var(--ink); color: var(--paper); }
.badge-amber { background: var(--amber); color: var(--ink); }
.badge-sage { background: var(--sage); color: var(--ink); }
.badge-success { background: rgba(46, 139, 87, .12); color: var(--success); }
.badge-warning { background: rgba(232, 163, 61, .15); color: #B47A1A; }
.badge-danger { background: rgba(194, 69, 61, .12); color: var(--danger); }
.badge-line { background: transparent; border: 1px solid var(--line); color: var(--slate); }

.badge-winner {
  background: linear-gradient(135deg, var(--amber), var(--coral));
  color: var(--white); padding: .35rem .8rem; font-weight: 700;
  font-family: var(--ff-display); font-style: italic; letter-spacing: 0; text-transform: none;
  box-shadow: var(--sh-glow-coral);
}

/* ===================== CHIPS / FILTERS ===================== */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .45rem .95rem; border-radius: var(--r-pill);
  background: var(--paper-2); color: var(--ink-3);
  font-size: .85rem; font-weight: 500;
  border: 1px solid transparent;
  transition: all var(--dur-1) var(--ease);
}
.chip:hover { background: var(--white); border-color: var(--line); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); }
.chip .count {
  margin-left: .5rem; opacity: .6; font-family: var(--ff-mono); font-size: .8em;
}

/* ===================== SECTION HEADERS ===================== */
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: var(--sp-5); margin-bottom: var(--sp-7);
  flex-wrap: wrap;
}
.section-head h2 { max-width: 18ch; }
.section-head .sec-actions { display: flex; gap: .5rem; }

/* ===================== TICKER / MARQUEE ===================== */
.ticker {
  background: var(--ink); color: var(--paper);
  padding: var(--sp-3) 0; overflow: hidden;
  border-top: 1px solid var(--ink-2); border-bottom: 1px solid var(--ink-2);
}
.ticker-track {
  display: flex; gap: var(--sp-6); white-space: nowrap;
  animation: ticker 50s linear infinite;
  font-family: var(--ff-display); font-size: 1.2rem;
}
.ticker-track span { display: inline-flex; align-items: center; gap: var(--sp-4); }
.ticker-track .dot { width: 6px; height: 6px; background: var(--coral); border-radius: 50%; flex-shrink: 0; }
.ticker-track .star { color: var(--coral); }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--ink); color: var(--paper);
  padding: var(--sp-9) 0 var(--sp-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--sp-6);
}
.footer-brand .brand { color: var(--paper); }
.footer-brand .brand-block .main { color: var(--paper); }
.footer-brand p { margin-top: var(--sp-4); color: rgba(255,255,255,.6); max-width: 36ch; font-size: .9rem; line-height: 1.6; }
.footer h6 { font-family: var(--ff-body); font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; color: rgba(255,255,255,.5); margin-bottom: var(--sp-4); font-weight: 600; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer a { color: rgba(255,255,255,.85); font-size: .92rem; transition: color var(--dur-1) var(--ease); }
.footer a:hover { color: var(--coral); }
.footer-bottom {
  margin-top: var(--sp-8); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-3);
  font-size: .82rem; color: rgba(255,255,255,.5);
}
.footer-bottom a { font-size: .82rem; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: grid; place-items: center;
}
.footer-social a:hover { background: var(--coral); color: var(--white); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===================== TOAST / NOTIFICATION ===================== */
.toast-wrap {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--ink); color: var(--paper);
  padding: .9rem 1.1rem; border-radius: var(--r-md);
  box-shadow: var(--sh-3); font-size: .9rem; font-weight: 500;
  display: flex; align-items: center; gap: .6rem;
  pointer-events: auto;
  animation: toastIn var(--dur-3) var(--ease-out);
  max-width: 360px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.coral { background: var(--coral); }
.toast .toast-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.18); display: grid; place-items: center; flex-shrink: 0;
}

/* ===================== MODAL ===================== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(14, 22, 35, .65);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: var(--sp-5);
  animation: fadeIn var(--dur-2) var(--ease);
}
.modal {
  background: var(--paper); border-radius: var(--r-xl);
  max-width: 480px; width: 100%;
  padding: var(--sp-7);
  position: relative;
  animation: modalIn var(--dur-3) var(--ease-out);
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--paper-2); display: grid; place-items: center;
}
.modal-close:hover { background: var(--line); }

/* ===================== ANIMATIONS ===================== */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .5; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes modalIn { from { transform: translateY(20px) scale(.96); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

[data-reveal] { opacity: 0; transform: translateY(20px); transition: all 800ms var(--ease-out); }
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ===================== UTILITIES ===================== */
.divider { height: 1px; background: var(--line); width: 100%; }
.dot-sep { display: inline-block; width: 3px; height: 3px; background: var(--muted); border-radius: 50%; margin: 0 .5rem; vertical-align: middle; }
.glass {
  background: rgba(250, 247, 241, .8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.4);
}

/* Responsive */
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
  .hero { padding: var(--sp-7) 0 var(--sp-8); }
  .section { padding: var(--sp-7) 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ===================================================================
   QUICK VOTE — persistent floating panel on every page
   =================================================================== */
.qv-tab {
  position: fixed; right: 0; top: 38%;
  z-index: 60;
  display: flex; align-items: center; gap: .55rem;
  padding: .85rem 1.1rem .85rem .95rem;
  background: var(--ink); color: var(--paper);
  border-radius: 14px 0 0 14px;
  box-shadow: -4px 8px 22px rgba(14,27,44,.18);
  cursor: pointer;
  transition: transform 220ms var(--ease-out), background 200ms;
  font-size: .85rem; font-weight: 500;
}
.qv-tab:hover { background: var(--coral); transform: translateX(-3px); }
.qv-tab .icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--coral); color: var(--white);
  display: grid; place-items: center; font-size: .75rem;
  transition: background 200ms;
}
.qv-tab:hover .icon { background: var(--white); color: var(--coral); }
.qv-tab .count-pill {
  background: rgba(255,255,255,.16); padding: .2rem .55rem;
  border-radius: var(--r-pill); font-family: var(--ff-mono);
  font-size: .72rem; font-weight: 600;
}
.qv-tab .label { line-height: 1.1; }
.qv-tab .label .lo { display: block; font-size: .68rem; font-weight: 400; opacity: .6; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 720px) {
  .qv-tab { top: auto; bottom: 16px; right: 16px; border-radius: var(--r-pill); }
  .qv-tab .label .lo { display: none; }
}

.qv-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(14,22,35,.45);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 240ms;
}
.qv-backdrop.open { opacity: 1; pointer-events: auto; }

.qv-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(440px, 96vw);
  z-index: 80;
  background: var(--paper);
  box-shadow: -20px 0 60px rgba(14,22,35,.2);
  transform: translateX(100%);
  transition: transform 340ms var(--ease-out);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.qv-panel.open { transform: translateX(0); }

.qv-head {
  padding: 1.4rem 1.4rem 1rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.qv-head .top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.qv-head .title { font-family: var(--ff-display); font-size: 1.15rem; font-weight: 500; letter-spacing: -0.015em; }
.qv-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--paper-2); display: grid; place-items: center;
  transition: background 160ms;
}
.qv-close:hover { background: var(--line); }
.qv-head .lead {
  margin-top: .55rem; font-size: .85rem; color: var(--slate); line-height: 1.5;
}
.qv-head .lead strong { color: var(--ink); font-weight: 500; }

.qv-progress {
  margin-top: 1rem;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .8rem;
}
.qv-progress .bar {
  height: 8px; background: var(--paper-2); border-radius: 4px; overflow: hidden;
}
.qv-progress .bar > div {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--coral), var(--wine));
  transition: width 500ms var(--ease-out);
}
.qv-progress .pct {
  font-family: var(--ff-mono); font-size: .8rem; color: var(--slate); font-weight: 500;
}

.qv-body { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; }
.qv-body .section-label {
  font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
  color: var(--slate); margin: 1.4rem 0 .7rem; display: flex; justify-content: space-between; align-items: center;
}
.qv-body .section-label:first-child { margin-top: 0; }
.qv-body .section-label a { color: var(--coral); text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 500; }

.qv-quickrow {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  margin-bottom: .6rem; overflow: hidden;
}
.qv-quickrow-head {
  padding: .9rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; cursor: pointer; background: var(--white);
  transition: background 160ms;
}
.qv-quickrow-head:hover { background: var(--paper-2); }
.qv-quickrow-head .meta { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--slate); }
.qv-quickrow-head .name { font-family: var(--ff-display); font-size: 1.05rem; font-weight: 500; margin-top: .15rem; }
.qv-quickrow-head .chev { color: var(--slate); transition: transform 240ms; }
.qv-quickrow.open .qv-quickrow-head .chev { transform: rotate(180deg); }
.qv-quickrow-noms { display: none; padding: 0 1rem 1rem; }
.qv-quickrow.open .qv-quickrow-noms { display: block; }
.qv-nom {
  display: grid; grid-template-columns: 44px 1fr auto; gap: .8rem; align-items: center;
  padding: .6rem .2rem; border-top: 1px solid var(--line);
}
.qv-nom:first-child { border-top: 0; }
.qv-nom img {
  width: 44px; height: 44px; border-radius: 10px; object-fit: cover;
  background: var(--paper-3);
}
.qv-nom .info { min-width: 0; }
.qv-nom .info .nm { font-family: var(--ff-display); font-size: .95rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qv-nom .info .ct { font-size: .72rem; color: var(--slate); }
.qv-nom .vote {
  padding: .4rem .85rem; border-radius: var(--r-pill);
  background: var(--ink); color: var(--paper);
  font-size: .78rem; font-weight: 600;
  transition: all 160ms;
}
.qv-nom .vote:hover { background: var(--coral); }
.qv-nom .vote.voted { background: var(--coral); }
.qv-nom .vote.voted::before { content: '✓ '; }

/* Casted votes summary */
.qv-cast {
  display: flex; align-items: center; gap: .7rem;
  padding: .65rem .8rem; border-radius: var(--r-md);
  background: var(--paper-2); margin-bottom: .4rem;
}
.qv-cast img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.qv-cast .body { min-width: 0; flex: 1; }
.qv-cast .body .sub { font-size: .68rem; color: var(--slate); text-transform: uppercase; letter-spacing: .1em; }
.qv-cast .body .nm { font-family: var(--ff-display); font-size: .9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qv-cast .x {
  width: 26px; height: 26px; border-radius: 6px;
  background: transparent; color: var(--slate);
  display: grid; place-items: center; transition: all 160ms;
}
.qv-cast .x:hover { background: var(--danger); color: var(--white); }

.qv-foot {
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
  display: flex; flex-direction: column; gap: .6rem;
  flex-shrink: 0;
}
.qv-foot .row { display: flex; gap: .5rem; }
.qv-foot .row .btn { flex: 1; justify-content: center; }
.qv-foot .hint { font-size: .72rem; color: var(--slate); text-align: center; }

/* ===================================================================
   PHOTOGRAPHY — hero backdrops, ornaments, photo bands
   =================================================================== */

/* Full-bleed hero with photo background + dark gradient overlay */
.photo-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
  padding: clamp(7rem, 6rem + 6vw, 11rem) 0 clamp(5rem, 4rem + 4vw, 8rem);
}
.photo-hero .ph-bg {
  position: absolute; inset: 0; z-index: -2;
  background-position: center; background-size: cover;
  transform: scale(1.05);
  animation: phZoom 30s ease-out infinite alternate;
}
@keyframes phZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.15); }
}
.photo-hero .ph-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 80% at 20% 30%, rgba(124,45,63,.55), transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 90%, rgba(255,107,71,.30), transparent 60%),
    linear-gradient(180deg, rgba(14,22,35,.45) 0%, rgba(14,22,35,.85) 100%);
}
.photo-hero .ph-grain {
  position: absolute; inset: 0; z-index: -1;
  opacity: .12; pointer-events: none; mix-blend-mode: overlay;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(255,255,255,.05) 2px 3px),
    repeating-linear-gradient(90deg, transparent 0 2px, rgba(255,255,255,.05) 2px 3px);
}
.photo-hero h1, .photo-hero .ph-eyebrow, .photo-hero p, .photo-hero .ph-crumbs { color: var(--paper); }
.photo-hero .ph-eyebrow {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .18em;
  color: rgba(255,255,255,.75); font-weight: 500;
  display: inline-flex; align-items: center; gap: .55rem;
}
.photo-hero .ph-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255,107,71,.22);
  animation: pulse 2.4s ease-in-out infinite;
}
.photo-hero h1 {
  margin-top: 1.4rem; max-width: 16ch;
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(2.8rem, 1.8rem + 5.5vw, 7rem);
  line-height: .92; letter-spacing: -0.038em;
}
.photo-hero h1 em { font-style: italic; color: var(--amber); font-variation-settings: 'opsz' 144; }
.photo-hero .ph-sub {
  margin-top: 1.4rem; max-width: 52ch;
  font-size: var(--fs-md); line-height: 1.6;
  color: rgba(255,255,255,.85);
}
.photo-hero .ph-crumbs {
  display: inline-flex; gap: .45rem; align-items: center;
  font-size: .82rem; color: rgba(255,255,255,.75);
  padding: .35rem .9rem; border-radius: var(--r-pill);
  background: rgba(255,255,255,.08); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1.4rem;
}
.photo-hero .ph-crumbs a { color: rgba(255,255,255,.75); }
.photo-hero .ph-crumbs a:hover { color: var(--paper); }
.photo-hero .ph-crumbs .here { color: var(--paper); font-weight: 500; }

/* Ornamental section divider — works on light backgrounds */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 1.4rem;
  padding: 0;
  max-width: 480px; margin: 0 auto;
}
.ornament .line { flex: 1; height: 1px; background: var(--line); }
.ornament .mark {
  font-family: var(--ff-display); font-style: italic; font-weight: 400;
  color: var(--coral);
  font-size: 1.4rem; letter-spacing: 0;
  position: relative; top: -2px;
}
.ornament.has-label .label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--slate); font-weight: 500;
  display: flex; align-items: center; gap: .55rem;
}
.ornament.has-label .label .star { color: var(--coral); font-size: 1rem; }

/* Photo strip — full-width band of imagery between sections */
.photo-strip {
  position: relative; overflow: hidden;
  background: var(--ink);
  padding: clamp(3rem, 2.5rem + 1.5vw, 4rem) 0;
}
.photo-strip .row {
  display: flex; gap: .6rem;
  padding: 0 var(--sp-5);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.photo-strip .row::-webkit-scrollbar { display: none; }
.photo-strip .tile {
  flex: 0 0 auto;
  width: clamp(180px, 14vw, 220px);
  aspect-ratio: 3/4;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  scroll-snap-align: center;
  transition: transform 400ms var(--ease-out);
}
.photo-strip .tile:hover { transform: translateY(-4px); }
.photo-strip .tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-strip .tile .cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: .8rem;
  background: linear-gradient(0deg, rgba(0,0,0,.7), transparent);
  color: var(--paper);
}
.photo-strip .tile .cap .ct {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.7); font-weight: 500;
}
.photo-strip .tile .cap .nm {
  font-family: var(--ff-display); font-size: 1.05rem; font-weight: 500;
  line-height: 1.1; margin-top: .2rem;
}
.photo-strip .strip-label {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--sp-5); margin-bottom: 1.4rem;
  color: var(--paper);
}
.photo-strip .strip-label .l { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.6); font-weight: 500; }
.photo-strip .strip-label h3 {
  margin-top: .35rem;
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
  color: var(--paper); letter-spacing: -0.02em;
}
.photo-strip .strip-label h3 em { color: var(--amber); font-style: italic; }
.photo-strip .strip-label a {
  font-size: .85rem; color: var(--coral); font-weight: 500; white-space: nowrap;
}

/* Two-column atmospheric editorial */
.atmosphere {
  position: relative;
  background: var(--ink); color: var(--paper);
  padding: clamp(5rem, 4rem + 4vw, 8rem) 0;
  overflow: hidden;
}
.atmosphere::before {
  content: ''; position: absolute; inset: 0;
  background-position: center; background-size: cover; opacity: .25;
  background-image: var(--atm-bg);
}
.atmosphere::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(14,22,35,.7), rgba(124,45,63,.7) 60%, rgba(14,22,35,.85));
}
.atmosphere > * { position: relative; z-index: 2; }

/* "Pick one favorite" banner used on subcategory pages */
.pick-banner {
  display: flex; align-items: center; gap: .85rem;
  padding: .95rem 1.2rem;
  background: linear-gradient(90deg, rgba(255,107,71,.10), rgba(124,45,63,.05));
  border: 1px solid rgba(255,107,71,.25);
  border-radius: var(--r-lg);
  margin-bottom: 1.4rem;
  font-size: .92rem;
}
.pick-banner .ico {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--coral); color: var(--white);
  display: grid; place-items: center; flex-shrink: 0;
}
.pick-banner strong { color: var(--ink); font-weight: 600; }
.pick-banner .lead { color: var(--ink-3); flex: 1; }
.pick-banner .lead em { color: var(--coral); font-style: normal; font-weight: 600; }

/* Big-touch vote button used inline on cards everywhere */
.vote-big {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem 1.15rem;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-pill);
  font-size: .88rem; font-weight: 600;
  transition: all 180ms var(--ease-out);
  position: relative; overflow: hidden;
}
.vote-big:hover { background: var(--coral); transform: translateY(-1px); box-shadow: var(--sh-glow-coral); }
.vote-big.voted { background: var(--coral); }
.vote-big.voted::before { content: '✓'; font-weight: 700; }
