/* ---- Tokens ---------------------------------------------------------- */
:root {
  --espresso:   #1d1108;
  --espresso-2: #271708;
  --espresso-3: #32200f;
  --coffee:     #4a2c17;
  --mocha:      #6b4327;
  --mocha-2:    #8a5a35;
  --crema:      #f6eee2;
  --crema-2:    #efe2d0;
  --foam:       #fffdf8;
  --ink:        #2c1c10;
  --ink-soft:   #6a513c;

  /* accent — overridden by [data-accent] */
  --accent:      #cf9b52;
  --accent-deep: #b07a30;
  --accent-ink:  #6e4a14;

  --runemate: #2f9e57;
  --runemate-deep: #237a43;
  --discord:  #5865f2;
  --discord-deep: #4450d6;

  --steam:  #d6492f;
  --swirl:  #3a79d6;

  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 64px);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-lg: 0 30px 70px -30px rgba(0,0,0,.65);
  --shadow-md: 0 16px 40px -22px rgba(0,0,0,.6);

  --ff-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --ff-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --reveal-dist: 26px;
  --reveal-dur: .7s;
}
body[data-accent="gold"]   { --accent:#e3b54a; --accent-deep:#c4901f; --accent-ink:#7a5a10; }
body[data-accent="copper"] { --accent:#c87a4a; --accent-deep:#a85a2c; --accent-ink:#763c18; }
body[data-accent="crimson"]{ --accent:#cf6a52; --accent-deep:#aa4730; --accent-ink:#7a2c1c; }

body[data-motion="subtle"]    { --reveal-dist: 14px; --reveal-dur:.5s; }
body[data-motion="bombastic"] { --reveal-dist: 46px; --reveal-dur:.85s; }

/* ---- Reset / base ---------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--foam);
  background: var(--espresso);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1,h2,h3 { font-family: var(--ff-display); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: -.015em; font-optical-sizing: none; font-variation-settings: "opsz" 18; }
.mono { font-family: var(--ff-mono); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* selection */
::selection { background: var(--accent); color: var(--espresso); }

/* scroll-reveal */
.reveal { opacity: 0; transform: translateY(var(--reveal-dist)); transition: opacity var(--reveal-dur) cubic-bezier(.2,.7,.2,1), transform var(--reveal-dur) cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay:.07s } .reveal[data-d="2"]{ transition-delay:.14s }
.reveal[data-d="3"]{ transition-delay:.21s } .reveal[data-d="4"]{ transition-delay:.28s }
.reveal[data-d="5"]{ transition-delay:.35s } .reveal[data-d="6"]{ transition-delay:.42s }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; } }

/* ======================================================================
   Coffee beans (canvas field)
   ====================================================================== */
.beans { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.beans canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ======================================================================
   Header — slim top bar
   ====================================================================== */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; height: 64px; padding-inline: clamp(16px, 4vw, 40px);
  background: color-mix(in oklab, var(--espresso) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: height .35s cubic-bezier(.2,.7,.2,1), background .35s, box-shadow .35s;
}
.topbar.shrunk { height: 54px; background: color-mix(in oklab, var(--espresso) 92%, transparent); box-shadow: var(--shadow-md); }

.brand { display:flex; align-items:center; gap:11px; font-family:var(--ff-display); font-weight:800; font-size:21px; letter-spacing:-.02em; }
.brand .mark {
  width: 34px; height: 34px; flex:none; display:grid; place-items:center;
  background: var(--foam); border-radius: 10px; color: var(--steam);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.06), 0 4px 10px -4px rgba(0,0,0,.5);
  transform: rotate(-4deg);
}
.brand .mark svg { width: 22px; height: 22px; }
.brand .mark img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
.brand b { color: var(--foam); }
.brand .dot { color: var(--accent); }

.nav { display:flex; align-items:center; gap: 4px; }
.nav a.navlink {
  font-weight: 600; font-size: 14.5px; color: color-mix(in oklab, var(--foam) 78%, transparent);
  padding: 9px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a.navlink:hover { color: var(--foam); background: rgba(255,255,255,.06); }
.nav a.navlink.active { color: var(--accent); }
.nav a.navlink.active::after { content:""; display:block; height:2px; border-radius:2px; background: var(--accent); margin-top:3px; }
.nav .sep { width:1px; height:22px; background: rgba(255,255,255,.12); margin-inline:6px; }

/* action chips */
.chip { display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:14px; padding:9px 15px; border-radius:999px; transition: transform .15s, box-shadow .2s, filter .2s; white-space:nowrap; }
.chip svg { width:17px; height:17px; }
.chip:hover { transform: translateY(-1px); }
.chip--discord { background: var(--discord); color:#fff; box-shadow: 0 8px 20px -10px var(--discord); }
.chip--discord:hover { background: var(--discord-deep); box-shadow: 0 12px 26px -10px var(--discord); }
/* RuneMate "black splotch" — dark pill, green type, matches RuneMate's own colors */
.chip--rune { background: #160c05; color: #51c281; box-shadow: inset 0 0 0 1px rgba(81,194,129,.28); }
.chip--rune:hover { background: #0d0703; color: #6ad394; box-shadow: inset 0 0 0 1px rgba(81,194,129,.5); }
.chip--update { background: color-mix(in oklab, var(--accent) 15%, transparent); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in oklab,var(--accent) 36%, transparent); }
.chip--update:hover { background: color-mix(in oklab, var(--accent) 26%, transparent); color: #f0c478; }
/* current-page chip — shown on inner pages when you're already on that page */
.chip--current { cursor: default; opacity: .75; }
.chip--current:hover { transform: none; }

.menu-toggle { display:none; }

/* ======================================================================
   HERO — full viewport, dark, offset, beans, marquee pinned to bottom
   ====================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding-top: 64px; isolation:isolate; }
.hero__bg { position:absolute; inset:0; z-index:0;
  background:
    radial-gradient(120% 90% at 78% 0%, var(--espresso-3) 0%, transparent 55%),
    radial-gradient(90% 80% at 8% 100%, color-mix(in oklab, var(--coffee) 60%, transparent) 0%, transparent 50%),
    var(--espresso);
}
.hero__bg::after { /* subtle texture grain */
  content:""; position:absolute; inset:0; opacity:.5; mix-blend-mode:soft-light;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 4px 4px;
}
.hero__inner { position: relative; z-index: 2; flex: 1; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 5vw, 70px); width:100%; max-width: var(--maxw);
  margin-inline:auto; padding: clamp(28px,5vh,64px) var(--gut) clamp(20px,4vh,40px); }

/* hero layout variants */
body[data-hero="split"] .hero__inner { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }
body[data-hero="split"] .hero__copy { order: 2; }
body[data-hero="split"] .hero__art { order: 1; }
body[data-hero="center"] .hero__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; max-width: 980px; }
body[data-hero="center"] .hero__art { display: none; }
body[data-hero="center"] .hero__call,
body[data-hero="center"] .hero__cta { justify-content: center; }
body[data-hero="center"] .hero__lede { max-width: 52ch; }

/* eyebrow / kicker */
.kicker { display:inline-flex; align-items:center; gap:10px; font-family:var(--ff-mono); font-size:13px; letter-spacing:.06em; text-transform:uppercase; color: var(--accent); padding:7px 13px; border-radius:999px; background: color-mix(in oklab, var(--accent) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 35%, transparent); }
.kicker .pulse { width:8px; height:8px; border-radius:50%; background: var(--runemate); box-shadow:0 0 0 0 color-mix(in oklab,var(--runemate) 60%, transparent); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0%{ box-shadow:0 0 0 0 color-mix(in oklab,var(--runemate) 60%, transparent);} 70%,100%{ box-shadow:0 0 0 9px transparent;} }

.hero h1 { font-size: clamp(46px, 7.4vw, 104px); margin-top: 22px; }
.hero h1 .accent { color: var(--accent); }
.hero h1 .stroke { -webkit-text-stroke: 2px var(--accent); color: transparent; }

.hero__call { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top: 18px; font-size: clamp(18px, 2.2vw, 26px); font-weight:500; color: color-mix(in oklab, var(--foam) 82%, transparent); font-style: italic; }
.hero__call .code { font-style: normal; font-family: var(--ff-mono); font-size: .8em; color: var(--accent); background: rgba(0,0,0,.35); padding: 6px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }

.hero__lede { margin-top: 20px; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.55; max-width: 33ch; color: color-mix(in oklab, var(--foam) 76%, transparent); }
.hero__lede b { color: var(--foam); }
/* RuneMate grey paint-stroke highlight behind the word */
.hero__lede .rune { position: relative; color: var(--foam); font-weight: 700; white-space: nowrap; padding: 0 .14em; }
.hero__lede .rune::before { content:""; position:absolute; z-index:-1; left:0; right:0; top:6%; bottom:6%;
  background: #2b2d31;
  border-radius: 4px 9px 5px 8px / 9px 4px 8px 5px;
  transform: rotate(-1.4deg) skewX(-5deg);
  box-shadow: 0 1px 0 rgba(0,0,0,.25); }

/* hero CTAs — grouped by purpose */
.hero__cta { display:flex; flex-wrap:wrap; gap: 13px; margin-top: 30px; }
.btn { display:inline-flex; align-items:center; gap:10px; font-family:var(--ff-display); font-weight:700; font-size:16px; letter-spacing:-.01em; padding: 14px 24px; border-radius: 12px; cursor:pointer; border:0; transition: transform .15s cubic-bezier(.2,.7,.2,1), box-shadow .25s, filter .2s, background .2s; }
.btn svg { width:19px; height:19px; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--espresso); box-shadow: 0 14px 30px -14px var(--accent); }
.btn--primary:hover { box-shadow: 0 20px 40px -16px var(--accent); filter:brightness(1.05); }
.btn--discord { background: var(--discord); color:#fff; box-shadow: 0 14px 30px -14px var(--discord); }
.btn--discord:hover { background: var(--discord-deep); }
.btn--ghost { background: transparent; color: var(--foam); box-shadow: inset 0 0 0 1.6px rgba(255,255,255,.22); }
.btn--ghost:hover { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1.6px rgba(255,255,255,.4); }
.btn--rune { background: var(--runemate); color:#fff; box-shadow:0 14px 30px -14px var(--runemate); }
.btn--rune:hover { background: var(--runemate-deep); }

/* hero portrait — mascot frame */
.hero__art { position: relative; justify-self: center; }
.portrait { position: relative; width: clamp(280px, 32vw, 400px); aspect-ratio: 1 / 1; }
.portrait img,
.portrait image-slot {
  position:absolute; z-index:1; inset:0; width:100%; height:100%; border-radius: 16px;
  background: color-mix(in oklab, var(--foam) 6%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), var(--shadow-md);
}
.portrait img { object-fit: contain; }
.portrait__tag { position:absolute; z-index:3; bottom: 12px; left: 12px;
  background: #160c05; color: #51c281; font-weight:700; font-family:var(--ff-mono); font-size:12px; letter-spacing:.03em;
  padding:5px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(81,194,129,.28); }

/* hero floor: stats band + marquee pinned at very bottom */
.hero__floor { position: relative; z-index: 2; margin-top: auto; }

.stats {
  display:grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--maxw); margin-inline:auto; padding: 0 var(--gut) 22px;
  gap: clamp(8px, 2vw, 26px);
}
.stat { position:relative; padding-left: 18px; }
.stat::before { content:""; position:absolute; left:0; top:4px; bottom:4px; width:3px; border-radius:3px; background: var(--accent); }
.stat .num { font-family:var(--ff-display); font-weight:800; font-size: clamp(24px, 3vw, 40px); line-height:1; color: var(--foam); }
.stat .lbl { font-size: 13px; letter-spacing:.03em; text-transform:uppercase; color: color-mix(in oklab, var(--foam) 60%, transparent); margin-top:6px; }

/* ======================================================================
   Marquee
   ====================================================================== */
.marquee { position: relative; z-index: 3; overflow: hidden; background: var(--mocha);
  border-top: 2px solid var(--accent); border-bottom: 2px solid color-mix(in oklab, var(--espresso) 60%, transparent);
  box-shadow: 0 -10px 30px -18px rgba(0,0,0,.7); }
.marquee::before, .marquee::after { content:""; position:absolute; top:0; bottom:0; width:90px; z-index:2; pointer-events:none; }
.marquee::before { left:0; background: linear-gradient(90deg, var(--mocha), transparent); }
.marquee::after { right:0; background: linear-gradient(270deg, var(--mocha), transparent); }
.marquee__track { display:flex; width:max-content; will-change:transform; }
.marquee__item { display:inline-flex; align-items:center; gap:14px; padding: 15px 30px; font-family:var(--ff-display); font-weight:800; font-size: 19px; color: var(--foam); white-space:nowrap; text-decoration:none; cursor:pointer; transition: color .15s; flex-shrink:0; }
.marquee__item:hover { color: var(--accent); }
.marquee__item .bean-dot { color: var(--accent); font-size: 13px; }

/* ======================================================================
   Section scaffolding (alternating, offset)
   ====================================================================== */
.section { position: relative; padding-block: clamp(70px, 9vw, 130px); }
.section--cream { background: var(--crema); color: var(--ink); }
.section--dark { background: var(--espresso); color: var(--foam); }
.section--dark2 { background: var(--espresso-2); color: var(--foam); }

/* angled top edge for cream sections — breaks the "even stacked boxes" feel */
.angle-top { clip-path: polygon(0 clamp(28px,4vw,56px), 100% 0, 100% 100%, 0 100%); }
@media (max-width: 560px){ .angle-top{ clip-path: polygon(0 22px, 100% 0, 100% 100%, 0 100%); } }

.section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; margin-bottom: clamp(30px,4vw,56px); }
.section-tag { font-family:var(--ff-mono); font-size:13px; letter-spacing:.12em; text-transform:uppercase; color: var(--accent-deep); display:flex; align-items:center; gap:10px; }
.section--dark .section-tag, .section--dark2 .section-tag { color: var(--accent); }
.section-tag::before { content:""; width: 26px; height:2px; background: currentColor; display:inline-block; }
.section-title { font-size: clamp(34px, 5vw, 62px); margin-top: 14px; }
.section--cream .section-title { color: var(--ink); }
.section-title .swash { color: var(--accent-deep); white-space: nowrap; }
.section--dark .section-title .swash, .section--dark2 .section-title .swash { color: var(--accent); }

/* ======================================================================
   Why Cuppa — clean even grid
   ====================================================================== */
.why-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 20px); }
.why-card { position:relative; background: var(--foam); border-radius: var(--r-md); padding: 24px 24px 26px 28px; box-shadow: var(--shadow-md); }
.why-card::before { content:""; position:absolute; left:0; top:20px; bottom:20px; width:3px; border-radius:3px; background: var(--accent); }
.why-card h3 { font-size: 20px; color: var(--ink); line-height:1.14; }
.why-card p { margin: 9px 0 0; font-size: 15px; line-height:1.55; color: var(--ink-soft); }

