/* ============================================================
   DupeRadar — Design System
   Editorial beauty media. Warm, premium, magazine-feel.
   ============================================================ */

:root {
  /* Palette — warm editorial */
  --ink:        #1c1c1c;
  --ink-soft:   #4a4a4a;
  --muted:      #7a736c;
  --faint:      #b0a9a1;
  --border:     #e8e2d9;
  --border-2:   #d4cdc2;
  --surface:    #faf7f2;
  --surface-2:  #f3ede4;
  --bg:         #ffffff;
  --accent:     #8b2942;      /* deep burgundy */
  --accent-ink: #6b1f33;
  --accent-bg:  #fbf0f3;
  --gold:       #b8935a;
  --gold-bg:    #faf6ee;

  /* Typography */
  --font-serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --font-sans:  ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
                Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* Layout */
  --max: 1120px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--s-8) 0; }
.section + .section { border-top: 1px solid var(--border); }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand em {
  font-style: normal;
  color: var(--accent);
}

.nav { display: flex; gap: var(--s-5); font-size: 14px; }
.nav a {
  color: var(--ink-soft); font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: 12px;
}
.nav a:hover { color: var(--accent-ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent-ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 760px) {
  .nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0;
    padding: var(--s-3) 24px var(--s-4);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: inline-block; }
}

/* ---------- Hero ---------- */

.hero {
  padding: var(--s-9) 0 var(--s-7);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero .kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: var(--s-4);
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(38px, 5.5vw, 60px);
  line-height: 1.05;
  margin: 0 0 var(--s-4);
  max-width: 820px;
}
.hero p.lede {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 var(--s-6);
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1.5;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); text-decoration: none; }
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn.secondary:hover { background: var(--ink); color: #fff; }

/* ---------- Section heads ---------- */

.section-head { margin-bottom: var(--s-6); }
.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 8px;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 620px;
  font-family: var(--font-serif);
  font-style: italic;
}

/* ---------- Article grid ---------- */

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

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s;
}
.card:hover { border-color: var(--border-2); }

.card-image {
  aspect-ratio: 16/10;
  background: var(--surface-2);
  background-size: cover;
  background-position: center;
}

.card-body {
  padding: var(--s-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card .eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.card h3 {
  font-size: 20px;
  margin: 0 0 8px;
  line-height: 1.25;
  font-family: var(--font-serif);
}
.card h3 a { color: var(--ink); }
.card p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
.card .meta {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Prose (articles) ---------- */

.prose {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.7;
}
.prose h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 0 0 var(--s-4);
  line-height: 1.1;
}
.prose h2 {
  font-size: 26px;
  margin: var(--s-7) 0 var(--s-4);
  line-height: 1.2;
}
.prose h3 {
  font-size: 20px;
  margin: var(--s-6) 0 var(--s-3);
}
.prose p { margin: 0 0 var(--s-5); color: var(--ink); }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 var(--s-5); }
.prose li { margin-bottom: 8px; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose blockquote {
  margin: var(--s-6) 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-soft);
}
.prose a { border-bottom: 1px solid var(--accent); }
.prose a:hover { text-decoration: none; background: var(--accent-bg); }

.article-meta {
  display: flex;
  gap: var(--s-4);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--s-6);
  font-weight: 500;
}
.article-meta .eyebrow { color: var(--accent); }

/* ---------- Category chips ---------- */

.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 var(--s-6);
}
.chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg);
}
.chip:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--s-8) 0 var(--s-6);
  font-size: 14px;
  color: var(--muted);
  background: var(--surface);
  margin-top: var(--s-8);
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}
.site-footer h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin: 0 0 var(--s-3);
  font-weight: 600;
  font-family: var(--font-sans);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent-ink); }

.disclaimer {
  border-top: 1px solid var(--border);
  padding-top: var(--s-5);
  font-size: 12px;
  line-height: 1.6;
  max-width: 760px;
  color: var(--muted);
}

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

/* ---------- Utilities ---------- */

.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}