/* ============================================
   Typewriter Buyer's Guide
   Matched to stephenlloydwebber.com:
   cream, linen, gamboge, hermes green
   Newsreader + Lexend Deca + Courier Prime
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;1,6..72,300;1,6..72,400&family=Lexend+Deca:wght@300;400;500&family=Courier+Prime:wght@400;700&display=swap');

:root {
  --cream: #FAFAF4;
  --cream-dark: #F2F0E8;
  --parchment: #EDEAD8;
  --text: #2E2519;
  --text-light: #6B5E4F;
  --text-muted: #9A8E7F;
  --accent: #E49B0F;          /* gamboge */
  --accent-hover: #C9880A;
  --accent-light: #F5D88A;
  --accent-green: #5B7E5F;    /* hermes green */
  --accent-green-light: #A3C2A6;
  --rule: #DDD9CE;
  --rule-light: #EAE8DE;
  --white: #FFFDF8;

  --font-heading: 'Newsreader', 'Georgia', serif;
  --font-body: 'Lexend Deca', 'Helvetica Neue', sans-serif;
  --font-ui: 'Lexend Deca', 'Helvetica Neue', sans-serif;
  --font-mono: 'Courier Prime', 'Courier New', monospace;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 9rem;

  --max-width: 1200px;
  --content-width: 720px;
  --nav-height: 72px;
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--cream);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(120, 100, 70, 0.02) 3px,
    rgba(120, 100, 70, 0.02) 4px
  );
}

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--accent); }

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

::selection { background-color: var(--accent-light); color: var(--text); }

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: 3.2rem; font-weight: 300; letter-spacing: -0.01em; }
h2 { font-size: 2.2rem; font-weight: 400; letter-spacing: -0.005em; }
h3 { font-size: 1.5rem; font-weight: 500; }
h4 { font-size: 1.15rem; font-weight: 600; font-family: var(--font-body); }

p { margin-bottom: 1.4rem; }
p:last-child { margin-bottom: 0; }

.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
small, .small { font-size: 0.85rem; }

.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-green);
}

.kicker {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent-green);
  margin-bottom: var(--space-xs);
  display: block;
}

.lead { font-size: 1.12rem; line-height: 1.75; color: var(--text); }

.hl {
  background: linear-gradient(
    to top,
    rgba(228, 155, 15, 0.18) 0%,
    rgba(228, 155, 15, 0.18) 40%,
    transparent 40%
  );
  padding: 0 2px;
}

.key { color: var(--accent-green); font-weight: 500; }

.pullquote {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
  margin: var(--space-lg) auto;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
  text-align: center;
  max-width: 600px;
}

.aside { font-size: 0.88rem; color: var(--text-muted); font-style: italic; }

.coda {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-light);
  margin-top: var(--space-md);
}

.drop-cap::first-letter {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 300;
  float: left;
  line-height: 0.8;
  margin-right: 0.12em;
  margin-top: 0.08em;
  color: var(--accent-green);
}

blockquote {
  border-left: 2px solid var(--accent-green-light);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  font-style: italic;
  color: var(--text-light);
}

blockquote cite, blockquote .cite {
  display: block;
  margin-top: var(--space-sm);
  font-style: normal;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section { padding: var(--space-xl) 0; }

.rule { border: none; border-top: 1px solid var(--rule); margin: var(--space-lg) auto; max-width: 80px; }
.rule--wide { max-width: 100%; }

/* ---- Navigation ---- */

/* Guide-internal sub-nav (Browse / Find yours / Vocabulary / About this guide).
   Sits below the main site nav. Static — not sticky — so the main site nav
   carries persistent identity, and the subnav scrolls away with the page. */
.subnav {
  background-color: var(--cream);
  border-bottom: 1px solid var(--rule-light);
}
.subnav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.7rem var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.subnav__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
}
.subnav__title small {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.02em;
  margin-top: 0.1rem;
}
.subnav__title:hover { color: var(--accent); }
.subnav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.subnav__links a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.subnav__links a:hover {
  color: var(--text);
  border-bottom-color: var(--accent-light);
}
.subnav__links a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 1001;
  background-color: rgba(250, 250, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-light);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.nav__logo:hover { color: var(--accent); }

.nav__logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: -0.1rem;
}

.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; }

.nav__links a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav__links a:hover, .nav__links a.active { color: var(--text); }

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

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn--primary { background-color: var(--accent); color: var(--white); }
.btn--primary:hover { background-color: var(--accent-hover); color: var(--white); }

