/* =====================================================================
   Attribution Truth-Checker — site styles
   Brand: Chantel Hill (forest / cream / charcoal, Playfair + Jost)
   Background: #FAF9F5 (Claude-flavored warm white, between #FFFFFF and the
                          editorial cream of the portfolio)
   ===================================================================== */

:root {
  --bg:          #FAF9F5;  /* Claude warm white */
  --paper:       #F4F1EA;  /* warmer surface for cards */
  --forest:      #2C4A35;
  --forest-dark: #1E3326;
  --forest-light:#3D6147;
  --charcoal:    #1C1C1A;
  --mid:         #737067;
  --light:       #DDD9D1;
  --rule:        #E4E0D8;
  --white:       #FFFFFF;
  --nav-height:  64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--charcoal);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------------------------------------------------------------------
   Typography
   --------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 4.5vw, 4.4rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }

em {
  font-style: italic;
  color: var(--forest);
  font-weight: 700;
}

p { color: var(--charcoal); }
p + p { margin-top: 14px; }

a {
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
a:hover { border-bottom-color: var(--forest); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--mid);
}

.muted { color: var(--mid); }
.caption {
  font-size: 0.78rem;
  color: var(--mid);
  letter-spacing: 0.02em;
  line-height: 1.6;
}
.mono { font-family: 'JetBrains Mono', Menlo, Consolas, monospace; font-size: 0.85rem; }

/* ---------------------------------------------------------------------
   Top navigation (sticky, blur backdrop)
   --------------------------------------------------------------------- */

nav.top {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(250, 249, 245, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: 'Playfair Display', serif;
}
.nav-portfolio-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--mid);
  border-bottom: none;
  transition: color 0.2s;
  letter-spacing: -0.005em;
}
.nav-portfolio-link:hover { color: var(--charcoal); border-bottom: none; }
.nav-separator {
  color: var(--rule);
  font-weight: 400;
  font-size: 0.95rem;
  user-select: none;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--charcoal);
  border-bottom: none;
}
.nav-logo:hover { border-bottom: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  border-bottom: none;
  padding: 8px 0;
}
.nav-links a:hover { color: var(--charcoal); }
.nav-links a.active { color: var(--charcoal); border-bottom: 1px solid var(--charcoal); }

/* ---------------------------------------------------------------------
   Page chrome
   --------------------------------------------------------------------- */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 48px;
}

section {
  padding: 72px 48px;
}

footer {
  border-top: 1px solid var(--rule);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--mid);
  letter-spacing: 0.02em;
}

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

.hero {
  min-height: calc(100vh - var(--nav-height));
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
  padding: 72px 48px;
  max-width: 1480px;
  margin: 0 auto;
}
.hero-content { max-width: 540px; }
.hero-title { margin-bottom: 24px; }
.hero-subtitle {
  font-size: 1.02rem;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 36px;
  font-weight: 300;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.hero-chart {
  background: var(--paper);
  padding: 28px;
  border: 1px solid var(--rule);
}
.hero-chart img { display: block; width: 100%; height: auto; }
.hero-chart figcaption {
  font-size: 0.78rem;
  color: var(--mid);
  margin-top: 14px;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

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

.btn {
  display: inline-block;
  padding: 13px 28px;
  font-family: 'Jost', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary { background: var(--charcoal); color: var(--white); }
.btn-primary:hover { background: var(--forest); border-bottom: 1px solid var(--forest); }
.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--light);
}
.btn-secondary:hover { border-color: var(--charcoal); }

/* ---------------------------------------------------------------------
   Stats strip (key findings)
   --------------------------------------------------------------------- */

.stats {
  background: var(--charcoal);
  color: var(--white);
  padding: 56px 48px;
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  align-items: start;
}
.stat-eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
}
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.05;
}
.stat-value em {
  color: rgba(255,255,255,0.55);
  font-style: italic;
  font-weight: 700;
}
.stat-label {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  font-weight: 300;
}

