/* ==========================================================================
   MEOW: main stylesheet
   Design tokens, base styles, layout and shared components.
   Page-specific article styles live in article.css.
   Breakpoints live in responsive.css.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand palette */
  --cream: #FFF9F0;
  --pink: #F8DDE5;
  --lavender: #E9E2FA;
  --peach: #FFD9C2;
  --charcoal: #29252D;
  --white: #FFFFFF;

  /* Supporting shades derived from the palette */
  --cream-deep: #F8EFE2;
  --pink-strong: #EDB2C4;
  --lavender-strong: #CBBDF3;
  --peach-strong: #FFBE97;
  --pink-soft: #FCEEF2;
  --lavender-soft: #F4F0FD;
  --peach-soft: #FFF0E6;
  --ink: var(--charcoal);
  --ink-2: #4A4450;
  --ink-3: #6B6470;
  --line: rgba(41, 37, 45, 0.11);
  --focus: #6B4EE6;
  --success: #2C6A45;
  --error: #B42318;

  /* Typography */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Shape and depth */
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --shadow-sm: 0 1px 2px rgba(41, 37, 45, 0.04), 0 6px 18px -8px rgba(41, 37, 45, 0.12);
  --shadow: 0 2px 6px rgba(41, 37, 45, 0.05), 0 22px 44px -18px rgba(41, 37, 45, 0.24);
  --shadow-lg: 0 30px 70px -24px rgba(41, 37, 45, 0.35);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Category tones */
.tone-lavender { --tone: var(--lavender); --tone-strong: var(--lavender-strong); --tone-soft: var(--lavender-soft); }
.tone-peach { --tone: var(--peach); --tone-strong: var(--peach-strong); --tone-soft: var(--peach-soft); }
.tone-pink { --tone: var(--pink); --tone-strong: var(--pink-strong); --tone-soft: var(--pink-soft); }

/* ---------- 2. Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
p, li { text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:where(ul[class], ol[class]) { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
main { display: block; outline: none; }
::selection { background: var(--pink); color: var(--ink); }
[hidden] { display: none !important; }

/* Visible, consistent focus states for keyboard users */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .chip:focus-visible, .icon-btn:focus-visible, .share__btn:focus-visible, .social-btn:focus-visible { outline-offset: 3px; border-radius: 999px; }

