/* ==========================================================================
   Kakada Note — editorial design system
   Ink & paper: Swiss newsroom discipline with notebook material cues.
   ========================================================================== */

:root {
  --paper: #f8f9fb;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --ink: #111827;
  --ink-2: #344054;
  --muted: #667085;
  --muted-2: #98a2b3;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --masthead: #111827;
  --masthead-2: #0b1220;
  --line: #e5e7eb;
  --line-strong: #d0d5dd;
  --wash: #eff6ff;
  --danger: #b42318;
  --warning: #b54708;
  --success: #067647;

  --font-display: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-2: 0 2px 6px rgba(16, 24, 40, 0.04), 0 12px 28px -18px rgba(16, 24, 40, 0.25);
  --shadow-3: 0 24px 60px -28px rgba(16, 24, 40, 0.35);
  --shadow-pop: 0 18px 48px -20px rgba(16, 24, 40, 0.4);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  --paper: #0b0f17;
  --surface: #111725;
  --surface-2: #161d2c;
  --ink: #f3f4f6;
  --ink-2: #d0d5dd;
  --muted: #98a2b3;
  --muted-2: #667085;
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --accent-soft: #10203a;
  --masthead: #070a11;
  --masthead-2: #05080d;
  --line: #1f2937;
  --line-strong: #2a3444;
  --wash: #0f1a2e;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.35), 0 18px 40px -24px rgba(0, 0, 0, 0.7);
  --shadow-3: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

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

img,
svg,
video,
iframe {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - (var(--gutter) * 2), 900px);
  margin-inline: auto;
}

/* --------------------------------------------------------------- typography */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.14;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.22;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
}

.lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-2);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  display: inline-block;
}

.kicker--muted {
  color: var(--muted);
}

.kicker--muted::before {
  background: var(--muted-2);
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-2);
  flex: none;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap;
}

.link-more:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.link-more svg {
  transition: transform 0.18s var(--ease);
}

.link-more:hover svg {
  transform: translateX(3px);
}

.rule {
  position: relative;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.rule::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 34px;
  height: 2px;
  background: var(--accent);
}

.text-muted {
  color: var(--muted);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------------- header */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--masthead);
  color: #f9fafb;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.2s var(--ease);
}

.masthead.is-stuck {
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.65);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  transition: height 0.2s var(--ease);
}

.masthead.is-stuck .masthead__inner {
  height: 58px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.brand__text {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.035em;
  color: #fff;
  line-height: 1;
}

.brand__text em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: #dbe3f0;
}

.brand__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #60a5fa;
  align-self: flex-end;
  margin-bottom: 2px;
}

.mainnav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 11px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: #cdd5e1;
  transition: color 0.16s var(--ease);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
}

.nav-link.is-active {
  color: #fff;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 0;
  height: 2px;
  background: #60a5fa;
}

.nav-link svg {
  opacity: 0.65;
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #e5e7eb;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

[data-theme="light"] .icon-sun,
[data-theme="dark"] .icon-moon {
  display: none;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #dbe3f0;
  font-size: 12.5px;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}

.search-trigger:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.24);
}

.search-trigger kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.account {
  position: relative;
}

.account__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px 0 6px;
  border-radius: var(--radius-pill);
  color: #e5e7eb;
  transition: background 0.16s var(--ease);
}

.account__button:hover {
  background: rgba(255, 255, 255, 0.09);
}

.account__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 230px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease), visibility 0.15s;
  z-index: 70;
}

.account:hover .account__menu,
.account:focus-within .account__menu,
.account.is-open .account__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account__menu-head {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.account__menu-name {
  font-weight: 600;
  font-size: 14px;
}

.account__menu-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.account__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  width: 100%;
  text-align: left;
}

.account__link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.account__link--danger:hover {
  background: #fef3f2;
  color: var(--danger);
}

.avatar {
  --avatar-hue: 214;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--avatar-hue) 38% 30%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  flex: none;
  user-select: none;
}

.avatar--lg {
  width: 52px;
  height: 52px;
  font-size: 17px;
}

.avatar--xl {
  width: 72px;
  height: 72px;
  font-size: 24px;
}

/* mega menu */

.mega {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translate(-50%, -6px);
  width: min(760px, calc(100vw - 48px));
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
  z-index: 70;
}

.nav-item--has-menu:hover .mega,
.nav-item--has-menu:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.mega__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 220px;
  gap: 22px;
}

.mega__col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.mega__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  margin-left: -8px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.mega__link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.mega__link span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
}

.mega__feature {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.mega__feature .kicker {
  margin-bottom: 10px;
}

.mega__feature h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.mega__feature p {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* trending bar */

.trendbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 40;
}

.trendbar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 42px;
  overflow: hidden;
}

