:root {
  --ink: #16130f;
  --paper: #f3efe6;
  --card: #fffdf8;
  --line: #e3dacb;
  --muted: #6d645b;
  --pos: #0f6b4c;
  --mix: #a16207;
  --neg: #b42318;
  --pos-bg: #e5f4ed;
  --mix-bg: #fbf3df;
  --neg-bg: #fde8e6;
  font-family: "Cabinet Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, a { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.page { overflow-x: hidden; width: 100%; max-width: 100%; }

.nav {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(860px, calc(100% - 24px));
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.72);
  color: #f7f3ea;
  backdrop-filter: blur(16px);
}
.word { font-weight: 700; text-decoration: none; letter-spacing: -0.03em; }
.nav nav { display: flex; gap: 8px; }
.nav a { text-decoration: none; }
.nav nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #f7f3ea;
}
.nav { transition: background 280ms ease, box-shadow 280ms ease; }
.nav:hover { background: rgba(20, 17, 14, 0.9); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28); }
.word { transition: letter-spacing 280ms ease; }
.word:hover { letter-spacing: 0.01em; }
.nav nav a { transition: background 200ms ease, transform 200ms ease; }
.nav nav a:hover { background: rgba(255, 253, 248, 0.16); transform: translateY(-1px); }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: end center;
  padding: 140px 24px 72px;
  color: #f7f3ea;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(0.86);
  filter: grayscale(0.35) contrast(1.15);
  transition: filter 600ms ease;
}
.hero:hover .hero-media img { filter: grayscale(0) contrast(1.05); }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(20, 17, 14, 0.2), rgba(20, 17, 14, 0.82) 70%),
    linear-gradient(to top, rgba(20, 17, 14, 0.92), rgba(20, 17, 14, 0.28));
}
.hero-copy { position: relative; width: min(72rem, 100%); text-align: center; }
.eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: #d9cbb8;
}
h1 {
  margin: 0 auto;
  max-width: 72rem;
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.96;
}
.pill-photo {
  display: inline-block;
  width: 92px;
  height: 42px;
  margin: 0 8px;
  border-radius: 999px;
  vertical-align: middle;
  background: #2a241e center/cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, 0.35);
  transition: width 400ms ease, transform 400ms ease;
}
.hero:hover .pill-photo { width: 120px; transform: scale(1.06); }
.lede {
  width: min(40rem, 100%);
  margin: 18px auto 0;
  font-size: 18px;
  line-height: 1.45;
  color: #efe6d8;
}
.hero-actions { display: flex; justify-content: center; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}
.btn.solid { background: #f7f3ea; color: #16130f; }
.btn.solid:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.btn.ghost { background: transparent; color: #f7f3ea; border-color: rgba(247, 243, 234, 0.45); }
.btn.ghost:hover { background: rgba(247, 243, 234, 0.14); transform: translateY(-3px); }

.how, .picker, .bento, .desire, .close { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 120px 0 40px;
}
.how article, .bento article, .pin-col, .sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.how article, .bento article, .pin-col, .close {
  position: relative;
  overflow: hidden;
  transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}
.how article::after, .bento article::after, .pin-col::after, .close::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 36%, rgba(255, 255, 255, 0.28) 50%, transparent 64%);
  transform: translateX(-130%);
  transition: transform 700ms ease;
  pointer-events: none;
}
.how article:hover, .bento article:hover, .pin-col:hover, .close:hover {
  transform: translateY(-8px);
  border-color: #cfc4b2;
  box-shadow: 0 18px 36px rgba(22, 19, 15, 0.12);
}
.how article:hover::after, .bento article:hover::after, .pin-col:hover::after, .close:hover::after { transform: translateX(130%); }
.how article { padding: 22px; }
.how h2, .pin-col h2, .close h2 { margin: 0; letter-spacing: -0.04em; font-size: 28px; line-height: 1.05; }
.how p, .pin-col p, .note { margin: 8px 0 0; color: var(--muted); line-height: 1.45; }

