/* =========================================================
   babies. — editorial stylesheet
   ========================================================= */

:root {
  --cream: #f5f3e8;
  --cream-deep: #e8e5d5;
  --paper: #fffdf6;
  --ink: #15261d;
  --ink-soft: #36483c;
  --muted: #6e7c71;
  --clay: #c1702f;
  --clay-dark: #9a531c;
  --sage: #2f4b3a;
  --sage-soft: #dfe7d9;
  --butter: #e8c07f;
  --line: #dedac7;
  --line-strong: #c8c1a9;
  --white: #ffffff;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 30px;
  --r-arch: 200px 200px 20px 20px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max: 1240px;
  --shadow-sm: 0 1px 2px rgba(21, 38, 29, .06), 0 10px 24px -18px rgba(21, 38, 29, .35);
  --shadow-md: 0 18px 50px -28px rgba(21, 38, 29, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(232, 192, 127, .18), transparent 60%),
    radial-gradient(900px 500px at 96% 4%, rgba(47, 75, 58, .12), transparent 55%);
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding-left: 1.2em; }

::selection { background: var(--butter); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clay-dark);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.serif { font-family: var(--serif); font-weight: 500; }

/* =========================== ticker =========================== */

.ticker {
  background: var(--ink);
  color: #f3f1e6;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  overflow: hidden;
  padding: 9px 0;
}
.ticker__track {
  display: flex;
  gap: 44px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 44s linear infinite;
}
.ticker__track span { display: inline-flex; align-items: center; gap: 10px; }
.ticker__dot { color: var(--butter); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================== header =========================== */

#site-header { display: contents; }
#site-footer { display: contents; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 232, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(245, 243, 232, .95);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
}
.brand__dot { color: var(--clay); }
.brand__tag {
  display: none;
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
}
.nav a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink); }

.header__tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.icon-btn:hover { background: var(--paper); border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.burger { display: none; }

/* =========================== buttons =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s, border-color .25s;
}
.btn svg { width: 16px; height: 16px; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--clay-dark); transform: translateY(-2px); }
.btn--clay { background: var(--clay); color: #fff; }
.btn--clay:hover { background: var(--clay-dark); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--paper); transform: translateY(-2px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .8rem; }

/* =========================== hero =========================== */

.hero { padding: 58px 0 18px; position: relative; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 7px 7px 7px 14px;
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}
.hero__badge b {
  background: var(--sage);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 11px;
  letter-spacing: .1em;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 6.4vw, 5.4rem);
  line-height: .96;
  letter-spacing: -.045em;
  margin: 0 0 26px;
  font-weight: 500;
}
.hero h1 em {
  font-style: italic;
  color: var(--clay);
  font-weight: 400;
}
.hero h1 .ruled {
  position: relative;
  white-space: nowrap;
}
.hero h1 .ruled::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 0;
  bottom: .05em;
  height: .1em;
  background: var(--butter);
  z-index: -1;
  transform: rotate(-.7deg);
}
.hero__sub {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--muted);
  margin-left: 4px;
}
.hero__note svg { width: 15px; height: 15px; color: var(--sage); }

.hero__media { position: relative; }
.hero__figure {
  position: relative;
  border-radius: var(--r-arch);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--cream-deep);
  box-shadow: var(--shadow-md);
}
.hero__figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}
.hero__figure:hover img { transform: scale(1.06); }
.hero__stamp {
  position: absolute;
  top: 18%;
  left: -28px;
  width: 132px; height: 132px;
  display: grid;
  place-items: center;
  background: var(--butter);
  color: var(--ink);
  border-radius: 50%;
  text-align: center;
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.5;
  padding: 14px;
  animation: float 7s ease-in-out infinite;
  box-shadow: 0 18px 40px -22px rgba(21, 38, 29, .5);
}
.hero__stamp b {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: -.03em;
  text-transform: none;
  line-height: 1;
  margin-bottom: 2px;
}
.hero__card {
  position: absolute;
  right: -14px;
  bottom: 26px;
  width: min(300px, 84%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
}
.hero__card span {
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clay-dark);
  font-weight: 600;
}
.hero__card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.15;
  margin: 7px 0 10px;
  letter-spacing: -.01em;
}
.hero__card p { margin: 0; font-size: .78rem; color: var(--muted); }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-12px) rotate(-3deg); }
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero__meta div { display: flex; flex-direction: column; gap: 2px; }
.hero__meta b {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -.02em;
}
.hero__meta span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* =========================== section =========================== */