.btn--outline {
  background-color: transparent;
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
}
.btn--outline:hover { background-color: var(--accent-green); color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--accent-green);
  padding: 0;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}

.btn--ghost::after {
  content: ' →';
  transition: transform 0.2s ease;
  display: inline-block;
}

.btn--ghost:hover::after { transform: translateX(3px); }

.btn--sm { font-size: 0.78rem; padding: 0.55rem 1rem; }

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

.hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  text-align: center;
}

.hero__label { margin-bottom: var(--space-md); }
.hero h1 { max-width: 820px; margin: 0 auto var(--space-md); }
.hero__sub {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 580px;
  margin: 0 auto var(--space-lg);
  line-height: 1.75;
}

.hero__doors {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.door {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--accent-green);
  background: rgba(255, 253, 248, 0.88);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: var(--accent-green);
  transition: background 0.25s ease, color 0.25s ease;
}

.door:hover { background: var(--accent-green); color: var(--white); }
.door__bold { font-weight: 500; }
.door__soft { font-weight: 400; opacity: 0.85; }
.door::after { content: '→'; transition: transform 0.2s ease; }
.door:hover::after { transform: translateX(3px); }

/* ---- Filter bar ---- */

.filterbar {
  background: var(--cream-dark);
  border: 1px solid var(--rule-light);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
}

.filterbar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.filterbar__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-green);
}

.filterbar__count {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.filterbar__clear {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.filterbar__clear:hover { color: var(--accent-hover); }

.filter-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 0.4rem 0;
  flex-wrap: wrap;
}

.filter-group__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  min-width: 70px;
  padding-top: 0.4rem;
}

.filter-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; flex: 1; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  background: var(--white);
  border: 1px solid var(--rule);
  color: var(--text-light);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s ease;
}

.chip:hover { border-color: var(--accent-green); color: var(--accent-green); }

.chip.active {
  background: var(--accent-green);
  color: var(--white);
  border-color: var(--accent-green);
}

.chip.active::after { content: '×'; font-weight: 500; opacity: 0.9; }

/* ---- Cluster grid ---- */

.cluster { margin-bottom: var(--space-lg); }
.cluster.hidden { display: none; }

.cluster__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--rule-light);
  flex-wrap: wrap;
}

.cluster__title { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 400; color: var(--text); }
.cluster__title em { font-style: italic; color: var(--accent-green); font-weight: 400; }
.cluster__count { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.08em; }

.cluster__blurb {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  max-width: 640px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
}

/* ---- Model card ---- */

.card {
  background: var(--white);
  border: 1px solid var(--rule-light);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 4px 24px rgba(46, 37, 25, 0.06);
}

.card:hover .card__name { color: var(--accent-green); }
.card.hidden { display: none; }

.card__image {
  aspect-ratio: 3/2;
  background: var(--parchment);
  border-bottom: 1px solid var(--rule-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.4s ease;
}

.card:hover .card__image img { transform: scale(1.03); }

.silhouette { width: 50%; height: 50%; color: var(--text-muted); opacity: 0.5; }

.card__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card__body { padding: var(--space-sm) var(--space-md) var(--space-md); flex: 1; display: flex; flex-direction: column; }

.card__name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.2rem;
  transition: color 0.2s ease;
}

.card__name .sub {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.8em;
  font-weight: 300;
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.card__qualifier {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.card__attr {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.card__sources-count {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--accent-green);
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--rule-light);
}

.card__credit {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  padding: 0.3rem var(--space-md) var(--space-sm);
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1.4;
  border-top: 1px dotted var(--rule-light);
}

.detail__credit {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.detail__variation {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-muted);
  padding: 0.1rem 0.6rem 0.55rem;
  margin: 0;
  line-height: 1.5;
}

.detail__image-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text);
  padding: 0.5rem 0.6rem 0.1rem;
  margin: 0;
  line-height: 1.4;
}

.detail__gallery {
  display: flex;
  gap: 0.4rem;
  padding: 0.55rem 0.6rem 0.7rem;
  border-top: 1px solid var(--rule-light);
  flex-wrap: wrap;
}

.detail__thumb {
  background: var(--cream);
  border: 1px solid var(--rule-light);
  padding: 0;
  cursor: pointer;
  width: 72px;
  height: 54px;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
  display: block;
  border-radius: 2px;
}

.detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail__thumb:hover {
  border-color: var(--accent-light);
  transform: translateY(-1px);
}