@media (max-width: 860px){ .why-grid{ grid-template-columns: repeat(2, 1fr); } .why-card{ padding: 20px 20px 22px 24px; } }
@media (max-width: 460px){ .why-grid{ grid-template-columns: 1fr; } }

/* ======================================================================
   Bot list — tight categorized columns (chalkboard / menu)
   ====================================================================== */
.botlist__intro { max-width: 56ch; font-size: 17px; line-height:1.6; color: color-mix(in oklab, var(--foam) 78%, transparent); margin-bottom: 36px; }
.botlist__intro a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab,var(--accent) 50%, transparent); }
.botlist__intro a:hover { color: #f0c478; }

.bot-cols { columns: 3 240px; column-gap: clamp(22px, 3vw, 44px); }
body[data-density="tight"] .bot-cols { columns: 4 200px; }
.cat { break-inside: avoid; margin-bottom: 22px; background: color-mix(in oklab, var(--foam) 4%, transparent);
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-md); padding: 16px 18px 14px; }
.cat__head { display:flex; align-items:center; gap:10px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
.cat__glyph { width:28px; height:28px; flex:none; display:grid; place-items:center; border-radius:8px; background: color-mix(in oklab, var(--accent) 18%, transparent); color: var(--accent); font-family:var(--ff-display); font-weight:800; font-size:16px; box-shadow: inset 0 0 0 1px color-mix(in oklab,var(--accent) 35%, transparent); }
.cat__name { font-family:var(--ff-display); font-weight:800; font-size:17px; color: var(--foam); }
.cat__count { margin-left:auto; font-family:var(--ff-mono); font-size:12px; color: color-mix(in oklab,var(--foam) 50%, transparent); }
.cat ul { list-style:none; margin:0; padding:0; }
.cat li a { display:flex; align-items:center; gap:9px; padding: 6px 8px; margin: 0 -8px; border-radius: 7px; font-size: 15px; font-weight: 500; color: color-mix(in oklab, var(--foam) 86%, transparent); transition: background .15s, color .15s; }
.cat li a::before { content:""; width:5px; height:5px; border-radius:50%; background: var(--accent-deep); flex:none; transition: background .15s; }
.cat li a:hover { background: rgba(255,255,255,.07); color: var(--foam); }
.cat li a:hover::before { background: var(--accent); }
.cat li a .ext { margin-left:auto; opacity:0; font-family:var(--ff-mono); font-size:11px; color:var(--accent); transition:opacity .15s; }
.cat li a:hover .ext { opacity:1; }

/* ======================================================================
   Banners — dynamic masonry grid, diagonal split cards
   ====================================================================== */
.banner-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1vw, 12px); }
.banner { position: relative; aspect-ratio: 16 / 9; border-radius: 0; overflow: hidden; box-shadow: var(--shadow-md); background: var(--coffee); cursor: pointer; isolation:isolate; }

