/* ==========================================================================
   Pelora - site styles
   Palette: cream #EAE4DA / ink #3F3B54 / purple #6B6695
   Type: Bricolage Grotesque (display), Inter (body + labels)
   ========================================================================== */

:root {
  /* Brand */
  --cream:      #EAE4DA;
  --off-white:  #F7F3EC;
  --ink:        #3F3B54;
  --ink-alt:    #423F52;
  --ink-deep:   #2A2740;
  --purple:     #6B6695;
  --lavender:   #D5D3E3;

  /* Semantic - light (cream) surfaces */
  --bg:            var(--off-white);
  --bg-elevated:   var(--cream);
  --fg:            var(--ink);
  --fg-muted:      color-mix(in srgb, var(--ink) 66%, var(--cream));
  --accent:        var(--purple);
  --rule:          color-mix(in srgb, var(--ink) 16%, transparent);

  /* Type scale (fluid) */
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1rem, 0.96rem + 0.20vw, 1.125rem);
  --step-1:  clamp(1.20rem, 1.10rem + 0.50vw, 1.45rem);
  --step-2:  clamp(1.55rem, 1.35rem + 1.00vw, 2.10rem);
  --step-3:  clamp(2.00rem, 1.60rem + 2.00vw, 3.20rem);
  --step-4:  clamp(2.60rem, 1.80rem + 4.00vw, 5.20rem);
  --step-5:  clamp(3.10rem, 1.90rem + 6.00vw, 7.00rem);

  /* Space */
  --gutter:  clamp(1.25rem, 0.9rem + 1.8vw, 2.5rem);
  --section: clamp(5rem, 3.5rem + 7vw, 10rem);
  --measure: 62ch;

  --radius:   14px;
  --radius-lg: 22px;

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

/* Dark surfaces invert the semantic tokens. */
.on-dark {
  --bg:          var(--ink);
  --bg-elevated: var(--ink-deep);
  --fg:          var(--cream);
  --fg-muted:    color-mix(in srgb, var(--cream) 68%, var(--ink));
  --accent:      var(--lavender);
  --rule:        color-mix(in srgb, var(--cream) 18%, transparent);
}

/* --------------------------------------------------------------- base --- */

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

/* the hidden attribute must beat component display rules */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 500;
  font-variation-settings: "wdth" 100, "opsz" 32;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

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

::selection { background: var(--purple); color: var(--off-white); }

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--lavender); }

.skip-link {
  position: absolute; left: 0; top: 0; z-index: 200;
  transform: translateY(-120%);
  background: var(--ink); color: var(--cream);
  padding: 0.75rem 1.25rem; font-size: var(--step--1);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ------------------------------------------------------------- layout --- */

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

.band {
  background: var(--bg);
  color: var(--fg);
  padding-block: var(--section);
  position: relative;
}
.band--tight { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }

.eyebrow {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem; height: 1px;
  background: currentColor;
  flex: none;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: var(--measure);
  color: var(--fg-muted);
}

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

.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  padding-block: 1.1rem;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), padding 0.35s var(--ease);
}
.nav.is-stuck {
  padding-block: 0.65rem;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo { display: block; flex: none; }
.nav-logo img { height: 26px; width: auto; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2.2rem);
  margin: 0; padding: 0;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
}
.nav-links a {
  color: color-mix(in srgb, var(--cream) 78%, transparent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--cream); }

.nav-cta {
  border: 1px solid color-mix(in srgb, var(--cream) 34%, transparent);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  color: var(--cream) !important;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav-cta:hover { background: color-mix(in srgb, var(--cream) 12%, transparent); border-color: var(--cream); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px;
  padding: 10px 8px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 1.5px; width: 100%;
  background: var(--cream);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0 0 auto 0;
    padding: 6rem var(--gutter) 2.5rem;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    font-size: var(--step-1);
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease);
    height: 100dvh;
  }
  .nav.is-open .nav-links { transform: translateY(0); }
  .nav.is-open { background: var(--ink); }
}

/* -------------------------------------------------------------- button --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: inherit;
  font-size: var(--step-0);
  font-weight: 500;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--purple); color: var(--off-white); }
.btn--primary:hover { background: color-mix(in srgb, var(--purple) 84%, var(--off-white)); }
.on-dark .btn--primary { background: var(--cream); color: var(--ink); }
.on-dark .btn--primary:hover { background: #fff; }

.btn--ghost { border-color: var(--rule); color: var(--fg); }
.btn--ghost:hover { border-color: currentColor; background: color-mix(in srgb, currentColor 8%, transparent); }

.btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: 9rem 4rem;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  opacity: 0.55;
}
.hero::after {
  /* keeps type legible over the animation */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 12% 40%, color-mix(in srgb, var(--ink) 92%, transparent) 0%, transparent 62%),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 75%, transparent), transparent 30%, color-mix(in srgb, var(--ink) 88%, transparent));
  pointer-events: none;
}

