/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #f3f1ec;
  --bg-soft: #ebe8e1;
  --surface: #fbfaf7;
  --ink: #1c2a21;
  --muted: #5b675e;
  --line: #dfdbd2;
  --sky: #e8e5dd;
  --sunshine: #d9a441;
  --coral: #c9674f;
  --violet: #1f4d3a;
  --mint: #3d7a55;
  --accent: #1f4d3a;
  --on-accent: #ffffff;
  --shadow: none;
  --shadow-lg:
    0 0 0 1px rgb(31 29 26 / 5%), 0 8px 24px rgb(31 29 26 / 12%), 0 20px 48px rgb(31 29 26 / 12%);
  --radius: 14px;
  --radius-lg: 20px;
  --max: 90rem;
  --gutter: clamp(1rem, 3.5vw, 3rem);
  --sunshine-ink: #b27a00;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

:root:where([data-theme='light']) {
  color-scheme: light;
}
:root:where([data-theme='dark']) {
  color-scheme: dark;
  --sunshine-ink: var(--sunshine);
  --bg: #131312;
  --bg-soft: #1a1a18;
  --surface: #20201d;
  --ink: #ebebe8;
  --muted: #aaa79e;
  --line: #2e2d2a;
  --sky: #272622;
  --violet: #e9c46a;
  --accent: #e9c46a;
  --on-accent: #1a1608;
  --shadow: none;
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 40%), 0 18px 48px rgb(0 0 0 / 45%);
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme='light'])) {
    --sunshine-ink: var(--sunshine);
    --bg: #131312;
    --bg-soft: #1a1a18;
    --surface: #20201d;
    --ink: #ebebe8;
    --muted: #aaa79e;
    --line: #2e2d2a;
    --sky: #272622;
    --violet: #e9c46a;
    --accent: #e9c46a;
    --on-accent: #1a1608;
    --shadow: none;
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 40%), 0 18px 48px rgb(0 0 0 / 45%);
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}
h1,
h2,
h3,
.brand,
.kicker,
.chip__name,
.tile__name,
.card__title,
.cover__title {
  font-family: var(--font-display);
}
h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}
h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}
h3 {
  font-size: 1.25rem;
}
p {
  margin: 0 0 1em;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
img {
  max-width: 100%;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
  border-radius: 6px;
}
[hidden] {
  display: none !important;
}
.icon {
  flex: none;
  vertical-align: -0.2em;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.85rem;
}
.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 46rem;
}
.prose {
  max-width: 44rem;
}
.prose h2 {
  margin-top: 1.6em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}
