:root {
  --bg:         #07080E;
  --bg-1:       #0C0E18;
  --bg-2:       #111320;

  --ink:        #DCE2F8;
  --ink-mid:    #616B94;
  --ink-faint:  #2C3050;

  --blue:       #4D82FF;
  --blue-lo:    #1B3A8A;
  --blue-hi:    #8CB4FF;
  --blue-dim:   #3A4F8A;
  --blue-glow:  rgba(77, 130, 255, 0.18);
  --blue-glow-soft: rgba(77, 130, 255, 0.08);

  --amber:      #f59e0b;

  --line:       rgba(220, 226, 248, 0.06);
  --line-2:     rgba(220, 226, 248, 0.12);

  --f-display:  'Unbounded', sans-serif;
  --f-body:     'Figtree', sans-serif;
  --f-mono:     'DM Mono', monospace;

  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --pad:        clamp(20px, 5vw, 72px);

  --col:        680px;          
  --entry-gap:  clamp(36px, 6vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; cursor: none; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; min-height: 100vh; cursor: none;
}
*, a, button, input, textarea, select, label { cursor: none !important; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; }
em { font-family: var(--f-body); font-style: italic; font-weight: 300; }

@media (hover: none) {
  .cursor, .cursor-dot { display: none !important; }
  html, body, *, a, button { cursor: auto !important; }
}

.grain {
  position: fixed; inset: 0; z-index: 9990; pointer-events: none; opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 9996;
  width: 100%; height: 1.5px; pointer-events: none;
  background: linear-gradient(90deg, var(--blue-lo), var(--blue) 60%, var(--blue-hi));
  transform: scaleX(0); transform-origin: left;
}

.cursor {
  position: fixed; z-index: 9999; top: 0; left: 0;
  width: 34px; height: 34px;
  border: 1px solid rgba(77, 130, 255, 0.5); border-radius: 50%;
  pointer-events: none; transform: translate(-50%, -50%);
  transition: width .45s var(--ease), height .45s var(--ease),
              border-color .3s, background .3s, opacity .3s;
  opacity: 0;
}
.cursor.cursor-hover {
  width: 60px; height: 60px; background: var(--blue-glow); border-color: var(--blue);
}
.cursor-dot {
  position: fixed; z-index: 10000; top: 0; left: 0;
  width: 5px; height: 5px; background: var(--blue); border-radius: 50%;
  pointer-events: none; transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .3s;
}

.label, .mono {
  font-family: var(--f-mono); font-size: .62rem;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-mid);
}

.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad); z-index: 500;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 14, 0.88);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  transition: border-color .3s;
}
.logo {
  font-family: var(--f-display); font-size: .7rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
  display: inline-block; transition: color .2s;
}
.logo:hover { color: var(--blue-hi); }
.nav-icon {
  background: transparent; border: none; padding: 8px; color: var(--ink-mid);
  display: none; align-items: center; justify-content: center; transition: color .2s;
}
.nav-icon:hover { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-mid); position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 50%; right: 50%;
  height: 1px; background: var(--blue); transition: left .3s var(--ease), right .3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-current { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-current::after { left: 0; right: 0; }
.nav-links a.is-current::after { background: var(--blue-hi); }
@media (max-width: 720px) { .nav-icon { display: flex; } .nav-links { display: none; } }

.side-drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(300px, 80vw); background: var(--bg-1); border-right: 1px solid var(--line-2);
  padding: 80px 40px 40px; z-index: 700;
  transform: translateX(-100%); transition: transform .5s var(--ease);
  display: flex; flex-direction: column;
}
.side-drawer.active { transform: translateX(0); }
.close-btn {
  position: absolute; top: 18px; right: 18px; background: transparent; border: none;
  color: var(--ink-mid); padding: 8px; display: flex; align-items: center; justify-content: center; transition: color .2s;
}
.close-btn:hover { color: var(--blue-hi); }
.drawer-label { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 32px; }
.side-drawer nav { display: flex; flex-direction: column; }
.side-drawer nav a {
  font-family: var(--f-display); font-size: 1.65rem; font-weight: 400;
  line-height: 1.15; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-mid);
  transition: color .2s, padding-left .3s var(--ease);
}
.side-drawer nav a:first-child { border-top: 1px solid var(--line); }
.side-drawer nav a:hover { color: var(--blue-hi); padding-left: 10px; }
.drawer-footer { margin-top: auto; }
.overlay {
  position: fixed; inset: 0; background: rgba(7, 8, 14, 0.7); backdrop-filter: blur(4px);
  z-index: 600; opacity: 0; pointer-events: none; transition: opacity .4s;
}
.overlay.active { opacity: 1; pointer-events: auto; }