.section { padding: clamp(54px, 7vw, 96px) 0; }
.section--tight { padding: clamp(34px, 4vw, 56px) 0; }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 36px;
}
.section__head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 500;
  margin: 10px 0 0;
  max-width: 20ch;
}
.section__head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .92rem;
  max-width: 42ch;
}
.section__link {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.section__link:hover { color: var(--clay); border-color: var(--clay); }

/* =========================== filter =========================== */

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 34px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 999px;
  padding: 9px 17px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .22s var(--ease);
  white-space: nowrap;
}
.chip:hover { background: var(--paper); border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* =========================== feature =========================== */

.feature {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 34px;
}
.feature__media { position: relative; min-height: 380px; overflow: hidden; }
.feature__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  transition: transform .9s var(--ease);
}
.feature:hover .feature__media img { transform: scale(1.04); }
.feature__badge {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--paper);
  color: var(--ink);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  z-index: 2;
}
.feature__body {
  padding: clamp(26px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.feature__body .cat { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--clay-dark); font-weight: 600; }
.feature__body h3 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.5vw, 2.45rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 500;
  margin: 0;
}
.feature__body h3 a { background-image: linear-gradient(var(--butter), var(--butter)); background-repeat: no-repeat; background-size: 0% 38%; background-position: 0 88%; transition: background-size .45s var(--ease); }
.feature__body h3 a:hover { background-size: 100% 38%; }
.feature__body p { margin: 0; color: var(--ink-soft); font-size: .95rem; max-width: 40ch; }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: .74rem;
  color: var(--muted);
}
.meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.meta-row b { color: var(--ink-soft); font-weight: 500; }

/* =========================== grid cards =========================== */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 4 / 3;
  background: var(--cream-deep);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }
.card__tag {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(255, 253, 246, .94);
  border-radius: 999px;
  font-size: .62rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 12px;
  color: var(--ink);
}
.card__num {
  position: absolute;
  top: 10px; right: 14px;
  font-family: var(--serif);
  font-size: .9rem;
  color: var(--ink);
  background: rgba(255, 253, 246, .9);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.12rem, 1.5vw, 1.32rem);
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 0;
}
.card:hover h3 { color: var(--clay-dark); }
.card p { margin: 0; font-size: .84rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta-row { margin-top: auto; font-size: .7rem; }
.cards--four { grid-template-columns: repeat(4, 1fr); }

/* lead card spanning two columns */
.cards--bento { grid-template-columns: repeat(4, 1fr); }
.cards--bento .card--wide { grid-column: span 2; }
.cards--bento .card--wide .card__media { aspect-ratio: 16 / 10; }
.cards--bento .card--wide h3 { font-size: clamp(1.5rem, 2vw, 1.9rem); }

/* =========================== most read =========================== */

.split { display: grid; grid-template-columns: 1.5fr .9fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.ranked {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.ranked li { border-bottom: 1px solid var(--line); }
.ranked a {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 4px;
  transition: padding .25s var(--ease), background .25s;
}
.ranked a:hover { padding-left: 10px; background: rgba(255, 253, 246, .6); }
.ranked__num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--line-strong);
  line-height: 1;
}
.ranked a:hover .ranked__num { color: var(--clay); }
.ranked__title { font-family: var(--serif); font-size: 1.05rem; line-height: 1.2; font-weight: 500; }
.ranked__cat { font-size: .63rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ranked__arrow { width: 16px; height: 16px; color: var(--muted); }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 34px);
  position: sticky;
  top: 100px;
}
.panel h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -.025em;
  margin: 0 0 8px;
}
.panel p { color: var(--muted); font-size: .85rem; margin: 0 0 20px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
  transition: border-color .2s, background .2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-color: var(--ink); background: var(--paper); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .7rem; color: var(--muted); margin: 0; }