/* ---------------------------------------------------------------------
   Section: feature cards (links to other pages)
   --------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.card {
  background: var(--paper);
  padding: 28px 28px 24px;
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: var(--charcoal);
}
.card:hover { border-color: var(--charcoal); transform: translateY(-2px); border-bottom: 1px solid var(--charcoal); }
.card .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--light);
  line-height: 1;
  letter-spacing: -0.02em;
}
.card h3 { margin-bottom: 4px; }
.card p { font-size: 0.92rem; color: var(--mid); line-height: 1.55; }
.card-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin-top: auto;
  padding-top: 8px;
  border-bottom: none;
}
.card-link::after { content: ' →'; }

/* ---------------------------------------------------------------------
   Tables
   --------------------------------------------------------------------- */

table.data {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
}
table.data th, table.data td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
}
table.data th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}
table.data td { color: var(--charcoal); font-weight: 400; }
table.data tr:last-child td { border-bottom: none; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }

.label {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid;
}
.label-over    { color: var(--charcoal); border-color: var(--charcoal); background: rgba(28,28,26,0.04); }
.label-under   { color: var(--forest);   border-color: var(--forest);   background: rgba(44,74,53,0.06); }
.label-accurate{ color: var(--mid);      border-color: var(--rule);     background: transparent; }

/* ---------------------------------------------------------------------
   Chart figure
   --------------------------------------------------------------------- */

figure.chart {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 28px;
  margin: 24px 0;
}
figure.chart img { display: block; width: 100%; height: auto; }
figure.chart figcaption {
  font-size: 0.78rem;
  color: var(--mid);
  margin-top: 16px;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

/* ---------------------------------------------------------------------
   Two-column section (text + visual)
   --------------------------------------------------------------------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.two-col-wide-left  { grid-template-columns: 1.4fr 1fr; }
.two-col-wide-right { grid-template-columns: 1fr 1.4fr; }

/* ---------------------------------------------------------------------
   Walkthrough block (podcast-style narration panel)
   Charcoal background mirrors the split-layout pattern in the portfolio.
   --------------------------------------------------------------------- */

.walkthrough {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.92);
  padding: 36px 40px;
  margin: 36px 0;
  position: relative;
}
.walkthrough .walkthrough-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.walkthrough .walkthrough-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
}
.walkthrough p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  line-height: 1.85;
  font-weight: 300;
  max-width: 78ch;
}
.walkthrough p + p { margin-top: 16px; }
.walkthrough em {
  color: rgba(255, 255, 255, 0.62);
  font-style: italic;
  font-weight: 400;
}
.walkthrough strong {
  color: var(--white);
  font-weight: 600;
}
.walkthrough .walkthrough-audio {
  display: block;
  width: 100%;
  margin: 4px 0 26px 0;
  height: 36px;
  border-radius: 0;
  outline: none;
  /* Subtle filter to lift the default browser controls into a dark theme.
     Browsers each style audio controls differently, so this is a best-effort
     visual blend rather than a fully consistent skin. */
  filter: invert(0.85) hue-rotate(180deg);
}
.walkthrough .walkthrough-audio:focus { outline: none; }

@media (max-width: 600px) {
  .walkthrough { padding: 28px 24px; }
}

/* ---------------------------------------------------------------------
   Slider widget (for the truth-check page)
   --------------------------------------------------------------------- */

.slider-block {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 28px 32px;
  margin: 24px 0;
}
.slider-block label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}
.slider-block input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: var(--light);
  outline: none;
  border-radius: 0;
}
.slider-block input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--forest);
  cursor: pointer;
  border: 2px solid var(--charcoal);
  border-radius: 50%;
}
.slider-block input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--forest);
  cursor: pointer;
  border: 2px solid var(--charcoal);
  border-radius: 50%;
}
.slider-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.metric {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 16px 20px;
}
.metric-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 6px;
}
.metric-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  line-height: 1;
}

/* ---------------------------------------------------------------------
   Responsive (collapse to single column at smaller widths)
   --------------------------------------------------------------------- */

@media (max-width: 960px) {
  nav.top { padding: 0 24px; }
  .nav-links { gap: 18px; }
  .container, section { padding: 48px 24px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 48px 24px; min-height: auto; }
  .hero-content { max-width: 100%; }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .cards { grid-template-columns: 1fr; }
  .two-col, .two-col-wide-left, .two-col-wide-right { grid-template-columns: 1fr; gap: 32px; }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .nav-links a { font-size: 0.66rem; letter-spacing: 0.08em; }
  .nav-logo { font-size: 0.9rem; }
  .stats .container { grid-template-columns: 1fr; }
}