.blog-page {
  padding-top: 60px;
  min-height: 100vh;
}

.blog-header {
  max-width: calc(var(--col) + var(--pad) * 2);
  margin: 0 auto;
  padding: 64px var(--pad) 48px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.blog-header::before {
  content: '';
  position: absolute; bottom: 0; left: var(--pad);
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--blue-lo), var(--blue) 30%, var(--line-2) 55%, transparent);
  transition: width 1s var(--ease) .2s;
}
.blog-header.is-revealed::before { width: calc(100% - var(--pad) * 2); }

.blog-eyebrow {
  font-family: var(--f-mono); font-size: .6rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.blog-eyebrow::before {
  content: ''; display: inline-block; width: 24px; height: 1px; background: var(--blue-lo);
}

.blog-heading {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: .96; letter-spacing: -.04em; color: var(--ink);
  margin-bottom: 20px;
}
.blog-heading em {
  font-family: var(--f-body); font-style: italic; font-weight: 300;
  color: var(--blue-hi); letter-spacing: -.01em;
}

.blog-meta-row {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 24px;
}
.blog-count {
  font-family: var(--f-mono); font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint);
}
.blog-count span { color: var(--ink-mid); }

.blog-filters {
  max-width: calc(var(--col) + var(--pad) * 2);
  margin: 0 auto;
  padding: 20px var(--pad);
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.blog-filter-btn {
  padding: 6px 14px; border: none; background: transparent;
  font-family: var(--f-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); border-bottom: 1px solid transparent; transition: all .2s;
}
.blog-filter-btn:hover { color: var(--ink-mid); }
.blog-filter-btn.active { color: var(--blue-hi); border-bottom-color: var(--blue); }

.blog-stream {
  max-width: calc(var(--col) + var(--pad) * 2);
  margin: 0 auto;
  padding: 0 var(--pad) 96px;
}

.blog-entry {
  padding: var(--entry-gap) 0;
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.blog-entry.in { opacity: 1; transform: translateY(0); }
.blog-entry:first-child { padding-top: calc(var(--entry-gap) + 4px); }

.entry-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.entry-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.entry-date {
  font-family: var(--f-mono); font-size: .58rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint);
}
.entry-type-tag {
  font-family: var(--f-mono); font-size: .55rem; letter-spacing: .14em;
  text-transform: uppercase; padding: 3px 8px;
  border: 1px solid var(--line-2); border-radius: 2px; color: var(--ink-faint);
}
.entry-type-tag.type-text  { color: var(--ink-mid); border-color: rgba(220,226,248,.15); }
.entry-type-tag.type-image { color: var(--blue-hi); border-color: rgba(77,130,255,.25); background: var(--blue-glow-soft); }
.entry-type-tag.type-audio { color: var(--amber); border-color: rgba(245,158,11,.22); background: rgba(245,158,11,.05); }
.entry-type-tag.type-embed { color: #b0ffa0; border-color: rgba(176,255,160,.2); background: rgba(176,255,160,.04); }

.entry-pinned {
  font-family: var(--f-mono); font-size: .52rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue-hi); opacity: .7;
}

.entry-title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1rem, 2.2vw, 1.4rem); letter-spacing: -.02em;
  color: var(--ink); line-height: 1.15; margin-top: 10px;
  flex-basis: 100%;
}