.kicker {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--violet);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn--library {
  background: var(--mint);
  border-color: var(--mint);
  color: #14213d;
}
.btn--lg {
  min-height: 52px;
  padding-inline: 1.5rem;
  font-size: 1.05rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
}
.site-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.6rem;
  flex-wrap: wrap;
}
.brand {
  flex: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  margin: 0;
}
.nav {
  display: flex;
  gap: 0.25rem;
  margin-left: 0.5rem;
}
.nav a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.nav a:hover {
  background: var(--sky);
}
.bar__tools {
  margin-left: auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  touch-action: manipulation;
}
.theme-toggle:hover {
  background: var(--sky);
}
.theme-toggle__sun,
.theme-toggle__moon {
  display: none;
  line-height: 0;
}
:root[data-theme='dark'] .theme-toggle__sun,
:root[data-theme='light'] .theme-toggle__moon {
  display: inline;
}
.shelf-link {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.shelf-link:hover {
  background: var(--sky);
}
.shelf-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  border-radius: 9px;
  background: var(--coral);
  color: #14213d;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
@media (max-width: 52rem) {
  .nav {
    order: 3;
    width: 100%;
    margin: 0;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }
  .brand span {
    font-size: 1.15rem;
  }
}

/* ---------- Search ---------- */
.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search__icon {
  position: absolute;
  left: 0.9rem;
  color: var(--muted);
  pointer-events: none;
}
.search input {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 3.4rem 0.5rem 2.6rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.search input:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.search__btn {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  aspect-ratio: 1;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--on-accent);
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    filter 0.15s,
    transform 0.15s;
}
.search__btn:hover {
  filter: brightness(1.1);
}
.search__btn:active {
  transform: scale(0.96);
}
.search__btn-text {
  display: none;
}
.bar__tools .search {
  width: clamp(12rem, 24vw, 22rem);
}
.search--large {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
}
.search--large input {
  min-height: 64px;
  font-size: 1.1rem;
  padding-left: 3.4rem;
  padding-right: 9rem;
  box-shadow: var(--shadow-lg);
}
.search--large .search__icon {
  left: 1.3rem;
}
.search--large .search__btn {
  aspect-ratio: auto;
  padding-inline: 1.4rem;
  right: 8px;
  top: 8px;
  bottom: 8px;
}
.search--large .search__btn-text {
  display: inline;
}
@media (max-width: 30rem) {
  .search--large input {
    min-height: 56px;
    padding-right: 4.4rem;
  }
  .search--large .search__btn {
    aspect-ratio: 1;
    padding-inline: 0;
  }
  .search--large .search__btn-text {
    display: none;
  }
}
.search--block {
  width: 100%;
}
.suggest {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: left;
  overflow: hidden;
}
.suggest a {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 1rem;
  text-decoration: none;
  min-height: 44px;
}
.suggest a:hover,
.suggest a[aria-selected='true'] {
  background: var(--sky);
}
.suggest .muted {
  font-size: 0.85rem;
}
@media (max-width: 40rem) {
  .bar__tools {
    flex: 1 1 100%;
    order: 2;
    margin-left: 0;
  }
  .bar__tools .search {
    width: 100%;
    flex: 1;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-soft);
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  margin-bottom: 0.3em;
  text-wrap: balance;
}
.hero__lede {
  max-width: 40rem;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
  color: var(--muted);
}
.hero__or {
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.hero__search {
  margin-top: 2.2rem;
}

/* ---------- Chips and tiles ---------- */
.chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
  gap: 0.85rem;
  text-align: left;
}
.chips--small {
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 4.6rem;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.chip .icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.55rem;
  border-radius: 50%;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 16%, var(--surface));
}
.chip__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.chip__name {
  font-size: 1.2rem;
  font-weight: 600;
}
.chip__blurb {
  font-size: 0.85rem;
  color: var(--muted);
}
.chip--sunshine {
  --tone: var(--sunshine-ink);
}
.chip--coral {
  --tone: var(--coral);
}
.chip--mint {
  --tone: var(--mint);
}
.chip--violet {
  --tone: var(--violet);
}

@media (max-width: 40rem) {
  .chips:not(.chips--small) {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .chip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    min-height: 5.6rem;
    padding: 0.8rem;
  }
  .chip__blurb {
    display: none;
  }
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.85rem;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem;
  min-height: 7.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  background: color-mix(in srgb, var(--tone) 12%, var(--surface));
  border-top: 3px solid var(--tone);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.tile:hover {
  transform: translateY(-2px);
}
.tile__name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: auto;
}
.tile__count {
  font-size: 0.85rem;
}
.tile--sunshine {
  --tone: var(--sunshine);
}
.tile--coral {
  --tone: var(--coral);
}
.tile--mint {
  --tone: var(--mint);
}
.tile--violet {
  --tone: var(--violet);
}
.tile__count {
  color: var(--muted);
}

.trust {
  margin-top: -1.2rem;
  position: relative;
}
.trust ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}
.trust li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.35;
}
.trust li span {
  display: flex;
  flex-direction: column;
}
.trust .icon {
  margin-top: 0.15rem;
  color: var(--violet);
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(1.5rem, 4vw, 3rem);
}
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.section__head h2 {
  margin: 0;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  white-space: nowrap;
  min-height: 44px;
}
.page {
  padding-block: 2rem 3rem;
}
.pagehead {
  margin-bottom: 1.5rem;
}
.pagehead__icon {
  display: inline-grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: var(--sunshine);
  color: #14213d;
}
.more-line {
  margin: 0 0 1rem;
}