/* ---------- 3. Utilities ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.muted { color: var(--ink-3); font-size: 0.9rem; }
.center-row { display: flex; justify-content: center; margin-top: 2.5rem; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--charcoal); color: var(--cream); padding: 0.75rem 1.25rem; border-radius: 999px; font-weight: 700; text-decoration: none; transition: top 0.2s; }
.skip-link:focus { top: 1rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 4. Buttons, pills, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.45rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 0.98rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--dark { background: var(--charcoal); color: var(--cream); }
.btn--dark:hover { background: #3B3541; transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(41, 37, 45, 0.6); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--light:hover { background: var(--pink); border-color: var(--pink); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--charcoal); }
.btn--outline:hover { background: var(--charcoal); color: var(--cream); transform: translateY(-2px); }
.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.9rem; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.65; pointer-events: none; }

.pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.75rem; border-radius: 999px;
  background: var(--tone, var(--lavender)); color: var(--ink);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; line-height: 1.3;
  transition: background-color 0.2s, transform 0.2s;
}
a.pill:hover { background: var(--tone-strong, var(--lavender-strong)); }
.pill--sponsored { background: var(--charcoal); color: var(--cream); }

.chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--white); color: var(--ink);
  font-size: 0.9rem; font-weight: 600; text-decoration: none; line-height: 1.2;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s;
}
.chip:hover { border-color: var(--charcoal); transform: translateY(-1px); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: var(--cream); }
.chip--sm { padding: 0.35rem 0.8rem; font-size: 0.84rem; }
.chip__count { font-size: 0.72rem; font-weight: 700; background: var(--lavender); color: var(--ink); border-radius: 999px; padding: 0.1rem 0.5rem; }
.chip.is-active .chip__count, .chip[aria-pressed="true"] .chip__count { background: rgba(255, 255, 255, 0.18); color: var(--cream); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 0.85rem;
}
.eyebrow__icon { width: 1.05rem; height: 1.05rem; color: #D98AA3; }
.eyebrow--pill { background: var(--white); padding: 0.5rem 1rem; border-radius: 999px; box-shadow: var(--shadow-sm); letter-spacing: 0.08em; text-transform: none; font-size: 0.88rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid var(--pink-strong); white-space: nowrap; transition: border-color 0.2s, gap 0.2s; }
.link-arrow:hover { border-color: var(--charcoal); gap: 0.6rem; }

.icon-btn {
  width: 46px; height: 46px; display: inline-grid; place-items: center;
  border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.icon-btn:hover { background: var(--pink); border-color: var(--pink); }
.icon-btn .icon { width: 1.3rem; height: 1.3rem; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 240, 0.78);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { background: rgba(255, 249, 240, 0.92); border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(41, 37, 45, 0.35); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 12px; }
.brand__logo { height: 46px; width: auto; transition: transform 0.3s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-2deg) scale(1.03); }
.nav { margin-left: auto; display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 0.25rem; }
.nav__link {
  display: inline-block; padding: 0.55rem 0.95rem; border-radius: 999px;
  font-weight: 600; font-size: 0.97rem; text-decoration: none; color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}
.nav__link:hover { background: var(--pink); color: var(--ink); }
.nav__link[aria-current="page"] { background: var(--lavender); color: var(--ink); font-weight: 700; }
.nav__cta { display: none; }
.header__actions { display: flex; align-items: center; gap: 0.5rem; }
.menu-toggle { display: none; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

/* ---------- 6. Sections and headings ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 4.5vw, 3.5rem); }
.section--facts { padding-top: 0; }
.section--tint { background: linear-gradient(180deg, var(--cream) 0%, var(--pink-soft) 18%, var(--pink-soft) 82%, var(--cream) 100%); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.section-head__text { max-width: 44rem; }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center .section-head__text { margin-inline: auto; }
.section-title { font-size: clamp(1.95rem, 3.5vw, 2.85rem); letter-spacing: -0.02em; }
.section-title--sm { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1.5rem; }
.section-desc { margin-top: 0.7rem; color: var(--ink-2); font-size: 1.08rem; max-width: 38rem; }
.section-head--center .section-desc { margin-inline: auto; }

/* ---------- 7. Grid ---------- */
.grid { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 8. Article cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { display: block; margin: 0.6rem 0.6rem 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--lavender); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; padding: 1.15rem 1.4rem 1.35rem; }
.card__labels { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.card__title { font-size: 1.3rem; line-height: 1.22; }
.card__title a, .popular-item__title a, .post-nav__title {
  text-decoration: none;
  background: linear-gradient(var(--pink-strong), var(--pink-strong)) 0 92% / 0 0.32em no-repeat;
  transition: background-size 0.4s var(--ease);
}
.card:hover .card__title a, .card__title a:hover, .popular-item:hover .popular-item__title a, .post-nav__link:hover .post-nav__title { background-size: 100% 0.32em; }
.card__excerpt { color: var(--ink-2); font-size: 0.97rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: 0.6rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; }
.card__more { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.card__more .icon { transition: transform 0.25s var(--ease); }
.card__more:hover .icon, .card:hover .card__more .icon { transform: translateX(3px); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; color: var(--ink-3); font-size: 0.85rem; line-height: 1.4; }
.meta .icon { width: 0.95rem; height: 0.95rem; }
.meta__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.55; margin-inline: 0.3rem; }

.card--feature .card__media { aspect-ratio: auto; flex: 1 1 auto; min-height: 300px; }
.card--feature .card__body { flex: 0 0 auto; }
.card--feature .card__body { padding: 1.5rem 1.9rem 1.9rem; gap: 0.8rem; }
.card--feature .card__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.12; }
.card--feature .card__excerpt { font-size: 1.05rem; -webkit-line-clamp: 4; }

.card--row { flex-direction: row; align-items: stretch; }
.card--row .card__media { width: 40%; flex: none; aspect-ratio: auto; margin: 0.6rem 0 0.6rem 0.6rem; min-height: 150px; }
.card--row .card__body { padding: 1rem 1.25rem; gap: 0.45rem; }
.card--row .card__title { font-size: 1.15rem; }
.card--row .card__excerpt { -webkit-line-clamp: 2; font-size: 0.92rem; }

