/* Proof & Proper — shared theme */

:root, [data-palette="dark"] {
  --bg: #100e0b;
  --bg-soft: #1a1714;
  --bg-raised: #221e19;
  --ink: #f2ece0;
  --ink-soft: #c8bfae;
  --ink-dim: #8a8272;
  --rule: #2a2520;
  --accent: oklch(0.72 0.13 62);   /* tobacco/amber */
  --accent-ink: #140f08;
  --hot: oklch(0.68 0.20 30);      /* rust */
  --ok: oklch(0.74 0.14 145);
  --bad: oklch(0.64 0.20 25);
  --card: #17130f;
  --card-ink: var(--ink);
  --shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 20px 40px -30px rgba(0,0,0,0.8);
}

[data-palette="light"] {
  --bg: #efe6d2;
  --bg-soft: #e4d8bc;
  --bg-raised: #fbf3df;
  --ink: #18130e;
  --ink-soft: #5c4d3c;
  --ink-dim: #9a8c73;
  --rule: #cdbd9c;
  --accent: oklch(0.52 0.17 35);   /* deeper rust */
  --accent-ink: #fbf3df;
  --hot: oklch(0.52 0.17 35);
  --ok: oklch(0.48 0.14 145);
  --bad: oklch(0.52 0.22 30);
  --card: #fbf3df;
  --card-ink: var(--ink);
  --shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 40px -30px rgba(70,45,20,0.35);
}

/* Light-mode polish: slightly heavier rule work reads more editorial on cream */
[data-palette="light"] .sec-head { border-bottom-width: 2px; }
[data-palette="light"] .nav { background: color-mix(in oklab, var(--bg) 92%, transparent); }
/* Ticker variants (all palettes) */
[data-ticker="bold"] .marquee { background: var(--ink); color: var(--bg); }
[data-ticker="bold"] .marquee .sep { color: var(--accent); }
[data-ticker="subtle"] .marquee { background: var(--bg-soft); color: var(--ink-soft); padding: 14px 0; }
[data-ticker="subtle"] .marquee-track { font-size: 16px; }
[data-ticker="subtle"] .marquee .sep { color: var(--accent); opacity: 0.6; }
[data-ticker="off"] .marquee { display: none; }
[data-palette="light"] .news-wrap {
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, color-mix(in oklab, var(--accent) 14%, transparent) 0%, transparent 70%),
    var(--bg);
}
[data-palette="light"] .news-form { background: var(--bg-raised); border-color: var(--ink); }
[data-palette="light"] .buybox { background: var(--bg-raised); }
[data-palette="light"] .short .play { background: var(--ink); color: var(--bg); }
[data-palette="light"] .yt-frame { background: #0a0a0a; }

[data-palette="magazine"] {
  --bg: #ffffff;
  --bg-soft: #f4f1ec;
  --bg-raised: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #3a3a3a;
  --ink-dim: #8a8a8a;
  --rule: #111111;
  --accent: oklch(0.62 0.22 30);   /* hot red-orange */
  --accent-ink: #ffffff;
  --hot: oklch(0.62 0.22 30);
  --ok: oklch(0.50 0.14 150);
  --bad: oklch(0.62 0.22 30);
  --card: #ffffff;
  --card-ink: #0a0a0a;
  --shadow: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Söhne", "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  transition: background-color .25s ease, color .25s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.serif { font-family: "Instrument Serif", "Cormorant Garamond", Georgia, "Times New Roman", serif; font-weight: 400; }
.mono  { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; }
.sans  { font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; }

.display {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.96;
}
[data-palette="magazine"] .display {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* ——— layout ——— */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* ——— eyebrow label ——— */
.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); display: inline-block; }

/* ——— nav ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
}
.nav-logo { font-family: "Instrument Serif", Georgia, serif; font-size: 22px; letter-spacing: 0.02em; display: flex; align-items: center; gap: 10px; }
.nav-logo .mark {
  width: 28px; height: 28px; border: 1.5px solid var(--accent);
  border-radius: 999px; display: grid; place-items: center;
  color: var(--accent); font-family: "JetBrains Mono", monospace;
  font-size: 11px; font-weight: 700;
}
[data-palette="magazine"] .nav-logo { font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; justify-self: center; }
.nav-links a {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); border-bottom-color: var(--accent); }
.nav-cta { justify-self: end; display: flex; align-items: center; gap: 14px; }

/* ——— buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: 0;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-soft); }

/* ——— verdict tags ——— */
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid currentColor;
}
.verdict.pour { color: var(--ok); }
.verdict.sip  { color: var(--accent); }
.verdict.skip { color: var(--bad); }
.verdict.buy  { color: var(--ok); }
.verdict.pass { color: var(--bad); }

/* ——— score chip ——— */
.score {
  display: inline-flex;
  align-items: baseline;
  font-family: "Instrument Serif", Georgia, serif;
  line-height: 1;
}
.score .num { font-size: 56px; letter-spacing: -0.03em; }
.score .den { font-size: 18px; color: var(--ink-dim); margin-left: 4px; }
[data-palette="magazine"] .score .num { font-family: "Space Grotesk", sans-serif; font-weight: 700; }

/* ——— card ——— */
.card {
  background: var(--card);
  color: var(--card-ink);
  border: 1px solid var(--rule);
  padding: 0;
  position: relative;
  overflow: hidden;
}
[data-palette="magazine"] .card { border: none; border-top: 1px solid var(--rule); padding-top: 0; }

/* ——— placeholder imagery (subtle stripes + monospace caption) ——— */
.img-ph {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background:
    repeating-linear-gradient(
      45deg,
      color-mix(in oklab, var(--ink) 6%, var(--bg-soft)) 0 8px,
      color-mix(in oklab, var(--ink) 3%, var(--bg-soft)) 8px 16px
    );
  display: grid;
  place-items: center;
  overflow: hidden;
}
.img-ph::after {
  content: attr(data-label);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--rule);
}
.img-ph.wide { aspect-ratio: 16/10; }
.img-ph.short { aspect-ratio: 3/2; }
.img-ph.square { aspect-ratio: 1/1; }
.img-ph.tall { aspect-ratio: 3/4; }
.img-ph.vertical { aspect-ratio: 9/16; }

/* rules */
hr.rule { border: none; border-top: 1px solid var(--rule); margin: 0; }
.rule-heavy { border-top: 2px solid var(--ink); }

/* util */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; } .gap-12 { gap: 48px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; } .mt-16 { margin-top: 64px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.text-dim { color: var(--ink-dim); }
.text-soft { color: var(--ink-soft); }
.text-accent { color: var(--accent); }

/* tweaks panel */
.tweaks-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  background: var(--bg-raised);
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 18px;
  z-index: 100;
  font-family: "Space Grotesk", sans-serif;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.tweaks-panel h4 {
  margin: 0 0 14px 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.tweaks-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.tweaks-row label { font-size: 12px; color: var(--ink-soft); font-family: "JetBrains Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.tweaks-opts { display: flex; gap: 6px; }
.tweaks-opts button {
  flex: 1;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  padding: 8px 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .15s;
}
.tweaks-opts button.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tweaks-opts button:hover:not(.active) { color: var(--ink); border-color: var(--ink-soft); }

/* shared responsive */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr; }
  .nav-cta { justify-self: end; }
  .container, .container-wide { padding: 0 20px; }
}