/* ---------- Covers and cards ---------- */
.cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: hsl(var(--h) 45% 74%);
  box-shadow: none;
}
.cover__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12% 10%;
  color: #14213d;
  text-align: left;
}
.card .cover__fallback {
  padding-top: 2.9rem; /* keep the title clear of the save button */
}
.cover__title {
  font-size: clamp(0.82rem, 1.6vw, 1.1rem);
  font-weight: 600;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cover__author {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
}
.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hue-0 {
  --h: 0;
}
.hue-1 {
  --h: 10;
}
.hue-2 {
  --h: 20;
}
.hue-3 {
  --h: 30;
}
.hue-4 {
  --h: 40;
}
.hue-5 {
  --h: 50;
}
.hue-6 {
  --h: 60;
}
.hue-7 {
  --h: 70;
}
.hue-8 {
  --h: 80;
}
.hue-9 {
  --h: 90;
}
.hue-10 {
  --h: 100;
}
.hue-11 {
  --h: 110;
}
.hue-12 {
  --h: 120;
}
.hue-13 {
  --h: 130;
}
.hue-14 {
  --h: 140;
}
.hue-15 {
  --h: 150;
}
.hue-16 {
  --h: 160;
}
.hue-17 {
  --h: 170;
}
.hue-18 {
  --h: 180;
}
.hue-19 {
  --h: 190;
}
.hue-20 {
  --h: 200;
}
.hue-21 {
  --h: 210;
}
.hue-22 {
  --h: 220;
}
.hue-23 {
  --h: 230;
}
.hue-24 {
  --h: 240;
}
.hue-25 {
  --h: 250;
}
.hue-26 {
  --h: 260;
}
.hue-27 {
  --h: 270;
}
.hue-28 {
  --h: 280;
}
.hue-29 {
  --h: 290;
}
.hue-30 {
  --h: 300;
}
.hue-31 {
  --h: 310;
}
.hue-32 {
  --h: 320;
}
.hue-33 {
  --h: 330;
}
.hue-34 {
  --h: 340;
}
.hue-35 {
  --h: 350;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 1.5rem 1rem;
}
.card {
  position: relative;
}
.card__link {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-decoration: none;
  height: 100%;
}
.card__link .cover {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.card__link:hover .cover {
  transform: translateY(-4px) rotate(-0.6deg);
  box-shadow: var(--shadow-lg);
}
.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.3;
}
.card__title {
  font-size: 1.02rem;
  font-weight: 600;
}
.card__author {
  font-size: 0.9rem;
  color: var(--muted);
}
.card__meta {
  font-size: 0.82rem;
  color: var(--muted);
}
.card__reason {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.4;
}
.rank {
  position: absolute;
  z-index: 2;
  top: -0.4rem;
  left: -0.4rem;
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding-inline: 0.3rem;
  border-radius: 999px;
  background: var(--sunshine);
  color: #14213d;
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: var(--shadow);
}
.save {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
  color: #14213d;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.save:hover {
  transform: scale(1.08);
}
.save[aria-pressed='true'] {
  background: var(--sunshine);
}
.save--text {
  width: auto;
  padding-inline: 0.9rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
}
.save[aria-pressed='true'] .icon {
  fill: currentColor;
}
.card .save {
  top: 0.5rem;
  right: 0.5rem;
}
.actions__save .save {
  position: static;
  width: 52px;
  height: 52px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
.actions__save .save[aria-pressed='true'] {
  background: var(--sunshine);
  color: #14213d;
}
.scroller {
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  padding-block: 0.6rem 1rem;
}
.scroller::-webkit-scrollbar {
  display: none;
}
.rail {
  position: relative;
}
.rail__btn {
  position: absolute;
  top: 38%;
  z-index: 5;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  touch-action: manipulation;
}
.rail__btn--prev {
  left: calc(var(--gutter) * 0.25);
}
.rail__btn--next {
  right: calc(var(--gutter) * 0.25);
}
.rail__btn:hover {
  background: var(--sky);
}
@media (hover: hover) and (min-width: 48rem) {
  .rail:hover .rail__btn:not([hidden]),
  .rail__btn:focus-visible {
    display: inline-grid;
  }
}
.scroller .grid {
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: 10.5rem;
}
.scroller .card {
  scroll-snap-align: start;
}

/* ---------- How it works and band ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}
.steps li {
  position: relative;
  padding: 1.4rem;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.steps__num {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--line);
}
.steps__icon {
  margin-bottom: 0.7rem;
  color: var(--violet);
}
.steps p {
  margin: 0;
  color: var(--muted);
}
.band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
}
.band .kicker {
  color: var(--violet);
}
.band p {
  margin: 0;
}
@media (min-width: 52rem) {
  .band {
    grid-template-columns: 1.1fr 1fr;
  }
}
.signup label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.signup__row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.signup input[type='email'] {
  flex: 1 1 12rem;
  min-height: 48px;
  padding: 0.5rem 1rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  font: inherit;
  color: #14213d;
  background: #fff;
}
.signup__msg {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 3rem;
  padding-block: 2.5rem 2rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2rem;
}
.footer__h {
  font-size: 1rem;
  margin-bottom: 0.7rem;
}
.site-footer li a {
  display: inline-block;
  padding-block: 0.25rem;
}
.footer__legal {
  margin-top: 2rem;
  padding-top: 1rem;

  font-size: 0.85rem;
  color: var(--muted);
}
.brand--footer {
  margin-bottom: 0.6rem;
}
.site-footer .signup label {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Browse ---------- */
.browse {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 60rem) {
  .browse {
    grid-template-columns: 17rem 1fr;
    align-items: start;
  }
  .browse__side {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 6.5rem);
    overflow-y: auto;
    padding-right: 0.5rem;
  }
}
.filters__top {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.select select {
  width: 100%;
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 999px;
}
.facet {
  border-top: 1px solid var(--line);
  padding-block: 0.4rem;
}
.facet summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.facet summary::-webkit-details-marker {
  display: none;
}
.facet[open] summary .icon {
  transform: rotate(180deg);
}
.facet__body {
  display: grid;
  gap: 0.1rem;
  padding-bottom: 0.5rem;
}
.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 36px;
  cursor: pointer;
  font-size: 0.95rem;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--violet);
}
.check__n {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.82rem;
}
.filters .btn {
  margin-top: 0.8rem;
  width: 100%;
}
.results-count {
  margin: 0 0 1rem;
  font-weight: 700;
}
.empty {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}
.more-btn {
  display: flex;
  margin: 2rem auto 0;
}