.trendbar__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  flex: none;
  padding-right: 16px;
  border-right: 1px solid var(--line);
  height: 18px;
}

.trendbar__label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.trendbar__list {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}

.trendbar__list::-webkit-scrollbar {
  display: none;
}

.trendbar__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-2);
  white-space: nowrap;
  padding: 0 16px;
  border-right: 1px solid var(--line);
  transition: color 0.15s var(--ease);
}

.trendbar__item:first-child {
  padding-left: 0;
}

.trendbar__item:last-child {
  border-right: 0;
}

.trendbar__item:hover {
  color: var(--accent);
}

.trendbar__item b {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  color: var(--muted-2);
}

.trendbar__more {
  margin-left: auto;
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.trendbar__more:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------- hero */

.page {
  padding-block: clamp(28px, 4vw, 48px) clamp(48px, 7vw, 96px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.68fr) minmax(0, 0.92fr);
  gap: clamp(20px, 2.6vw, 36px);
  align-items: stretch;
}

.hero__side {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.hero__side-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--line);
}

.hero__side-head h2 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.hero__side-head span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero__side-list {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hero__side-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.hero__side-item:hover .hero__side-title {
  color: var(--accent);
}

.hero__side-thumb {
  aspect-ratio: 1 / 0.78;
  border-radius: 8px;
  overflow: hidden;
  background: var(--wash);
}

.hero__side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.hero__side-item:hover .hero__side-thumb img {
  transform: scale(1.05);
}

.hero__side-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.012em;
  transition: color 0.16s var(--ease);
}

.hero__side-meta {
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__side-foot {
  padding-top: 14px;
}

.hero__note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
}

.hero__note p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.hero__note span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* -------------------------------------------------------------------- cards */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--wash);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.035);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 20px 20px;
  flex: 1;
}

.card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.24;
  letter-spacing: -0.018em;
  transition: color 0.16s var(--ease);
}

.card:hover .card__title {
  color: var(--accent);
}

.card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__foot {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.card__byline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.card__byline-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__time {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* overlay card (hero lead) */

.card--overlay {
  border: 0;
  min-height: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

.card--overlay .card__media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.card--overlay .card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 14, 24, 0.05) 0%, rgba(9, 14, 24, 0.18) 42%, rgba(9, 14, 24, 0.86) 100%);
}

.card--overlay .card__body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: clamp(22px, 3vw, 34px);
  gap: 12px;
  color: #fff;
}

.card--overlay .card__title {
  font-size: clamp(1.65rem, 3.1vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 22ch;
}

.card--overlay:hover .card__title {
  color: #fff;
}

.card--overlay .card__excerpt {
  color: rgba(255, 255, 255, 0.8);
  max-width: 52ch;
  font-size: 14.5px;
}

.card--overlay .card__foot {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.card--overlay .card__byline-name {
  color: rgba(255, 255, 255, 0.92);
}

.card--overlay .card__time {
  color: rgba(255, 255, 255, 0.65);
}

.card--overlay .avatar {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* wide card */

.card--wide {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 280px;
}

.card--wide .card__media {
  aspect-ratio: auto;
  height: 100%;
}

.card--wide .card__body {
  padding: clamp(20px, 2.4vw, 32px);
  justify-content: center;
}

.card--wide .card__title {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

/* compact card */

.card--compact {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 0;
  align-items: center;
}

.card--compact:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

.card--compact .card__media {
  aspect-ratio: 1 / 0.8;
  border-radius: 8px;
}

.card--compact .card__body {
  padding: 0;
  gap: 6px;
}

.card--compact .card__title {
  font-size: 14.5px;
  line-height: 1.3;
}

.card--compact .card__excerpt,
.card--compact .card__foot {
  display: none;
}

/* numbered card */

.card--numbered {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.card--numbered:hover {
  transform: none;
  box-shadow: none;
}

.card--numbered .card__rank {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  color: var(--muted-2);
  letter-spacing: -0.04em;
  padding-top: 2px;
}

.card--numbered .card__body {
  padding: 0;
  gap: 5px;
}

.card--numbered .card__title {
  font-size: 15px;
  line-height: 1.3;
}

.card--numbered .card__excerpt,
.card--numbered .card__foot {
  display: none;
}

.card--numbered .card__media {
  display: none;
}

/* list card (search results) */

.card--list {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 22px 0;
}

.card--list:hover {
  transform: none;
  box-shadow: none;
}

.card--list .card__media {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
}

.card--list .card__body {
  padding: 0;
  justify-content: center;
}

.card--list .card__title {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
}

/* ------------------------------------------------------------------- chips */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}

.chip::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.chip--light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(6px);
}

.chip--outline {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.badge--breaking {
  background: #dc2626;
  color: #fff;
}

.badge--pick {
  background: var(--wash);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.badge--sponsored {
  background: #fffaeb;
  color: #b54708;
  border: 1px solid #fedf89;
}

.badge--opinion {
  background: #f4f3ff;
  color: #5925dc;
  border: 1px solid #d9d6fe;
}

[data-theme="dark"] .badge--sponsored {
  background: #2b1d08;
  color: #fdb022;
  border-color: #4a3311;
}

[data-theme="dark"] .badge--opinion {
  background: #1b1636;
  color: #b3a4ff;
  border-color: #2f2757;
}

/* ---------------------------------------------------------------- sections */

.section {
  margin-top: clamp(40px, 5vw, 68px);
}

.section--tight {
  margin-top: clamp(28px, 3vw, 40px);
}

.section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  position: relative;
  margin-bottom: 22px;
}

.section-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 44px;
  height: 2px;
  background: var(--accent);
}

.section-head__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  padding-bottom: 4px;
}

.section-head__title {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.section-head__title h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-head__title p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
}

.section-head__aside {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 2px;
}

/* homepage layout blocks */

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(24px, 3.4vw, 48px);
  align-items: start;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--header-h) + 22px);
}