.form-status { font-size: .78rem; color: var(--sage); margin: 10px 0 0; min-height: 1.2em; }
.form-status.is-error { color: var(--clay-dark); }

/* =========================== topics =========================== */

.topics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.topic {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.topic:hover { transform: translateY(-5px); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.topic__icon { width: 30px; height: 30px; color: var(--clay); }
.topic:hover .topic__icon { color: var(--butter); }
.topic h3 { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; margin: 0 0 4px; letter-spacing: -.01em; }
.topic p { margin: 0; font-size: .76rem; color: var(--muted); }
.topic:hover p { color: rgba(255, 253, 246, .65); }

/* =========================== newsletter =========================== */

.newsletter {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: clamp(38px, 6vw, 76px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.newsletter::before {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  right: -160px; top: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 192, 127, .32), transparent 66%);
}
.newsletter::after {
  content: "b.";
  position: absolute;
  right: 3%; bottom: -34%;
  font-family: var(--serif);
  font-size: 26rem;
  line-height: 1;
  color: rgba(245, 243, 232, .05);
  pointer-events: none;
}
.newsletter h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: .99;
  letter-spacing: -.04em;
  font-weight: 500;
  margin: 12px 0 18px;
}
.newsletter h2 em { color: var(--butter); font-style: italic; }
.newsletter p { color: rgba(255, 253, 246, .72); font-size: .94rem; max-width: 40ch; margin: 0 0 12px; }
.newsletter .eyebrow { color: var(--butter); }
.newsletter__form { position: relative; z-index: 2; }
.newsletter .field input {
  background: rgba(255, 253, 246, .08);
  border-color: rgba(255, 253, 246, .22);
  color: var(--paper);
}
.newsletter .field input::placeholder { color: rgba(255, 253, 246, .45); }
.newsletter .field label { color: rgba(255, 253, 246, .55); }
.newsletter .btn--clay { width: 100%; }
.newsletter .form-note { color: rgba(255, 253, 246, .45); margin-top: 10px; }
.newsletter .form-status { color: var(--butter); }

/* =========================== footer =========================== */

.site-footer {
  margin-top: clamp(60px, 8vw, 110px);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  position: relative;
  z-index: 1;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr .6fr .6fr;
  gap: 34px;
  padding-bottom: 42px;
}
.footer__brand p { color: var(--muted); font-size: .86rem; max-width: 32ch; margin: 14px 0 18px; }
.footer__brand .brand { font-size: 2.3rem; }
.footer h4 {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 0 16px;
  font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { font-size: .86rem; color: var(--ink-soft); transition: color .2s; }
.footer ul a:hover { color: var(--clay-dark); }
.footer__social { display: flex; gap: 8px; }
.footer__social a {
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .66rem;
  letter-spacing: .02em;
  transition: background .2s, color .2s;
}
.footer__social a:hover { background: var(--ink); color: var(--paper); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: .74rem;
  color: var(--muted);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__bottom a:hover { color: var(--ink); }
.footer__disclaimer { max-width: 62ch; font-size: .7rem; line-height: 1.5; color: var(--muted); }

/* =========================== search overlay =========================== */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(21, 38, 29, .4);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 20px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-box {
  background: var(--paper);
  width: min(680px, 100%);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .6);
  transform: translateY(14px);
  transition: transform .35s var(--ease);
  max-height: 76vh;
  display: flex;
  flex-direction: column;
}
.search-overlay.is-open .search-box { transform: translateY(0); }
.search-box__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.search-box__head span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.search-box input {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  padding: 8px 0 12px;
  color: var(--ink);
}
.search-box input:focus { outline: none; }
.search-box input::placeholder { color: var(--line-strong); }
.search-results { list-style: none; padding: 0; margin: 14px 0 0; overflow-y: auto; }
.search-results li { border-bottom: 1px solid var(--line); }
.search-results a { display: flex; gap: 14px; padding: 14px 2px; align-items: center; }
.search-results a:hover { color: var(--clay-dark); }
.search-results img { width: 54px; height: 42px; object-fit: cover; border-radius: 8px; flex: none; }
.search-results b { display: block; font-family: var(--serif); font-weight: 500; font-size: .98rem; line-height: 1.2; }
.search-results small { color: var(--muted); font-size: .7rem; letter-spacing: .06em; }
.search-empty { padding: 26px 0; color: var(--muted); font-size: .9rem; }

/* =========================== mobile drawer =========================== */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 250;
  visibility: hidden;
  pointer-events: none;
}
.drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(21, 38, 29, .45);
  opacity: 0;
  transition: opacity .3s;
}
.drawer__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(360px, 88vw);
  height: 100%;
  background: var(--cream);
  padding: 24px;
  transform: translateX(102%);
  transition: transform .4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer__links { display: grid; gap: 2px; }