/* ---------- Book page ---------- */
.book {
  padding-block: 1.5rem 3rem;
}
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}
.book__hero {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding: clamp(1.2rem, 4vw, 2.2rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--sky), var(--bg-soft));
  border: 1px solid var(--line);
}
@media (min-width: 46rem) {
  .book__hero {
    grid-template-columns: 15rem 1fr;
    align-items: start;
  }
}
.book__cover {
  max-width: 13rem;
}
.book__cover .cover {
  box-shadow: var(--shadow-lg);
}
.byline {
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
}
.summary {
  font-size: 1.15rem;
  max-width: 40rem;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 1.2rem 0;
}
.facts div {
  display: flex;
  flex-direction: column;
}
.facts dt {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  margin: 0;
  font-weight: 700;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--mint);
  color: #14213d;
  font-size: 0.82rem;
  font-weight: 700;
}
.badge--sold {
  background: var(--sunshine);
  margin-bottom: 0.8rem;
}
.notice {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-block: 1.2rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--violet);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.92rem;
}
.notice p {
  margin: 0;
}
.notice .icon {
  margin-top: 0.1rem;
  color: var(--violet);
}
.book__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 1.5rem;
}
@media (min-width: 62rem) {
  .book__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
  }
  .book__side {
    position: sticky;
    top: 5.5rem;
  }
}
.book__main,
.book__side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
}
.duo {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}
.callout {
  display: flex;
  gap: 0.8rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.callout p {
  margin: 0;
}
.callout .icon {
  margin-top: 0.1rem;
}
.callout--yes .icon {
  color: #17a46a;
}
.callout--no .icon {
  color: var(--coral);
}
.panel {
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.panel h2 {
  font-size: 1.3rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tags + .tags {
  margin-top: 0.6rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: var(--sky);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
a.tag:hover {
  background: var(--sunshine);
  color: #14213d;
}
.tag--mood {
  background: var(--sunshine);
  color: #14213d;
}
.tag--warn {
  background: #ffe3e3;
  color: #7a1c1c;
}
.tags--big .tag {
  font-size: 1rem;
  padding: 0.4rem 1rem;
  min-height: 44px;
}
.series li {
  padding-block: 0.2rem;
}
.series [aria-current] {
  font-weight: 700;
}

/* Offers */
.offers table {
  width: 100%;
  border-collapse: collapse;
}
.offers th,
.offers td {
  padding: 0.55rem 0.4rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.offers thead th {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.offers .group th {
  padding-top: 1rem;
  border-bottom: 0;
  font-family: var(--font-display);
  font-size: 1rem;
}
.offers .group .icon {
  color: var(--violet);
  margin-right: 0.3rem;
}
.offer__price {
  white-space: nowrap;
  font-size: 0.92rem;
  color: var(--muted);
}
.offer__go {
  text-align: right;
}
.offers .btn {
  min-height: 40px;
  padding: 0.3rem 0.9rem;
  font-size: 0.9rem;
  white-space: nowrap;
}
@media (max-width: 40rem) {
  .offers thead {
    display: none;
  }
  .offers tbody tr:not(.group) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.6rem;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }
  .offers tbody tr:not(.group) td {
    border-bottom: 0;
  }
  .offers .offer__price {
    grid-column: 1;
    grid-row: 2;
    padding-top: 0;
    white-space: normal;
  }
  .offers .offer__store {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 0;
  }
  .offers .offer__go {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .offers table,
  .offers tbody {
    display: block;
  }
  .offers .group th {
    display: block;
  }
}
.share-preview {
  display: block;
  width: 270px;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.share__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
}
.booksLike__src {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.booksLike__src .cover {
  width: 6rem;
}

/* Rankings */
.rankings {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.rankrow {
  display: grid;
  grid-template-columns: 2.6rem 4rem 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.rankrow__n {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--violet);
  text-align: center;
}
.rankrow .cover__fallback {
  padding: 8%;
}
.rankrow .cover__title {
  font-size: 0.82rem;
}
.rankrow .cover__author {
  display: none;
}
.rankrow__body {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.rankrow__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}
.rankrow__title:hover {
  text-decoration: underline;
}
.rankrow__sold {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.rankrow__sold strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
}
@media (max-width: 36rem) {
  .rankrow {
    grid-template-columns: 2rem 3.4rem 1fr;
  }
  .rankrow__sold {
    grid-column: 3;
    align-items: flex-start;
    flex-direction: row;
    gap: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Shelf, ratings and content-warning controls ---------- */
.btn--small {
  min-height: 36px;
  padding: 0.2rem 0.8rem;
  font-size: 0.9rem;
}
.linkbtn {
  padding: 0.3rem;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}
.cw__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
}
.shelfpanel__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.shelfpanel__row > label,
.shelfpanel__row > span {
  min-width: 6.5rem;
  font-weight: 700;
}
.shelfpanel select,
.shelfpanel input[type='date'],
.card__status {
  min-height: 44px;
  padding: 0.3rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 999px;
}
.stars {
  display: inline-flex;
  gap: 0.1rem;
  padding: 0.2rem;
  border-radius: 8px;
  color: var(--sunshine);
  cursor: pointer;
}
.star {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
}
.star__base .icon {
  color: var(--line);
}
.star__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  overflow: hidden;
}
.star__fill .icon {
  fill: currentColor;
}
.star[data-fill='half'] .star__fill {
  width: 50%;
}
.star[data-fill='full'] .star__fill {
  width: 100%;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0;
}
.tab {
  min-height: 44px;
  padding: 0.3rem 1rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.tab[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.card__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.card__status {
  flex: 1 1 8rem;
  min-height: 38px;
  font-size: 0.9rem;
}
.stats {
  margin-bottom: 1rem;
}
.statgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.8rem;
  margin: 0 0 1rem;
}
.statgrid div {
  padding: 0.8rem;
  border-radius: var(--radius);
  background: var(--sky);
}
.statgrid dt {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.statgrid dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}
.bar {
  display: grid;
  grid-template-columns: 9rem 1fr 2rem;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}
.bar meter {
  width: 100%;
  height: 1rem;
}
.tools {
  margin-block: 2rem;
}
.tools__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.tools label.btn {
  cursor: pointer;
}

/* ---------- Reader ratings (data from Hardcover) ---------- */
.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.8rem;
}
.rating .icon {
  color: var(--sunshine);
  fill: currentColor;
}
.rating strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.cw__reported {
  margin: 0.8rem 0 0.4rem;
}

/* ---------- Feeling picker ---------- */
.feel {
  display: grid;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 2rem auto 0;
  text-align: left;
}
.feel__q {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}
.feel__n {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  font: 600 0.95rem var(--font-body);
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 50%;
}
.feel__hint {
  margin: -0.25rem 0 0.6rem;
  font-size: 0.9rem;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.4rem 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow);
  touch-action: manipulation;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.pill:hover {
  border-color: var(--accent);
}
.pill .icon {
  color: var(--accent);
}
.pill[aria-pressed='true'] {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}
.pill[aria-pressed='true'] .icon {
  color: inherit;
}
.pill--suggested::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--sunshine);
  border-radius: 50%;
}
.pills--big .pill {
  min-height: 48px;
}
.feel__go {
  margin: 0;
  text-align: center;
}
.hero__vibe {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}
.hero__vibe a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.vibe {
  max-width: 64rem;
  margin-inline: auto;
}
.vibe .search {
  max-width: none;
}
.vibe .grid {
  margin-top: 1rem;
}
@media (prefers-reduced-motion: reduce) {
  .pill,
  .search__btn,
  .chip,
  .tile {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Answers, FAQ, breadcrumbs ---------- */
.answer {
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.answer h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}
.answer p {
  max-width: 60rem;
  margin: 0;
}
.faq dl {
  margin: 0;
}
.faq dt {
  margin-top: 0.9rem;
  font-weight: 600;
}
.faq dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}
.crumbs--page {
  padding-top: 1rem;
  margin-bottom: 0;
}
.checked {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: -0.25rem 0 0.75rem;
}

.facet--long .facet__body {
  max-height: 18rem;
  overflow-y: auto;
}

/* ---------- Home: hero, mood strip, trending, categories ---------- */
.hero2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--bg);
}
.hero2__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: clamp(2rem, 5vw, 4.5rem) var(--gutter);
}
.hero2__text h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(2rem, 4.3vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero2__lede {
  max-width: 34rem;
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
}
.hero2__text .search--large {
  margin: 0;
  max-width: 36rem;
}
.hero2__text .search--large input {
  min-height: 56px;
  font-size: 1rem;
  box-shadow: none;
  background: var(--surface);
}
.hero2__text .search--large .search__btn-text {
  display: none;
}
.hero2__text .search--large .search__btn {
  aspect-ratio: 1;
  padding: 0;
}
.hero2__text .search--large input {
  padding-right: 4.2rem;
}
.hero2__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin: 0.5rem 0 0;
}
.hero2__stats li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
}
.hero2__stats strong {
  display: block;
  font: 600 1.35rem var(--font-display);
  color: var(--ink);
}
.hero2__stats span {
  line-height: 1.2;
}
.hero2__visual {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
}
.hero2__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero2__note {
  position: absolute;
  right: 6%;
  top: 14%;
  max-width: 7.5em;
  margin: 0;
  font: italic 500 clamp(1.4rem, 2.6vw, 2.2rem) / 1.15 var(--font-display);
  color: #fff;
  transform: rotate(-6deg);
}
@media (min-width: 60rem) {
  .hero2 {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    min-height: 34rem;
  }
}
.moodstrip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}
.moodstrip h2 {
  margin: 0;
}
.moodstrip__intro p {
  margin: 0.25rem 0 0;
}
.moodstrip__cards {
  display: flex;
  gap: 0.75rem;
}
.feelcard {
  display: grid;
  flex: none;
  place-items: center;
  align-content: center;
  gap: 0.5rem;
  width: 7.5rem;
  height: 6.5rem;
  color: #1c2a21;
  background: var(--tone);
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  scroll-snap-align: start;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.feelcard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.moodstrip__next {
  margin: 0.5rem 0 0;
}
.trendlist {
  display: flex;
  gap: 1.25rem;
}
.trend {
  position: relative;
  flex: none;
  width: 10.5rem;
  padding-left: 1.4rem;
  scroll-snap-align: start;
}
.trend__n {
  position: absolute;
  left: 0;
  top: 0;
  font: 500 0.95rem var(--font-body);
  color: var(--muted);
}
.trend__link {
  display: grid;
  gap: 0.15rem;
  text-decoration: none;
}
.trend__title {
  margin-top: 0.5rem;
  font: 600 0.95rem/1.25 var(--font-display);
}
.trend__author {
  font-size: 0.85rem;
  color: var(--muted);
}
.trend__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.trend__rating .icon {
  color: var(--sunshine);
  fill: var(--sunshine);
}
.sub {
  margin: -0.5rem 0 1rem;
}
.catgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
  gap: 1rem;
}
.catcard {
  display: grid;
  gap: 0.15rem;
  align-content: end;
  min-height: 11rem;
  padding: 1rem;
  overflow: hidden;
  color: #1c2a21;
  background: var(--tone);
  border-radius: var(--radius);
  text-decoration: none;
  position: relative;
  transition: transform 0.15s;
}
.catcard:hover {
  transform: translateY(-2px);
}
.catcard__fan {
  position: absolute;
  top: 0.9rem;
  right: 0.6rem;
  display: flex;
}
.catcard__fan .cover {
  width: 3.4rem;
  transform: rotate(-6deg);
  margin-left: -1.1rem;
}
.catcard__fan .cover:nth-child(2) {
  transform: rotate(3deg) translateY(0.6rem);
}
.catcard__fan .cover:nth-child(3) {
  transform: rotate(10deg) translateY(0.2rem);
}
.catcard__name {
  font: 600 1.2rem var(--font-display);
}
.catcard__count {
  font-size: 0.85rem;
  opacity: 0.75;
}
.site-header {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.brand {
  color: var(--accent);
}
.brand span {
  color: var(--ink);
}

/* ---------- Paintings across the site ---------- */
[data-bg] {
  background-color: #23221f;
  background-position: center;
  background-size: cover;
}
.bgband,
.pagehead[data-bg],
.site-footer[data-bg],
.hero2__visual {
  position: relative;
  isolation: isolate;
}
.bgband::before,
.pagehead[data-bg]::before,
.site-footer[data-bg]::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(14 13 11 / 42%);
}
.bgband {
  margin-block: clamp(1.5rem, 4vw, 3rem);
  color: #fff;
}
.bgband h2,
.bgband h3,
.bgband a,
.bgband .more {
  color: #fff;
}
.bgband .kicker {
  color: #f3dfa4;
}
.bgband .muted,
.bgband .sub,
.bgband .small,
.bgband .card__author,
.bgband .card__meta,
.bgband .card__reason,
.bgband .trend__author,
.bgband .trend__rating,
.bgband .trend__n {
  color: rgb(255 255 255 / 82%);
}
.bgband .steps li,
.bgband .steps li a {
  color: var(--ink);
}
.bgband .steps h3 {
  color: var(--ink);
}
.bgband .signup label,
.bgband .band h2 {
  color: var(--ink);
}
.bgband .band a:not(.btn) {
  color: var(--violet);
}
.bgband .band .muted,
.bgband .band p {
  color: var(--muted);
}
.pagehead[data-bg] {
  padding: clamp(1.75rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 3rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #fff;
}
.pagehead[data-bg] h1,
.pagehead[data-bg] .lede {
  color: #fff;
}
.pagehead[data-bg] .kicker {
  color: #f3dfa4;
}
.pagehead[data-bg] .pagehead__icon {
  color: var(--on-accent);
  background: var(--accent);
}
.hero2__visual {
  background: #23221f url('/assets/bg/landscape-window-overlooking-the-woods.jpg') center / cover;
}
.hero2__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(14 13 11 / 34%);
}
.site-footer[data-bg] {
  margin-top: 0;
  color: #fff;
  border-top: 0;
}
.site-footer[data-bg] a,
.site-footer[data-bg] .brand,
.site-footer[data-bg] .brand span,
.site-footer[data-bg] .footer__h {
  color: #fff;
}
.site-footer[data-bg] .muted,
.site-footer[data-bg] .footer__legal {
  color: rgb(255 255 255 / 82%);
}
.site-footer[data-bg] .signup label,
.site-footer[data-bg] .signup__msg {
  color: #fff;
}
.credits li {
  margin-bottom: 0.5rem;
}
.tone-0 {
  --tone: #fbe9b7;
}
.tone-1 {
  --tone: #d9e8f7;
}
.tone-2 {
  --tone: #e4e0ee;
}
.tone-3 {
  --tone: #dcebd5;
}
.tone-4 {
  --tone: #f6d9d9;
}
.tone-5 {
  --tone: #d6e9f0;
}
.tone-6 {
  --tone: #ece8e1;
}
.tone-7 {
  --tone: #fbe4c4;
}

/* ---------- Measure, steps, motion ---------- */
.footer__legal p,
.lede,
.hero2__lede {
  max-width: 64ch;
}
.steps li {
  background: var(--surface);
  padding: 1.6rem;
}
.steps h3 {
  font-size: 1.35rem;
}
.hero2__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
      transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0ms);
  }
  .rise--in {
    opacity: 1;
    transform: none;
  }
  .hero2__visual {
    animation: drift 28s ease-in-out infinite alternate;
    background-size: 112%;
  }
  @keyframes drift {
    from {
      background-position: 0% 40%;
    }
    to {
      background-position: 100% 60%;
    }
  }
  .catcard:hover,
  .feelcard:hover,
  .card:hover .cover {
    transform: translateY(-4px) scale(1.01);
  }
}

