/* tea.taxi — site-specific styles on top of tokens.css */

/* SVG defaults */
.lucide {
  display: inline-block;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Scoped reset (theme + cat applied on <body>) */
body {
  margin: 0;
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--fg-1);
  font-size: var(--t-body);
  line-height: 1.45;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
.mono { font-family: var(--f-mono); letter-spacing: 0; }
.sc { font-family: var(--f-serif-sc); font-weight: 500; }
.pinyin { font-style: italic; }

/* Wordmark */
.tt-wordmark {
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
}
.tt-wordmark em { font-style: normal; color: var(--steep); }
[data-theme="dark"] .tt-wordmark em { color: #7cc28a; }

/* Constellation bar */
.const-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-bottom: 1px solid var(--hair);
  background: var(--bg-sunk);
  font-size: 10px;
  color: var(--fg-3);
  font-family: var(--f-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.const-bar .label { margin-right: 4px; }
.const-bar .dots { display: flex; gap: 3px; }
.const-bar .dots .d {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--hair-2);
  opacity: 0.7;
}
.const-bar .dots .d.cur { background: var(--steep); opacity: 1; }
.const-bar .dots .d.vis { opacity: 0.5; }
.const-bar .now { margin-left: auto; color: var(--fg-2); }

/* Header */
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hair);
  background: var(--bg);
  position: relative;
  z-index: 2;
}
.nav-links {
  display: none;
  gap: 18px;
  margin-left: 16px;
  font-size: 13px;
  color: var(--fg-2);
}
.nav-links a { color: inherit; text-decoration: none; cursor: pointer; }
.nav-links a.active { color: var(--fg-1); }
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--steep);
  color: #f5f1e8;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: filter 200ms var(--ease);
}
.btn:hover { filter: brightness(1.07); }
.btn-secondary { background: transparent; color: var(--fg-1); border: 1px solid var(--hair-2); }
.btn-full { width: 100%; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--hair-2);
  color: var(--fg-1);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  text-decoration: none;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--hair);
  color: var(--fg-1);
  cursor: pointer;
  position: relative;
}
.btn-icon .badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--steep);
  color: #f5f1e8;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
}

/* ETA pill */
.eta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--hair-2);
  color: var(--fg-1);
  font-size: 12px;
  font-family: var(--f-mono);
  font-weight: 500;
  white-space: nowrap;
}
.eta-pill.solid {
  background: var(--steep);
  color: #f5f1e8;
  border: none;
}
.eta-pill.lg { height: 44px; font-size: 15px; padding: 0 18px; }
.eta-pill.sm { height: 24px; font-size: 11px; padding: 0 10px; }
.eta-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--steep);
  box-shadow: 0 0 0 3px rgba(58, 107, 69, 0.18);
  animation: tt-pulse 1.6s var(--ease) infinite;
}
.eta-pill.solid .dot {
  background: #a8d4b3;
  box-shadow: 0 0 0 3px rgba(168, 212, 179, 0.25);
}
.eta-pill .label { opacity: 0.75; text-transform: lowercase; }
.eta-pill .num { font-weight: 600; font-variant-numeric: tabular-nums; }

@keyframes tt-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

/* Tea tile (fast variant for catalog) */
.tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-raised);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 12px;
  transition: border-color var(--d-med) var(--ease);
}
.tile:hover { border-color: var(--hair-2); }
.tile .ph {
  position: relative;
  width: 100%;
  aspect-ratio: 1.05;
  background: var(--tile-bg);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--hair);
}
.tile .ph .corner-h { position: absolute; top: 0; left: 0; width: 40%; height: 2px; }
.tile .ph .corner-v { position: absolute; top: 0; left: 0; width: 2px; height: 40%; }
.tile .ph .glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-serif-sc);
  font-size: 64px;
  opacity: 0.85;
  line-height: 1;
  font-weight: 500;
}
.tile .meta { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.tile .name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .cat-row { font-size: 11px; color: var(--fg-2); display: flex; align-items: center; gap: 6px; }
.tile .cat-dot { width: 6px; height: 6px; border-radius: 999px; flex: 0 0 auto; }
.tile .price-row { margin-top: 4px; display: flex; justify-content: space-between; align-items: baseline; }
.tile .price { font-family: var(--f-mono); font-size: 13px; font-weight: 600; }
.tile .grams { font-family: var(--f-mono); font-size: 10px; color: var(--fg-3); }

/* Tea cat dots */
.cat-green  { background: var(--cat-green); color: var(--cat-green); }
.cat-red    { background: var(--cat-red); color: var(--cat-red); }
.cat-yellow { background: var(--cat-yellow); color: var(--cat-yellow); }
.cat-oolong { background: var(--cat-oolong); color: var(--cat-oolong); }
.cat-white  { background: var(--cat-white); color: var(--cat-white); }
.cat-dark   { background: var(--cat-dark); color: var(--cat-dark); }
.cat-puerh  { background: var(--cat-puerh); color: var(--cat-puerh); }

/* Hero */
.hero {
  padding: 28px 16px;
}
.hero h1 {
  font-size: 38px;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 400;
}
.hero h1 em { font-style: normal; color: var(--steep); }
.hero h1 .muted { color: var(--fg-2); }

/* Footer */
footer {
  margin-top: auto;
  padding: 20px 16px;
  border-top: 1px solid var(--hair);
  background: var(--bg-sunk);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
footer .links { display: flex; gap: 16px; font-size: 11px; color: var(--fg-2); }
footer .links span { cursor: pointer; }
footer .blurb { font-size: 11px; color: var(--fg-3); max-width: 380px; line-height: 1.5; }

/* Page chrome */
.page { display: flex; flex-direction: column; min-height: 100vh; }
.sect-pad { padding: 20px 16px; }

/* Section title */
.section-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-h h2 { font-size: 18px; margin: 0; font-weight: 500; letter-spacing: -0.01em; }
.section-h a { font-size: 12px; color: var(--fg-2); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }

/* Tiles grid */
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }

/* Category chips */
.chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 16px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--hair);
  position: sticky;
  top: 0;
  z-index: 1;
}
.chip {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  background: transparent;
  color: var(--fg-1);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.chip .dot { width: 6px; height: 6px; border-radius: 999px; }
.chip.active { background: var(--fg-1); color: var(--bg); border-color: var(--fg-1); }

/* Tablet (≥ 600px) */
@media (min-width: 600px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: flex; }
  .const-bar { padding: 6px 24px; }
  .hero { padding: 40px 24px; }
  .hero h1 { font-size: 54px; max-width: 600px; }
  .sect-pad { padding: 28px 24px; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .chips { padding: 8px 24px 12px; }
  footer { padding: 28px 24px; flex-direction: row; align-items: center; }
  footer .links { margin-left: auto; }
}

/* Desktop (≥ 1024px) */
@media (min-width: 1024px) {
  .nav { padding: 16px 32px; }
  .const-bar { padding: 6px 32px; }
  .hero { padding: 56px 32px 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
  .hero h1 { font-size: 72px; }
  .sect-pad { padding: 32px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .chips { padding: 8px 32px 12px; }
  footer { padding: 28px 32px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