.detail__thumb.is-active {
  border-color: var(--accent);
  border-width: 2px;
  padding: 0;
}

.intro-note {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dotted var(--rule-light);
  max-width: 640px;
}

.card__no-qualifier {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

/* ---- Find flow ---- */

.find { max-width: var(--content-width); margin: 0 auto; padding: var(--space-lg) 0; }

.find__progress {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.find__progress-step {
  width: 36px;
  height: 3px;
  background: var(--rule-light);
  transition: background 0.2s ease;
}

.find__progress-step.complete { background: var(--accent); }
.find__progress-step.current { background: var(--accent-green); }

.find__question { margin-bottom: var(--space-lg); }

.find__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: var(--space-sm);
}

.find__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.find__sub {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.find__options { display: flex; flex-direction: column; gap: 0.75rem; }

.find__option {
  background: var(--white);
  border: 1px solid var(--rule-light);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  width: 100%;
  transition: all 0.18s ease;
}

.find__option-letter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  min-width: 1.5rem;
}

.find__option:hover {
  border-color: var(--accent-light);
  background: var(--cream);
  transform: translateX(4px);
}

.find__option:hover .find__option-letter { color: var(--accent); }

.find__option.selected {
  background: var(--accent-green);
  color: var(--white);
  border-color: var(--accent-green);
}

.find__option.selected .find__option-letter { color: rgba(255, 253, 248, 0.7); }

.find__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-md);
  gap: var(--space-sm);
}

.find__back {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0;
}

.find__back:hover { color: var(--accent-green); }
.find__back:disabled { opacity: 0.3; cursor: not-allowed; }

.find__hint {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---- Result list ---- */

.result__head { text-align: center; margin-bottom: var(--space-lg); }

.result__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}

.shortlist { display: flex; flex-direction: column; gap: var(--space-sm); }

.shortlist-section { font-family: var(--font-heading); font-style: italic; color: var(--text-muted); text-align: center; margin: var(--space-md) 0 var(--space-xs); font-size: 1.05rem; }

.shortlist-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  background: var(--white);
  border: 1px solid var(--rule-light);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.shortlist-item:hover { border-color: var(--accent-light); box-shadow: 0 4px 24px rgba(46, 37, 25, 0.06); }

.shortlist-item__rank {
  background: var(--cream-dark);
  border-right: 1px solid var(--rule-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 2.4rem;
  color: var(--accent-green);
}

.shortlist-item__body { padding: var(--space-sm) var(--space-md); }

.shortlist-item__name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.shortlist-item__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.shortlist-item__reasoning { font-size: 0.92rem; color: var(--text-light); margin-bottom: 0.3rem; }

.shortlist-item__qualifier {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text);
}

.shortlist-item__attr { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }

/* ---- Detail page ---- */

.detail__back {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-block;
  margin: var(--space-md) 0;
}

.detail__back:hover { color: var(--accent-green); }

.detail__hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--rule-light);
}

/* The wrap is a normal block column: image box on top, captions stacked below. */
.detail__image-wrap {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule-light);
  background: var(--cream-dark);
  overflow: hidden;
}

/* Only the image itself is the fixed-ratio, clipped box. */
.detail__image {
  background: var(--parchment);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--rule-light);
}

.detail__image img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 1.5rem; }

.detail__info h1 { font-size: 2.6rem; margin-bottom: 0.3rem; }
.detail__info h1 .sub {
  display: block;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: 0.2rem;
}

.detail__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.detail__tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: var(--space-md); }

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  background: var(--cream-dark);
  border: 1px solid var(--rule-light);
  color: var(--text-light);
}

.tag--green { background: var(--accent-green); color: var(--white); border-color: var(--accent-green); }

.detail__section { padding: var(--space-md) 0; border-bottom: 1px solid var(--rule-light); }

.detail__section h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.detail__section h2 em { font-style: italic; color: var(--accent-green); }

/* Qualifier blocks */

.qualifiers { display: flex; flex-direction: column; gap: var(--space-sm); }

.qualifier {
  padding-left: var(--space-md);
  border-left: 2px solid var(--accent-green-light);
}

.qualifier__claim {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.qualifier__attr {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.qualifier__attr a {
  color: var(--accent-green);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-green-light);
}

.qualifier__attr a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Worth knowing — factual asides */
.note-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.note-card {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  padding-left: var(--space-md);
  border-left: 2px solid var(--rule-light);
}

.note-card__src {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--accent-green);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-green-light);
}