/* ---------- Polish ---------- */
.chips--small {
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}
.chip__name {
  white-space: normal;
}
.book__hero[data-bg] {
  position: relative;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
}
.book__hero[data-bg]::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(14 13 11 / 52%);
}
.book__hero[data-bg] h1,
.book__hero[data-bg] .byline,
.book__hero[data-bg] .byline a,
.book__hero[data-bg] .summary,
.book__hero[data-bg] .kicker,
.book__hero[data-bg] .facts dt,
.book__hero[data-bg] .facts dd,
.book__hero[data-bg] .muted,
.book__hero[data-bg] .rating,
.book__hero[data-bg] .checked {
  color: #fff;
}
.book__hero[data-bg] .btn--ghost {
  color: #fff;
  border-color: #fff;
}

/* ---------- Hero: one full-width painting, text straight on it ---------- */
.hero2 {
  display: block;
  position: relative;
  isolation: isolate;
  min-height: clamp(30rem, 78vh, 42rem);
  color: #fff;
  background: #23221f url('/assets/bg/landscape-window-overlooking-the-woods.jpg') center / cover
    no-repeat;
}
.hero2::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(14 13 11 / 46%);
}
.hero2__text {
  max-width: 46rem;
  min-height: inherit;
  justify-content: center;
}
.hero2__text h1,
.hero2__lede,
.hero2__stats li,
.hero2__stats strong {
  color: #fff;
}
.hero2__lede {
  color: rgb(255 255 255 / 90%);
}
.hero2__text .btn--accent {
  color: #1c2a21;
  background: #fff;
  border-color: #fff;
}
.hero2__visual {
  position: absolute;
  inset: 0;
  min-height: 0;
  background: none;
  animation: none;
  pointer-events: none;
}
.hero2__visual::before {
  content: none;
}
.hero2__note {
  top: auto;
  right: var(--gutter);
  bottom: 12%;
}
@media (min-width: 60rem) {
  .hero2 {
    display: block;
    grid-template-columns: none;
  }
  .hero2__text {
    padding-inline: var(--gutter);
  }
}
@media (max-width: 40rem) {
  .hero2__note {
    display: none;
  }
}

.nav a {
  white-space: nowrap;
}

/* ---------- Logo ---------- */
.brand__mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.brand__your {
  font-weight: inherit;
  color: #d9735a;
}
.brand {
  color: var(--ink);
}