/* ---------- 9. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(2.5rem, 5.5vw, 4.75rem) clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(48% 55% at 88% 18%, var(--lavender) 0%, rgba(233, 226, 250, 0) 70%),
    radial-gradient(42% 50% at 6% 92%, var(--pink) 0%, rgba(248, 221, 229, 0) 70%),
    radial-gradient(36% 42% at 62% 104%, var(--peach) 0%, rgba(255, 217, 194, 0) 70%),
    var(--cream);
}
.hero__grid { display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.hero__title { font-size: clamp(2.7rem, 5.6vw, 4.75rem); line-height: 1.02; letter-spacing: -0.03em; }
.hero__accent {
  font-style: italic; font-weight: 500; white-space: nowrap;
  background: linear-gradient(transparent 60%, var(--pink) 60%, var(--pink) 92%, transparent 92%);
  padding-inline: 0.06em;
}
.hero__lead { margin-top: 1.4rem; font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: var(--ink-2); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 0.75rem 2.25rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px dashed rgba(41, 37, 45, 0.18); max-width: 32rem; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1.1; }
.hero__stats span { color: var(--ink-3); font-size: 0.9rem; }

.hero__visual { position: relative; justify-self: center; width: min(100%, 440px); aspect-ratio: 4 / 5; }
.hero__blob { position: absolute; inset: -5% -9% -3% -7%; border-radius: 46% 54% 42% 58% / 54% 44% 56% 46%; background: var(--peach); transform: rotate(-7deg); }
.hero__blob::after { content: ""; position: absolute; inset: 9% -6% -6% 14%; border-radius: 58% 42% 54% 46% / 42% 56% 44% 58%; background: var(--lavender); z-index: -1; transform: rotate(14deg); }
.hero__photo { position: relative; width: 100%; height: 100%; border-radius: 999px 999px 44px 44px; overflow: hidden; border: 8px solid var(--white); box-shadow: var(--shadow-lg); background: var(--charcoal); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__note { position: absolute; z-index: 2; }
.hero__note--fact {
  left: -16%; bottom: 9%; max-width: 270px;
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: var(--white); border-radius: 22px; padding: 1rem 1.15rem;
  box-shadow: var(--shadow); font-size: 0.9rem; line-height: 1.45; color: var(--ink-2);
}
.hero__note--fact strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 0.15rem; }
.hero__note--fact a { display: inline-block; margin-top: 0.35rem; font-weight: 700; color: var(--ink); text-decoration-color: var(--pink-strong); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hero__note-icon { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--lavender); color: #7B62D8; }
.hero__note--love {
  right: -7%; top: 9%;
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--charcoal); color: var(--cream);
  padding: 0.6rem 1.05rem; border-radius: 999px;
  font-weight: 700; font-size: 0.85rem; transform: rotate(5deg);
  box-shadow: var(--shadow);
}
.hero__note--love .icon { color: var(--pink-strong); }
.deco { position: absolute; pointer-events: none; }
.hero .deco { z-index: 1; animation: floaty 7s ease-in-out infinite; }
.deco--s1 { width: 34px; height: 34px; top: -4%; left: 6%; color: #B9A6F0; }
.deco--s2 { width: 22px; height: 22px; bottom: 30%; right: -9%; color: var(--peach-strong); animation-delay: -2.5s !important; }
.deco--p1 { width: 30px; height: 30px; bottom: -5%; right: 12%; color: rgba(41, 37, 45, 0.85); transform: rotate(18deg); animation-delay: -4s !important; }
.deco--p2 { width: 20px; height: 20px; top: 36%; left: -12%; color: var(--pink-strong); animation-delay: -1s !important; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-9px) rotate(8deg); } }

/* ---------- 10. Category cards ---------- */
.cat-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--tone); border-radius: 32px; padding: 0.7rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.cat-card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: var(--shadow); }
.cat-card__media { display: block; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--white); }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.cat-card:hover .cat-card__media img { transform: scale(1.06); }
.cat-card__body { display: flex; flex-direction: column; gap: 0.45rem; padding: 1.15rem 0.95rem 0.85rem; flex: 1; }
.cat-card__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
.cat-card__desc { color: var(--ink-2); font-size: 0.96rem; }
.cat-card__cta { margin-top: auto; padding-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.9rem; }
.cat-card__cta .icon { transition: transform 0.25s var(--ease); }
.cat-card:hover .cat-card__cta .icon { transform: translateX(4px); }