.entry-tags {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px;
}
.entry-tag {
  font-family: var(--f-mono); font-size: .52rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint);
}
.entry-tag::before { content: '#'; }

.entry-text-body {
  position: relative;
}
.entry-opening {
  font-family: var(--f-body); font-style: italic; font-weight: 300;
  font-size: 1rem; color: var(--ink-mid); margin-bottom: 20px;
}
.entry-paragraphs {
  display: flex; flex-direction: column; gap: 16px;
}
.entry-paragraphs p {
  font-family: var(--f-body); font-size: 1rem; font-weight: 300;
  color: var(--ink-mid); line-height: 1.82;
}

.entry-paragraphs a {
  color: var(--blue-hi);
  border-bottom: 1px solid rgba(140,180,255,.3);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.entry-paragraphs a:hover { color: var(--blue); border-color: var(--blue); }
.entry-paragraphs strong { color: var(--ink); font-weight: 500; }
.entry-paragraphs em { color: var(--ink); }
.entry-paragraphs code {
  font-family: var(--f-mono); font-size: .85em;
  background: var(--bg-2); padding: 2px 6px; border-radius: 3px; color: var(--blue-hi);
}

.entry-signed {
  margin-top: 24px;
  font-family: var(--f-body); font-style: italic; font-weight: 300;
  font-size: .95rem; color: var(--ink-faint);
}

.entry-text-body.is-collapsible .entry-collapse-mask {
  position: relative; max-height: 200px; overflow: hidden;
}
.entry-text-body.is-collapsible .entry-collapse-mask::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.entry-text-body.is-expanded .entry-collapse-mask { max-height: none; }
.entry-text-body.is-expanded .entry-collapse-mask::after { display: none; }

.entry-expand-btn {
  margin-top: 12px; background: transparent; border: none;
  font-family: var(--f-mono); font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue-hi);
  padding: 0; transition: color .2s;
}
.entry-expand-btn:hover { color: var(--blue); }

.entry-image-grid {
  display: grid; gap: 6px;
}

.entry-image-grid.count-1 { grid-template-columns: 1fr; }

.entry-image-grid.count-2 { grid-template-columns: 1fr 1fr; }

.entry-image-grid.count-3 { grid-template-columns: 1fr 1fr 1fr; }
.entry-image-grid.count-3 .entry-img-wrap:first-child { grid-column: span 3; }

.entry-image-grid.count-4 { grid-template-columns: 1fr 1fr; }

.entry-img-wrap {
  position: relative; overflow: hidden; background: var(--bg-1);
  aspect-ratio: 4/3;
}
.entry-image-grid.count-2 .entry-img-wrap,
.entry-image-grid.count-3 .entry-img-wrap:not(:first-child) { aspect-ratio: 1; }
.entry-image-grid.count-3 .entry-img-wrap:first-child { aspect-ratio: 16/9; }

.entry-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.8) saturate(.75);
  transition: transform .7s var(--ease), filter .4s;
  opacity: 0;
}
.entry-img-wrap img.img-loaded { opacity: 1; transition: opacity .5s ease, transform .7s var(--ease), filter .4s; }
.entry-img-wrap:hover img { transform: scale(1.04); filter: brightness(.95) saturate(1); }

.entry-img-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(transparent, rgba(7,8,14,.88));
  font-family: var(--f-mono); font-size: .55rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(220,226,248,.5);
  opacity: 0; transform: translateY(4px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.entry-img-wrap:hover .entry-img-caption { opacity: 1; transform: translateY(0); }

.entry-image-caption {
  margin-top: 10px;
  font-family: var(--f-body); font-size: .88rem; font-weight: 300;
  color: var(--ink-faint); line-height: 1.6;
}

.entry-img-wrap { cursor: none; }

.entry-audio-player {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  padding: 22px 24px;
  position: relative; overflow: hidden;
}

.entry-audio-player::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-lo), transparent); opacity: .6;
}

