:root {
  --bg: #f6f3ec;
  --bg-card: #ffffff;
  --ink: #14110f;
  --ink-muted: #6b665d;
  --ink-soft: #8a857c;
  --border: #d9d4c7;
  --border-soft: #e8e3d6;
  --accent: #2d4a3a;
  --accent-hover: #1f3829;
  --accent-soft: #ecf0e9;
  --shadow-card: 0 1px 2px rgba(20,17,15,0.04), 0 4px 16px rgba(20,17,15,0.04);
  --maxw: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  line-height: 1.15;
}

/* === TOPBAR === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: 'Newsreader', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.topbar-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-muted);
}
.topbar-nav a {
  color: var(--ink-muted);
}
.topbar-nav a:hover { color: var(--ink); }

/* === HERO === */
.hero {
  padding: 96px 32px 64px;
  border-bottom: 1px solid var(--border-soft);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero-eyebrow {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--accent);
  margin: 0 0 22px;
  letter-spacing: 0.005em;
}
.hero h1 {
  font-size: clamp(42px, 6.4vw, 74px);
  max-width: 18ch;
  margin-bottom: 26px;
  letter-spacing: -0.022em;
}
.deck {
  font-size: 19px;
  color: var(--ink-muted);
  max-width: 62ch;
  margin: 0 0 36px;
  line-height: 1.55;
}
.dateline {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  max-width: 62ch;
}
.dateline-count {
  color: var(--ink);
  font-weight: 500;
}
.accuracy-note {
  max-width: 70ch;
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
}
.accuracy-note strong { color: var(--ink); }

/* === SECTION HEADERS === */
.section-head {
  margin: 0 auto 40px;
  max-width: 760px;
}
.section-eyebrow {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: var(--accent);
  margin: 0 0 10px;
}
.section-eyebrow--center { text-align: center; }
.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0;
  letter-spacing: -0.015em;
  max-width: 22ch;
}

/* === BRAND RAIL === */
.brand-rail {
  padding: 72px 32px;
  border-bottom: 1px solid var(--border-soft);
}
.brand-rail-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.brand-card h3 {
  font-size: 24px;
  margin-bottom: 6px;
}
.brand-spec {
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 14px;
}
.brand-card > p:nth-of-type(2) {
  margin: 0 0 18px;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}
.brand-count {
  font-family: 'Newsreader', serif;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.brand-count--pending { color: var(--ink-soft); }
.brand-card--pending { opacity: 0.75; }

/* === CUSTOM (Son of a Tailor) === */
.custom {
  background: var(--ink);
  color: #d8d3c4;
  padding: 88px 32px;
  border-bottom: 1px solid var(--border-soft);
}
.custom-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.custom-eyebrow {
  font-size: 13px;
  color: #8a8378;
  margin: 0 0 20px;
}
.custom h2 {
  color: #f6f3ec;
  font-size: clamp(32px, 4.2vw, 50px);
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin-bottom: 24px;
}
.custom-deck {
  font-size: 19px;
  color: #aaa495;
  line-height: 1.55;
  max-width: 64ch;
  margin: 0 0 40px;
}
.custom-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #2c2925;
}
.custom-list li {
  padding: 22px 0;
  border-bottom: 1px solid #2c2925;
  font-size: 15px;
  line-height: 1.6;
  color: #aaa495;
}
.custom-list li:nth-child(odd) {
  padding-right: 32px;
  border-right: 1px solid #2c2925;
}
.custom-list li:nth-child(even) {
  padding-left: 32px;
}
.custom-list strong {
  color: #f6f3ec;
  display: block;
  font-family: 'Newsreader', serif;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 6px;
}
.cta-gold {
  background: #d4b075;
  color: var(--ink);
}
.cta-gold:hover {
  background: #c19f64;
  color: var(--ink);
}

/* === DIRECTORY (filters sidebar + product grid) === */
.directory {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 32px 80px;
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 40px;
  align-items: start;
}

/* === FILTERS (left sidebar on desktop) === */
.filters {
  position: sticky;
  top: 80px;
  align-self: start;
}
.filters-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.filter-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 6px 12px;
}
.chip:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
}
.chip.active {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}

