/* ============================================================
   Dickens & Rumi — Deepix-style redesign
   Design language adapted from deepix.framer.website
   ============================================================ */

:root {
  /* Deepix color tokens */
  --ink: rgb(18, 20, 31);
  --ink-80: rgba(18, 20, 31, 0.8);
  --ink-60: rgba(18, 20, 31, 0.6);
  --ink-40: rgba(18, 20, 31, 0.4);
  --ink-20: rgba(18, 20, 31, 0.2);
  --ink-10: rgba(18, 20, 31, 0.1);
  --ink-08: rgba(18, 20, 31, 0.08);
  --ink-03: rgba(18, 20, 31, 0.03);
  --white: rgb(255, 255, 255);
  --white-80: rgba(255, 255, 255, 0.8);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-10: rgba(255, 255, 255, 0.1);

  /* Category accents (Deepix tag colors) */
  --blue: rgb(34, 145, 224);   /* Books */
  --pink: rgb(242, 84, 122);   /* Movies */
  --green: rgb(47, 195, 15);   /* Guides */
  --orange: rgb(242, 156, 0);  /* Programs */

  /* Typography */
  --serif: "Hedvig Letters Serif", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Radii + shadow */
  --r-card: 8px;
  --r-media: 4px;
  --r-pill: 1000px;
  --shadow-card:
    0px 0.6px 1.57px -1.5px rgba(0, 0, 0, 0.17),
    0px 2.29px 5.95px -3px rgba(0, 0, 0, 0.14),
    0px 10px 26px -4.5px rgba(0, 0, 0, 0.02);
  --shadow-card-hover:
    0px 1px 2px -1.5px rgba(0, 0, 0, 0.2),
    0px 4px 10px -3px rgba(0, 0, 0, 0.16),
    0px 16px 36px -4.5px rgba(0, 0, 0, 0.06);

  --container: 1200px;
  --gutter: 40px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 144%;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-card);
  font-size: 14px; font-weight: 500; line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: rgb(34, 37, 55); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: rgba(255, 255, 255, 0.9); }
.btn--ghost { border: 1px solid var(--white-20); color: var(--white); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.4); }
.btn--outline { border: 1px solid var(--ink-10); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink-20); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--ink-08);
}
.header-inner {
  display: flex; align-items: center; gap: 32px;
  height: 72px;
}
.branding { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.branding__mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--ink);
  display: grid; place-items: center; flex-shrink: 0;
}
.branding__name {
  font-family: var(--serif); font-size: 21px; letter-spacing: -0.02em;
  line-height: 1; color: var(--ink);
}
.branding__name em { font-style: normal; color: var(--ink-40); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-flex; padding: 8px 12px; border-radius: var(--r-card);
  font-size: 14px; font-weight: 500; color: var(--ink-80);
  transition: background 0.15s ease;
}
.main-nav a:hover { background: var(--ink-03); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); }
.header-cta { flex-shrink: 0; }

.menu-toggle { display: none; }

/* ---------- Hero (dark) ---------- */
.hero {
  background: var(--ink); color: var(--white);
  padding: 96px 0 104px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(720px 420px at 82% -10%, rgba(34, 145, 224, 0.16), transparent 65%),
    radial-gradient(560px 380px at -8% 108%, rgba(242, 84, 122, 0.12), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 64px; align-items: center;
}
.hero__title {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 116%; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero__title .w { display: inline-block; opacity: 0; filter: blur(4px); transform: translateY(14px); }
.hero__title .w.in { opacity: 1; filter: blur(0); transform: none; transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease; }
.hero__sub {
  font-size: 18px; line-height: 144%; color: var(--white-80);
  max-width: 520px; margin-bottom: 36px;
}

/* Hero search */
.hero-search { max-width: 540px; }
.hero-search__form {
  display: flex; align-items: center; gap: 6px;
  background: var(--white); border-radius: 12px; padding: 6px;
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.45);
  position: relative;
}
.hero-search__input {
  flex: 1; min-width: 0; border: 0; outline: 0;
  padding: 10px 12px; font-size: 15px; color: var(--ink);
  background: transparent;
}
.hero-search__input::placeholder { color: var(--ink-40); }
.hero-search__browse {
  margin-top: 14px; font-size: 13px; color: var(--white-60);
}
.hero-search__browse a {
  color: var(--white); font-weight: 500;
  border-bottom: 1px solid var(--white-20); padding-bottom: 1px;
  margin-left: 6px;
}
.hero-search__browse a:hover { border-color: var(--white-60); }

/* Suggest dropdown */
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-card-hover), 0 0 0 1px var(--ink-08);
  z-index: 20; color: var(--ink);
}
.suggest__item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 14px; text-align: left;
}
.suggest__item:hover, .suggest__item.active { background: var(--ink-03); }
.suggest__cover { width: 28px; height: 40px; object-fit: cover; border-radius: 3px; }
.suggest__title { font-size: 14px; font-weight: 500; line-height: 1.25; }
.suggest__author { font-size: 12px; color: var(--ink-60); }
.suggest__meta { margin-left: auto; }
.suggest__empty { padding: 14px; font-size: 14px; color: var(--ink-60); }