/* real art layer */
.banner__art { position:absolute; inset:0; z-index:1; background-size: cover; background-position: center; }

/* styled placeholder plate */
.banner__plate { position:absolute; inset:0; z-index:0; display:grid; place-items:center; text-align:center; padding: 16px;
  background:
    repeating-linear-gradient(135deg, color-mix(in oklab,var(--coffee) 80%, #000) 0 14px, var(--coffee) 14px 28px); }
/* diagonal foam wedge with java motif on placeholder */
.banner__plate .wedge { position:absolute; top:0; right:0; bottom:0; width: 42%; background: var(--foam);
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%); display:grid; place-items:center; }
.banner__plate .wedge .java { font-size: clamp(24px, 4vw, 40px); }

/* hide the striped placeholder and label when real banner art is set */
.banner--has-art .banner__plate { display: none; }
.banner__label { display: none; }

.banner .go { display: none; }
.banner { transition: box-shadow .3s; }

@media (max-width: 768px){ .banner-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px){ .banner-grid{ grid-template-columns: 1fr; } }

/* ======================================================================
   Page hero — compact dark header for inner pages (updates, etc.)
   ====================================================================== */
.page-hero {
  position: relative; padding-top: 64px; /* account for fixed topbar */
  isolation: isolate; overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(110% 80% at 72% 0%, var(--espresso-3) 0%, transparent 55%),
    radial-gradient(80% 70% at 6% 100%, color-mix(in oklab, var(--coffee) 55%, transparent) 0%, transparent 55%),
    var(--espresso-2);
}
.page-hero__bg::after {
  content:""; position:absolute; inset:0; opacity:.4; mix-blend-mode:soft-light;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 4px 4px;
}
.page-hero__inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(40px, 6vh, 80px) var(--gut) clamp(36px, 6vw, 70px);
}
.page-hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.page-hero__tag::before { content:""; width:22px; height:2px; background:currentColor; }
.page-hero__inner h1 { font-size: clamp(38px, 6vw, 80px); }
.page-hero__inner h1 .accent { color: var(--accent); }
.page-hero__sub {
  margin-top: 14px; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.55;
  color: color-mix(in oklab, var(--foam) 72%, transparent); max-width: 52ch;
}

/* ======================================================================
   Changelog (updates page)
   ====================================================================== */
.changelog { display: flex; flex-direction: column; gap: 14px; }

.changelog-item {
  position: relative;
  background: var(--foam); border-radius: var(--r-md);
  padding: 22px 24px 22px 28px;
  box-shadow: var(--shadow-md);
  content-visibility: auto;
  contain-intrinsic-size: auto 180px;
}
.changelog-item::before {
  content: ""; position: absolute; left: 0; top: 20px; bottom: 20px;
  width: 3px; border-radius: 3px; background: var(--accent);
}
.changelog hr { display: none; } /* gaps replace the <hr> separators */

.changelog-meta {
  font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px;
}
.changelog-body {
  font-size: 15px; line-height: 1.68; color: var(--ink-soft);
}
.changelog-body p { margin: 0 0 .6em; }
.changelog-body p:last-child { margin-bottom: 0; }
.changelog-body h1, .changelog-body h2, .changelog-body h3 {
  font-family: var(--ff-display); font-weight: 800;
  color: var(--ink); margin: 16px 0 6px; line-height: 1.08;
}
.changelog-body h1 { font-size: 22px; }
.changelog-body h2 { font-size: 18px; }
.changelog-body h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.changelog-body strong, .changelog-body b { color: var(--ink); font-weight: 700; }
.changelog-body em, .changelog-body i { font-style: italic; }
.changelog-body a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.changelog-body a:hover { color: var(--accent); }
.changelog-body ul, .changelog-body ol { padding-left: 22px; margin: 8px 0; }
.changelog-body li { margin-bottom: 3px; }

/* inline code */
.changelog-body code {
  font-family: var(--ff-mono); font-size: .84em;
  background: #1a1a1a; color: #cdd9e5;
  padding: 2px 6px; border-radius: 4px;
  white-space: pre-wrap; word-break: break-word;
}
/* block code */
.changelog-body pre code {
  display: block; padding: 14px 16px; margin: 10px 0;
  white-space: pre-wrap; overflow-x: auto; word-break: break-word;
  border: 1px solid #333; border-radius: var(--r-sm);
  font-size: .875em; line-height: 1.52; white-space: pre-wrap;
}

/* ======================================================================
   Updates teaser strip
   ====================================================================== */
.updates-strip { display:grid; grid-template-columns: 1fr auto; align-items:center; gap: 28px;
  background: linear-gradient(120deg, var(--espresso-2), var(--coffee));
  border: 1px solid rgba(255,255,255,.09); border-radius: var(--r-lg); padding: clamp(26px,4vw,42px); box-shadow: var(--shadow-md); }
.updates-strip h3 { font-size: clamp(24px, 3vw, 36px); color: var(--foam); }
.updates-strip p { margin: 12px 0 0; color: color-mix(in oklab,var(--foam) 76%, transparent); max-width: 50ch; line-height:1.55; }
@media (max-width: 680px){ .updates-strip{ grid-template-columns: 1fr; } }

/* ======================================================================
   Footer — slim
   ====================================================================== */
.foot { background: var(--espresso); border-top: 1px solid rgba(255,255,255,.08); }
.foot__row { display:flex; align-items:center; justify-content:space-between; gap: 18px; flex-wrap:wrap; padding-block: 26px; }
.foot__brand { display:flex; align-items:center; gap:12px; }
.foot__brand .code { font-family:var(--ff-mono); font-size:14px; color: var(--accent); }
.foot__links { display:flex; align-items:center; gap: 6px; flex-wrap:wrap; }
.foot__links a { font-weight:600; font-size:14px; color: color-mix(in oklab,var(--foam) 72%, transparent); padding:7px 12px; border-radius:999px; transition: color .2s, background .2s; }
.foot__links a:hover { color: var(--foam); background: rgba(255,255,255,.06); }
.foot__copy { font-size: 12.5px; color: color-mix(in oklab,var(--foam) 45%, transparent); padding-bottom: 22px; }

/* ======================================================================
   Back to top
   ====================================================================== */
.totop { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 52px; height: 52px; border-radius: 50%;
  display:grid; place-items:center; background: var(--mocha); color: var(--foam); border:0; cursor:pointer;
  box-shadow: var(--shadow-md), inset 0 0 0 1px color-mix(in oklab,var(--accent) 40%, transparent);
  opacity:0; transform: translateY(16px) scale(.9); pointer-events:none; transition: opacity .3s, transform .3s, background .2s; }
.totop.show { opacity:1; transform:none; pointer-events:auto; }
.totop:hover { background: var(--mocha-2); transform: translateY(-3px); }
.totop svg { width: 22px; height: 22px; }

/* ======================================================================
   Mobile nav
   ====================================================================== */
@media (max-width: 1080px){
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap:6px;
    background: var(--espresso-2); padding: 16px clamp(16px,4vw,40px) 22px; border-bottom: 1px solid rgba(255,255,255,.1);
    transform: translateY(-12px); opacity:0; pointer-events:none; transition: opacity .25s, transform .25s; box-shadow: var(--shadow-md); }
  .nav.open { opacity:1; transform:none; pointer-events:auto; }
  .nav .sep { display:none; }
  .nav a.navlink, .nav .chip { width:100%; justify-content:center; font-size:16px; padding:13px; }
  .menu-toggle { display:grid; place-items:center; width:42px; height:42px; border-radius:10px; border:0; cursor:pointer;
    background: rgba(255,255,255,.08); color: var(--foam); }
  .menu-toggle svg { width:22px; height:22px; }
}
@media (max-width: 820px){ .hero__inner{ grid-template-columns: 1fr; } .hero__art{ display:none; } }
@media (max-width: 620px){ .stats{ grid-template-columns: repeat(2,1fr); row-gap:18px; } }
