/* ===========================================================================
   Pieces of 8-Bit — site styles
   Layout: fixed pixel sidebar + fluid content. Collapses to a top bar < 900px.
   ======================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --bg:        #0d0d18;
  --bg-panel:  #16162a;
  --bg-raise:  #1e1e38;
  --line:      #33335c;
  --ink:       #e9e9f5;
  --ink-dim:   #9a9ac0;

  /* Sampled straight out of logo.png so the site and the logo can't drift:
     wordmark cyan, pirate's eyes, coat, belt & parrot beak, parrot wing,
     beard, bandana. */
  --cyan:      #12d4f6;   /* the wordmark — primary accent */
  --cyan-deep: #00b3e6;   /* his eyes; hover/pressed states */
  --crimson:   #a32f4c;   /* coat */
  --gold:      #fec361;   /* belt buckle, parrot beak */
  --teal:      #03b192;   /* parrot's wing */
  --orange:    #f3a262;   /* hair and beard */
  --red:       #dd324e;   /* bandana */

  --accent:    var(--cyan);

  --sidebar-w: 250px;
  --gutter:    clamp(1.25rem, 4vw, 3rem);

  --font-pixel: "Press Start 2P", "Courier New", ui-monospace, monospace;
  --font-body:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
                "Helvetica Neue", Arial, sans-serif;

  --shadow-hard: 4px 4px 0 rgba(0, 0, 0, 0.55);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  /* Subtle CRT-ish grid, no image files needed */
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px;
}

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

/* --- Pixel-ish typography ------------------------------------------------ */
.pixel {
  font-family: var(--font-pixel);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* --- Skip link ----------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #0d0d18;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

:focus-visible {
  /* Gold, not the accent — so the ring stays visible on cyan buttons. */
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ===========================================================================
   Sidebar
   ======================================================================== */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 1.75rem 1.25rem;
  overflow-y: auto;
  background: var(--bg-panel);
  border-right: 3px solid var(--line);
  z-index: 50;
}

.brand { display: block; text-decoration: none; }

/* The real logo lockup. Pixel art, so never smooth it. */
.brand__logo {
  display: block;
  width: 100%;
  max-width: 175px;
  height: auto;
  image-rendering: pixelated;
}

/* Fallback mark, used only if config has no logo set. */
.brand__mark {
  display: grid;
  grid-template-columns: repeat(3, 10px);
  gap: 3px;
  margin-bottom: 0.9rem;
}
.brand__mark i { display: block; width: 10px; height: 10px; background: var(--line); }
.brand__mark i:nth-child(1),
.brand__mark i:nth-child(5),
.brand__mark i:nth-child(9) { background: var(--cyan); }
.brand__mark i:nth-child(2) { background: var(--teal); }
.brand__mark i:nth-child(3) { background: var(--crimson); }
.brand__mark i:nth-child(7) { background: var(--gold); }

.brand__name {
  display: block;
  font-size: 0.85rem;
  color: var(--ink);
}
.brand__name span { color: var(--accent); }
.brand__tag {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-dim);
}

/* Nav ---------------------------------------------------------------------*/
.nav__label,
.social__label {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.85rem;
}

.nav__list { display: flex; flex-direction: column; gap: 0.35rem; }

.nav__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.75rem;
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-dim);
  border-left: 4px solid transparent;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}
.nav__link::before {
  content: "\25B8";              /* ▸ */
  opacity: 0;
  color: var(--accent);
  transition: opacity 0.12s, transform 0.12s;
  transform: translateX(-3px);
}
.nav__link:hover,
.nav__link:focus-visible {
  color: var(--ink);
  background: var(--bg-raise);
  border-left-color: var(--line);
}
.nav__link:hover::before { opacity: 1; transform: translateX(0); }

.nav__link[aria-current="page"] {
  color: var(--accent);
  background: var(--bg-raise);
  border-left-color: var(--accent);
}
.nav__link[aria-current="page"]::before { opacity: 1; transform: translateX(0); }

/* Press Start 2P has no arrow glyph, so this one span opts out of it. */
.nav__ext {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 1.1em;
  line-height: 1;
  color: var(--ink-dim);
}

/* Social ------------------------------------------------------------------*/
.social { margin-top: auto; }
.social__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.social__link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink-dim);
  background: var(--bg-raise);
  border: 2px solid var(--line);
  transition: color 0.12s, border-color 0.12s, transform 0.12s;
}
.social__link:hover,
.social__link:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.social__link svg { width: 20px; height: 20px; fill: currentColor; }

.sidebar__foot {
  font-size: 0.72rem;
  color: var(--ink-dim);
  border-top: 2px solid var(--line);
  padding-top: 1rem;
}

/* Mobile bar --------------------------------------------------------------*/
.mobile-bar { display: none; }

/* ===========================================================================
   Content shell
   ======================================================================== */
.shell {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter);
  margin: 0 auto;
}

.page__head { margin-bottom: 2.5rem; }
.page__title {
  font-family: var(--font-pixel);
  font-size: clamp(1.1rem, 3.2vw, 1.7rem);
  text-transform: uppercase;
  line-height: 1.4;
}
.page__title span { color: var(--accent); }
.page__sub {
  margin-top: 1rem;
  max-width: 62ch;
  color: var(--ink-dim);
}