/* Featured review card (in hero) */
.featured-card {
  background: var(--white); color: var(--ink);
  border-radius: var(--r-card); padding: 12px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5);
  max-width: 440px; justify-self: end; width: 100%;
}
.featured-card__media { border-radius: var(--r-media); overflow: hidden; aspect-ratio: 16 / 9; }
.featured-card__media img { width: 100%; height: 100%; object-fit: cover; }
.featured-card__body { padding: 16px 8px 8px; }
.eyebrow {
  font-size: 12px; font-weight: 500; color: var(--ink-60);
  margin-bottom: 6px; letter-spacing: 0.01em;
}
.featured-card__title { font-size: 22px; line-height: 124%; margin-bottom: 4px; }
.featured-card__author { font-size: 13px; color: var(--ink-60); margin-bottom: 12px; }
.featured-card__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.featured-card__ratings { border-top: 1px solid var(--ink-08); padding-top: 12px; display: grid; gap: 8px; }
.rating-row { display: grid; grid-template-columns: 108px 1fr 30px; align-items: center; gap: 10px; font-size: 12.5px; }
.rating-row__label { color: var(--ink-60); }
.rating-row__bar { height: 5px; border-radius: 99px; background: var(--ink-08); overflow: hidden; }
.rating-row__fill { display: block; height: 100%; border-radius: 99px; }
.rating-row__score { font-weight: 600; font-size: 12px; text-align: right; }
.featured-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 500; }
.featured-card__link:hover { gap: 9px; }
.featured-card__link { transition: gap 0.15s ease; }