.note-card__src:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Notable users */

.users-list { display: flex; flex-direction: column; gap: 0.6rem; }

.user-line {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding-bottom: 0.6rem;
  border-bottom: 1px dotted var(--rule-light);
}

.user-line:last-child { border-bottom: none; }

.user-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  min-width: 180px;
}

.user-context { font-size: 0.92rem; color: var(--text-light); flex: 1; }

/* See & hear */

.see-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-sm);
}

.see-card {
  display: block;
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  border: 1px solid var(--rule-light);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.see-card:hover { border-color: var(--accent-light); box-shadow: 0 4px 24px rgba(46, 37, 25, 0.06); }
.see-card:hover .see-card__title { color: var(--accent-green); }

.see-card__kind {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 0.25rem;
}

.see-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  transition: color 0.2s ease;
}

.see-card__attr {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* All-sources */

.sources-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--rule);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text);
  text-decoration: none;
  transition: all 0.18s ease;
}

.source-chip:hover { background: var(--accent-green); color: var(--white); border-color: var(--accent-green); }

.source-chip__kind { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }
.source-chip:hover .source-chip__kind { color: rgba(255, 253, 248, 0.7); }

/* Specs */

.specs { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; }

.specs dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.specs dd { font-family: var(--font-body); color: var(--text); }

/* ---- Vocabulary page ---- */

.vocab-axis {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--rule-light);
}

.vocab-axis:last-child { border-bottom: none; }
.vocab-axis h2 { margin-bottom: 0.5rem; }
.vocab-axis > p { color: var(--text-light); margin-bottom: var(--space-md); }

.vocab-axis h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-green);
  font-weight: 400;
  margin: var(--space-sm) 0 0.5rem;
}

.vocab-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: var(--space-sm); }

.vocab-tag {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  background: var(--cream-dark);
  border: 1px solid var(--rule-light);
  color: var(--text-light);
  border-radius: 2px;
}

.vocab-tag.primary {
  background: var(--accent-green);
  color: var(--white);
  border-color: var(--accent-green);
}

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

.footer {
  border-top: 1px solid var(--rule);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-lg);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer__left {
  max-width: 360px;
}

.footer__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: var(--space-xs);
  color: var(--text);
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer__col h4 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__col li {
  margin-bottom: 0.5rem;
}

.footer__col a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: none;
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--rule-light);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer__email a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-light);
  text-decoration: none;
}

.footer__email a:hover { color: var(--accent); }

.footer__subscribe {
  margin-top: var(--space-md);
  max-width: 340px;
}

.footer__subscribe-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.footer__subscribe-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.footer__subscribe-form {
  display: flex;
  gap: 0.5rem;
}

.footer__subscribe-form input[type="email"] {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--cream);
  color: var(--text);
  outline: none;
}

.footer__subscribe-form input[type="email"]:focus {
  border-color: var(--accent-light);
}

.footer__subscribe-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.btn--sm {
  font-size: 0.78rem;
  padding: 0.55rem 1.1rem;
  letter-spacing: 0.04em;
}

.footer__subscribe-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  min-height: 1em;
}

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

.empty-state {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  color: var(--text-muted);
  font-style: italic;
}

.note {
  background: var(--cream-dark);
  border-left: 3px solid var(--accent);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

.note strong { color: var(--text); font-weight: 500; }

.hidden { display: none !important; }
.center { text-align: center; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }

/* ---- Responsive ---- */

@media (max-width: 900px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.7rem; }
  .detail__hero { grid-template-columns: 1fr; }
  .filter-group { flex-direction: column; gap: 0.4rem; }
  .filter-group__label { padding-top: 0; }
}

@media (max-width: 640px) {
  html { font-size: 17px; }
  .cards { grid-template-columns: 1fr; }
  .nav__links { gap: 1rem; }
  .nav__links a { font-size: 0.75rem; }
  .subnav__inner { padding: 0.5rem 1rem; gap: 0.6rem; }
  .subnav__title { font-size: 0.88rem; }
  .subnav__title small { font-size: 0.65rem; }
  .subnav__links { gap: 1rem; }
  .subnav__links a { font-size: 0.74rem; }
  .user-line { flex-direction: column; gap: 0.2rem; }
  .user-name { min-width: 0; }
  .shortlist-item { grid-template-columns: 60px 1fr; }
  .shortlist-item__rank { font-size: 1.6rem; }
}
