:root {
  --paper: #f7f1e8;
  --paper-light: #faf6ef;
  --cream: #fff9f0;
  --espresso: #2f241d;
  --muted: #6f6258;
  --taupe: #ded2c2;
  --clay: #a9684b;
  --clay-dark: #7f4a34;
  --sage: #7e8a6a;
  --shadow: 0 18px 50px rgba(47, 36, 29, 0.08);
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  color: var(--espresso);
  background:
    radial-gradient(circle at top left, rgba(169,104,75,.10), transparent 32rem),
    linear-gradient(180deg, var(--paper-light), var(--paper));
  line-height: 1.65;
  font-size: 18px;
}
a { color: inherit; text-decoration-color: rgba(169,104,75,.45); text-underline-offset: .18em; }
a:hover { color: var(--clay-dark); }
.site-header, .site-footer, .section { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 18px;
}
.brand { text-decoration: none; line-height: 1.05; display: inline-flex; letter-spacing: -.03em; }
.brand-main { font-size: clamp(1.35rem, 2.4vw, 1.95rem); font-weight: 800; }
.nav { display: flex; gap: 18px; font-size: .98rem; color: var(--muted); }
.nav a { text-decoration: none; }
.section { padding: 54px 0; }
.hero { padding: 42px 0 40px; max-width: 760px; margin-inline: auto; text-align: center; }
.eyebrow, .card-kicker { color: var(--clay-dark); text-transform: uppercase; letter-spacing: .16em; font: 700 .74rem/1.2 ui-sans-serif, system-ui, sans-serif; margin: 0 0 14px; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
h3 { font-size: clamp(1.08rem, 1.35vw, 1.28rem); }
.lede { color: var(--muted); font-size: clamp(.98rem, 1.25vw, 1.08rem); max-width: 620px; margin: 20px auto 0; }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.button, button {
  border: 1px solid var(--clay);
  background: var(--clay);
  color: #fffaf4;
  border-radius: 999px;
  padding: 13px 20px;
  font: 800 .9rem/1 ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary { background: transparent; color: var(--clay-dark); }
button:disabled, input:disabled { opacity: .75; cursor: not-allowed; }
.intro-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 52px; border-top: 1px solid var(--taupe); border-bottom: 1px solid var(--taupe); }
.intro-grid p { margin: 0; color: var(--muted); font-size: 1.15rem; }
.section-heading { max-width: 760px; margin-bottom: 28px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  background: rgba(255,249,240,.78);
  border: 1px solid var(--taupe);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
  min-height: 250px;
}
.card.featured { background: #fff4e7; border-color: rgba(169,104,75,.35); }
.card h3 a { text-decoration: none; }
.card p:last-child { color: var(--muted); margin-bottom: 0; }
.signup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  background: rgba(126,138,106,.10);
  border: 1px solid rgba(126,138,106,.22);
  border-radius: 30px;
  padding: 34px;
  margin-bottom: 42px;
}
.signup p { color: var(--muted); }
.signup-form label { display: block; font: 800 .88rem/1 ui-sans-serif, system-ui, sans-serif; margin-bottom: 10px; }
.form-row { display: flex; gap: 10px; }
input {
  width: 100%;
  border: 1px solid var(--taupe);
  border-radius: 999px;
  padding: 13px 16px;
  background: var(--cream);
  color: var(--espresso);
  font: 1rem/1.2 ui-sans-serif, system-ui, sans-serif;
}
.form-note { font-size: .9rem; margin-bottom: 0; }
.site-footer { border-top: 1px solid var(--taupe); padding: 26px 0 44px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .95rem; }
.article-wrap { width: min(820px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0; }
.article-header { padding: 46px 0 30px; }
.article-header .lede { margin-left: 0; }
.quick-picks, .book, .note-box { background: rgba(255,249,240,.82); border: 1px solid var(--taupe); border-radius: 24px; padding: 24px; margin: 24px 0; }
.quick-picks ul { margin-bottom: 0; }
.book h2 { font-size: clamp(1.25rem, 1.9vw, 1.65rem); }
.meta { color: var(--muted); font-style: italic; }
.book-actions { margin-top: 18px; }
.disclosure-inline { color: var(--muted); font-size: .96rem; border-top: 1px solid var(--taupe); padding-top: 18px; margin-top: 32px; }
@media (max-width: 820px) {
  body { font-size: 17px; }
  .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
  .hero { text-align: left; padding-top: 54px; }
  .hero-actions { justify-content: flex-start; }
  .intro-grid, .signup { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
}

.book { scroll-margin-top: 28px; }
.quick-picks a { text-decoration-thickness: 1px; }

.pull-quote {
  position: relative;
  margin: 34px 0;
  padding: 30px 30px 30px 72px;
  background: rgba(255, 249, 240, .88);
  border: 1px solid rgba(169,104,75,.28);
  border-radius: 28px;
  box-shadow: var(--shadow);
  color: var(--espresso);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.28;
  letter-spacing: -.02em;
}
.pull-quote::before {
  content: "“";
  position: absolute;
  left: 22px;
  top: 4px;
  color: rgba(169,104,75,.42);
  font-size: 6rem;
  line-height: 1;
  font-weight: 800;
}
.pull-quote strong { color: var(--clay-dark); }
.reading-path {
  background: rgba(126,138,106,.12);
  border: 1px solid rgba(126,138,106,.28);
  border-radius: 28px;
  padding: 26px;
  margin: 30px 0;
}
.reading-path ol { margin: 14px 0 0; padding-left: 1.35rem; }
.reading-path li + li { margin-top: 10px; }
@media (max-width: 820px) {
  .pull-quote { padding: 26px 22px 24px 56px; }
  .pull-quote::before { left: 16px; font-size: 4.7rem; }
}

.topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.topic-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(169,104,75,.26);
  background: rgba(255,249,240,.75);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--clay-dark);
  font: 800 .72rem/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.topic-chip:hover { background: #fff4e7; color: var(--espresso); }
.topic-page-list { display: grid; gap: 18px; margin-top: 28px; }

.discovery-search {
  width: min(820px, calc(100% - 32px));
  margin: -20px auto 36px;
  background: rgba(255,249,240,.88);
  border: 1px solid rgba(169,104,75,.24);
  border-radius: 30px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.search-label {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.16;
  letter-spacing: -.025em;
  font-weight: 800;
  margin-bottom: 14px;
}
.search-label span { color: var(--clay-dark); }
.discovery-search input {
  border-radius: 18px;
  font-size: 1.05rem;
}
.search-results {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.search-result {
  display: block;
  background: rgba(247,241,232,.72);
  border: 1px solid var(--taupe);
  border-radius: 18px;
  padding: 14px 16px;
  text-decoration: none;
}
.search-result strong { display: block; line-height: 1.2; }
.search-result span { color: var(--muted); display: block; margin-top: 4px; font-size: .96rem; }
.search-empty { color: var(--muted); margin: 12px 0 0; }
.search-hints { color: var(--muted); font-size: .94rem; margin: 10px 0 0; }
@media (max-width: 820px) { .discovery-search { margin-top: -10px; } }

.start-here-row {
  width: min(920px, calc(100% - 32px));
  margin: -14px auto 42px;
  text-align: center;
}
.start-here-row h2 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin-bottom: 14px;
}
.start-here-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.start-here-links a {
  display: inline-flex;
  border: 1px solid var(--taupe);
  background: rgba(255,249,240,.72);
  border-radius: 999px;
  padding: 9px 13px;
  text-decoration: none;
  color: var(--clay-dark);
  font: 800 .86rem/1 ui-sans-serif, system-ui, sans-serif;
}
.start-here-links a:hover { background: #fff4e7; color: var(--espresso); }

/* Mobile/gutter fixes for discovery blocks */
.discovery-search,
.start-here-row {
  width: min(var(--max), calc(100% - 32px));
}
.discovery-search {
  margin-top: 0;
}
.start-here-row {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--taupe);
}
@media (max-width: 820px) {
  .hero { padding-bottom: 28px; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { flex: 1 1 180px; text-align: center; }
  .discovery-search {
    width: calc(100% - 32px);
    margin: 0 auto 28px;
    padding: 20px;
    border-radius: 24px;
  }
  .search-label {
    font-size: 1.35rem;
  }
  .search-hints {
    font-size: .9rem;
    line-height: 1.5;
  }
  .start-here-row {
    width: calc(100% - 32px);
    margin: 0 auto 36px;
    text-align: left;
  }
  .start-here-links {
    justify-content: flex-start;
    gap: 8px;
  }
  .start-here-links a {
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: .82rem;
    line-height: 1;
    text-decoration: none;
    padding: 9px 11px;
  }
  .intro-grid {
    padding-top: 42px;
  }
}

.archive-cta {
  margin-top: 26px;
  text-align: center;
}
.archive-cta a {
  display: inline-flex;
  border: 1px solid var(--clay);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--clay-dark);
  background: rgba(255,249,240,.72);
  text-decoration: none;
  font: 800 .92rem/1 ui-sans-serif, system-ui, sans-serif;
}
.archive-cta a:hover { background: #fff4e7; color: var(--espresso); }

/* Archive CTA refinement */
.archive-cta {
  margin: 34px auto 8px;
  text-align: center;
}
.archive-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(169,104,75,.32);
  border-radius: 999px;
  padding: 13px 18px;
  color: var(--clay-dark);
  background: rgba(255,249,240,.86);
  box-shadow: 0 10px 28px rgba(47,36,29,.06);
  text-decoration: none;
  font: 800 .94rem/1 ui-sans-serif, system-ui, sans-serif;
}
.archive-cta a:hover { background: #fff4e7; color: var(--espresso); transform: translateY(-1px); }
#latest.section { padding-bottom: 34px; }
.signup { margin-top: 14px; }
@media (max-width: 820px) {
  .archive-cta { margin-top: 24px; text-align: left; }
  .archive-cta a { width: 100%; }
}

/* Lists archive filters */
.list-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: -16px 0 28px;
}
.list-filters button {
  border: 1px solid rgba(169,104,75,.28);
  background: rgba(255,249,240,.78);
  color: var(--clay-dark);
  border-radius: 999px;
  padding: 9px 12px;
  font: 800 .78rem/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.list-filters button.active,
.list-filters button:hover {
  background: var(--clay);
  color: #fffaf4;
  border-color: var(--clay);
}
.card[hidden] { display: none; }

/* Lists archive heading alignment */
.lists-hero .lede {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

/* Lists archive hard override */
.lists-hero .lede {
  margin: 22px 0 0 !important;
  text-align: left !important;
  max-width: 760px;
}
.list-filters {
  align-items: center;
  margin: -16px 0 28px !important;
}
.list-filters button,
.list-filters button[type="button"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(169,104,75,.28) !important;
  background: rgba(255,249,240,.78) !important;
  color: var(--clay-dark) !important;
  border-radius: 999px !important;
  padding: 9px 12px !important;
  box-shadow: none !important;
  font: 800 .78rem/1 ui-sans-serif, system-ui, sans-serif !important;
}
.list-filters button.active,
.list-filters button[type="button"].active {
  background: var(--clay) !important;
  color: #fffaf4 !important;
  border-color: var(--clay) !important;
}
.list-filters button:hover,
.list-filters button[type="button"]:hover {
  background: #fff4e7 !important;
  color: var(--espresso) !important;
  border-color: rgba(169,104,75,.42) !important;
}
.list-filters button.active:hover,
.list-filters button[type="button"].active:hover {
  background: var(--clay) !important;
  color: #fffaf4 !important;
}

/* Lists archive mobile tightening */
@media (max-width: 820px) {
  .lists-hero {
    padding-top: 34px;
    padding-bottom: 22px;
  }
  .lists-hero h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }
  .lists-hero .lede {
    margin-top: 18px !important;
    font-size: 1rem;
  }
  .lists-hero + .section {
    padding-top: 18px;
  }
  .list-filters {
    margin: 0 0 22px !important;
    gap: 8px;
  }
  .list-filters button,
  .list-filters button[type="button"] {
    padding: 8px 11px !important;
    font-size: .76rem !important;
  }
  .list-cards {
    gap: 14px;
  }
}

/* Global mobile header tightening */
@media (max-width: 820px) {
  .site-header {
    padding: 22px 0 8px;
    gap: 14px;
  }
  .nav {
    gap: 16px;
  }
  .hero {
    padding-top: 30px;
  }
  .article-wrap {
    padding-top: 24px;
  }
  .article-header {
    padding-top: 22px;
  }
  main > .section:first-child {
    padding-top: 30px;
  }
  .lists-hero {
    padding-top: 28px;
  }
}

/* Mobile archive CTA line break */
.archive-cta-arrow { margin-left: .35em; }
@media (max-width: 820px) {
  .archive-cta a {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    line-height: 1.18 !important;
    padding: 14px 18px !important;
  }
  .archive-cta-arrow {
    margin-left: 0;
    line-height: 1;
  }
}

/* Safe mobile archive CTA layout */
.archive-cta-text { display: inline; }
@media (max-width: 820px) {
  .archive-cta a {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    white-space: normal !important;
  }
  .archive-cta-text,
  .archive-cta-arrow {
    display: block !important;
  }
}

/* Rollback: stable homepage archive CTA */
.archive-cta a {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: normal !important;
  line-height: 1.18 !important;
}
.archive-cta-text,
.archive-cta-arrow {
  display: inline !important;
}
@media (max-width: 820px) {
  .archive-cta a {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100%;
  }
}

/* Stable all-lists homepage link */
.all-lists-cta {
  margin: 30px 0 0;
  text-align: center;
}
.all-lists-cta a {
  display: inline-block;
  color: var(--clay-dark);
  font: 800 .95rem/1.25 ui-sans-serif, system-ui, sans-serif;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
}
.all-lists-cta a:hover { color: var(--espresso); }
@media (max-width: 820px) {
  .all-lists-cta {
    text-align: left;
    margin-top: 22px;
  }
  .all-lists-cta a {
    max-width: 250px;
  }
}

/* Final stable homepage all-lists CTA */
.all-lists-cta {
  margin: 32px auto 0;
  text-align: center;
}
.all-lists-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid rgba(169,104,75,.34);
  border-radius: 999px;
  background: rgba(255,249,240,.9);
  box-shadow: 0 10px 28px rgba(47,36,29,.07);
  color: var(--clay-dark);
  font: 800 .95rem/1.2 ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
}
.all-lists-cta a:hover {
  background: #fff4e7;
  color: var(--espresso);
}
@media (max-width: 820px) {
  .all-lists-cta {
    text-align: left;
    margin-top: 24px;
  }
  .all-lists-cta a {
    width: 100%;
    justify-content: flex-start;
    border-radius: 18px;
    padding: 14px 16px;
    line-height: 1.18;
  }
}

.related-lists {
  background: rgba(126,138,106,.10);
  border-color: rgba(126,138,106,.26);
}
.related-lists ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.related-lists li {
  border-top: 1px solid rgba(126,138,106,.22);
  padding-top: 12px;
}
.related-lists li:first-child { border-top: 0; padding-top: 0; }
.related-lists a {
  display: block;
  font-weight: 800;
  text-decoration: none;
}
.related-lists span {
  display: block;
  color: var(--muted);
  font-size: .96rem;
  margin-top: 2px;
}