/* ---------- Category tag ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1;
}
.tag__dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.tag--books .tag__dot { background: var(--blue); }
.tag--movies .tag__dot { background: var(--pink); }
.tag--guides .tag__dot { background: var(--green); }
.tag--programs .tag__dot { background: var(--orange); }
.meta-sep { color: var(--ink-20); }
.meta-text { font-size: 13px; color: var(--ink-60); }

/* ---------- Trust strip ("Featured in") ---------- */
.trust-strip { padding: 36px 0; border-bottom: 1px solid var(--ink-08); }
.trust-strip__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.trust-strip__label { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-40); }
.trust-strip__logos { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.trust-strip__logos span { font-size: 15px; font-weight: 600; color: var(--ink-40); letter-spacing: -0.01em; }
.trust-strip__stats { display: flex; gap: 24px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--serif); font-size: 24px; letter-spacing: -0.02em; }
.stat__label { font-size: 12px; color: var(--ink-60); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--tint { background: var(--ink-03); }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; margin-bottom: 40px;
}
.section__title { font-size: clamp(26px, 3.4vw, 34px); line-height: 120%; }
.section__link {
  font-size: 14px; font-weight: 500; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.section__link svg { transition: transform 0.15s ease; }
.section__link:hover svg { transform: translateX(3px); }

/* ---------- Card grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white); border-radius: var(--r-card);
  padding: 10px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card__media {
  border-radius: var(--r-media); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--ink-03);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 14px 6px 6px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: 18px; line-height: 128%; }
.card__meta { display: flex; align-items: center; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.card__desc { font-size: 13.5px; color: var(--ink-60); line-height: 1.45; }

/* Illustrated art panel for non-cover cards */
.card__media--art {
  display: grid; place-items: center;
}
.card__media--art svg { width: 52px; height: 52px; }
.art--orange { background: linear-gradient(135deg, rgba(242,156,0,0.92), rgba(242,156,0,0.7)); }
.art--blue { background: linear-gradient(135deg, rgba(34,145,224,0.92), rgba(34,145,224,0.7)); }
.art--pink { background: linear-gradient(135deg, rgba(242,84,122,0.92), rgba(242,84,122,0.7)); }
.art--green { background: linear-gradient(135deg, rgb(47,195,15), rgba(47,195,15,0.7)); }
.art--ink { background: linear-gradient(135deg, rgb(38,42,62), var(--ink)); }

/* ---------- Preferences chips ---------- */
.prefs {
  background: var(--white); border-radius: var(--r-card);
  padding: 20px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 14px;
}
.prefs__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.prefs__title { font-size: 14px; font-weight: 600; }
.prefs__hint { font-size: 12.5px; color: var(--ink-60); }
.prefs__chips { display: flex; gap: 10px; flex-wrap: wrap; }
.pref-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--ink-10); border-radius: var(--r-pill);
  padding: 7px 14px; font-size: 13px; font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pref-chip:hover { border-color: var(--ink-20); }
.pref-chip__state { font-size: 11px; font-weight: 600; color: var(--ink-40); text-transform: uppercase; letter-spacing: 0.04em; }
.pref-chip[data-state="moderate"] { border-color: rgba(34,145,224,0.5); background: rgba(34,145,224,0.08); }
.pref-chip[data-state="moderate"] .pref-chip__state { color: var(--blue); }
.pref-chip[data-state="mild"] { border-color: rgba(242,156,0,0.5); background: rgba(242,156,0,0.08); }
.pref-chip[data-state="mild"] .pref-chip__state { color: var(--orange); }
.pref-chip[data-state="hide"] { border-color: rgba(242,84,122,0.5); background: rgba(242,84,122,0.08); }
.pref-chip[data-state="hide"] .pref-chip__state { color: var(--pink); }

.prefs select {
  border: 1px solid var(--ink-10); border-radius: var(--r-pill);
  padding: 8px 14px; font-size: 13px; font-weight: 500; color: var(--ink);
  background: var(--white); max-width: 240px;
}

/* ---------- Results ---------- */
.results { margin-top: 36px; }
.results__note { font-size: 13px; color: var(--ink-60); margin-bottom: 18px; }
.result-card { position: relative; }
.result-card__flag {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--white); color: var(--ink);
}
.result-card__flag--warn { color: var(--pink); }
.result-card__flag--ok { color: rgb(26, 139, 1); }

/* ---------- Quote ---------- */
.quote-section { padding: 96px 0; }
.quote-section__inner { max-width: 780px; }
.quote-section__mark { font-family: var(--serif); font-size: 72px; line-height: 0.4; color: var(--ink-20); display: block; margin-bottom: 28px; }
.quote-section__text {
  font-family: var(--serif); font-size: clamp(24px, 3.2vw, 34px);
  line-height: 132%; letter-spacing: -0.02em; margin-bottom: 28px;
}
.quote-section__who { font-size: 14px; }
.quote-section__who strong { font-weight: 600; display: block; }
.quote-section__who span { color: var(--ink-60); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--ink); color: var(--white); padding: 88px 0; }
.newsletter__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.newsletter__title { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 14px; }
.newsletter__sub { color: var(--white-80); margin-bottom: 32px; font-size: 16px; }
.newsletter__form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; }
.newsletter__input {
  flex: 1; min-width: 0; padding: 12px 16px; border-radius: var(--r-card);
  border: 1px solid var(--white-20); background: var(--white-10);
  color: var(--white); outline: 0; font-size: 15px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.newsletter__input::placeholder { color: var(--white-60); }
.newsletter__input:focus { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.14); }
.newsletter__note { margin-top: 16px; font-size: 12.5px; color: var(--white-60); }
.newsletter__success { font-size: 15px; color: var(--green); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); }
.footer-main { padding: 72px 0 48px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand__name { font-family: var(--serif); font-size: 24px; letter-spacing: -0.02em; display: block; margin-bottom: 10px; }
.footer-brand__tag { color: var(--white-60); font-size: 14px; max-width: 260px; line-height: 1.5; }
.footer-col__title { font-size: 13px; font-weight: 600; color: var(--white-60); margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--white); }
.footer-col a:hover { color: var(--white-80); }
.footer-legal {
  border-top: 1px solid var(--white-10);
  padding: 24px 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--white-60);
}
.footer-legal__links { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--white); }
.footer-disclosure {
  border-top: 1px solid var(--white-10);
  padding: 20px 0; font-size: 12px; color: var(--white-60); line-height: 1.6;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 88px 0 64px; }