/* Section heading ---------------------------------------------------------*/
.section { margin-top: 3.5rem; }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--line);
}
.section__title {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  text-transform: uppercase;
}
.section__title::before { content: "// "; color: var(--accent); }

/* Panels ------------------------------------------------------------------*/
.panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--bg-panel);
  border: 3px solid var(--line);
  box-shadow: var(--shadow-hard);
}

/* Buttons -----------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  text-transform: uppercase;
  text-decoration: none;
  color: #0d0d18;
  background: var(--accent);
  border: 3px solid #0d0d18;
  box-shadow: 4px 4px 0 var(--line);
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn:hover, .btn:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--line);
}
.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
}
.btn--ghost:hover { color: var(--accent); border-color: var(--accent); }
.btn--shop { background: var(--gold); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }

/* ===========================================================================
   Home — hero + about
   ======================================================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.hero__eyebrow {
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.hero__title {
  font-family: var(--font-pixel);
  font-size: clamp(1.3rem, 5vw, 2.4rem);
  line-height: 1.35;
  text-transform: uppercase;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}
.hero__text { margin-top: 1.35rem; max-width: 56ch; color: var(--ink-dim); font-size: 1.05rem; }

/* Transparent pixel art — no frame, just a hard pixel shadow behind it. */
.hero__art {
  width: clamp(170px, 24vw, 280px);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(8px 8px 0 rgba(0, 0, 0, 0.45));
}

.about__body { display: grid; gap: 1.15rem; max-width: 68ch; }
.about__body p { color: var(--ink-dim); }
.about__body p:first-child { color: var(--ink); font-size: 1.08rem; }

.about__more { display: grid; gap: 1.15rem; }
.about__toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  text-transform: uppercase;
  color: var(--accent);
  border: 2px solid var(--line);
}
.about__toggle:hover { border-color: var(--accent); }

/* Stat strip --------------------------------------------------------------*/
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.stat {
  padding: 1.1rem;
  text-align: center;
  background: var(--bg-raise);
  border: 2px solid var(--line);
}
.stat__num {
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--accent);
}
.stat__label {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ===========================================================================
   Video grid
   ======================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--bg-panel);
  border: 3px solid var(--line);
  transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.video-card:hover,
.video-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 6px 0 rgba(0,0,0,0.45);
}

.video-card__thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-raise);
  border-bottom: 3px solid var(--line);
}
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card:hover .video-card__thumb::after {
  content: "\25B6";                        /* ▶ */
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--accent);
  background: rgba(13, 13, 24, 0.55);
}

.video-card__body { padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.video-card__title {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card__meta {
  display: block;
  margin-top: auto;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* Toolbar (search / count) ------------------------------------------------*/
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.search {
  flex: 1 1 240px;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  background: var(--bg-panel);
  border: 3px solid var(--line);
}
.search:focus-within { border-color: var(--accent); }
.search input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: none;
  border: 0;
  outline: none;
}
.search input::placeholder { color: var(--ink-dim); }
.count {
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}

/* States ------------------------------------------------------------------*/
.state {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--ink-dim);
  background: var(--bg-panel);
  border: 3px dashed var(--line);
}
.state__title {
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.state code {
  padding: 0.15em 0.4em;
  font-size: 0.9em;
  color: var(--gold);
  background: var(--bg-raise);
  border: 1px solid var(--line);
}
.state--error .state__title { color: var(--red); }

.skeleton {
  background: var(--bg-panel);
  border: 3px solid var(--line);
}
.skeleton__thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, var(--bg-raise) 25%, var(--line) 50%, var(--bg-raise) 75%);
  background-size: 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton__line {
  height: 12px;
  margin: 1rem;
  background: var(--bg-raise);
}
.skeleton__line--short { width: 55%; }
@keyframes shimmer { to { background-position: -300% 0; } }

.embed-fallback {
  aspect-ratio: 16 / 9;
  border: 3px solid var(--line);
  background: #000;
}
.embed-fallback iframe { width: 100%; height: 100%; border: 0; }

.load-more { display: grid; place-items: center; margin-top: 2.5rem; }

/* ===========================================================================
   Articles
   ======================================================================== */
.article-list { display: grid; gap: 1.25rem; }

.article-card {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 1.35rem;
  padding: 1.35rem;
  text-decoration: none;
  background: var(--bg-panel);
  border: 3px solid var(--line);
  transition: border-color 0.12s, transform 0.12s;
}
.article-card:hover,
.article-card:focus-visible { border-color: var(--accent); transform: translateX(4px); }

.article-card__date {
  display: grid;
  place-content: center;
  text-align: center;
  padding: 0.6rem;
  background: var(--bg-raise);
  border: 2px solid var(--line);
  align-self: start;
}
.article-card__day {
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--accent);
}
.article-card__mon {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.article-card__title { display: block; font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
.article-card__excerpt { display: block; margin-top: 0.55rem; color: var(--ink-dim); font-size: 0.95rem; }
.article-card__tags { margin-top: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag {
  padding: 0.25rem 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--line);
}

/* Article body ------------------------------------------------------------*/
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.35rem; }
.prose h2 {
  margin-top: 2.75rem;
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--accent);
}
.prose h3 { margin-top: 2rem; font-size: 1.1rem; }
.prose p { color: var(--ink-dim); }
.prose a { color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul { list-style: none; display: grid; gap: 0.7rem; }
.prose ul li { position: relative; padding-left: 1.5rem; color: var(--ink-dim); }
.prose ul li::before { content: "\25AA"; position: absolute; left: 0; color: var(--accent); }
.prose blockquote {
  padding: 1rem 1.25rem;
  color: var(--ink);
  background: var(--bg-panel);
  border-left: 4px solid var(--accent);
}
.prose code {
  padding: 0.15em 0.4em;
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  color: var(--gold);
  background: var(--bg-panel);
  border: 1px solid var(--line);
}
.prose pre {
  padding: 1.1rem;
  overflow-x: auto;
  color: var(--ink);
  background: var(--bg-panel);
  border: 2px solid var(--line);
}
.prose pre code { padding: 0; border: 0; background: none; color: inherit; }
.prose figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--ink-dim);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-dim);
}
.back-link:hover { color: var(--accent); }