.drawer__links a {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -.02em;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.drawer__links a:hover { color: var(--clay-dark); }
.drawer__foot { margin-top: auto; padding-top: 24px; }

/* =========================== article page =========================== */

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--clay);
  z-index: 150;
  transition: width .12s linear;
}

.article-hero { padding: 42px 0 0; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.breadcrumb a:hover { color: var(--clay-dark); }
.breadcrumb span { color: var(--line-strong); }
.article-head { max-width: 900px; }
.article-head .cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay-dark);
  font-weight: 600;
  margin-bottom: 16px;
}
.article-head h1 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 500;
  margin: 0 0 22px;
  text-wrap: balance;
}
.article-head .dek {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 30px;
}
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-bottom: 30px; }
.author-chip { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sage);
  color: var(--paper);
  font-size: .72rem;
  letter-spacing: .04em;
  font-weight: 600;
  flex: none;
}
.author-chip b { display: block; font-size: .82rem; font-weight: 600; }
.author-chip small { color: var(--muted); font-size: .7rem; }
.article-meta .meta-row { font-size: .76rem; }

.article-cover {
  margin: 6px 0 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 8.4;
  background: var(--cream-deep);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-credit { font-size: .66rem; color: var(--muted); margin: 10px 2px 0; letter-spacing: .04em; }

.article-layout {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr) 216px;
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
  margin-top: 44px;
}
.article-side { position: sticky; top: 100px; }
.side-block + .side-block { margin-top: 28px; }
.side-block h4 {
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 600;
}
.toc { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; border-left: 1px solid var(--line); }
.toc a {
  display: block;
  font-size: .8rem;
  line-height: 1.35;
  color: var(--muted);
  padding-left: 14px;
  border-left: 2px solid transparent;
  margin-left: -1.5px;
  transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--clay); font-weight: 500; }
.share-list { display: flex; gap: 8px; }
.share-list button,
.share-list a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  background: transparent;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.share-list svg { width: 15px; height: 15px; }
.share-list button:hover,
.share-list a:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: .74rem;
  cursor: pointer;
  transition: background .2s;
}
.save-btn:hover { background: var(--ink); color: var(--paper); }
.save-btn svg { width: 14px; height: 14px; }

.article-body { max-width: 720px; font-size: 1.06rem; line-height: 1.78; color: #21322a; }
.article-body > * { margin-top: 0; margin-bottom: 1.15em; }
.article-body p { text-wrap: pretty; }
.article-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 500;
  margin: 2.1em 0 .65em;
  scroll-margin-top: 110px;
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 1.7em 0 .5em;
}
.article-body ul,
.article-body ol { padding-left: 1.3em; }
.article-body li { margin-bottom: .55em; }
.article-body li::marker { color: var(--clay); font-weight: 600; }
.article-body a { color: var(--clay-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.takeaways {
  background: var(--sage-soft);
  border-radius: var(--r-md);
  padding: 24px 26px;
  margin-bottom: 2em;
}
.takeaways h2,
.takeaways h3 {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #35523f;
  margin: 0 0 12px;
  font-weight: 700;
}
.takeaways ul { margin: 0; padding-left: 1.1em; }
.takeaways li { font-size: .9rem; line-height: 1.55; margin-bottom: .5em; }
.takeaways li::marker { color: var(--sage); }

.tip-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--clay);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 20px 22px;
  margin: 1.8em 0;
}
.tip-box__icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--butter);
  display: grid; place-items: center;
  color: var(--ink);
  flex: none;
}
.tip-box__icon svg { width: 15px; height: 15px; }
.tip-box h4 { margin: 0 0 4px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-dark); }
.tip-box p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--ink-soft); }