.page-hero__title { font-size: clamp(34px, 4.4vw, 52px); line-height: 116%; margin-bottom: 16px; }
.page-hero__sub { font-size: 18px; color: var(--ink-60); max-width: 560px; }

/* ---------- Filter pills ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-pill {
  padding: 9px 18px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; color: var(--ink-60);
  background: var(--ink-03); transition: all 0.15s ease;
}
.filter-pill:hover { color: var(--ink); background: var(--ink-08); }
.filter-pill.active { background: var(--ink); color: var(--white); }

/* ---------- About page ---------- */
.statement { padding: 40px 0 88px; max-width: 860px; }
.statement__text { font-family: var(--serif); font-size: clamp(22px, 3vw, 32px); line-height: 136%; letter-spacing: -0.02em; margin-bottom: 24px; }
.statement__sub { font-size: 17px; color: var(--ink-60); margin-bottom: 32px; max-width: 620px; }

.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.topic {
  border-top: 1px solid var(--ink-10); padding-top: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.topic__name { display: flex; align-items: center; gap: 8px; font-size: 17px; font-family: var(--serif); letter-spacing: -0.02em; }
.topic__num { margin-top: auto; font-family: var(--serif); font-size: 40px; color: var(--ink-20); letter-spacing: -0.02em; }
.topic__desc { font-size: 14px; color: var(--ink-60); line-height: 1.5; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.big-stat { border-top: 1px solid var(--ink-10); padding-top: 24px; }
.big-stat__num { font-family: var(--serif); font-size: clamp(40px, 5vw, 56px); letter-spacing: -0.02em; line-height: 1; margin-bottom: 10px; }
.big-stat__label { font-size: 14px; color: var(--ink-60); max-width: 260px; line-height: 1.5; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 88px; }
.contact-card {
  border-radius: var(--r-card); padding: 28px; background: var(--ink-03);
  display: flex; flex-direction: column; gap: 12px;
  transition: background 0.2s ease;
}
.contact-card:hover { background: var(--ink-08); }
.contact-card__title { font-family: var(--serif); font-size: 20px; letter-spacing: -0.02em; }
.contact-card__desc { font-size: 14px; color: var(--ink-60); line-height: 1.55; flex: 1; }
.contact-card__link { font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .featured-card { justify-self: start; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .header-inner { gap: 16px; height: 64px; }
  .main-nav {
    position: fixed; top: 64px; left: 0; right: 0; z-index: 40;
    background: var(--white); border-bottom: 1px solid var(--ink-08);
    padding: 12px 20px 20px; display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 12px; font-size: 15px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; margin-left: auto; }
  .menu-toggle:hover { background: var(--ink-03); }
  .header-cta { display: none; }
  .hero { padding: 64px 0 72px; }
  .card-grid, .card-grid--3 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .topics { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .newsletter__form { flex-direction: column; }
  .hero-search__form { flex-wrap: wrap; }
  .hero-search__form .btn { width: 100%; }
  .trust-strip__inner { flex-direction: column; align-items: flex-start; }
}
