/* Goodiiz: friendly, trustworthy consumer-info magazine */
:root {
  --bg: #FFFBF5;
  --card: #FFFFFF;
  --navy: #1D2B53;
  --text: #27324F;
  --muted: #5A6382;
  --line: #EADFCF;
  --tomato: #EF4A3C;
  --tomato-ink: #C4362A;
  --sun: #FFC83D;
  --sun-soft: #FFF1B8;
  --mint: #6BCB9B;
  --r: 22px;
  --r-lg: 32px;
  --gut: clamp(16px, 4vw, 36px);
  --gap: clamp(14px, 2vw, 24px);
  --shadow: 0 1px 0 rgba(29, 43, 83, .05), 0 12px 28px -16px rgba(29, 43, 83, .28);
  --shadow-hi: 0 2px 0 rgba(29, 43, 83, .06), 0 22px 40px -18px rgba(29, 43, 83, .38);
  --head: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
}
.tone-1 { --st-bg: #D63B2E; --st-fg: #FFFFFF; --pastel: #FFE8E3; --accent: #EF4A3C; }
.tone-2 { --st-bg: #6BCB9B; --st-fg: #1D2B53; --pastel: #E2F5EA; --accent: #4DB585; }
.tone-3 { --st-bg: #FFC83D; --st-fg: #1D2B53; --pastel: #FFF2CF; --accent: #F5B21A; }
.tone-4 { --st-bg: #1D2B53; --st-fg: #FFFFFF; --pastel: #E6EAF6; --accent: #3D5296; }
.tone-5 { --st-bg: #FF9DB0; --st-fg: #1D2B53; --pastel: #FFE9EE; --accent: #F2738C; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--sun); color: var(--navy); }
:focus-visible { outline: 3px solid var(--tomato-ink); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.wrap { width: min(100% - 2 * var(--gut), 1200px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 50; background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 800; }
.skip:focus { top: 12px; }

/* ── masthead ─────────────────────────────────────────── */
.top { background: var(--bg); }
.top__strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0 0; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.top__date { display: flex; align-items: center; gap: 8px; }
.top__pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(107, 203, 155, .25); flex: none; }
.top__links { display: flex; gap: 16px; }
.top__links a { color: var(--navy); }
.top__links a:hover { text-decoration: underline; text-decoration-color: var(--tomato); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.top__brand { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 32px; padding: clamp(14px, 2.4vw, 26px) 0 clamp(14px, 2vw, 22px); }
.logo { font: 800 clamp(3.4rem, 11vw, 5.75rem)/.9 var(--head); font-variation-settings: "opsz" 96; letter-spacing: -.05em; color: var(--navy); }
.logo a { display: inline-block; padding: .04em .04em .06em 0; }
.logo__i { position: relative; display: inline-block; }
.logo__i + .logo__i { margin-left: .035em; }
.logo__dot { position: absolute; left: 50%; top: .01em; width: .17em; height: .17em; margin-left: -.085em; border-radius: 50%; background: var(--tomato); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.logo__dot--b { background: var(--mint); transition-delay: .06s; }
.logo a:hover .logo__dot { transform: translateY(-.1em); }
.top__tag { font-size: clamp(.9375rem, 1.4vw, 1.0625rem); font-weight: 600; color: var(--muted); max-width: 32ch; padding-bottom: .5em; }

.nav { position: relative; }
.nav__list {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gut)); padding: 2px var(--gut) 14px; scroll-padding-inline: var(--gut);
  border-bottom: 1.5px solid var(--line);
}
.nav__list::-webkit-scrollbar { display: none; }
.nav__list li { flex: none; scroll-snap-align: start; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 15px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line);
  font: 700 .875rem/1.2 var(--body); color: var(--navy);
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.pill__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--st-bg, var(--navy)); flex: none; }
a.pill:hover { background: var(--pastel, #F3EEE6); border-color: var(--st-bg, var(--navy)); }
.nav .pill[aria-current="page"], .nav .pill[data-in] { background: var(--st-bg, var(--navy)); color: var(--st-fg, #fff); border-color: var(--st-bg, var(--navy)); }
.nav .pill[aria-current="page"] .pill__dot, .nav .pill[data-in] .pill__dot { background: currentColor; }
.nav__home { background: var(--navy); color: #fff; border-color: var(--navy); }
.nav__home:not([aria-current]) { background: var(--card); color: var(--navy); border-color: var(--line); }
.nav__home[aria-current="page"] { background: var(--navy); color: #fff; }
@media (min-width: 960px) {
  .nav__list { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}
.pill--btn { background: var(--card); border-color: var(--navy); }
a.pill--btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-1px); }
.pill--off { opacity: .4; }
.pill--count { background: rgba(255, 255, 255, .7); border-color: transparent; font-size: .8125rem; }
.pill--big { padding: 13px 22px; font-size: 1rem; }

/* ── stickers, meta, avatars ─────────────────────────── */
.sticker {
  position: relative; z-index: 2; display: inline-block;
  padding: 5px 12px 6px; border-radius: 999px;
  background: var(--st-bg, var(--navy)); color: var(--st-fg, #fff);
  font: 800 .75rem/1.1 var(--body); letter-spacing: .01em;
  box-shadow: 0 2px 0 rgba(29, 43, 83, .18);
  transition: transform .2s;
}
.sticker:hover { transform: rotate(-3deg) scale(1.05); }
.sticker--lg { font-size: .8125rem; padding: 7px 14px 8px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.meta__by { color: var(--navy); font-weight: 800; }
.meta__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.avatar {
  display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--st-bg, var(--sun)); color: var(--st-fg, var(--navy));
  font: 800 1rem/1 var(--head); letter-spacing: -.02em;
}
.avatar--sm { width: 34px; height: 34px; font-size: .75rem; }
.avatar--lg { width: 64px; height: 64px; font-size: 1.25rem; }
.avatar--xl { width: 112px; height: 112px; font-size: 2.4rem; background: var(--sun); color: var(--navy); box-shadow: 10px 10px 0 var(--mint); }

/* placeholder: polka dots in the section colour */
.ph {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden;
  background-color: var(--pastel, #F3EEE6);
  background-image: radial-gradient(var(--st-bg, var(--navy)) 18%, transparent 19%);
  background-size: 26px 26px; background-position: 0 0;
}
.ph::before { content: ""; position: absolute; inset: 22% 18%; border-radius: 999px; background: var(--pastel, #F3EEE6); }
.ph__dots { position: relative; display: flex; gap: 10px; margin-bottom: 2.4rem; }
.ph__dots i { width: 18px; height: 18px; border-radius: 50%; background: var(--tomato); }
.ph__dots i + i { background: var(--mint); }
.ph__label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, 0); font: 800 1.25rem/1.05 var(--head); color: var(--navy); text-align: center; width: 60%; overflow-wrap: anywhere; hyphens: auto; }
.ph--cover { aspect-ratio: 16 / 9; height: auto; }
.ph--cover .ph__label { font-size: clamp(1.4rem, 3.4vw, 2.4rem); }

/* ── cards ────────────────────────────────────────────── */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--card); border-radius: var(--r); padding: 8px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hi); }
.card__media { position: relative; aspect-ratio: 16 / 10; border-radius: calc(var(--r) - 7px); background: var(--pastel, #F3EEE6); }
.card__media > img, .card__media > .ph { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.card__media .sticker { position: absolute; left: 12px; bottom: -13px; }
.card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 24px 10px 10px; min-width: 0; }
.card__title {
  font: 700 1.125rem/1.2 var(--head); letter-spacing: -.01em; color: var(--navy); margin-bottom: 10px;
  hyphens: auto; hyphenate-limit-chars: 9 4 4; overflow-wrap: anywhere; text-wrap: balance;
}
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r); }
.card:hover .card__title a { text-decoration: underline; text-decoration-color: var(--accent, var(--tomato)); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.card__sum { color: var(--muted); font-size: .9688rem; line-height: 1.55; margin-bottom: 12px; text-wrap: pretty; hyphens: auto; }
.card .meta { margin-top: auto; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (min-width: 960px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .tiles .card { padding: 6px; border-radius: 18px; }
  .tiles .card__media { aspect-ratio: 1 / 1; border-radius: 13px; }
  .tiles .card__media .sticker { left: 8px; bottom: -11px; font-size: .6875rem; padding: 4px 9px 5px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tiles .card__body { padding: 20px 6px 6px; }
  .tiles .card__title { font-size: 1rem; line-height: 1.22; }
  .tiles .meta { font-size: .75rem; }
  .tiles .meta__dot, .tiles .meta__read { display: none; }
}

/* wide card (first story of a section page) */
.card--wide { grid-column: 1 / -1; }
.card--wide .card__title { font-size: clamp(1.4rem, 2.8vw, 2.25rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.card--wide .card__sum { font-size: 1.0625rem; }
@media (min-width: 760px) {
  .card--wide { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
  .card--wide .card__body { padding: 24px 28px; }
  .card--wide .card__media .sticker { bottom: auto; top: 14px; left: 14px; }
}
@media (max-width: 599px) {
  .tiles .card--wide .card__media { aspect-ratio: 16 / 10; }
  .tiles .card--wide .card__title { font-size: 1.375rem; }
}

/* ── home: lead ───────────────────────────────────────── */
.hero { padding-top: clamp(18px, 3vw, 32px); }
.lead { position: relative; display: grid; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 10px; }
.lead__media { position: relative; aspect-ratio: 16 / 10; border-radius: calc(var(--r-lg) - 8px); background: var(--pastel); }
.lead__media > img, .lead__media > .ph { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.badge {
  position: absolute; top: -12px; left: -6px; z-index: 2; display: grid; place-items: center;
  width: clamp(84px, 11vw, 112px); aspect-ratio: 1; border-radius: 50%;
  background: var(--sun); color: var(--navy); transform: rotate(-12deg);
  outline: 2px dashed var(--navy); outline-offset: -8px;
  box-shadow: 0 10px 18px -10px rgba(29, 43, 83, .55);
  font: 800 clamp(.8125rem, 1.2vw, .9375rem)/1.05 var(--head); text-align: center; text-transform: uppercase; letter-spacing: .02em;
}
.badge span { display: block; max-width: 74%; }
.lead__body { display: flex; flex-direction: column; gap: 14px; padding: 22px 12px 12px; }
.lead__title { font: 800 clamp(1.75rem, 3.4vw, 2.875rem)/1.06 var(--head); letter-spacing: -.025em; color: var(--navy); text-wrap: balance; hyphens: auto; hyphenate-limit-chars: 10 4 4; overflow-wrap: anywhere; }
.lead__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-lg); }
.lead:hover .lead__title a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.lead__sum { font-size: clamp(1rem, 1.3vw, 1.1875rem); line-height: 1.55; color: var(--muted); max-width: 52ch; }
.lead__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.lead .avatar { background: var(--st-bg); color: var(--st-fg); }
@media (min-width: 960px) {
  .lead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 12px; }
  .lead__media { aspect-ratio: auto; min-height: 440px; }
  .lead__body { padding: 36px 30px 28px 26px; }
  .badge { top: -18px; left: -18px; }
}

/* ── home: blocks ────────────────────────────────────── */
.block { margin-top: clamp(40px, 6vw, 72px); }
.block__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.block__title {
  font: 800 clamp(1.5rem, 3vw, 2rem)/1.1 var(--head); letter-spacing: -.02em; color: var(--navy);
  background: linear-gradient(transparent 60%, var(--sun) 60%, var(--sun) 88%, transparent 88%);
  padding: 0 .1em; margin-left: -.1em;
}

/* latest: scrolling row on phones, grid on desktop */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gut)); padding: 4px var(--gut) 10px; scroll-padding-inline: var(--gut);
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -3px; }
@media (min-width: 600px) { .rail { grid-auto-columns: 42%; } }
@media (min-width: 960px) {
  .rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; }
}
.mini {
  position: relative; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px;
  background: var(--pastel); border-radius: 20px; padding: 18px 18px 16px; min-width: 0;
  transition: transform .2s, box-shadow .2s;
}
.mini:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mini__cat { display: flex; align-items: center; gap: 7px; font: 800 .75rem/1.2 var(--body); color: var(--navy); text-transform: uppercase; letter-spacing: .06em; }
.mini__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--st-bg); }
.mini__title { font: 700 1.0625rem/1.22 var(--head); color: var(--navy); hyphens: auto; overflow-wrap: anywhere; text-wrap: balance; }
.mini__title a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.mini:hover .mini__title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.mini .meta { margin-top: auto; color: #4C5573; }

/* sections: rounded pastel panels */
.panel { margin-top: clamp(32px, 5vw, 56px); background: var(--pastel); border-radius: var(--r-lg); padding: clamp(18px, 3.4vw, 40px); }
.panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 24px; margin-bottom: clamp(18px, 2.6vw, 28px); }
.panel__title { font: 800 clamp(1.75rem, 4.2vw, 2.75rem)/1 var(--head); letter-spacing: -.03em; color: var(--navy); }
.panel__title a { display: inline-flex; align-items: center; gap: 12px; }
.panel__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.panel__dot { display: inline-block; width: .62em; height: .62em; border-radius: 50%; background: var(--st-bg); box-shadow: .16em .1em 0 var(--navy); flex: none; }
.panel__desc { margin-top: 8px; color: #4C5573; font-weight: 600; max-width: 48ch; }
.panel__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.panel .card { box-shadow: none; }
.panel .card:hover { box-shadow: var(--shadow-hi); }
.card--feat .card__title { font-size: clamp(1.375rem, 2.6vw, 2rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.card--side { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 12px; align-items: start; }
.card--side .card__media { aspect-ratio: 1; border-radius: 14px; }
.card--side .card__media .sticker { display: none; }
.card--side .card__body { padding: 4px 4px 2px; }
.card--side .card__title { font-size: 1rem; line-height: 1.22; margin-bottom: 6px; text-wrap: pretty; }
.card--side .ph__label, .card--side .ph::before, .card--side .ph__dots { display: none; }
@media (min-width: 760px) {
  .panel__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
  .card--feat { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); align-items: center; }
  .card--feat .card__body { padding: 20px 28px; }
  .card--feat .card__media .sticker { bottom: auto; top: 14px; }
  .card--side { display: flex; align-items: stretch; }
  .card--side .card__media { aspect-ratio: 16 / 10; border-radius: calc(var(--r) - 7px); }
  .card--side .card__media .sticker { display: inline-block; }
  .card--side .card__body { padding: 24px 10px 10px; }
  .card--side .card__title { font-size: 1.0625rem; }
  .card--side .ph__label, .card--side .ph::before, .card--side .ph__dots { display: revert; }
  .card--side .ph::before { display: block; }
  .card--side .ph__dots { display: flex; }
}

/* picks */
.picks { margin-top: clamp(40px, 6vw, 72px); background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: clamp(22px, 3.6vw, 44px); }
.picks__title { font: 800 clamp(1.5rem, 3vw, 2rem)/1.1 var(--head); letter-spacing: -.02em; margin-bottom: 22px; }
.picks__title::after { content: ""; display: block; width: 64px; height: 6px; border-radius: 6px; margin-top: 12px; background: linear-gradient(90deg, var(--tomato) 33%, var(--sun) 33% 66%, var(--mint) 66%); }
.picks__list { display: grid; gap: 18px; }
.picks__list li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; }
.picks__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--st-bg); color: var(--st-fg); font: 800 1.25rem/1 var(--head); }
.tone-4 .picks__n { background: #fff; color: var(--navy); }
.picks__cat { font: 800 .75rem/1.2 var(--body); text-transform: uppercase; letter-spacing: .08em; color: #C9D0E6; margin-bottom: 4px; }
.picks__h { font: 700 1.125rem/1.25 var(--head); hyphens: auto; overflow-wrap: anywhere; }
.picks__h a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 4px; }
@media (min-width: 760px) { .picks__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); } }

/* ── section / author headers ────────────────────────── */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.crumbs li + li::before { content: "\203A"; margin: 0 6px 0 2px; color: var(--tomato-ink); }
.crumbs a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.pagehead { margin-top: clamp(18px, 3vw, 32px); margin-bottom: clamp(24px, 3.4vw, 40px); background: var(--pastel, #F3EEE6); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 48px); }
.pagehead__title { display: flex; align-items: center; gap: 14px; margin: 14px 0 10px; font: 800 clamp(2.25rem, 6vw, 4.25rem)/1 var(--head); letter-spacing: -.035em; color: var(--navy); overflow-wrap: anywhere; hyphens: auto; }
.pagehead__desc { font-size: 1.125rem; font-weight: 600; color: #4C5573; max-width: 52ch; }
.pagehead__count { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pagehead--author { display: grid; gap: 22px; align-items: center; background: var(--card); box-shadow: var(--shadow); }
.pagehead--author .pagehead__title { margin-top: 12px; }
.pagehead--author .pill--count { background: var(--sun-soft); }
@media (min-width: 760px) { .pagehead--author { grid-template-columns: auto minmax(0, 1fr); gap: 40px; } }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 36px; }
.pager__now { font-size: .875rem; font-weight: 700; color: var(--muted); }

/* ── article ──────────────────────────────────────────── */
.story__head { max-width: 860px; padding-top: clamp(18px, 3vw, 32px); }
.story__kick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 18px 0 14px; }
.story__dl { font-weight: 800; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.story__title { font: 800 clamp(2rem, 5vw, 3.5rem)/1.05 var(--head); letter-spacing: -.03em; color: var(--navy); text-wrap: balance; hyphens: auto; hyphenate-limit-chars: 10 4 4; overflow-wrap: anywhere; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1.5px dashed var(--line); }
.byline__name { font-weight: 600; color: var(--muted); }
.byline__name a { font-weight: 800; color: var(--navy); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.byline__name a:hover { background: var(--pastel); }
.byline__role { margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--pastel); font-size: .75rem; font-weight: 700; color: var(--navy); }
.byline__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .875rem; color: var(--muted); }
@media (min-width: 600px) { .byline__meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; margin-right: 14px; vertical-align: middle; } }

.story__grid { display: grid; grid-template-columns: [full-start] minmax(0, 1fr) [text-start] minmax(0, 720px) [text-end] minmax(0, 1fr) [full-end]; margin-top: clamp(22px, 3vw, 34px); }
.story__grid > * { grid-column: text; }

.note {
  position: relative; z-index: 2; justify-self: start; max-width: 620px; margin: 8px 0 -22px 6px;
  background: var(--sun-soft); padding: 26px 24px 22px; border-radius: 4px 4px 4px 22px;
  transform: rotate(-1.2deg); box-shadow: 0 16px 26px -18px rgba(29, 43, 83, .5);
}
.note::before { content: ""; position: absolute; top: -11px; left: 50%; width: 92px; height: 24px; margin-left: -46px; background: rgba(107, 203, 155, .55); transform: rotate(3deg); border-radius: 2px; }
.note__label { display: flex; align-items: center; gap: 8px; font: 800 .75rem/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--tomato-ink); margin-bottom: 10px; }
.note__label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tomato); }
.note__text { font: 500 clamp(1.125rem, 1.8vw, 1.3125rem)/1.45 var(--head); color: var(--navy); letter-spacing: -.005em; text-wrap: pretty; }

.story__cover { grid-column: full; max-width: 1040px; width: 100%; justify-self: center; }
.story__cover img, .story__cover .ph { width: 100%; border-radius: var(--r-lg); }
.credit { margin-top: 10px; padding: 0 6px; font-size: .8125rem; color: var(--muted); }
.credit a { text-decoration: underline; text-underline-offset: 2px; }
.credit a:hover { color: var(--navy); }
@media (min-width: 960px) {
  .note { margin: 8px 0 -40px -28px; }
}

.article-body { margin-top: clamp(26px, 4vw, 44px); font: 400 1.125rem/1.75 var(--body); color: var(--text); hyphens: auto; -webkit-hyphens: auto; }
.article-body p { margin: 0 0 1.2em; text-wrap: pretty; }
.article-body strong, .article-body b { font-weight: inherit; }
.article-body a { font-weight: inherit; color: var(--navy); text-decoration: underline; text-decoration-color: var(--tomato); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.article-body a:hover { background: var(--sun-soft); }
.article-body h2 { font: 800 clamp(1.4rem, 2.6vw, 1.875rem)/1.15 var(--head); letter-spacing: -.02em; color: var(--navy); margin: 1.6em 0 .6em; text-wrap: balance; hyphens: auto; hyphenate-limit-chars: 10 4 4; overflow-wrap: anywhere; }
.article-body h2::after { content: ""; display: block; width: 48px; height: 6px; border-radius: 6px; margin-top: 10px; background: var(--accent, var(--tomato)); }
.article-body h3 { font: 700 1.25rem/1.25 var(--head); color: var(--navy); margin: 1.4em 0 .5em; }
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding: 0; }
.article-body li { position: relative; padding-left: 2.1em; margin-bottom: .55em; }
.article-body ul > li::before { content: ""; position: absolute; left: .45em; top: .62em; width: 11px; height: 11px; border-radius: 50%; background: var(--mint); box-shadow: 3px 2px 0 var(--navy); }
.article-body ol { counter-reset: n; }
.article-body ol > li { counter-increment: n; }
.article-body ol > li::before { content: counter(n); position: absolute; left: 0; top: .15em; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font: 800 .875rem/1 var(--head); }
.article-body blockquote {
  position: relative; margin: 1.8em 0 2.4em; padding: 26px 26px 22px 30px;
  background: var(--card); border: 2px solid var(--navy); border-radius: 26px 26px 26px 8px;
  box-shadow: 6px 6px 0 var(--accent, var(--sun));
}
.article-body blockquote::before { content: "\201C" / ""; position: absolute; top: -20px; left: 22px; width: 40px; height: 40px; border-radius: 50%; background: var(--tomato); color: #fff; font: 800 2.1rem/52px var(--head); text-align: center; }
.article-body blockquote::after { content: ""; position: absolute; left: 34px; bottom: -14px; width: 24px; height: 24px; background: var(--card); border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); }
.article-body blockquote p { font: 500 clamp(1.1875rem, 2vw, 1.375rem)/1.45 var(--head); color: var(--navy); margin-bottom: .6em; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body figure { margin: 1.6em 0 2em; }
.article-body img { border-radius: 18px; margin-bottom: 1.2em; }
.article-body figure img { margin-bottom: 0; width: 100%; }
.article-body figcaption { margin-top: 8px; font-size: .875rem; color: var(--muted); }
.article-body table { width: 100%; margin: .4em 0 1.8em; border-collapse: separate; border-spacing: 0; border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); font-size: .9688rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.article-body th { text-align: left; background: var(--pastel, #FFF2CF); color: var(--navy); font: 800 .8125rem/1.2 var(--body); padding: 12px 14px; }
.article-body td { padding: 11px 14px; border-top: 1.5px solid var(--line); vertical-align: top; }
.article-body hr { border: 0; height: 6px; width: 64px; border-radius: 6px; margin: 2em auto; background: linear-gradient(90deg, var(--tomato) 33%, var(--sun) 33% 66%, var(--mint) 66%); }
@media (max-width: 599px) { .article-body table { display: block; overflow-x: auto; } }

.files { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 16px; border-radius: 14px; background: #F6F0E6; font-size: .875rem; font-weight: 600; color: var(--muted); }
.files__icon { width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--muted); flex: none; }
.authorbox { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; margin-top: 28px; padding: 22px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.authorbox__name { font: 800 1.25rem/1.15 var(--head); color: var(--navy); }
.authorbox__name a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.authorbox__role { display: inline-block; margin: 6px 0 8px; padding: 2px 10px; border-radius: 999px; background: var(--pastel); font-size: .75rem; font-weight: 800; color: var(--navy); }
.authorbox__bio { font-size: .9688rem; color: var(--muted); }
.related { margin-top: clamp(48px, 7vw, 80px); }

/* ── static page ─────────────────────────────────────── */
.static { max-width: 760px; padding-top: clamp(18px, 3vw, 32px); }
.static__title { font: 800 clamp(2.25rem, 6vw, 3.75rem)/1.02 var(--head); letter-spacing: -.03em; color: var(--navy); margin: 16px 0 0; overflow-wrap: anywhere; hyphens: auto; }
.static__title::after { content: ""; display: block; width: 72px; height: 8px; border-radius: 8px; margin-top: 16px; background: linear-gradient(90deg, var(--tomato) 33%, var(--sun) 33% 66%, var(--mint) 66%); }

/* ── 404 ─────────────────────────────────────────────── */
.lost { display: grid; justify-items: center; text-align: center; gap: 14px; padding: clamp(30px, 6vw, 72px) 0 0; }
.lost__code { display: flex; align-items: center; gap: .04em; font: 800 clamp(6rem, 22vw, 12rem)/1 var(--head); letter-spacing: -.04em; color: var(--navy); }
.lost__o { position: relative; display: inline-flex; justify-content: center; align-items: center; gap: .1em; width: .7em; height: .7em; border-radius: 50%; border: .13em solid var(--navy); margin: 0 .03em; }
.lost__o i { width: .11em; height: .11em; border-radius: 50%; background: var(--tomato); transform: translateY(-.05em); }
.lost__o i + i { background: var(--mint); }
.lost__title { font: 800 clamp(1.75rem, 4vw, 2.5rem)/1.1 var(--head); color: var(--navy); letter-spacing: -.02em; }
.lost__text { font-size: 1.125rem; color: var(--muted); margin-bottom: 8px; }

/* ── footer ──────────────────────────────────────────── */
.foot { margin-top: clamp(56px, 8vw, 104px); background: var(--navy); color: #E7EAF4; border-radius: var(--r-lg) var(--r-lg) 0 0; padding-top: clamp(32px, 5vw, 56px); }
.foot :focus-visible { outline-color: var(--sun); }
.foot__in { display: grid; gap: 30px; }
.logo--foot { font-size: 3.25rem; color: #FFFBF5; margin-bottom: 12px; }
.foot__brand p:last-child { max-width: 44ch; font-size: .9375rem; color: #C9D0E6; }
.foot__h { font: 800 .75rem/1 var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--sun); margin-bottom: 14px; }
.foot__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.foot__pills .pill { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.foot__pills a.pill:hover { background: #fff; color: var(--navy); border-color: #fff; }
.foot__links li + li { margin-top: 8px; }
.foot__links a { font-weight: 700; color: #fff; }
.foot__links a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.foot__base { display: grid; gap: 6px; margin-top: 36px; padding: 18px 0 26px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8125rem; color: #B9C1DB; }
@media (min-width: 760px) {
  .foot__in { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 40px; }
  .foot__base { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .card:hover, .mini:hover { transform: none; }
}