.side-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
}

.side-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.side-panel__head h2 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}

.tabs {
  display: inline-flex;
  gap: 2px;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 3px;
}

.tabs__btn {
  padding: 4px 9px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.tabs__btn.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}

.section-grid__list {
  display: flex;
  flex-direction: column;
}

.section-grid__list .card--compact:first-child {
  padding-top: 0;
}

.section-grid--reverse .section-grid__feature {
  order: 2;
}

.feature-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-block__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--wash);
}

.feature-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.feature-block:hover .feature-block__media img {
  transform: scale(1.03);
}

.feature-block__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.feature-block__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.feature-block:hover .feature-block__title {
  color: var(--accent);
}

/* in-depth band */

.indepth {
  background: var(--masthead);
  color: #f9fafb;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 52px);
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.indepth::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.indepth__label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.indepth__label span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #93c5fd;
}

.indepth__label strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #e5e7eb;
  letter-spacing: -0.01em;
}

.indepth__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #f8fafc;
  max-width: 30ch;
}

.indepth__meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.indepth__meta a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bfdbfe;
  border-bottom: 1px solid rgba(191, 219, 254, 0.35);
  padding-bottom: 2px;
}

.indepth__meta a:hover {
  color: #fff;
  border-color: #fff;
}

/* newsletter */

.newsletter {
  background: var(--masthead);
  color: #f9fafb;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.28), transparent 55%);
  pointer-events: none;
}

.newsletter__copy {
  position: relative;
}

.newsletter__copy .kicker {
  color: #93c5fd;
}

.newsletter__copy .kicker::before {
  background: #93c5fd;
}

.newsletter__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 10px;
}

.newsletter__text {
  margin-top: 10px;
  color: #cbd5e1;
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 46ch;
}

.newsletter__form {
  position: relative;
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 6px;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}

.newsletter__form:focus-within {
  border-color: #93c5fd;
  background: rgba(255, 255, 255, 0.09);
}

.newsletter__form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 10px 12px;
  font-size: 14px;
}

.newsletter__form input::placeholder {
  color: #94a3b8;
}

.newsletter__form .btn {
  flex: none;
}

.newsletter__fine {
  margin-top: 10px;
  font-size: 11.5px;
  color: #94a3b8;
  position: relative;
}

.newsletter__cadence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #93c5fd;
  position: relative;
}

.newsletter__message {
  margin-top: 10px;
  font-size: 12.5px;
  color: #86efac;
  min-height: 18px;
  position: relative;
}

.newsletter--compact {
  padding: 24px;
  grid-template-columns: 1fr;
  border-radius: var(--radius);
}

.newsletter--compact .newsletter__form {
  margin-top: 16px;
}

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.16s var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--dark {
  background: var(--masthead);
  color: #fff;
}

.btn--dark:hover {
  background: #1f2937;
}

.btn--light {
  background: #fff;
  color: #111827;
}

.btn--light:hover {
  background: #f2f4f7;
}

.btn--sm {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 7px;
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ------------------------------------------------------------------ forms */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > label,
.field__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.field__hint {
  font-size: 11.5px;
  color: var(--muted);
}

.field input,
.field textarea,
.field select,
.input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}

.checkbox input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex: none;
}

.form-error {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13px;
}

[data-theme="dark"] .form-error {
  background: #2a1215;
  border-color: #4e1d22;
  color: #fda29b;
}

/* ------------------------------------------------------------------- article */

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}

