/* MaskScience.org — 2026 dark, luminous research library */
:root {
  color-scheme: dark;
  --aurora-intensity: 1;
  --aurora-shift: 0px;
  --header-glow: 1;

  --void: #07090d;
  --void-elevated: #0c1017;
  --surface: #111722;
  --surface-2: #161d2b;
  --surface-glass: rgba(17, 23, 34, 0.55);
  --ink: #f2f5f8;
  --ink-soft: #c2cad6;
  --muted: #8b95a5;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --glow-line: rgba(94, 234, 212, 0.22);

  --accent: #5eead4;
  --accent-dim: #2dd4bf;
  --accent-deep: #0f766e;
  --accent-soft: rgba(94, 234, 212, 0.12);
  --accent-softer: rgba(94, 234, 212, 0.06);
  --violet: #a78bfa;
  --violet-soft: rgba(167, 139, 250, 0.14);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.12);
  --rose: #fb7185;

  --tier1: #5eead4;
  --tier1-bg: rgba(94, 234, 212, 0.12);
  --tier2: #86efac;
  --tier2-bg: rgba(134, 239, 172, 0.12);
  --tier3: #fbbf24;
  --tier3-bg: rgba(251, 191, 36, 0.12);
  --tier4: #94a3b8;
  --tier4-bg: rgba(148, 163, 184, 0.12);

  --focus: #5eead4;
  --serif: "Fraunces", "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --max: 74rem;
  --measure: 42rem;
  --radius: 1rem;
  --radius-sm: 0.65rem;
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(94, 234, 212, 0.12), 0 12px 40px rgba(15, 118, 110, 0.18);
  --header-h: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--void);
  font-feature-settings: "ss01" on, "cv11" on;
  overflow-x: hidden;
}

/* Atmospheric background — intensity eases with scroll */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 15% -10%, rgba(45, 212, 191, calc(0.18 * var(--aurora-intensity))), transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 10%, rgba(167, 139, 250, calc(0.14 * var(--aurora-intensity))), transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 90%, rgba(15, 118, 110, calc(0.12 * var(--aurora-intensity))), transparent 55%),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgba(251, 191, 36, calc(0.06 * var(--aurora-intensity))), transparent 50%),
    var(--void);
  pointer-events: none;
  transition: opacity 0.15s linear;
}

/* Film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: #99f6e4;
}

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

::selection {
  background: rgba(94, 234, 212, 0.28);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #042f2e;
  padding: 0.5rem 1rem;
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header — glass */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.site-header::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(94, 234, 212, calc(0.55 * var(--header-glow))) 25%,
    rgba(167, 139, 250, calc(0.45 * var(--header-glow))) 55%,
    rgba(251, 191, 36, calc(0.35 * var(--header-glow))) 80%,
    transparent 100%
  );
  opacity: calc(0.35 + 0.65 * var(--header-glow));
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
  font-variation-settings: "SOFT" 50, "WONK" 0.4;
}

.wordmark span {
  background: linear-gradient(135deg, var(--accent), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.15rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.35rem;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero__aurora {
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  pointer-events: none;
  z-index: 0;
  transform: translate3d(0, var(--aurora-shift), 0);
  opacity: var(--aurora-intensity);
  will-change: transform, opacity;
}

.hero__aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float 14s var(--ease) infinite alternate;
}

.hero__aurora span:nth-child(1) {
  width: min(42vw, 28rem);
  height: min(42vw, 28rem);
  left: -5%;
  top: 10%;
  background: rgba(45, 212, 191, 0.35);
}

.hero__aurora span:nth-child(2) {
  width: min(36vw, 24rem);
  height: min(36vw, 24rem);
  right: 5%;
  top: 0;
  background: rgba(167, 139, 250, 0.28);
  animation-delay: -4s;
}

.hero__aurora span:nth-child(3) {
  width: min(28vw, 18rem);
  height: min(28vw, 18rem);
  right: 25%;
  top: 40%;
  background: rgba(251, 191, 36, 0.12);
  animation-delay: -7s;
}

@keyframes float {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, 4%, 0) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__aurora span {
    animation: none;
  }
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero__inner {
  max-width: 52rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.5rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(94, 234, 212, 0.22);
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.12);
}