/* ---------- 11. Fact band ---------- */
.facts {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 0.85fr 2fr; gap: 2rem 2.5rem; align-items: center;
  background: var(--charcoal); color: var(--cream);
  border-radius: var(--radius-xl); padding: clamp(2rem, 4.5vw, 3.25rem);
}
.facts::before { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(203, 189, 243, 0.35), rgba(203, 189, 243, 0) 70%); }
.facts .eyebrow { color: #E3DCEB; }
.facts .section-title { color: var(--cream); }
.facts .section-desc { color: #D9D1DE; }
.facts__list { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fact-card {
  display: flex; flex-direction: column; gap: 0.5rem; height: 100%;
  background: var(--tone); color: var(--ink); text-decoration: none;
  border-radius: 24px; padding: 1.35rem 1.35rem 1.25rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.fact-card:hover { transform: translateY(-5px) rotate(-0.6deg); box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.6); }
.fact-card__num { font-family: var(--font-display); font-style: italic; font-size: 1.9rem; line-height: 1; opacity: 0.45; }
.fact-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; }
.fact-card__text { color: var(--ink-2); font-size: 0.94rem; line-height: 1.5; }
.fact-card__cta { margin-top: auto; padding-top: 0.35rem; display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 700; font-size: 0.86rem; }

/* ---------- 12. Featured ---------- */
.featured-grid { display: grid; grid-template-columns: 1.22fr 1fr; gap: clamp(1.25rem, 2.4vw, 1.75rem); align-items: stretch; }
.featured-list { display: grid; grid-template-rows: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.25rem); }

/* ---------- 13. Popular ---------- */
.popular {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 4vw, 4rem); align-items: center;
  background: var(--lavender); border-radius: var(--radius-xl); padding: clamp(2rem, 4.5vw, 3.5rem);
}
.popular__intro { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.popular__intro .section-desc { margin-top: 0; }
.popular__intro .eyebrow { margin-bottom: 0; }
.deco--pop1 { width: 120px; height: 120px; right: -10px; bottom: -70px; color: rgba(203, 189, 243, 0.9); transform: rotate(-16deg); }
.deco--pop2 { width: 26px; height: 26px; right: 18%; top: -6px; color: #B6A3EE; }
.popular-list { display: grid; gap: 0.8rem; }
.popular-item {
  display: grid; grid-template-columns: auto 88px 1fr; align-items: center; gap: 1rem;
  background: rgba(255, 255, 255, 0.72); border-radius: 24px; padding: 0.7rem 1.1rem 0.7rem 0.9rem;
  transition: background-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.popular-item:hover { background: var(--white); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.popular-item__rank { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 2rem; line-height: 1; color: #8A76CF; width: 2.6rem; text-align: center; }
.popular-item__thumb { display: block; width: 88px; aspect-ratio: 1; border-radius: 18px; overflow: hidden; }
.popular-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.popular-item__body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; min-width: 0; }
.popular-item__title { font-size: 1.1rem; line-height: 1.25; }
.popular-item .pill { font-size: 0.7rem; padding: 0.2rem 0.6rem; }

/* ---------- 14. Products and affiliate ---------- */
.disclosure-note {
  display: flex; align-items: flex-start; gap: 0.65rem;
  background: var(--peach-soft); border: 1px solid rgba(255, 190, 151, 0.55);
  border-radius: 18px; padding: 0.85rem 1.1rem; margin-bottom: 1.75rem;
  font-size: 0.9rem; color: var(--ink-2); line-height: 1.5;
}
.disclosure-note .icon { color: #E08AA4; margin-top: 0.15rem; }
.disclosure-note a { color: var(--ink); font-weight: 700; text-decoration-color: var(--pink-strong); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.product-card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card__media { position: relative; margin: 0.6rem 0.6rem 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream-deep); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(255, 255, 255, 0.94); color: var(--ink);
  padding: 0.35rem 0.75rem; border-radius: 999px;
  font-size: 0.74rem; font-weight: 700; box-shadow: var(--shadow-sm);
}
.badge .icon { width: 0.85rem; height: 0.85rem; color: #E08AA4; }
.product-card__body { display: flex; flex-direction: column; gap: 0.45rem; flex: 1; padding: 1.1rem 1.35rem 1.3rem; }
.product-card__type { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.product-card__title { font-size: 1.24rem; }
.product-card__desc { color: var(--ink-2); font-size: 0.95rem; }
.product-card__foot { margin-top: auto; padding-top: 0.9rem; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.product-card__price { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.product-card__note { font-size: 0.78rem; color: var(--ink-3); }
.product-card--compact { flex-direction: row; align-items: center; gap: 0.25rem; }
.product-card--compact .product-card__media { width: 112px; flex: none; aspect-ratio: 1; margin: 0.6rem; }
.product-card--compact .badge { display: none; }
.product-card--compact .product-card__body { padding: 0.8rem 1.1rem 0.8rem 0.4rem; gap: 0.3rem; }
.product-card--compact .product-card__title { font-size: 1.08rem; }
.product-card--compact .product-card__desc { font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card--compact .product-card__foot { padding-top: 0.5rem; }
.product-card--compact .product-card__body { min-width: 0; }
@media (max-width: 520px) {
  .product-card--compact { align-items: flex-start; }
  .product-card--compact .product-card__media { width: 76px; margin: 0.8rem 0.5rem 0.8rem 0.8rem; }
  .product-card--compact .product-card__foot { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .product-card--compact .product-card__foot .btn { justify-content: center; white-space: normal; text-align: center; }
}

/* ---------- 15. Ad slots (inactive until AdSense is configured) ---------- */
.ad-slot { margin: clamp(1rem, 3vw, 2rem) auto; max-width: 970px; }
.ad-slot__label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); text-align: center; margin-bottom: 0.4rem; }
.ad-slot.is-live { padding: 0.75rem; border-radius: 18px; background: rgba(41, 37, 45, 0.025); border: 1px solid var(--line); }
.ad-slot.is-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
  min-height: 110px; padding: 1rem; text-align: center;
  border: 2px dashed rgba(41, 37, 45, 0.2); border-radius: 18px; color: var(--ink-3); font-size: 0.85rem;
  background: repeating-linear-gradient(45deg, rgba(41, 37, 45, 0.025) 0 12px, transparent 12px 24px);
}
.ad-slot.is-placeholder strong { color: var(--ink-2); }

/* ---------- 16. Newsletter ---------- */
.newsletter__card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.35fr 0.65fr; align-items: center; gap: 2rem;
  background: linear-gradient(130deg, var(--peach) 0%, var(--pink) 52%, var(--lavender) 100%);
  border-radius: var(--radius-xl); padding: clamp(2rem, 5vw, 3.75rem);
}
.newsletter__card::before { content: ""; position: absolute; width: 380px; height: 380px; left: -140px; bottom: -220px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.newsletter__copy { position: relative; }
.newsletter__title { font-size: clamp(2rem, 3.8vw, 3.1rem); letter-spacing: -0.025em; }
.newsletter__text { margin-top: 0.8rem; color: var(--ink-2); font-size: 1.1rem; max-width: 33rem; }
.newsletter-form { margin-top: 1.75rem; max-width: 540px; }
.newsletter-form__row {
  display: flex; gap: 0.5rem; padding: 0.45rem; border-radius: 999px;
  background: var(--white); box-shadow: var(--shadow-sm); border: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.newsletter-form__row:focus-within { border-color: var(--focus); }
.newsletter-form__row .input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0.7rem 1rem; font-size: 1rem; }
.newsletter-form__row .input:focus { outline: none; }
.newsletter-form__row .input[aria-invalid="true"] { color: var(--error); }
.form-note { margin-top: 0.8rem; font-size: 0.86rem; color: var(--ink-2); }
.form-note a { color: var(--ink); font-weight: 600; }
.form-status { margin-top: 0.75rem; font-weight: 600; font-size: 0.95rem; min-height: 1.4em; }
.form-status:empty { margin-top: 0; min-height: 0; }
.form-status.is-success, .form-status.is-error, .form-status.is-info {
  display: flex; align-items: flex-start; gap: 0.55rem; padding: 0.75rem 1rem; border-radius: 16px; background: rgba(255, 255, 255, 0.85);
}
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }
.form-status.is-info { color: var(--ink); }
.form-status .icon { margin-top: 0.15rem; }
.newsletter__visual { position: relative; justify-self: center; }
.newsletter__photo { width: clamp(190px, 22vw, 290px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 8px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow); transform: rotate(-4deg); }
.newsletter__photo img { width: 100%; height: 100%; object-fit: cover; }
.deco--n1 { width: 30px; height: 30px; top: -4%; right: 2%; color: var(--white); }
.deco--n2 { width: 26px; height: 26px; bottom: 6%; left: -6%; color: #E08AA4; }
.deco--n3 { width: 34px; height: 34px; bottom: -6%; right: 8%; color: var(--charcoal); transform: rotate(20deg); }

/* ---------- 17. Footer ---------- */
.site-footer {
  position: relative; margin-top: clamp(4rem, 8vw, 6rem);
  background: var(--lavender); border-radius: 48px 48px 0 0;
  padding: 4.5rem 0 2rem;
}
.footer__cat { position: absolute; top: -66px; right: clamp(1.5rem, 10vw, 9rem); width: 132px; }
.peek-cat { width: 100%; height: auto; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.25fr; gap: 2.5rem; }
.brand--footer .brand__logo { height: 56px; }
.footer__tagline { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; margin-top: 1rem; }
.footer__about { margin-top: 0.4rem; color: var(--ink-2); font-size: 0.95rem; max-width: 30rem; }
.social-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.3rem; }
.social-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--ink); transition: background-color 0.2s, color 0.2s, transform 0.2s; }
.social-btn:hover { background: var(--charcoal); color: var(--cream); transform: translateY(-2px); }
.social-btn .icon { width: 1.15rem; height: 1.15rem; }
.footer__title { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; margin-bottom: 0.9rem; }
.footer__col ul { display: grid; gap: 0.55rem; list-style: none; padding: 0; margin: 0 0 1.6rem; }
.footer__col a { color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.footer__col a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pink-strong); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.footer__contact li { display: flex; align-items: center; gap: 0.5rem; word-break: break-word; }
.footer__contact .icon { color: var(--ink-3); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem;
  margin-top: 3rem; padding-top: 1.5rem;
  background: linear-gradient(rgba(41, 37, 45, 0.12), rgba(41, 37, 45, 0.12)) center top / calc(100% - var(--gutter) * 2) 1px no-repeat;
  font-size: 0.88rem; color: var(--ink-2);
}
.footer__bottom a { color: var(--ink); font-weight: 600; }
.footer__heart { display: inline; width: 1em; height: 1em; vertical-align: -0.15em; color: #E08AA4; }

/* ---------- 18. Search dialog ---------- */
.search-dialog { border: 0; padding: 0; background: transparent; width: min(680px, calc(100% - 2rem)); max-width: none; max-height: calc(100% - 3rem); margin: 9vh auto auto; overflow: visible; }
.search-dialog::backdrop { background: rgba(41, 37, 45, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.search-dialog[open] .search-dialog__inner { animation: dialogIn 0.28s var(--ease); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.search-dialog__inner { background: var(--cream); border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: var(--shadow-lg); max-height: calc(100vh - 6rem); overflow: auto; }
.search-dialog__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.search-dialog__title { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.search-dialog__title .icon { color: #9C86E6; }
.search-dialog__topics { margin-top: 1.25rem; }
.search-dialog__label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.6rem; }

.search-field {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--white); border-radius: 999px; padding: 0.4rem 0.4rem 0.4rem 1.1rem;
  border: 2px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s;
}
.search-field:focus-within { border-color: var(--focus); box-shadow: 0 0 0 4px rgba(107, 78, 230, 0.15); }
.search-field__icon { width: 1.25rem; height: 1.25rem; color: var(--ink-3); }
.search-field__input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0.55rem 0.25rem; font-size: 1.05rem; }
.search-field__input:focus { outline: none; }
.search-field__input::-webkit-search-cancel-button { cursor: pointer; }
.search-field--hero { margin-top: 1.75rem; max-width: 580px; box-shadow: var(--shadow-sm); }

.quick-results { display: grid; gap: 0.35rem; margin-top: 0.9rem; }
.quick-results:empty { margin-top: 0; }
.quick-result { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 0.9rem; padding: 0.5rem; border-radius: 18px; text-decoration: none; transition: background-color 0.2s; }
.quick-result:hover, .quick-result:focus-visible { background: var(--white); }
.quick-result img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; }
.quick-result__title { display: block; font-weight: 700; line-height: 1.3; }
.quick-result__meta { display: block; font-size: 0.84rem; color: var(--ink-3); }
.quick-results__all { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.6rem 0.5rem 0.2rem; font-weight: 700; text-decoration: none; }
.quick-results__empty { padding: 0.75rem 0.5rem; color: var(--ink-2); }
mark { background: var(--pink); color: inherit; border-radius: 4px; padding: 0 0.1em; }

/* ---------- 19. Back to top ---------- */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  width: 50px; height: 50px; display: grid; place-items: center;
  border-radius: 50%; background: var(--charcoal); color: var(--cream); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top .icon { width: 1.3rem; height: 1.3rem; }

/* ---------- 20. Breadcrumb and page heroes ---------- */
.breadcrumb { margin-bottom: 1.4rem; font-size: 0.88rem; color: var(--ink-3); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.35rem; }
.breadcrumb li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.6; margin-right: 0.25rem; }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pink-strong); text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

.page-hero {
  padding-block: clamp(2.25rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(42% 70% at 92% 10%, var(--lavender) 0%, rgba(233, 226, 250, 0) 70%),
    radial-gradient(36% 70% at 0% 100%, var(--pink) 0%, rgba(248, 221, 229, 0) 70%),
    var(--cream);
}
.page-hero__title { font-size: clamp(2.2rem, 4.8vw, 3.7rem); line-height: 1.06; letter-spacing: -0.025em; max-width: 22ch; }
.page-hero__lead { margin-top: 1rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 40rem; }
.page-hero__meta { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; color: var(--ink-3); }
.page-hero--legal { background: radial-gradient(40% 80% at 95% 0%, var(--peach) 0%, rgba(255, 217, 194, 0) 70%), var(--cream); }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-bottom: 1.25rem; }
.filter-bar__label { font-weight: 700; font-size: 0.92rem; color: var(--ink-2); }
.results-count { color: var(--ink-3); font-size: 0.92rem; margin-bottom: 1.5rem; }
.empty-state { text-align: center; color: var(--ink-2); padding: 2rem 1rem; }
.empty-state a { font-weight: 700; }
.empty-state--card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 2.5rem 1.5rem; }
.empty-state--card .chip-list { justify-content: center; margin-top: 1rem; }
.empty-state__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.search-suggest { margin-top: 3rem; }

/* ---------- 21. Category hero and topic links ---------- */
.cat-hero {
  padding-block: clamp(2.25rem, 5vw, 4rem);
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--tone) 0%, var(--tone-soft) 100%);
}
.cat-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.cat-hero__media { border-radius: 36px; overflow: hidden; border: 8px solid var(--white); box-shadow: var(--shadow); aspect-ratio: 4 / 3; transform: rotate(1.5deg); }
.cat-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.cat-hero__count { margin-top: 1.4rem; display: inline-flex; align-items: center; gap: 0.45rem; background: var(--white); padding: 0.45rem 1rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem; box-shadow: var(--shadow-sm); }

.topic-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.topic-list--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.topic-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 0.65rem;
  background: var(--tone); color: var(--ink); text-decoration: none;
  padding: 0.85rem 1.25rem; border-radius: 999px; font-weight: 700;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.topic-list--grid .topic-link { display: flex; border-radius: 22px; padding: 1.1rem 1.3rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.topic-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.topic-link__count { background: var(--white); border-radius: 999px; font-size: 0.78rem; padding: 0.1rem 0.55rem; }

/* ---------- 22. Prose (articles and legal pages) ---------- */
.prose { font-size: 1.08rem; line-height: 1.8; color: #3A3440; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); margin-top: 2.1em; line-height: 1.2; letter-spacing: -0.02em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { font-size: 1.32rem; margin-top: 1.7em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--pink-strong); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul:not([class]), .prose ol:not([class]) { padding-left: 1.35em; }
.prose li + li { margin-top: 0.45em; }
.prose ul:not([class]) li::marker { color: #D98AA3; }
.prose ol:not([class]) li::marker { color: var(--ink-3); font-weight: 700; }
.prose .lead { font-size: clamp(1.18rem, 1.8vw, 1.32rem); line-height: 1.65; color: var(--ink); }
.prose .lead::first-letter { float: left; font-family: var(--font-display); font-weight: 600; font-size: 3.6em; line-height: 0.82; padding: 0.06em 0.12em 0 0; color: var(--ink); }

.key-points { background: var(--white); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-sm); border: 2px solid var(--lavender); }
.key-points__title { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.key-points ul { margin-top: 0.5em; padding-left: 1.2em; }

.callout { border-radius: var(--radius); padding: 1.2rem 1.4rem; background: var(--peach-soft); border: 1px solid rgba(255, 190, 151, 0.6); }
.callout > * + * { margin-top: 0.6em; }
.callout ul { padding-left: 1.2em; }
.callout__title { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.callout--fact { background: var(--lavender-soft); border-color: var(--lavender-strong); }
.callout--warning { background: var(--pink-soft); border-color: var(--pink-strong); border-left: 6px solid #E39AB1; }
.callout--tip { background: var(--peach-soft); }

.myth-fact { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.myth-fact__item { border-radius: 20px; padding: 1.05rem 1.2rem; font-size: 1rem; line-height: 1.6; }
.myth-fact__item--myth { background: var(--pink); }
.myth-fact__item--fact { background: var(--lavender); }
.myth-fact__label { display: inline-block; margin-bottom: 0.45rem; background: var(--white); border-radius: 999px; padding: 0.15rem 0.65rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.checklist li { position: relative; padding-left: 2.1rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--lavender) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2329252D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 62% no-repeat;
}

.name-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.name-cloud li { margin: 0 !important; padding: 0.4rem 0.9rem; border-radius: 999px; background: var(--white); border: 1.5px solid var(--line); font-weight: 600; font-size: 0.97rem; line-height: 1.3; }
.name-cloud li:nth-child(4n + 1) { background: var(--pink); border-color: transparent; }
.name-cloud li:nth-child(4n + 3) { background: var(--lavender); border-color: transparent; }
.name-cloud li:nth-child(4n) { background: var(--peach); border-color: transparent; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.97rem; line-height: 1.5; }
.table-wrap th, .table-wrap td { padding: 0.85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th { background: var(--lavender); font-weight: 700; color: var(--ink); }
.table-wrap tbody th { font-weight: 700; color: var(--ink); }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }

.template-note { background: var(--peach); border-radius: 18px; padding: 1rem 1.25rem; font-size: 0.95rem; line-height: 1.6; color: var(--ink); }
.prose--legal h2 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
.prose-img { border-radius: var(--radius); }

/* ---------- 23. About ---------- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.about-intro__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 36px; border: 8px solid var(--white); box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.about-intro__copy { display: grid; gap: 1rem; color: var(--ink-2); font-size: 1.08rem; }
.about-intro__copy .section-title { margin-bottom: 0.25rem; }
.about-intro__sign { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--ink); }
.value-card { background: var(--tone); border-radius: var(--radius-lg); padding: 1.8rem; color: var(--ink-2); }
.value-card__num { display: block; font-family: var(--font-display); font-style: italic; font-size: 2rem; line-height: 1; opacity: 0.45; color: var(--ink); }
.value-card__title { font-size: 1.38rem; margin: 0.8rem 0 0.5rem; }
.about-explore { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: 2rem 3rem; }

/* ---------- 24. Forms and contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.contact-card { background: var(--white); border-radius: 32px; padding: clamp(1.5rem, 3.5vw, 2.5rem); box-shadow: var(--shadow-sm); }
.contact-card .section-title--sm { margin-bottom: 0.35rem; }
.contact-form { margin-top: 1.5rem; }
.form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 0.4rem; }
.input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 14px; background: var(--cream);
  padding: 0.8rem 1rem; font-size: 1rem; line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.input:hover { border-color: rgba(41, 37, 45, 0.25); }
.input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px rgba(107, 78, 230, 0.15); background: var(--white); }
textarea.input { resize: vertical; min-height: 150px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2329252D' stroke-width='2' stroke-linecap='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.1rem; padding-right: 2.75rem; }
.input[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.86rem; font-weight: 600; margin-top: 0.4rem; }
.field--check { display: flex; align-items: flex-start; gap: 0.65rem; }
.field--check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; flex: none; accent-color: var(--charcoal); }
.field--check label { font-weight: 400; font-size: 0.92rem; color: var(--ink-2); margin: 0; }
.field--check .field-error { flex-basis: 100%; }
.contact-info { display: grid; gap: 1rem; }
.info-card { background: var(--tone); border-radius: 26px; padding: 1.4rem 1.5rem; color: var(--ink-2); display: grid; gap: 0.5rem; }
.info-card__title { font-size: 1.25rem; }
.info-card__link { font-weight: 700; color: var(--ink); word-break: break-word; }
.inline-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.inline-links a { font-weight: 700; color: var(--ink); }
.faq { display: grid; gap: 0.75rem; }
.faq__item { background: var(--white); border-radius: 20px; box-shadow: var(--shadow-sm); padding: 0 1.3rem; }
.faq__item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-weight: 700; border-radius: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; transition: transform 0.25s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding-bottom: 1.15rem; color: var(--ink-2); }

/* ---------- 25. Credits and 404 ---------- */
.table-wrap--credits { margin-top: 2rem; }
.credits-table img { border-radius: 10px; object-fit: cover; }
.credits-table td { font-size: 0.93rem; }
.credits-table a { color: var(--ink); text-decoration-color: var(--pink-strong); text-underline-offset: 3px; }
.not-found { padding-block: clamp(3rem, 7vw, 6rem); background: radial-gradient(40% 70% at 90% 20%, var(--lavender) 0%, rgba(233, 226, 250, 0) 70%), var(--cream); }
.not-found__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 3rem; }
.not-found__copy .search-field { margin-top: 1.75rem; max-width: 520px; }
.not-found__media img { width: 100%; border-radius: 36px; border: 8px solid var(--white); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- 26. Scroll reveal (only applied by JS to below-the-fold elements) ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