.hero-title {
  font-size: var(--step-5);
  max-width: 15ch;
  margin-bottom: 1.75rem;
}
.hero-sub {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 54ch;
  color: color-mix(in srgb, var(--cream) 74%, var(--ink));
  margin-bottom: 2.5rem;
}
.hero .actions { margin-bottom: 3.5rem; }

/* cycling line */
.cycler {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: var(--step-2);
  letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--cream) 60%, var(--ink));
  border-top: 1px solid color-mix(in srgb, var(--cream) 16%, transparent);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4em;
}
.cycler-slot {
  position: relative;
  display: inline-block;
  color: var(--lavender);
}
@media (min-width: 720px) { .cycler-slot { min-width: 12ch; } }
.cycler-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.cycler-word.is-in { opacity: 1; transform: translateY(0); }
.cycler-word.is-out { opacity: 0; transform: translateY(-0.45em); }
.cycler-word:not(:first-child) { position: absolute; left: 0; top: 0; white-space: nowrap; }

/* ------------------------------------------------------------ statement --- */

.statement {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: var(--step-3);
  line-height: 1.16;
  letter-spacing: -0.022em;
  max-width: 20ch;
}
.statement--wide { max-width: 26ch; }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .split--sticky > :first-child { position: sticky; top: 8rem; }
}

/* --------------------------------------------------------------- steps --- */

.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  background: var(--bg);
  padding: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.step-num {
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.step-title { font-size: var(--step-2); }
.step-body { color: var(--fg-muted); }

/* --------------------------------------------------------------- proof --- */

.proof {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: clamp(1.75rem, 1rem + 2.5vw, 3rem) clamp(1.5rem, 1rem + 2vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.proof-item {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}
.proof-figure {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: var(--step-2);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  display: block;
}
.proof-label { font-size: var(--step--1); color: var(--fg-muted); line-height: 1.45; display: block; }

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

.cards {
  display: grid;
  gap: clamp(1rem, 0.6rem + 1.4vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.card-kicker { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.card-title { font-size: var(--step-1); }
.card-body { color: var(--fg-muted); font-size: var(--step-0); }

/* ---------------------------------------------------------------- demo --- */

.demo-frame {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--ink-deep) 70%, var(--ink));
  overflow: hidden;
}
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--fg-muted);
}
.demo-bar strong { color: var(--fg); font-weight: 500; }

.race {
  display: grid;
  gap: 1px;
  background: var(--rule);
}
@media (min-width: 820px) { .race { grid-template-columns: 1fr 1fr; } }

.lane {
  background: color-mix(in srgb, var(--ink-deep) 70%, var(--ink));
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.lane--pelora { background: color-mix(in srgb, var(--purple) 14%, var(--ink-deep)); }

.lane-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.lane-name { font-family: "Bricolage Grotesque", Inter, sans-serif; font-size: var(--step-1); letter-spacing: -0.015em; }
.lane-hw { font-size: var(--step--1); color: var(--fg-muted); font-variant-numeric: tabular-nums; }

.track {
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cream) 12%, transparent);
  overflow: hidden;
}
.track-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cream) 45%, transparent);
  transition: width 0.2s linear;
}
.lane--pelora .track-fill { background: linear-gradient(90deg, var(--lavender), var(--cream)); }