.pull-quote {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--ink);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 26px 0;
  margin: 2em 0;
}
.pull-quote::before { content: "“"; color: var(--clay); font-size: 2.6em; line-height: 0; position: relative; top: .22em; margin-right: 4px; }

.faq { border-top: 1px solid var(--line); margin-top: 2.2em; }
.faq h2 { margin-top: 1.2em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 4px;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.25rem;
  color: var(--clay);
  flex: none;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { font-size: .93rem; color: var(--ink-soft); padding: 0 4px 18px; max-width: 58ch; }

.article-foot {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--muted);
}

.disclaimer-note {
  margin-top: 26px;
  background: rgba(222, 218, 199, .35);
  border-radius: var(--r-md);
  padding: 18px 22px;
  font-size: .78rem;
  line-height: 1.6;
  color: var(--muted);
}

.author-box {
  margin-top: 34px;
  display: flex;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
}
.author-box .avatar { width: 56px; height: 56px; font-size: .85rem; background: var(--clay); }
.author-box h3 { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; margin: 0 0 2px; }
.author-box small { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.author-box p { margin: 8px 0 0; font-size: .84rem; color: var(--ink-soft); line-height: 1.6; }

.related { margin-top: clamp(48px, 6vw, 80px); padding-top: 40px; border-top: 1px solid var(--line); }
.related h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -.03em;
  margin: 0 0 24px;
}
.related .cards { grid-template-columns: repeat(3, 1fr); }

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 34px;
}
.article-nav a {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  background: var(--paper);
  transition: transform .25s var(--ease), border-color .25s;
}
.article-nav a:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.article-nav small { display: block; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.article-nav b { font-family: var(--serif); font-weight: 500; font-size: .98rem; line-height: 1.3; }
.article-nav a:last-child { text-align: right; }

/* =========================== legal pages =========================== */

.page-hero { padding: 62px 0 0; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 500;
  margin: 14px 0 20px;
  max-width: 20ch;
  text-wrap: balance;
}
.page-hero .lede {
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 22px;
}
.page-hero .updated { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.page-body {
  max-width: 760px;
  padding-top: 40px;
  font-size: 1rem;
  line-height: 1.75;
  color: #21322a;
}
.page-body section { padding: 22px 0; border-top: 1px solid var(--line); }
.page-body h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -.02em;
  margin: 0 0 10px;
}
.page-body p { margin: 0 0 10px; color: var(--ink-soft); }
.page-body ul { color: var(--ink-soft); }
.page-body a { color: var(--clay-dark); text-decoration: underline; text-underline-offset: 3px; }

.contact-grid { display: grid; grid-template-columns: 1fr .92fr; gap: clamp(26px, 4vw, 56px); align-items: start; padding-top: 40px; }
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
}
.contact-card h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; margin: 0 0 8px; letter-spacing: -.02em; }
.contact-card > p { color: var(--muted); font-size: .88rem; margin: 0 0 20px; }
.contact-details { display: grid; gap: 16px; margin-top: 26px; }
.contact-details div { display: grid; gap: 2px; }
.contact-details span { font-size: .64rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.contact-details a,
.contact-details b { font-size: .92rem; color: var(--ink); font-weight: 500; }

/* =========================== toast =========================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 140%);
  background: var(--ink);
  color: var(--paper);
  font-size: .82rem;
  padding: 13px 22px;
  border-radius: 999px;
  z-index: 400;
  transition: transform .4s var(--ease);
  box-shadow: var(--shadow-md);
  max-width: calc(100% - 40px);
  text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); }

/* =========================== back to top =========================== */

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  border: none;
  display: grid; place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s var(--ease);
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 17px; height: 17px; }

