:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --ink: #141414;
  --ink-muted: #5e5e58;
  --rule: #e6e6e2;
  --rule-strong: #111111;
  --hero-ink: #f7f1ea;
  --accent: #0d4f48;
  --accent-hover: #0a3d38;
  --max: 40rem;
  --wide: 72rem;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  font-optical-sizing: auto;
}
body.has-dock { padding-bottom: 6.25rem; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--ink); }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap { width: min(var(--wide), calc(100% - 2.5rem)); margin: 0 auto; }
.prose { width: min(var(--max), 100%); }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.45rem 0.7rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  z-index: 40;
}
.skip:focus { top: 0.75rem; }

/* Masthead — thin, Hers + New Yorker */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(10px);
}
.masthead-on-hero {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: none;
}
.masthead-on-hero .wordmark,
.masthead-on-hero .primary-nav a,
.masthead-on-hero .menu-btn {
  color: var(--hero-ink);
}
.masthead-on-hero .menu-btn { border-color: rgba(255, 255, 255, 0.35); }
.masthead-on-hero .primary-nav.open {
  background: rgba(16, 11, 9, 0.92);
  padding: 0.85rem 1rem 1rem;
  border-radius: 0.25rem;
}
.masthead-on-hero.is-solid {
  position: fixed;
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--rule);
  backdrop-filter: blur(10px);
}
.masthead-on-hero.is-solid .primary-nav.open {
  background: var(--bg);
}
.masthead-on-hero.is-solid .wordmark,
.masthead-on-hero.is-solid .primary-nav a,
.masthead-on-hero.is-solid .menu-btn {
  color: var(--ink);
}
.masthead-on-hero.is-solid .menu-btn { border-color: var(--rule); }
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}
.wordmark {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.primary-nav a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.primary-nav a:hover { opacity: 0.55; }
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

/* Magazine hero — New Yorker solar-farm layout */
.hero {
  position: relative;
  min-height: min(92vh, 46rem);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: var(--hero-ink);
  background: #140e0c url("../img/hero.svg") center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 7, 6, 0.18) 0%, rgba(10, 7, 6, 0.12) 42%, rgba(10, 7, 6, 0.62) 100%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(44rem, calc(100% - 2.5rem));
  text-align: center;
  padding: 7.5rem 0 4.25rem;
}
.kicker {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
}
.hero .kicker { color: var(--hero-ink); }
.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1.15rem;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.5;
  margin: 0 auto 1.15rem;
  max-width: 36rem;
}
.byline {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0;
}

.section-nav {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.section-nav-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.5rem;
  padding: 0.85rem 0;
}
.section-nav a {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.section-nav a:hover { opacity: 0.5; }

/* Featured — SSENSE air + ghost button */
.featured {
  padding: 7.5rem 1.25rem 6.5rem;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.featured .kicker { color: var(--ink-muted); }
.featured h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 4.15rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 auto 1.5rem;
  max-width: 18ch;
}
.featured .deck {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 34rem;
  margin: 0 auto 2.25rem;
}
.ghost {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.7rem 1.15rem;
  background: transparent;
}
.ghost:hover { background: var(--ink); color: #fff; }

/* Desks */
.desks { padding: 4.5rem 0 2rem; }
.desk {
  padding: 0 0 3.25rem;
}
.desk + .desk { border-top: 1px solid var(--rule); padding-top: 3.25rem; }
.desk-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.desk-head h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}
.desk-head p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-muted);
  margin: 0;
}
.desk-list { list-style: none; margin: 0; padding: 0; }
.desk-list a {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
}
.desk-list li:last-child a { border-bottom: 1px solid var(--rule); }
.desk-list a:hover .desk-title { opacity: 0.55; }
.desk-cat {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.desk-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
  line-height: 1.25;
}
.desk-dek {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.02rem;
  max-width: 40rem;
}
.desk-go {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

.closer {
  padding: 4.5rem 0 5.5rem;
  border-top: 1px solid var(--rule);
}
.closer h2 {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.closer p { color: var(--ink); margin: 0 0 1rem; }

/* Review article — Hers whitespace + rules */
.review { padding: 3.5rem 0 4.5rem; }
.review-head { padding-bottom: 1.5rem; }
.review .kicker { color: var(--ink-muted); }
.review h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0;
}
.review-summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.95rem 0;
  margin-bottom: 1.75rem;
}
.meta {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.45;
}
.review h2 {
  font-family: var(--sans);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin: 2.4rem 0 0.75rem;
}
.review p { margin: 0 0 1rem; }
.review ul { padding-left: 1.15rem; margin: 0 0 1rem; }
.review li + li { margin-top: 0.35rem; }