.readout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.readout div { display: flex; flex-direction: column; gap: 0.3rem; }
.readout dt { font-size: var(--step--1); color: var(--fg-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.readout dd {
  margin: 0;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: var(--step-1);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.lane-status {
  font-size: var(--step--1);
  color: var(--fg-muted);
  min-height: 1.5em;
  display: flex; align-items: center; gap: 0.5rem;
}
.lane-status.is-done { color: var(--lavender); }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; flex: none;
  opacity: 0.5;
}
.is-running .dot { animation: pulse 1.1s var(--ease) infinite; }
.is-done .dot { opacity: 1; animation: none; }
@keyframes pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

/* drift beat */
.drift {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
}
@media (min-width: 820px) { .drift { grid-template-columns: 1fr auto 1fr; } }

.chipset { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-size: var(--step--1);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--fg-muted);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.chip.is-new {
  color: var(--ink);
  background: var(--lavender);
  border-color: var(--lavender);
}
.drift-arrow { color: var(--accent); display: grid; place-items: center; }
.drift-arrow span { font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; }

.expert-tile {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.expert-tile.is-stale { border-color: color-mix(in srgb, #b08968 60%, transparent); }
.expert-tile.is-fresh { border-color: var(--lavender); }
.expert-name { font-family: "Bricolage Grotesque", Inter, sans-serif; font-size: var(--step-1); }
.expert-meta { font-size: var(--step--1); color: var(--fg-muted); font-variant-numeric: tabular-nums; }

.demo-note {
  font-size: var(--step--1);
  color: var(--fg-muted);
  max-width: 68ch;
  margin-top: 1.5rem;
}

/* ------------------------------------------------------------ research --- */

.pubs { list-style: none; margin: 0; padding: 0; }
.pub {
  display: grid;
  gap: 0.35rem 2rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--rule);
}
@media (min-width: 780px) {
  .pub { grid-template-columns: 10rem minmax(0, 1fr); align-items: baseline; }
}
.pub:last-child { border-bottom: 1px solid var(--rule); }
.pub-venue {
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.pub-title {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: var(--step-1);
  letter-spacing: -0.015em;
  text-decoration: none;
  display: inline-block;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease);
}
.pub-title:hover { background-size: 100% 1px; }
.pub-authors { font-size: var(--step--1); color: var(--fg-muted); grid-column: 1 / -1; }
@media (min-width: 780px) { .pub-authors { grid-column: 2; } }

/* --------------------------------------------------------------- team --- */

.people {
  display: grid;
  gap: clamp(2rem, 1.2rem + 3vw, 4rem);
}
@media (min-width: 780px) { .people { grid-template-columns: 1fr 1fr; } }

.person { display: flex; flex-direction: column; gap: 1.1rem; }
.person-photo {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  filter: grayscale(1) contrast(1.03);
  transition: filter 0.5s var(--ease);
}
.person:hover .person-photo { filter: grayscale(0); }
.person-name { font-size: var(--step-2); }
.person-role { font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.person-bio { color: var(--fg-muted); max-width: 42ch; }
.person-links { display: flex; gap: 1.25rem; font-size: var(--step--1); }
.person-links a { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; color: var(--fg-muted); transition: color 0.2s var(--ease); }
.person-links a:hover { color: var(--fg); }

/* ---------------------------------------------------------------- faq --- */

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding-block: 1.5rem;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: var(--step-1);
  letter-spacing: -0.015em;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4em;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding-bottom: 1.6rem; color: var(--fg-muted); max-width: var(--measure); }

/* -------------------------------------------------------------- closing --- */

.closing { text-align: left; }
.closing-line {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: var(--step-4);
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 18ch;
}

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

.footer {
  background: var(--ink-deep);
  color: color-mix(in srgb, var(--cream) 62%, var(--ink));
  padding-block: clamp(3rem, 2rem + 3vw, 5rem);
  font-size: var(--step--1);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 12%, transparent);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; }
.footer-nav a { text-decoration: none; transition: color 0.2s var(--ease); }
.footer-nav a:hover { color: var(--cream); }
.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
}

/* --------------------------------------------------------------- blog --- */

.post-list { list-style: none; margin: 0; padding: 0; }
.post-row {
  border-top: 1px solid var(--rule);
  padding-block: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  display: grid;
  gap: 0.6rem 2.5rem;
}
@media (min-width: 820px) { .post-row { grid-template-columns: 11rem minmax(0, 1fr); } }
.post-list .post-row:last-child { border-bottom: 1px solid var(--rule); }
.post-date { font-size: var(--step--1); color: var(--fg-muted); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.post-link { font-family: "Bricolage Grotesque", Inter, sans-serif; font-size: var(--step-2); letter-spacing: -0.02em; text-decoration: none; }
.post-link:hover { color: var(--accent); }
.post-excerpt { color: var(--fg-muted); max-width: var(--measure); }
@media (min-width: 820px) { .post-excerpt, .post-meta { grid-column: 2; } }
.post-meta { font-size: var(--step--1); color: var(--fg-muted); }

.article { max-width: 44rem; }
.article-header { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.article-title { font-size: var(--step-3); margin-bottom: 1.5rem; max-width: 18ch; }
.article-meta { font-size: var(--step--1); color: var(--fg-muted); display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

.prose { font-size: var(--step-1); line-height: 1.66; }
.prose > * + * { margin-top: 1.5em; }
.prose h2 {
  font-size: var(--step-2);
  margin-top: 2.25em;
  margin-bottom: 0.1em;
  line-height: 1.14;
}
.prose h3 { font-size: var(--step-1); margin-top: 1.9em; margin-bottom: 0.1em; }
.prose a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.35em;
  margin-left: 0;
  color: var(--fg-muted);
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  padding: 0.15em 0.4em;
  border-radius: 5px;
}
.prose hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2.5em; }

.author-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}
.author-card { display: flex; gap: 1rem; align-items: center; }
.author-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; filter: grayscale(1); }
.author-card-name { font-weight: 500; }
.author-card-role { font-size: var(--step--1); color: var(--fg-muted); }

/* ---------------------------------------------------------------- 404 --- */

.error-page {
  min-height: 100svh;
  display: grid;
  align-content: center;
  background: var(--ink);
  color: var(--cream);
  padding-block: 8rem 4rem;
}
.error-code {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: var(--step-5);
  letter-spacing: -0.03em;
  color: var(--purple);
  line-height: 1;
}

/* ------------------------------------------------------------- reveals --- */

[data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

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