.hero__eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 550;
  font-size: clamp(2.75rem, 6.5vw + 0.25rem, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 1.6rem;
  max-width: 13ch;
  color: var(--ink);
  text-wrap: balance;
  font-variation-settings: "SOFT" 40, "WONK" 0.5, "opsz" 144;
  background: linear-gradient(180deg, #ffffff 20%, #c8d0dc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* fallback if clip fails */
  -webkit-text-fill-color: transparent;
}

@supports not (background-clip: text) {
  .hero h1 {
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
  }
}

.hero__lead {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 0 2.15rem;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0 0 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

.btn--primary {
  background: linear-gradient(135deg, #5eead4 0%, #2dd4bf 45%, #14b8a6 100%);
  color: #042f2e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 8px 28px rgba(45, 212, 191, 0.35);
}

.btn--primary:hover {
  color: #022c26;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 12px 36px rgba(45, 212, 191, 0.45);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: rgba(94, 234, 212, 0.4);
  background: var(--accent-soft);
  color: var(--accent);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero__meta span {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero__meta strong {
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.panel {
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.method-strip {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 1.45rem 1.55rem 1.45rem 1.45rem;
  border-left: none;
  position: relative;
  overflow: hidden;
}

.method-strip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--violet));
  border-radius: 3px 0 0 3px;
}

.method-strip h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 0.85rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.method-strip ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.method-strip li {
  margin-bottom: 0.5rem;
}

.method-strip li:last-child {
  margin-bottom: 0;
}

.method-strip strong {
  color: var(--accent);
  font-weight: 600;
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 4.25rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.section--tint {
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.03), transparent 40%),
    rgba(12, 16, 23, 0.65);
}

.section--warm {
  background: rgba(251, 191, 36, 0.02);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section__head h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "opsz" 72;
}

.section__head p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 36rem;
}

.section__head a {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--accent);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.25);
  background: var(--accent-soft);
}

.section__head a:hover {
  background: rgba(94, 234, 212, 0.18);
  color: #99f6e4;
}

/* Filters */
.filters {
  display: grid;
  gap: 0.95rem;
  margin-bottom: 1.35rem;
  padding: 1.15rem 1.2rem;
  background: rgba(17, 23, 34, 0.72);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filters label.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.search {
  flex: 1 1 16rem;
  min-width: 12rem;
}

.search input,
.select select {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.search input::placeholder {
  color: var(--muted);
}

.search input:focus,
.select select:focus {
  border-color: rgba(94, 234, 212, 0.55);
  background: rgba(0, 0, 0, 0.45);
  outline: none;
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.15);
}

.select {
  flex: 0 1 11rem;
}

.select select {
  cursor: pointer;
}

.select select option {
  background: #111722;
  color: #f2f5f8;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}

.chip:hover {
  border-color: rgba(94, 234, 212, 0.35);
  color: var(--accent);
  background: var(--accent-soft);
}

.chip[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.22), rgba(167, 139, 250, 0.18));
  border-color: rgba(94, 234, 212, 0.45);
  color: #ecfeff;
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.12);
}

.results-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 1.1rem;
  font-weight: 500;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* Cards */
.card-list {
  display: grid;
  gap: 1rem;
}

.card {
  position: relative;
  background: linear-gradient(160deg, rgba(22, 29, 43, 0.95), rgba(12, 16, 23, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.3rem 1.25rem;
  border-left: 3px solid var(--line-strong);
  box-shadow: var(--shadow);
  transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 120px at 0% 0%, rgba(94, 234, 212, 0.07), transparent 55%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.card:hover {
  border-color: rgba(94, 234, 212, 0.22);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.card:hover::before {
  opacity: 1;
}

.card[data-tier="1"] {
  border-left-color: var(--tier1);
}
.card[data-tier="2"] {
  border-left-color: var(--tier2);
}
.card[data-tier="3"] {
  border-left-color: var(--tier3);
}
.card[data-tier="4"] {
  border-left-color: var(--tier4);
}

.card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  border: 1px solid rgba(94, 234, 212, 0.12);
}

.badge--tier1 {
  background: var(--tier1-bg);
  color: var(--tier1);
  border-color: rgba(94, 234, 212, 0.2);
}
.badge--tier2 {
  background: var(--tier2-bg);
  color: var(--tier2);
  border-color: rgba(134, 239, 172, 0.2);
}
.badge--tier3 {
  background: var(--tier3-bg);
  color: var(--tier3);
  border-color: rgba(251, 191, 36, 0.2);
}
.badge--tier4 {
  background: var(--tier4-bg);
  color: var(--tier4);
  border-color: rgba(148, 163, 184, 0.2);
}
.badge--muted {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 500;
  border-color: var(--line);
}
.badge--peer {
  background: var(--tier2-bg);
  color: var(--tier2);
  border-color: rgba(134, 239, 172, 0.2);
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
  font-weight: 550;
  color: var(--ink);
  position: relative;
  font-variation-settings: "opsz" 36;
}

.card__summary {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  position: relative;
}

.card blockquote {
  margin: 0 0 1.05rem;
  padding: 0.95rem 1.05rem;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(94, 234, 212, 0.08), rgba(167, 139, 250, 0.04));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.55;
  position: relative;
}

.card blockquote p {
  margin: 0;
}

.card blockquote::before {
  content: "From the source";
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.88rem;
  position: relative;
}

.card__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.18);
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.card__links a:hover {
  background: rgba(94, 234, 212, 0.16);
  border-color: rgba(94, 234, 212, 0.4);
  color: #99f6e4;
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.15);
}