.audio-waveform {
  display: flex; align-items: center; gap: 2px;
  height: 40px; margin-bottom: 16px;
}
.audio-bar {
  flex: 1; background: var(--blue-lo); border-radius: 1px;
  transform-origin: bottom; transition: background .2s;
}
.audio-bar.played { background: var(--blue); }
.audio-bar.peak   { background: var(--blue-hi); }

.audio-controls {
  display: flex; align-items: center; gap: 14px;
}
.audio-play-btn {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-2); border: 1px solid var(--line-2);
  color: var(--ink-mid); display: grid; place-items: center;
  transition: all .2s;
}
.audio-play-btn:hover { background: var(--blue); border-color: var(--blue); color: var(--bg); box-shadow: 0 0 20px var(--blue-glow); }
.audio-play-btn svg { width: 14px; height: 14px; }

.audio-track-wrap { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.audio-seekbar {
  width: 100%; height: 2px; background: var(--line-2); position: relative; border-radius: 1px;
  appearance: none; -webkit-appearance: none; border: none; outline: none;
}
.audio-seekbar::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); cursor: none; box-shadow: 0 0 8px var(--blue-glow); }
.audio-seekbar::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); border: none; cursor: none; }
.audio-seekbar::-webkit-slider-runnable-track { height: 2px; background: transparent; }
.audio-seekbar:focus { outline: none; }

.audio-seekbar { background: linear-gradient(to right, var(--blue) var(--pct, 0%), var(--line-2) var(--pct, 0%)); }

.audio-time-row { display: flex; justify-content: space-between; }
.audio-time {
  font-family: var(--f-mono); font-size: .58rem; letter-spacing: .1em; color: var(--ink-faint);
}

.audio-note {
  margin-top: 14px; font-family: var(--f-body); font-size: .88rem;
  font-weight: 300; color: var(--ink-faint); line-height: 1.65;
}

.entry-audio-player.is-playing .audio-play-btn { background: var(--blue); border-color: var(--blue); color: var(--bg); }
.entry-audio-player.is-playing .audio-bar { animation: barPulse 1.2s ease-in-out infinite alternate; }
.entry-audio-player.is-playing .audio-bar:nth-child(even) { animation-delay: .15s; }
.entry-audio-player.is-playing .audio-bar:nth-child(3n) { animation-delay: .3s; }
@keyframes barPulse {
  from { opacity: .5; }
  to   { opacity: 1;  }
}

.entry-embed-wrap {
  position: relative; background: var(--bg-1);
  border: 1px solid var(--line-2); overflow: hidden;
}
.entry-embed-wrap::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #b0ffa0, transparent); opacity: .25; z-index: 1;
}
.entry-embed-wrap iframe {
  display: block; width: 100%; border: none; background: var(--bg-1);
}

.embed-loader {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--bg-1);
  font-family: var(--f-mono); font-size: .6rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-faint);
  transition: opacity .5s var(--ease);
}
.embed-loader.hidden { opacity: 0; pointer-events: none; }
.embed-spinner {
  width: 24px; height: 24px; border: 1px solid var(--line-2);
  border-top-color: #b0ffa0; border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.entry-embed-note {
  margin-top: 10px; font-family: var(--f-body); font-size: .88rem;
  font-weight: 300; color: var(--ink-faint); line-height: 1.65;
}

.blog-lightbox {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(7, 8, 14, 0.97);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.blog-lightbox.active { display: flex; animation: blFadeIn .3s var(--ease); }
@keyframes blFadeIn { from { opacity: 0; } }

.bl-figure {
  margin: 0; max-width: 90vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  animation: blZoom .45s var(--ease);
}
@keyframes blZoom { from { transform: scale(.93); opacity: 0; } }
.bl-figure img { max-width: 100%; max-height: 80vh; box-shadow: 0 40px 100px rgba(0,0,0,.7), 0 0 0 1px var(--line); }
#blCaption { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mid); }

.bl-close, .bl-prev, .bl-next {
  position: absolute; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink-mid);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; display: grid; place-items: center; transition: all .2s;
}
.bl-close { top: 24px; right: 24px; }
.bl-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.bl-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.bl-close:hover, .bl-prev:hover, .bl-next:hover { background: var(--blue); border-color: var(--blue); color: var(--bg); box-shadow: 0 0 20px var(--blue-glow); }

