:root {
  --bg: #0E1D17;
  --surface: #162B22;
  --ink: #F4F2EA;
  --accent: #E6A22E;
  --accent-ink: #0E1D17;
  --muted: #97B0A3;
  --border: color-mix(in srgb, var(--ink) 14%, transparent);
  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  transition: background-color 180ms ease, color 180ms ease;
}

.tl-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.tl-demo-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, black 8%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.tl-demo-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
  font-size: 12px;
}

.tl-demo-label { color: var(--muted); white-space: nowrap; }
.tl-demo-back { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.tl-demo-back:hover { color: var(--accent); }

.tl-palette-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tl-swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.tl-swatch-btn.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.tl-swatch-pair { display: inline-flex; width: 14px; height: 14px; border-radius: 999px; overflow: hidden; border: 1px solid rgba(255,255,255,0.25); }
.tl-swatch-pair span { width: 50%; height: 100%; display: block; }

.tl-site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.tl-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 72px;
}
.tl-wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  margin: 0;
}
.tl-nav { display: flex; gap: 24px; }
.tl-nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.tl-nav a:hover { color: var(--ink); }

.tl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 150ms ease, opacity 150ms ease;
}
.tl-btn:hover { opacity: 0.92; }
.tl-btn-accent { background: var(--accent); color: var(--accent-ink); }
.tl-btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.tl-btn-outline:hover { border-color: var(--accent); }
.tl-btn-lg { padding: 13px 24px; font-size: 15px; }
.tl-btn-full { width: 100%; }

.tl-hero { position: relative; min-height: 540px; display: flex; align-items: flex-end; overflow: hidden; }
.tl-hero-media { position: absolute; inset: 0; }
.tl-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,14,12,0.28) 0%, rgba(8,14,12,0.82) 100%); }
.tl-hero-content { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 64px; color: #F4F2EA; max-width: 780px; }
.tl-kicker { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.tl-hero-content .tl-kicker { color: rgba(244,242,234,0.85); }
.tl-hero-title { font-family: var(--font-display); font-size: clamp(2.4rem, 4.5vw, 3.85rem); line-height: 1.08; margin: 0 0 16px; }
.tl-hero-tagline { font-size: 18px; color: rgba(244,242,234,0.9); max-width: 60ch; margin: 0 0 28px; }
.tl-hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tl-hero-link { color: #F4F2EA; text-decoration: none; font-weight: 500; font-size: 14px; }

.tl-section { padding: 80px 0; }
.tl-section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tl-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.tl-section-title { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; margin: 0; }
.tl-lead { color: var(--muted); max-width: 52ch; margin-top: 14px; }

.tl-season-tabs { display: flex; gap: 6px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; flex-wrap: wrap; }
.tl-tab { background: transparent; color: var(--muted); border: 0; padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tl-tab.is-active { background: var(--accent); color: var(--accent-ink); }

.tl-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.tl-card[hidden] { display: none; }
.tl-card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.tl-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.tl-meta-line { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.tl-card-title { font-family: var(--font-display); font-size: 22px; margin: 0 0 10px; line-height: 1.25; }
.tl-card-desc { font-size: 14px; color: var(--muted); margin: 0 0 20px; flex: 1; }
.tl-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.tl-rate { display: flex; flex-direction: column; }
.tl-rate strong { font-size: 18px; }
.tl-rate span { font-size: 12px; color: var(--muted); }
.tl-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.tl-two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 48px; align-items: start; }
.tl-accordion-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.tl-accordion-item { border-bottom: 1px solid var(--border); }
.tl-accordion-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--ink);
  text-align: left;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.tl-accordion-trigger strong { display: block; font-size: 16px; font-weight: 600; }
.tl-accordion-trigger small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.tl-accordion-icon { font-family: var(--font-mono); font-size: 20px; color: var(--accent); }
.tl-accordion-panel { padding-bottom: 22px; color: var(--muted); font-size: 14px; }
.tl-packing-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 14px; }
.tl-packing-cols h4 { color: var(--ink); font-size: 13px; margin: 0 0 8px; }
.tl-packing-cols ul { margin: 0; padding-left: 18px; }
.tl-packing-cols li { margin-bottom: 6px; }

.tl-fact-list { margin: 28px 0 0; display: grid; gap: 14px; }
.tl-fact-list dt { font-size: 12px; color: var(--muted); }
.tl-fact-list dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; }

.tl-drawer-backdrop, .tl-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 9, 0.7);
  z-index: 80;
  display: flex;
  justify-content: flex-end;
}
.tl-drawer-backdrop[hidden], .tl-modal-backdrop[hidden] { display: none; }
.tl-modal-backdrop { justify-content: center; align-items: center; padding: 20px; z-index: 90; }
.tl-drawer {
  width: min(480px, 100%);
  height: 100%;
  background: var(--bg);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  padding: 28px;
}
.tl-drawer-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.tl-drawer-header h2 { font-family: var(--font-display); font-size: 24px; margin: 0; }
.tl-close-btn { background: transparent; border: 1px solid var(--border); color: var(--ink); width: 38px; height: 38px; border-radius: 6px; font-size: 22px; cursor: pointer; }
.tl-drawer-body { display: grid; gap: 16px; padding-top: 20px; }
.tl-field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.tl-field input, .tl-field select {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}
.tl-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tl-checkbox { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink); cursor: pointer; }
.tl-summary-box { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; display: grid; gap: 10px; font-size: 13px; }
.tl-summary-row, .tl-summary-total { display: flex; justify-content: space-between; gap: 12px; }
.tl-summary-total { padding-top: 10px; border-top: 1px solid var(--border); font-size: 16px; font-weight: 700; color: var(--accent); }
.tl-error-box { padding: 10px 12px; border: 1px solid #E05E36; border-radius: 6px; font-size: 13px; color: var(--ink); background: rgba(224,94,54,0.15); }
.tl-guardrail-note { font-size: 12px; color: var(--muted); margin: 0; }

.tl-modal {
  width: min(520px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.tl-modal h2 { font-family: var(--font-display); font-size: 28px; margin: 0 0 12px; }
.tl-modal-copy { color: var(--ink); margin: 0 0 24px; }
.tl-modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.tl-footer { border-top: 1px solid var(--border); padding: 48px 0; background: var(--bg); }
.tl-footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.tl-footer-tagline { margin: 6px 0; color: var(--muted); font-size: 14px; }
.tl-footer-meta, .tl-footer-credit { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.tl-footer-credit a { color: var(--ink); }

@media (max-width: 960px) {
  .tl-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-two-col { grid-template-columns: 1fr; }
  .tl-nav { display: none; }
}
@media (max-width: 640px) {
  .tl-card-grid, .tl-packing-cols, .tl-field-row { grid-template-columns: 1fr; }
}