/* === GRID === */
.grid-section {
  min-width: 0;
}
.grid-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--ink-muted);
}
.textbtn {
  font-family: inherit;
  font-size: 14px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding: 0;
  background: none;
}
.textbtn:hover { color: var(--accent-hover); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.card-link:hover .card {
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(20,17,15,0.04), 0 12px 32px rgba(20,17,15,0.08);
}
.card-img {
  position: relative;
  background: #f4f0e6;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}
.card-link:hover .card-img img { opacity: 0.92; }
.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-title {
  font-family: 'Newsreader', serif;
  font-size: 19px;
  font-weight: 500;
  margin: 0;
  line-height: 1.25;
  color: var(--ink);
}
.card-brand {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}
.card-take {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}
.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.spec-pill {
  font-size: 12px;
  color: var(--ink-muted);
  border-right: 1px solid var(--border-soft);
  padding: 0 10px 0 0;
}
.spec-pill:last-child { border-right: none; padding-right: 0; }
.card-specs { gap: 0; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.card-price {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.card-price.muted {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 400;
}
.card-cta {
  font-size: 14px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}
.card-link {
  display: contents;
  color: inherit;
}

/* === EMPTY === */
.empty { padding: 60px 0; text-align: center; color: var(--ink-muted); }
.hidden { display: none; }

/* === HOW === */
.how {
  border-top: 1px solid var(--border-soft);
  padding: 64px 32px;
  background: var(--bg-card);
}
.how-inner {
  max-width: 760px;
  margin: 0 auto;
}
.how h2 { font-size: 32px; margin-bottom: 20px; }
.how ol {
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: how;
}
.how li {
  counter-increment: how;
  padding: 16px 0 16px 48px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  color: var(--ink-muted);
  line-height: 1.55;
}
.how li::before {
  content: counter(how) ".";
  position: absolute;
  left: 0;
  top: 16px;
  font-family: 'Newsreader', serif;
  font-size: 17px;
  color: var(--accent);
  font-weight: 500;
}
.how li:last-child { border-bottom: none; }
.how strong { color: var(--ink); }

/* === SUBMIT === */
.submit {
  padding: 80px 32px;
  text-align: center;
  border-top: 1px solid var(--border-soft);
}
.submit-inner {
  max-width: 560px;
  margin: 0 auto;
}
.submit h2 { font-size: 36px; margin-bottom: 12px; }
.submit p { color: var(--ink-muted); font-size: 17px; margin: 0 0 28px; }
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}
.cta:hover { background: var(--accent-hover); color: #fff; }

/* === FOOTER === */
footer {
  background: var(--ink);
  color: #c0bcb3;
  padding: 64px 32px 40px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}
.footer-col--brand { max-width: 36ch; }
.footer-brand {
  font-family: 'Newsreader', serif;
  font-size: 22px;
  font-weight: 500;
  color: #f4f0e3;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.footer-tagline {
  font-size: 14px;
  line-height: 1.55;
  color: #aaa495;
  margin: 0;
}
.footer-head {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 14px;
  color: #e8e0cf;
  margin: 0 0 14px;
  font-weight: 400;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-list a {
  color: #aaa495;
  font-size: 14px;
}
.footer-list a:hover { color: #f4f0e3; }
.footer-rule {
  height: 1px;
  background: #2c2925;
  margin: 0;
}
.disclosure {
  font-size: 13px;
  line-height: 1.6;
  max-width: 70ch;
  margin: 0;
  color: #aaa495;
}
.disclosure strong { color: #f4f0e3; }
.legal {
  font-size: 12px;
  color: #807a70;
  margin: 0;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .brand-grid { grid-template-columns: 1fr; }
  .topbar-nav { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-col--brand { grid-column: 1 / -1; max-width: none; }
  /* directory collapses to one column; filters move on top and are NOT sticky,
     so they scroll away instead of blocking the screen while browsing products */
  .directory { grid-template-columns: 1fr; gap: 0; padding: 24px 32px 64px; }
  .filters {
    position: static;
    top: auto;
    padding-bottom: 18px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border-soft);
  }
  .filters-inner { gap: 14px; }
  .filter-group { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
  .filter-label { min-width: 86px; }
}

@media (max-width: 700px) {
  .custom { padding: 56px 20px; }
  .custom-list { grid-template-columns: 1fr; }
  .custom-list li:nth-child(odd) {
    padding-right: 0;
    border-right: none;
  }
  .custom-list li:nth-child(even) {
    padding-left: 0;
  }
}

@media (max-width: 600px) {
  .hero { padding: 48px 24px 32px; }
  .topbar-inner { padding: 14px 20px; }
  .directory { padding: 20px 20px 56px; }
  .brand-rail { padding: 40px 20px; }
  .submit, .how { padding: 56px 20px; }
  footer { padding: 36px 20px; }
}