.disclosure {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.45;
  margin: 0 0 2rem;
}
.info-mark {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid var(--ink-muted);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  margin-top: 0.12rem;
}

.buybox,
.buy-panel {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.35rem 0 1.2rem;
  margin: 1.75rem 0;
}
.buy-panel { padding-bottom: 0.4rem; }
.buybox + .buybox {
  border-top: none;
  margin-top: -1.75rem;
  padding-top: 0;
}
.buybox strong,
.buy-row-name {
  display: block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.buybox span,
.buy-row-meta {
  display: block;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.buy-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.buy-panel .disclosure { margin: 1rem 0 1.15rem; }

/* Accent reserved for Amazon CTA only */
.btn {
  display: inline-block;
  margin-top: 0.85rem;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  padding: 0.78rem 1.15rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 0.35rem;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: #fff !important; }
.btn-compact { margin-top: 0; white-space: nowrap; padding: 0.7rem 0.9rem; }
.note {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin: 0.55rem 0 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.5rem 0 2rem;
}
.box h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
}
.box ul { margin: 0; }
.box.for h3,
.box.skip h3 { color: var(--ink); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.25rem 0 1.75rem;
}
th, td {
  text-align: left;
  border-bottom: 1px solid var(--rule);
  padding: 0.7rem 0.5rem 0.7rem 0;
  vertical-align: top;
}
th {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.verdict {
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
  padding: 1.35rem 0 0.4rem;
  margin: 2.25rem 0 1.5rem;
}
.verdict h2 { margin-top: 0; }
.source {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Sticky buy dock — Hers bottom bar + Record Club disclosure */
.buy-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: #fff;
  border-top: 1px solid var(--rule);
  box-shadow: 0 -8px 24px rgba(20, 20, 20, 0.04);
}
.buy-dock-inner {
  width: min(var(--wide), calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.85rem 0;
}
.buy-dock-meta { min-width: 0; }
.buy-dock-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.15rem;
}
.buy-dock-note {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.35;
}
.buy-dock .btn { margin-top: 0; }
.buy-dock-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

footer.site {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3rem;
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.55;
}
footer.site .ft-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 2rem;
}
footer.site p { margin: 0 0 0.85rem; }
footer.site a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
footer.site a:hover { border-bottom-color: var(--ink); }
footer.site strong { color: var(--ink); font-weight: 600; }

.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.25rem;
}
.page-404 h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.6rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

@media (max-width: 800px) {
  .desk-list a {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .desk-go { display: none; }
  .desk-head { flex-direction: column; align-items: flex-start; }
  .split, footer.site .ft-grid { grid-template-columns: 1fr; }
  .buy-row { flex-direction: column; align-items: flex-start; }
  .review-summary { flex-direction: column; }
}

@media (max-width: 720px) {
  .menu-btn { display: block; }
  .primary-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0 0 1rem;
  }
  .primary-nav.open { display: flex; }
  .masthead-inner { flex-wrap: wrap; }
  .hero { min-height: 86vh; }
  .hero-copy { padding: 6.5rem 0 3rem; }
  .featured { padding: 4.5rem 0.25rem 4rem; }
  .buy-dock-inner { flex-direction: column; align-items: stretch; }
  .buy-dock .btn { width: 100%; text-align: center; }
  .buy-dock-actions { width: 100%; }
  .buy-dock-actions .btn { flex: 1; text-align: center; }
  body.has-dock { padding-bottom: 9.5rem; }
}