.read-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.1s linear;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span[aria-current] {
  color: var(--ink-2);
  max-width: 42ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumbs__sep {
  color: var(--muted-2);
}

.article-head {
  max-width: 900px;
}

.article-head .kicker {
  margin-bottom: 14px;
}

.article-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.article-dek {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.45;
  color: var(--muted);
  max-width: 60ch;
}

.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.byline__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.byline__name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.byline__role {
  font-size: 11.5px;
  color: var(--muted);
}

.byline__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.byline__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-2);
  background: var(--surface);
  transition: all 0.16s var(--ease);
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.share-btn.is-saved {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.article-cover {
  margin-top: clamp(24px, 3.2vw, 40px);
}

.article-cover__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--wash);
  aspect-ratio: 16 / 9;
}

.article-cover__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-cover figcaption {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.article-cover figcaption span:last-child {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.article-layout {
  display: grid;
  grid-template-columns: 56px minmax(0, 720px) 288px;
  gap: clamp(24px, 3vw, 44px);
  justify-content: center;
  margin-top: clamp(32px, 4vw, 52px);
  align-items: start;
}

.article-rail {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.article-rail__label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.article-rail__line {
  width: 1px;
  height: 44px;
  background: var(--line);
}

.article-rail__share {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-rail .share-btn {
  width: 32px;
  height: 32px;
}

.article-body {
  min-width: 0;
}

.prose {
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--ink-2);
}

.prose > * + * {
  margin-top: 1.15em;
}

.prose p {
  margin: 0;
}

.prose > p + p {
  margin-top: 1.2em;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
  margin-top: 2.1em;
  margin-bottom: 0.55em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-top: 1.8em;
  margin-bottom: 0.45em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose h4,
.prose h5,
.prose h6 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1.5em;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s var(--ease);
}

.prose a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
}

.prose li {
  margin-top: 0.45em;
  padding-left: 0.15em;
}

.prose li::marker {
  color: var(--accent);
}

.prose blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink);
}

.prose blockquote p + p {
  margin-top: 0.7em;
}

.prose figure {
  margin: 2em 0;
}

.prose figure img {
  width: 100%;
  border-radius: 12px;
}

.prose figcaption {
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 1.8em 0;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.prose th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--surface-2);
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.prose pre {
  background: var(--masthead);
  color: #e5e7eb;
  padding: 18px 20px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}

.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.4em 0;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 18px 20px;
  margin: 2em 0;
  font-size: 15.5px;
  line-height: 1.65;
}

.callout__label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.callout__title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.callout > *:last-child {
  margin-bottom: 0;
}

.callout--warning {
  border-left-color: #d97706;
  background: #fffbeb;
}

.callout--warning .callout__label {
  color: #b45309;
}

[data-theme="dark"] .callout--warning {
  background: #241a08;
  border-color: #3d2c10;
  border-left-color: #d97706;
}

.callout--tip {
  border-left-color: #059669;
  background: #ecfdf3;
}

.callout--tip .callout__label {
  color: #067647;
}

[data-theme="dark"] .callout--tip {
  background: #082218;
  border-color: #0f3b2a;
  border-left-color: #059669;
}

