/* PriceThen — quiet editorial two-column (Jul 2026 redesign) */

:root {
  --ink: #1a1a1a;
  --body: #3f4650;
  --quiet: #646b76;
  --hair: #e9e9e9;
  --bg: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  /* warm paper + a seamless grain tile (SVG turbulence, grayscale) */
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.17'/%3E%3C/svg%3E");
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

.page {
  display: grid;
  grid-template-columns: 270px minmax(0, 560px);
  gap: clamp(56px, 9vw, 130px);
  justify-content: center;
  padding: 120px 48px 120px;
}

/* ---- sidebar ---- */

.side {
  align-self: start;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 120px 4px 48px;
  margin-top: -120px; /* sticky sits flush; padding recreates the page's top air */
}
.side::-webkit-scrollbar { display: none; }

.brand {
  display: inline-block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tag {
  font-size: 13px;
  color: var(--quiet);
  margin-top: 2px;
}

.nav { margin-top: 40px; }

.nav .cat {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--quiet);
  margin: 26px 0 8px;
}
.nav .cat:first-child { margin-top: 0; }

.nav a {
  display: block;
  font-size: 15px;
  color: var(--body);
  padding: 4px 0;
  transition: color 0.15s ease-out;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

.side-foot {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
}
.side-foot a {
  display: block;
  font-size: 13px;
  color: var(--quiet);
  padding: 3px 0;
  transition: color 0.15s ease-out;
}
.side-foot a:hover { color: var(--ink); }

/* mobile picker — hidden on desktop */
.picker-label { display: none; }
.picker { display: none; }

/* ---- story ---- */

.story {
  min-height: 60vh;
  transition: opacity 0.12s ease-out;
}
.story.is-loading { opacity: 0; }

.story h1 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.then-now {
  margin-top: 14px;
  font-size: 22px;
  line-height: 1.45;
  color: var(--quiet);
  font-variant-numeric: tabular-nums;
}
.then-now b {
  color: var(--ink);
  font-weight: 600;
}

.real {
  margin-top: 18px;
  max-width: 46ch;
}

.rows {
  list-style: none;
  margin-top: 40px;
  max-width: 340px;
  font-variant-numeric: tabular-nums;
}
.rows li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 15px;
}
.rows .year { color: var(--quiet); }
.rows .price { color: var(--ink); }
.rows li:last-child .price { font-weight: 600; }

.src {
  margin-top: 36px;
  font-size: 13px;
  color: var(--quiet);
}
.src a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair); }
.src a:hover { text-decoration-color: var(--quiet); }

/* ---- mobile ---- */

@media (max-width: 860px) {
  .page {
    grid-template-columns: minmax(0, 560px);
    padding: 56px 24px 80px;
    gap: 0;
  }

  .side {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    margin-top: 0;
  }

  .nav, .side-foot { display: none; }

  .picker-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--quiet);
    margin: 32px 0 8px;
  }

  .picker {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 16px;
    font-family: inherit;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--hair);
    border-radius: 8px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2379818d' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
  }

  .story { margin-top: 48px; }
  .then-now { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .story, .nav a, .side-foot a { transition: none; }
}
