/* ==========================================================================
   The Shortlist — design tokens
   Ported from the Framer build: amber on warm dark.
   ========================================================================== */

:root {
  /* Brand palette */
  --ink:      #0E0C0A;
  --surface:  #1A1613;
  --amber:    #FFB020;
  --text:     #F5EFE6;
  --muted:    #A69C8E;
  --line:     #302925;

  /* Type stacks */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", "Cascadia Code", Consolas, monospace;

  /* Layout */
  --page-max:    1072px;
  --prose-max:   760px;
  --gutter:      64px;
  --radius:      12px;
  --radius-sm:   10px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

/* Must beat .card's display:flex so JS filtering can hide cards. */
[hidden] { display: none !important; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

h1, h2, h3 { margin: 0; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ==========================================================================
   Type scale
   ========================================================================== */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.375rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.body      { color: var(--muted); }
.body-bright { color: var(--text); }

.label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  line-height: 1.6;
}

.small {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.amber-link {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--amber);
}
.amber-link:hover { opacity: 0.75; }

.prose { max-width: 66ch; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.section {
  padding: 84px var(--gutter);
  border-top: 1px solid var(--line);
}
.section--flush { border-top: 0; }

.inner {
  max-width: var(--page-max);
  margin-inline: auto;
}
.inner--prose { max-width: var(--prose-max); }

.stack       { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap, 16px); }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px var(--gutter);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(12px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.9375rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}

/* Logo mark in the wordmark lockup */
.mark {
  width: 26px;
  height: 26px;
  flex: none;
  display: block;
}
.footer .mark { width: 24px; height: 24px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-weight: 500;
  font-size: 0.9375rem;
}
.nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--amber); }
.nav-links a[aria-current="page"] { color: var(--amber); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding: 110px var(--gutter) 96px; }

.hero-inner {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}

.hero p.body { max-width: 640px; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--amber);
  color: var(--ink);
}
.btn--primary:hover { background: #ffc04d; }

.btn--ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--muted); }

.disclosure-line { padding-top: 18px; }

/* ==========================================================================
   Grids
   ========================================================================== */

.grid {
  display: grid;
  gap: 20px;
}
.grid--cats  { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid--three { grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid--cards { grid-template-columns: repeat(3, 1fr); }
.grid--two   { grid-template-columns: repeat(2, 1fr); }

/* Category tile */
.tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tile:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}
.tile .h3 { margin-bottom: 6px; }

/* Standards column */
.col .h3 { margin-bottom: 12px; }

/* Product card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: color-mix(in srgb, var(--amber) 45%, var(--line));
  transform: translateY(-2px);
}

.card-photo {
  height: 190px;
  background: var(--ink);
  border-bottom: 1px dashed var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

/* Rule card (about page) */
.rule {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
}
.rule .h3 { margin-bottom: 8px; }

/* ==========================================================================
   Chips
   ========================================================================== */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 0.875rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}
.chip:hover { border-color: var(--muted); color: var(--text); }

.chip--active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  font-weight: 600;
}
.chip--active:hover { background: #ffc04d; color: var(--ink); }

/* Shown when a category has no picks yet */
.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 56px 30px;
  text-align: center;
}
.empty-state .h3 { margin-bottom: 8px; }

/* ==========================================================================
   Numbered steps (about page)
   ========================================================================== */

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-num {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--amber);
  font-weight: 500;
  font-size: 0.9375rem;
}

.step-body .h3 { margin-bottom: 8px; }

/* ==========================================================================
   Callout blocks (disclosure / about)
   ========================================================================== */

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.callout .h3 { margin-bottom: 12px; }

.callout--todo {
  border-style: dashed;
  border-color: var(--amber);
}

.block .h3 { margin-bottom: 14px; }

.divider-top {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 56px var(--gutter) 48px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 30px;
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-links a:hover { color: var(--amber); }

.footer-bottom {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-bottom p { max-width: 720px; }

/* ==========================================================================
   Responsive — the Framer build was desktop-only; this adapts down.
   ========================================================================== */

@media (max-width: 1000px) {
  :root { --gutter: 40px; }
  .grid--cats  { grid-template-columns: repeat(2, 1fr); }
  .grid--three { grid-template-columns: 1fr; gap: 32px; }
  .grid--cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  :root { --gutter: 22px; }
  body { font-size: 16px; }

  .nav { padding: 18px var(--gutter); flex-wrap: wrap; gap: 14px; }
  .nav-links { gap: 20px; font-size: 0.875rem; width: 100%; }

  .hero    { padding: 64px var(--gutter) 56px; }
  .section { padding: 56px var(--gutter); }

  .grid--cats,
  .grid--cards,
  .grid--two { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-links { flex-wrap: wrap; gap: 18px; }

  .step { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