.callout--quote {
  border-left-color: var(--ink);
  background: var(--surface-2);
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 2em 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-ad {
  margin: 2.2em 0;
}

/* article aside */

.article-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.toc {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.toc__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.toc__link {
  display: block;
  padding: 5px 0 5px 12px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.toc__link:hover {
  color: var(--ink);
}

.toc__link.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 500;
}

.toc__link--h3 {
  padding-left: 24px;
  font-size: 12px;
}

.toc-mobile {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 24px;
  background: var(--surface);
}

.toc-mobile summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.toc-mobile .toc__list {
  margin-top: 10px;
}

/* article footer */

.article-foot {
  max-width: 720px;
  margin: clamp(36px, 4vw, 56px) auto 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  color: var(--ink-2);
  transition: all 0.15s var(--ease);
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.notice {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.notice strong {
  color: var(--ink-2);
}

.notice--accent {
  border-left: 2px solid var(--accent);
}

.author-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 28px;
}

.author-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.author-card__role {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 3px;
}

.author-card__bio {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.author-card__link {
  margin-top: 10px;
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.related {
  margin-top: clamp(36px, 5vw, 64px);
}

.next-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 22px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  margin-top: 32px;
}

.next-story__label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.next-story h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.next-story:hover h3 {
  color: var(--accent);
}

.next-story__media {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--wash);
}

.next-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* comments */

.comments {
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.comments__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.comments__head h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.comment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.comment__name {
  font-size: 13px;
  font-weight: 600;
}

.comment__date {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.comment__body {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
  white-space: pre-line;
}

.comment-form {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  gap: 12px;
}

.comment-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* --------------------------------------------------------------- page heads */

.page-head {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.page-head__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.page-head__desc {
  margin-top: 12px;
  max-width: 64ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.page-head__meta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* category grid */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.category-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
  overflow: hidden;
}

.category-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--tile-accent, var(--accent));
  opacity: 0.9;
}

.category-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}

.category-tile__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.category-tile__desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.category-tile__count {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.category-tile__children {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.category-tile__child {
  font-size: 11.5px;
  color: var(--ink-2);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
}

.category-tile__child:hover {
  color: var(--accent);
}

/* authors */

.author-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.author-tile {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
}

.author-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.author-tile__name {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.author-tile__role {
  font-size: 11.5px;
  color: var(--accent);
  margin-top: 2px;
}

.author-tile__bio {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* profile header */

.profile-head {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.profile-head__name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.profile-head__role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 6px;
}

.profile-head__bio {
  margin-top: 12px;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

.profile-head__stats {
  display: flex;
  gap: 20px;
  margin-top: 14px;
}

.profile-head__stat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-head__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

/* search */

.search-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  margin-bottom: 26px;
}

.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-form__input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 14px;
  background: var(--paper);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.search-form__input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.search-form__input input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 13px 0;
  font-size: 15px;
  outline: none;
}

.search-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.search-filters select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--ink-2);
}

.search-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.search-summary h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.empty {
  text-align: center;
  padding: clamp(40px, 6vw, 72px) 24px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.empty__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.empty__text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  max-width: 46ch;
  margin-inline: auto;
}

.empty__actions {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.suggest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* pagination */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}

.pagination__link {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  background: var(--surface);
  transition: all 0.15s var(--ease);
}

.pagination__link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination__link.is-current {
  background: var(--masthead);
  border-color: var(--masthead);
  color: #fff;
}

.pagination__gap {
  color: var(--muted-2);
  padding: 0 4px;
}

/* policy pages */

.policy {
  display: grid;
  grid-template-columns: minmax(0, 720px) 260px;
  gap: clamp(28px, 4vw, 56px);
  justify-content: center;
  align-items: start;
}

.policy__body {
  min-width: 0;
}

.policy__aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.policy__notice {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 24px;
}

.policy__updated {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 8px;
}

/* contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-block {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-block h3 {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-block p,
.contact-block a {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.contact-block a:hover {
  color: var(--accent);
}

/* saved / history */

.saved-list {
  display: flex;
  flex-direction: column;
}

/* ---------------------------------------------------------------- ad slots */

.ad-slot {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px 12px;
  overflow: hidden;
}

.ad-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.ad-label__dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--muted-2);
}

.ad-label__zone {
  color: var(--line-strong);
}

.ad-slot__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.ad-slot--leaderboard {
  min-height: 100px;
}

.ad-slot--banner {
  min-height: 110px;
}

.ad-slot--inline {
  min-height: 104px;
}

.ad-slot--sidebar {
  min-height: 240px;
}

.ad-slot--native {
  min-height: 116px;
}

.ad-house {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 8px 6px;
  color: var(--ink);
}

.ad-house__brand {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding-right: 16px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.ad-house__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ad-house__headline {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.ad-house__body {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.ad-house__cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.ad-direct {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.ad-direct__image {
  width: 120px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex: none;
}

.ad-direct__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ad-direct__headline {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.ad-direct__body {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.ad-direct__cta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2px;
}

.ad-slot--sidebar .ad-house,
.ad-slot--sidebar .ad-direct {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.ad-slot--sidebar .ad-house__brand {
  border-right: 0;
  padding-right: 0;
}

.ad-slot--sidebar .ad-house__cta {
  margin-left: 0;
}

.ad-placeholder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-height: 60px;
}

/* ------------------------------------------------------------------ footer */

.footer {
  margin-top: clamp(56px, 7vw, 96px);
  background: var(--masthead-2);
  color: #cbd5e1;
  padding-top: clamp(40px, 5vw, 64px);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr));
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 40px;
}

.footer__brand .brand__text {
  font-size: 22px;
}

.footer__brand .brand__text em {
  font-size: 23px;
}

.footer__desc {
  margin-top: 14px;
  max-width: 38ch;
  font-size: 13.5px;
  line-height: 1.65;
  color: #94a3b8;
}

.footer__social {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.footer__social a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: all 0.16s var(--ease);
}

.footer__social a:hover {
  border-color: #93c5fd;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.footer__col h3 {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 14px;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__col a {
  font-size: 13px;
  color: #cbd5e1;
}

.footer__col a:hover {
  color: #fff;
}

.footer__newsletter {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 26px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 24px;
  align-items: center;
}

.footer__newsletter h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.footer__newsletter p {
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 4px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 30px;
  font-size: 11.5px;
  color: #94a3b8;
}

.footer__legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__legal a:hover {
  color: #fff;
}

.footer__note {
  font-size: 11px;
  color: #64748b;
  max-width: 70ch;
  line-height: 1.6;
  padding-bottom: 26px;
}

.footer__mark {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.045);
  padding: 10px 0 26px;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

/* ------------------------------------------------------------ search overlay */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(9, 14, 24, 0.55);
  backdrop-filter: blur(6px);
  display: none;
  padding: clamp(16px, 6vh, 80px) 16px 16px;
}

.overlay.is-open {
  display: block;
}

.search-panel {
  width: min(720px, 100%);
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  animation: panel-in 0.18s var(--ease);
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.search-panel__head input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 17px;
  padding: 6px 0;
  outline: none;
}

.search-panel__close {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 7px;
  border-radius: 5px;
}

.search-panel__body {
  max-height: min(60vh, 460px);
  overflow-y: auto;
  padding: 8px;
}

.search-panel__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 10px 12px 6px;
}

.suggest-item {
  display: flex;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  align-items: center;
}

.suggest-item:hover,
.suggest-item.is-active {
  background: var(--accent-soft);
}

.suggest-item__thumb {
  width: 44px;
  height: 34px;
  border-radius: 5px;
  object-fit: cover;
  background: var(--wash);
  flex: none;
}

.suggest-item__title {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
}

.suggest-item__meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.search-panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-panel__foot kbd {
  font-family: var(--font-mono);
  border: 1px solid var(--line);
  padding: 1px 4px;
  border-radius: 3px;
}

/* --------------------------------------------------------------- mobile nav */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 24, 0.5);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}

.drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(88vw, 380px);
  background: var(--surface);
  border-right: 1px solid var(--line);
  transform: translateX(-100%);
  transition: transform 0.26s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: var(--shadow-3);
}