/* =========================== reveal =========================== */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================== responsive =========================== */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr .9fr; gap: 34px; }
  .hero__stamp { width: 108px; height: 108px; left: -18px; }
  .cards--four { grid-template-columns: repeat(2, 1fr); }
  .topic { min-height: 138px; padding: 18px; }
  .article-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .article-side--right { display: none; }
  .article-body { max-width: 100%; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: grid; }
  .hero { padding-top: 36px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 520px; }
  .hero__figure { aspect-ratio: 4 / 3.6; border-radius: 180px 180px 20px 20px; }
  .hero__card { right: 2px; bottom: -18px; }
  .hero__stamp { left: auto; right: 10px; top: 12px; width: 96px; height: 96px; font-size: .58rem; }
  .hero__stamp b { font-size: 1.3rem; }
  .hero__meta { margin-top: 34px; gap: 22px; }
  .hero__meta b { font-size: 1.25rem; }
  .feature { grid-template-columns: 1fr; }
  .feature__media { min-height: 260px; aspect-ratio: 16 / 9; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards--bento { grid-template-columns: repeat(2, 1fr); }
  .cards--bento .card--wide { grid-column: span 2; }
  .split { grid-template-columns: 1fr; }
  .panel { position: static; }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .newsletter { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
  .article-layout { grid-template-columns: 1fr; gap: 30px; }
  .article-side { display: none; }
  #article-toc { display: block; position: static; }
  #article-toc .side-block h4 { margin-bottom: 10px; }
  #article-toc .toc {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-left: 0;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  #article-toc .toc::-webkit-scrollbar { display: none; }
  #article-toc .toc a {
    flex: none;
    border-left: 0;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: .72rem;
    white-space: nowrap;
    background: var(--paper);
  }
  #article-toc .toc a.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .article-cover { aspect-ratio: 16 / 10; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 28px, var(--max)); }
  .header__inner { min-height: 66px; gap: 12px; }
  .brand { font-size: 1.58rem; }
  .hero__badge { margin-bottom: 22px; font-size: .62rem; }
  .hero h1 { font-size: clamp(2.6rem, 11.6vw, 3.5rem); }
  .hero__sub { font-size: .94rem; margin-bottom: 26px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__note { margin-left: 0; }
  .hero__figure { border-radius: 130px 130px 16px 16px; aspect-ratio: 4 / 4.1; }
  .hero__card { position: static; width: 100%; margin-top: 12px; right: auto; bottom: auto; }
  .hero__stamp { width: 82px; height: 82px; font-size: .52rem; padding: 10px; }
  .hero__stamp b { font-size: 1.1rem; }
  .hero__meta { gap: 18px 26px; }
  .hero__meta b { font-size: 1.1rem; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
  .section__head h2 { font-size: 1.9rem; }
  .cards,
  .cards--four,
  .cards--bento { grid-template-columns: 1fr; }
  .cards--bento .card--wide { grid-column: span 1; }
  .cards--bento .card--wide .card__media { aspect-ratio: 4 / 3; }
  .cards--bento .card--wide h3 { font-size: 1.25rem; }
  .card__media { aspect-ratio: 16 / 11; }
  .feature__body { padding: 24px 22px 28px; }
  .feature__media { aspect-ratio: 4 / 3; }
  .topics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .topic { min-height: 120px; padding: 16px; gap: 18px; }
  .topic h3 { font-size: 1rem; }
  .topic p { display: none; }
  .ranked a { grid-template-columns: 34px 1fr; }
  .ranked__cat { display: none; }
  .ranked__num { font-size: 1.25rem; }
  .newsletter { padding: 32px 22px 36px; border-radius: 22px; }
  .newsletter::after { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .footer__brand { grid-column: span 1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .article-head { max-width: 100%; }
  .article-head h1 { font-size: clamp(2rem, 9vw, 2.9rem); }
  .article-head .dek { font-size: .98rem; }
  .article-cover { border-radius: 18px; aspect-ratio: 4 / 3; }
  .article-body { font-size: 1rem; line-height: 1.72; }
  .takeaways { padding: 20px; }
  .related .cards { grid-template-columns: 1fr; }
  .related .card { display: grid; grid-template-columns: 108px 1fr; gap: 14px; align-items: center; }
  .related .card__media { aspect-ratio: 1; border-radius: 12px; }
  .related .card p,
  .related .card__tag,
  .related .card__num { display: none; }
  .related .card h3 { font-size: 1rem; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav a:last-child { text-align: left; }
  .page-hero { padding-top: 38px; }
  .page-hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .page-body { font-size: .96rem; }
  .author-box { flex-direction: column; }
  .to-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }
}

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