.card__links a::after {
  content: "↗";
  font-size: 0.8em;
  opacity: 0.8;
}

.card__note {
  margin: 0.95rem 0 0;
  padding: 0.75rem 0.85rem;
  background: var(--amber-soft);
  border-left: 2px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  position: relative;
}

.card__note strong {
  color: var(--amber);
  font-weight: 600;
}

/* Featured — bento shelf */
.featured {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1rem;
}

.featured--bento {
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(8.5rem, auto);
  gap: 0.9rem;
}

.featured--bento .card--bento-hero {
  grid-column: span 7;
  grid-row: span 2;
  min-height: 100%;
  background: linear-gradient(
    145deg,
    rgba(22, 40, 48, 0.98) 0%,
    rgba(12, 16, 23, 0.95) 45%,
    rgba(28, 22, 48, 0.9) 100%
  );
  box-shadow: var(--shadow-glow);
  border-color: rgba(94, 234, 212, 0.2);
}

.featured--bento .card--bento-hero h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  max-width: 28ch;
}

.featured--bento .card--bento-hero .card__summary {
  font-size: 1.02rem;
  max-width: 42rem;
}

.featured--bento .card--bento-side {
  grid-column: span 5;
}

.featured--bento .card--bento-wide {
  grid-column: span 6;
}

.featured--bento .card--bento:not(.card--bento-hero):not(.card--bento-side):not(.card--bento-wide) {
  grid-column: span 3;
}

.featured--bento .card--bento h3 {
  font-size: 1.05rem;
}

.featured--bento .card--bento-hero h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.featured .card h3 {
  font-size: 1.08rem;
}

.card__quote--short {
  font-size: 0.95rem !important;
}

@media (max-width: 960px) {
  .featured--bento {
    grid-template-columns: repeat(6, 1fr);
  }
  .featured--bento .card--bento-hero {
    grid-column: span 6;
    grid-row: span 1;
  }
  .featured--bento .card--bento-side,
  .featured--bento .card--bento-wide {
    grid-column: span 3;
  }
  .featured--bento .card--bento:not(.card--bento-hero):not(.card--bento-side):not(.card--bento-wide) {
    grid-column: span 3;
  }
}

@media (max-width: 640px) {
  .featured--bento {
    grid-template-columns: 1fr;
  }
  .featured--bento .card--bento-hero,
  .featured--bento .card--bento-side,
  .featured--bento .card--bento-wide,
  .featured--bento .card--bento {
    grid-column: span 1 !important;
  }
}

/* Prose pages */
.prose {
  max-width: var(--measure);
  padding: 3rem 0 4rem;
}

.prose h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 3rem);
  letter-spacing: -0.035em;
  margin: 0 0 1.15rem;
  color: var(--ink);
  background: linear-gradient(180deg, #fff, #b8c0cc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prose h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 2.25rem 0 0.8rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  border: 1px solid rgba(94, 234, 212, 0.15);
}

/* Empty */
.empty {
  padding: 2.25rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(17, 23, 34, 0.5);
}

/* Footer */
.site-footer {
  padding: 3rem 0 3.5rem;
  font-size: 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.35rem;
  display: grid;
  gap: 0.75rem;
}

.site-footer strong {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 550;
  letter-spacing: -0.02em;
}

.site-footer a {
  color: var(--ink-soft);
}

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

@media (max-width: 640px) {
  .hero {
    padding: 3rem 0 2.25rem;
  }
  .nav {
    gap: 0.35rem 0.85rem;
    font-size: 0.82rem;
  }
  .card {
    padding: 1.05rem;
  }
  .filters {
    padding: 0.9rem;
  }
  .hero h1 {
    max-width: 12ch;
  }
}