.drawer.is-open {
  pointer-events: auto;
}

.drawer.is-open .drawer__backdrop {
  opacity: 1;
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--masthead);
  color: #fff;
}

.drawer__close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #e5e7eb;
}

.drawer__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.drawer__nav {
  padding: 8px 12px 20px;
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.drawer__link:hover {
  color: var(--accent);
}

.drawer__section-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 18px 8px 8px;
}

.drawer details {
  border-bottom: 1px solid var(--line);
}

.drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.drawer summary::-webkit-details-marker {
  display: none;
}

.drawer summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--muted);
}

.drawer details[open] summary::after {
  content: "−";
}

.drawer__sub {
  display: flex;
  flex-direction: column;
  padding: 0 8px 10px 18px;
}

.drawer__sub a {
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--muted);
}

.drawer__sub a:hover {
  color: var(--accent);
}

.drawer__foot {
  margin-top: auto;
  padding: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-only {
  display: none !important;
}

/* -------------------------------------------------------------- consent etc */

.consent {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 130;
  width: min(1000px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.consent__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.consent__text {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 3px;
  max-width: 68ch;
}

.consent__text a {
  color: var(--accent);
  text-decoration: underline;
}

.consent__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 160;
  background: var(--masthead);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: var(--shadow-3);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  max-width: 340px;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 14, 24, 0.55);
  backdrop-filter: blur(4px);
}

.modal.is-open {
  display: flex;
}

.modal__panel {
  width: min(480px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  padding: 22px;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* preview banner */

.preview-banner {
  background: #fffaeb;
  border-bottom: 1px solid #fedf89;
  color: #93370d;
  font-size: 12.5px;
  padding: 8px 16px;
  text-align: center;
}

.preview-banner strong {
  font-weight: 700;
}

/* image loading */

img.img-fade {
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

img.img-fade.is-loaded {
  opacity: 1;
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  .mainnav {
    display: none;
  }
  .masthead__actions {
    margin-left: auto;
  }
  .mobile-only {
    display: inline-flex !important;
  }
  .article-layout {
    grid-template-columns: minmax(0, 720px) 280px;
  }
  .article-rail {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    border-top: 1px solid var(--line);
  }
  .hero__side-head {
    grid-column: 1 / -1;
  }
  .hero__side-item {
    border-bottom: 1px solid var(--line);
  }
  .hero__side-foot,
  .hero__note {
    grid-column: 1 / -1;
  }
  .home-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    margin-inline: auto;
  }
  .article-aside {
    display: none;
  }
  .policy {
    grid-template-columns: minmax(0, 1fr);
  }
  .policy__aside {
    display: none;
  }
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .category-grid,
  .author-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 60px;
  }
  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }
  .search-trigger {
    width: 38px;
    padding: 0;
    justify-content: center;
    border-color: transparent;
  }
  .card--overlay {
    min-height: 380px;
  }
  .card--wide {
    grid-template-columns: 1fr;
  }
  .card--wide .card__media {
    aspect-ratio: 16 / 9;
  }
  .section-grid {
    grid-template-columns: 1fr;
  }
  .section-grid--reverse .section-grid__feature {
    order: 0;
  }
  .indepth {
    grid-template-columns: 1fr;
  }
  .newsletter {
    grid-template-columns: 1fr;
  }
  .footer__newsletter {
    grid-template-columns: 1fr;
  }
  .sidebar {
    grid-template-columns: 1fr;
  }
  .card--list {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 14px;
  }
  .byline__actions {
    width: 100%;
    margin-left: 0;
  }
  .consent {
    grid-template-columns: 1fr;
  }
  .consent__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .hero__side {
    grid-template-columns: 1fr;
  }
  .hero__side-item:nth-child(3) {
    display: none;
  }
  .card--overlay {
    min-height: 340px;
  }
  .card--overlay .card__excerpt {
    display: none;
  }
  .category-grid,
  .author-grid {
    grid-template-columns: 1fr;
  }
  .footer__top {
    grid-template-columns: 1fr;
  }
  .contact-form__row,
  .comment-form__row {
    grid-template-columns: 1fr;
  }
  .search-form {
    flex-direction: column;
    align-items: stretch;
  }
  .search-form .btn {
    width: 100%;
  }
  .next-story {
    grid-template-columns: 1fr;
  }
  .next-story__media {
    display: none;
  }
  .article-cover__frame {
    border-radius: 10px;
  }
  .profile-head {
    flex-direction: column;
  }
  .ad-house {
    flex-wrap: wrap;
    gap: 8px;
  }
  .ad-house__brand {
    border: 0;
    padding: 0;
  }
  .ad-house__cta {
    margin-left: 0;
  }
  .footer__mark {
    font-size: 3rem;
  }
  .toast {
    left: 16px;
    right: 16px;
    max-width: 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;
  }
}

@media print {
  .masthead,
  .trendbar,
  .footer,
  .article-aside,
  .article-rail,
  .ad-slot,
  .comments,
  .consent,
  .toast,
  .read-progress,
  .byline__actions {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .article-layout {
    display: block;
  }
  .prose {
    font-size: 11pt;
  }
}

/* ---------------------------------------------------------------- utilities */
.card__flags {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: auto;
}
.card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(37, 99, 235, 0.16), transparent 60%),
    linear-gradient(135deg, #eef2f7, #dde5ef);
}
.grid {
  display: grid;
  gap: 20px;
}
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.section--tight {
  margin-top: 26px;
}
@media (max-width: 1080px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .account__name {
    display: none;
  }
  .hero__side-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

.hero__lead {
  min-width: 0;
}
.hero__side {
  min-width: 0;
}

/* ------------------------------------------------------------ editorial fixes */
.trendbar__item {
  max-width: 380px;
  min-width: 0;
}
.trendbar__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trendbar__item b {
  flex: none;
}
.ad-leaderboard {
  margin-top: 16px;
}
.ad-leaderboard:empty {
  display: none;
}
.ad-leaderboard .ad-slot {
  margin: 0;
}
.more-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 14px;
  padding: 16px 18px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.more-tile .kicker {
  grid-column: 1 / -1;
  font-size: 9.5px;
}
.more-tile strong {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  transition: color 0.18s var(--ease);
}
.more-tile__arrow {
  font-size: 20px;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s var(--ease);
}
.more-tile:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--highlight);
}
.more-tile:hover strong {
  color: var(--accent);
}
.more-tile:hover .more-tile__arrow {
  transform: translateX(3px);
}
.meta {
  font-size: 11px;
  letter-spacing: 0.06em;
}
@media (max-width: 1080px) {
  .trendbar__item {
    max-width: 300px;
  }
}
@media (max-width: 720px) {
  .trendbar__item:nth-child(3) {
    display: none;
  }
  .trendbar__item {
    max-width: 240px;
  }
}