/* ===========================================================================
   Verdict — The Bit Between review score, rated in parrots (0–5, half steps)
   Markup is only:  <aside class="verdict" data-score="3.5"><p>…</p></aside>
   site.js builds the parrot row and the numeric score from data-score.
   ======================================================================== */
.verdict {
  --parrot-size: 2.4rem;
  display: grid;
  gap: 1.1rem;
  margin-top: 3rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--bg-panel);
  border: 3px solid var(--teal);
  box-shadow: var(--shadow-hard);
}
.verdict__label {
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.verdict__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}
.verdict__parrots { display: flex; gap: 0.35rem; }

/* Each parrot is a dimmed base with a clipped full-colour copy on top, so a
   half score needs no second piece of artwork. */
.parrot {
  position: relative;
  width: var(--parrot-size);
  height: var(--parrot-size);
  flex: none;
}
.parrot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/parrot.png") center / contain no-repeat;
  filter: grayscale(1) brightness(0.45);
}
.parrot > i {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  overflow: hidden;
}
.parrot > i::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: var(--parrot-size);
  height: 100%;
  background: url("../img/parrot.png") center / contain no-repeat;
}

.verdict__value {
  font-family: var(--font-pixel);
  font-size: 1.05rem;
  color: var(--ink);
}
.verdict__value span { color: var(--teal); }
.verdict__text { color: var(--ink-dim); max-width: 62ch; }

/* Compact score, shown on the article cards in the list */
.verdict-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem 0.25rem 0.35rem;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--teal);
  border: 1px solid var(--teal);
}
.verdict-mini img { width: 16px; height: 16px; image-rendering: pixelated; }

/* Series badge, e.g. "The Bit Between" */
.series-badge {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
}

/* ===========================================================================
   Shop callout + footer
   ======================================================================== */
.callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.75rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--bg-panel);
  border: 3px solid var(--gold);
  box-shadow: var(--shadow-hard);
}
.callout__title {
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--gold);
}
.callout__text { margin-top: 0.9rem; color: var(--ink-dim); max-width: 52ch; }

.site-foot {
  padding: 2rem var(--gutter);
  border-top: 3px solid var(--line);
  color: var(--ink-dim);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.site-foot a { color: var(--ink-dim); }
.site-foot a:hover { color: var(--accent); }

/* ===========================================================================
   Responsive
   ======================================================================== */
@media (max-width: 900px) {
  .mobile-bar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.15rem;
    background: var(--bg-panel);
    border-bottom: 3px solid var(--line);
  }
  .mobile-bar__name { font-family: var(--font-pixel); font-size: 0.68rem; text-transform: uppercase; }
  .mobile-bar__name span { color: var(--accent); }
  .mobile-bar__logo { display: block; height: 22px; width: auto; image-rendering: pixelated; }

  .menu-toggle {
    display: grid;
    gap: 4px;
    padding: 0.55rem;
    border: 2px solid var(--line);
  }
  .menu-toggle i { display: block; width: 20px; height: 3px; background: var(--ink); }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    width: min(300px, 84vw);
    /* The panel slides under the sticky top bar — clear its height. */
    padding-top: 5.5rem;
  }
  .sidebar .brand__mark { display: none; }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open { overflow: hidden; }

  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }
  body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }

  .shell { margin-left: 0; }

  .hero { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .hero__art { order: -1; }
  .callout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .article-card { grid-template-columns: minmax(0, 1fr); }
  .article-card__date {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    justify-self: start;
    padding: 0.4rem 0.7rem;
  }
  .article-card__mon { margin-top: 0; }
  .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print ------------------------------------------------------------------ */
@media print {
  .sidebar, .mobile-bar, .nav-scrim, .site-foot { display: none !important; }
  .shell { margin-left: 0; }
  body { background: #fff; color: #000; }
}