.picker { display: flex; gap: 10px; min-height: 240px; padding-bottom: 28px; }
.slice-cell { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; transition: flex 700ms ease; }
.slice-cell:hover, .slice-cell:has(.slice[aria-pressed="true"]) { flex: 2.5; }
.amazon { font-size: 14px; font-weight: 700; color: #1d4e89; text-decoration: none; display: inline-block; transition: transform 200ms ease, color 200ms ease; }
.amazon:hover { color: #163e70; transform: translateX(4px); }
.span-2 .amazon { display: inline-block; margin-top: 12px; }
.pin-col .amazon { display: inline-block; margin-top: 12px; }

.slice {
  position: relative;
  flex: 1;
  min-height: 220px;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  padding: 0;
  text-align: left;
  color: #f7f3ea;
  background: #211c17;
  transition: flex 700ms ease;
}
.slice:hover, .slice[aria-pressed="true"] { flex: 1; }
.slice img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.1);
  transform: scale(1);
  transition: transform 700ms ease;
}
.slice:hover img, .slice[aria-pressed="true"] img { transform: scale(1.05); }
.slice span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(16, 13, 10, 0.88), transparent);
}
.slice strong { display: block; font-size: 20px; letter-spacing: -0.03em; }
.slice em { font-style: normal; color: #eadfcf; }

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: 12px;
  padding-bottom: 28px;
}
.bento article { padding: 18px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.kicker { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.num { margin: 8px 0 0; font-size: 64px; line-height: 0.9; letter-spacing: -0.05em; font-weight: 700; }
.mix { display: flex; height: 16px; border-radius: 999px; overflow: hidden; margin: 16px 0 10px; background: #efe8dc; }
.mix button { border: 0; padding: 0; height: 16px; transform-origin: center; transition: transform 200ms ease, filter 200ms ease; }
.mix button:hover { transform: scaleY(1.45); filter: brightness(1.08); }
.mix button[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.legend, .stars { display: grid; gap: 6px; }
.legend { grid-template-columns: repeat(3, 1fr); }
.legend button, .star-row button.track, .themes button, .views button, .clear, .arrow {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
}
.legend button, .views button, .clear, .arrow, .themes button, .star-row button.track {
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease, color 200ms ease, height 180ms ease;
}
.legend button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 700;
}
.legend button:hover, .views button:hover, .clear:hover { transform: translateY(-2px); }
.legend button[aria-pressed="true"], .themes button[aria-pressed="true"], .views button[aria-pressed="true"] {
  background: var(--ink);
  color: #f7f3ea;
  border-color: var(--ink);
}
.stars { margin-top: 14px; }
.star-row { display: grid; grid-template-columns: 64px 1fr 40px; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.star-row button.track { height: 10px; padding: 0; overflow: hidden; border-radius: 99px; background: #efe8dc; }
.star-row:hover button.track { height: 16px; }
.star-row i { display: block; height: 100%; background: var(--ink); transition: background 200ms ease; }
.star-row:hover i { background: #0f6b4c; }
.moves { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.moves li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; line-height: 1.35; padding: 6px 8px; border-radius: 10px; transition: background 200ms ease, transform 200ms ease; }
.moves li:hover { background: #f6f1e7; transform: translateX(4px); }
.themes { display: grid; gap: 8px; }
.themes button {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 10px 12px;
  border-radius: 16px;
}
.themes button:hover { border-color: #c9bfb0; transform: translateX(6px); }
.themes strong { display: block; }
.themes small { display: block; color: var(--muted); font-weight: 400; }
.themes button[aria-pressed="true"] small { color: #eadfcf; }
.pill { font-size: 12px; font-weight: 700; text-align: center; }
.benefit { margin: 0; line-height: 1.45; }

.desire { padding: 80px 0 40px; }
.desire-grid { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start; }
.pin-col { padding: 18px; }
.pin-col h2 { font-size: 34px; }
.tools { display: flex; gap: 8px; margin-top: 16px; }
.tools input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
}
.views { display: flex; gap: 6px; margin-top: 10px; }
.views button { flex: 1; height: 40px; font-weight: 700; }
.clear { width: 100%; height: 40px; margin-top: 8px; font-weight: 700; }

.sheet { padding: 8px; overflow: auto; }
.sheet table { width: 100%; border-collapse: collapse; min-width: 640px; }
.sheet th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.sheet td { padding: 12px; border-bottom: 1px solid #f0e9de; vertical-align: top; }
.sheet { transition: box-shadow 320ms ease, transform 320ms ease; }
.sheet:hover { box-shadow: 0 16px 34px rgba(22, 19, 15, 0.1); }
.sheet tr { transition: background 180ms ease; }
.sheet tr:hover td { background: #faf7f1; }
.sheet tr:hover .review-title { color: #1d4e89; }
.mood {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 220ms ease;
}
.sheet tr:hover .mood, .quote:hover .mood { transform: scale(1.15) rotate(-6deg); }
.mood.positive { background: var(--pos-bg); color: var(--pos); }
.mood.mixed { background: var(--mix-bg); color: var(--mix); }
.mood.negative { background: var(--neg-bg); color: var(--neg); }
.mood svg { width: 22px; height: 22px; }
.score { font-weight: 700; font-size: 22px; letter-spacing: -0.04em; }
.score small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.review-title { margin: 0; font-size: 15px; font-weight: 700; }
.review-copy { margin: 4px 0 0; color: #3d3832; line-height: 1.4; font-size: 14px; }
.feel-label { font-weight: 700; font-size: 13px; }

.carousel { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px; }
.arrow { width: 44px; height: 44px; border-radius: 50%; font-size: 20px; background: var(--ink); color: #f7f3ea; border-color: var(--ink); }
.arrow:hover { transform: scale(1.08); }
.quote {
  min-height: 220px;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  transition: transform 320ms ease, box-shadow 320ms ease;
}
.quote:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(22, 19, 15, 0.08); }
.quote header { display: flex; align-items: center; gap: 10px; }
.quote h3 { margin: 14px 0 0; font-size: 28px; letter-spacing: -0.04em; line-height: 1.1; }
.quote p { margin: 10px 0 0; font-size: 18px; line-height: 1.45; }
.quote footer { margin-top: 16px; color: var(--muted); }
.empty { margin: 12px; color: var(--muted); }

.close {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  align-items: end;
  margin-top: 80px;
  margin-bottom: 48px;
  padding: 36px;
  border-radius: 28px;
  background: #16130f;
  color: #f7f3ea;
}
.close .eyebrow { color: #d9cbb8; }
.close h2 { font-size: clamp(2rem, 4vw, 3.4rem); max-width: 16ch; }
.fine { grid-column: 1 / -1; margin: 0; color: #b7ab9d; font-size: 14px; }

@media (max-width: 900px) {
  .how, .bento, .desire-grid, .picker { grid-template-columns: 1fr; display: grid; }
  .picker { min-height: 0; }
  .slice-cell, .slice-cell:hover { flex: none; }
  .slice { min-height: 140px; }
  .span-2, .span-3, .span-4 { grid-column: auto; }
  .close { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.4rem, 10vw, 3.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  .slice, .slice img, .slice-cell, .hero-media img, .pill-photo, .btn, .nav, .nav nav a, .word,
  .how article, .bento article, .pin-col, .close, .how article::after, .bento article::after, .pin-col::after, .close::after,
  .amazon, .mix button, .legend button, .views button, .clear, .arrow, .themes button, .star-row button.track, .star-row i,
  .moves li, .sheet, .sheet tr, .mood, .quote { transition: none; }
  .hero-media img, .how article:hover, .bento article:hover, .pin-col:hover, .close:hover,
  .btn:hover, .themes button:hover, .legend button:hover, .moves li:hover, .quote:hover, .amazon:hover { transform: none; }
}