/* ------------------------------------------------------------ layout refinements */
.hero__lead > .card {
  height: 100%;
}
.card--overlay .card__media::after {
  background:
    linear-gradient(90deg, rgba(9, 14, 24, 0.58) 0%, rgba(9, 14, 24, 0.12) 62%, rgba(9, 14, 24, 0) 100%),
    linear-gradient(180deg, rgba(9, 14, 24, 0.12) 0%, rgba(9, 14, 24, 0.38) 48%, rgba(9, 14, 24, 0.92) 100%);
}
.section-head {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
}
.section-head__index {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #98a2b3;
  padding-top: 2px;
}
.section-head__title p {
  max-width: 76ch;
  line-height: 1.5;
}
.section-grid__list {
  justify-content: flex-start;
}
.more-tile {
  margin-top: 14px;
  flex: 1;
  align-content: center;
  min-height: 96px;
}
.card--row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 0;
}
.card--row:first-child {
  padding-top: 0;
}
.card--row .card__media {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
}
.card--row .card__body {
  padding: 0;
  gap: 7px;
}
.card--row .card__title {
  font-size: 17.5px;
  line-height: 1.3;
}
.card--row .card__excerpt {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card--row .card__foot {
  padding-top: 0;
  border-top: 0;
  margin-top: 2px;
}
.card--row .card__time {
  font-size: 10px;
}
.toc-mobile {
  display: none;
}
@media (max-width: 1023px) {
  .toc-mobile {
    display: block;
  }
  .article-rail .toc {
    display: none;
  }
}
.page {
  padding-bottom: clamp(36px, 5vw, 64px);
}
.footer {
  margin-top: clamp(32px, 4vw, 56px);
}
@media (max-width: 720px) {
  .section-head {
    grid-template-columns: 26px minmax(0, 1fr);
  }
  .section-head__aside {
    grid-column: 2;
    padding-top: 6px;
  }
  .section-head__title p {
    font-size: 13px;
  }
  .card--row {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------- comments alignment */
.comments-wrap {
  display: grid;
  grid-template-columns: 56px minmax(0, 720px) 288px;
  gap: clamp(24px, 3vw, 44px);
  justify-content: center;
}
.comments-wrap .comments {
  grid-column: 2;
  max-width: none;
  margin: 0;
}
@media (max-width: 1023px) {
  .comments-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .comments-wrap .comments {
    grid-column: 1;
    max-width: 720px;
    margin-inline: auto;
  }
}

/* ---------------------------------------------------------------- policy pages */
.policy {
  grid-template-columns: minmax(0, 720px) 288px;
  justify-content: space-between;
}
@media (max-width: 1023px) {
  .policy {
    grid-template-columns: minmax(0, 1fr);
  }
  .policy__aside {
    position: static;
  }
}

/* --------------------------------------------------------------- mobile masthead */
@media (max-width: 720px) {
  .masthead__inner {
    gap: 6px;
  }
  .masthead__inner > .mobile-only {
    flex: none;
    width: 36px;
    height: 36px;
  }
  .brand {
    flex: 1;
    min-width: 0;
    gap: 7px;
  }
  .brand__mark {
    width: 32px;
    height: 32px;
  }
  .brand__text {
    font-size: 18px;
    gap: 3px;
  }
  .brand__text em {
    font-size: 19px;
  }
  .masthead__actions {
    gap: 2px;
    margin-left: 0;
    flex: none;
  }
  .search-trigger {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    justify-content: center;
  }
  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }
  .icon-btn {
    width: 34px;
    height: 34px;
  }
  .account__button {
    padding: 0;
    gap: 0;
  }
  .account__button .avatar {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .trendbar__inner {
    gap: 6px;
  }
  .trendbar__label {
    font-size: 8px;
    letter-spacing: 0.12em;
    flex: none;
  }
  .trendbar__item {
    max-width: none;
    flex: 1;
    padding: 0 4px;
    border-right: 0;
    font-size: 11px;
  }
  .trendbar__item:not(:first-child) {
    display: none;
  }
  .trendbar__more {
    display: none;
  }
}

/* ------------------------------------------------------------ editorial polish */
.policy {
  justify-content: start;
  column-gap: clamp(56px, 7vw, 120px);
}
.brand__dot {
  margin-left: -3px;
  margin-bottom: 1px;
}
@media (max-width: 720px) {
  .drawer__panel {
    width: 100%;
    border-right: 0;
  }
}
.author-tile__bio {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

/* ---------------------------------------------------------------- ad polish */
a.ad-house,
.prose .ad-slot a,
.prose .ad-slot a:hover {
  text-decoration: none;
}
.ad-house:hover .ad-house__headline {
  color: var(--accent);
}
.ad-slot--sidebar .ad-slot__inner {
  align-items: center;
  min-height: 206px;
}
.ad-slot--inline .ad-slot__inner {
  min-height: 84px;
}
.prose .ad-slot {
  margin: 34px 0;
}

/* --------------------------------------------------------- sponsored notice */
.notice--sponsored {
  border-left: 2px solid var(--warning);
  background: #FFFBEB;
  margin-bottom: 24px;
}
.ad-footer {
  margin-top: 32px;
}
[data-ad-zone="AD-08"] {
  display: none;
}
@media (max-width: 720px) {
  [data-ad-zone="AD-08"] {
    display: block;
  }
}
[data-theme="dark"] .notice--sponsored {
  background: #1C1917;
}
@media (max-width: 720px) {
  .article-cover figcaption {
    flex-direction: column;
    gap: 4px;
  }
  .article-cover figcaption span:last-child {
    white-space: normal;
  }
}