.blog-footer {
  max-width: calc(var(--col) + var(--pad) * 2);
  margin: 0 auto; padding: 32px var(--pad);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.blog-footer-links { display: flex; gap: 24px; }
.blog-footer-links a {
  font-family: var(--f-mono); font-size: .6rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); transition: color .2s;
}
.blog-footer-links a:hover { color: var(--blue-hi); }

.blog-empty {
  padding: 80px 0; text-align: center;
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-faint);
}

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
  .entry-image-grid.count-2 { grid-template-columns: 1fr; }
  .entry-image-grid.count-2 .entry-img-wrap { aspect-ratio: 4/3; }
  .entry-image-grid.count-3 { grid-template-columns: 1fr 1fr; }
  .entry-image-grid.count-3 .entry-img-wrap:first-child { grid-column: span 2; }
  .entry-image-grid.count-4 { grid-template-columns: 1fr 1fr; }
}

/* ─── blog.css mobile layout ─── */
@media (max-width: 768px) {
  :root { --pad: 18px; --col: 100%; --entry-gap: clamp(24px, 5vw, 40px); }

  /* Navbar */
  .navbar {
    padding: 14px var(--pad);
    padding-top: calc(14px + env(safe-area-inset-top));
  }
  .nav-links { display: none; }
  .nav-icon  { display: inline-flex; }
  .logo { font-size: 0.9rem; letter-spacing: 0.18em; }

  /* Side drawer — full-width on mobile */
  .side-drawer {
    width: 100vw !important;
    max-width: 100vw;
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  /* Blog header / hero */
  .blog-page { padding-top: 60px; }
  .blog-header { padding: 48px var(--pad) 36px; }
  .blog-heading {
    font-size: clamp(2rem, 11vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
  }
  .blog-eyebrow { font-size: 0.58rem; margin-bottom: 14px; }
  .blog-meta-row { gap: 12px; margin-top: 16px; }

  /* Filter bar */
  .blog-filters {
    padding: 14px var(--pad);
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .blog-filter-btn {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 0.58rem;
  }

  /* Stream */
  .blog-stream {
    padding: 0 var(--pad) calc(64px + env(safe-area-inset-bottom));
  }
  .blog-entry { padding: var(--entry-gap) 0; }

  /* Entry text */
  .entry-title  { font-size: clamp(1rem, 5vw, 1.3rem); }
  .entry-opening { font-size: 0.95rem; }
  .entry-paragraphs p { font-size: 0.95rem; line-height: 1.74; }

  /* Audio player */
  .entry-audio-player { padding: 16px 18px; }
  .audio-waveform { height: 32px; }

  /* Embed */
  .entry-embed-wrap iframe { min-height: 220px; }

  /* Lightbox */
  .blog-lightbox { padding: 0; }
  .bl-figure { max-width: 100vw; max-height: 84vh; }
  .bl-close { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
  .bl-prev  { left: 8px; }
  .bl-next  { right: 8px; }

  /* Footer */
  .blog-footer {
    flex-direction: column; gap: 12px; text-align: center;
    padding: 24px var(--pad) calc(24px + env(safe-area-inset-bottom));
  }
  .blog-footer-links { flex-wrap: wrap; justify-content: center; }
}

/* Very small phones */
@media (max-width: 420px) {
  .blog-heading { font-size: clamp(1.8rem, 12vw, 2.8rem); }
  .entry-image-grid.count-3,
  .entry-image-grid.count-4 { grid-template-columns: 1fr !important; }
  .entry-image-grid.count-3 .entry-img-wrap:first-child { grid-column: span 1; aspect-ratio: 16/9; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}