/* =========================================================
   mane-solis: pixel sun & moon
   "Lumi" = illuminate, like both the sun and the moon, so both are
   always in the sky. Dark mode is the night sky, light mode is the
   day sky (sunrise/sunset in-betweens are planned). Pixel art is
   drawn by tools/make_*.py into assets/pixel/ and scaled up with
   image-rendering: pixelated. Pixel font for titles and labels,
   a readable font for paragraphs.
   ========================================================= */

:root {
  /* sunset palette (Lumi's pick) */
  --plum: #57385c;
  --rose: #a75265;
  --coral: #ec7263;
  --apricot: #febe7e;
  /* complementary palette */
  --aqua: #a6e4e7;
  --snow: #f9f9f9;
  --sand: #ebcbae;
  --taupe: #8f8787;
  /* derived: the palette has no dark, so the page sits on a deepened plum */
  --dusk: #1f1421;
  --mauve: #7e4560;       /* halfway between plum and rose, for the sky */
  --rose-light: #d98a99;  /* rose lifted so it reads as text on dark */

  /* older names kept so the rest of the file reads naturally */
  --violet: var(--plum);
  --gold: var(--apricot);

  --bg: #0f1f26;            /* night: the deep teal of the prints */
  --surface: #172b33;
  --surface-strong: #1d3640;
  --border: #050c10;
  --text: var(--snow);
  --text-dim: var(--sand);
  --text-muted: var(--taupe);
  --accent: var(--apricot);

  /* pixel look: no rounded corners anywhere */
  --radius-lg: 0;
  --radius-md: 0;
  --radius-sm: 0;
  --radius-pill: 0;

  --font-display: "Pixelify Sans", "JetBrains Mono", monospace;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* pixel outline + drop shadow for display headings */
  --sunset-shadow: 3px 0 0 var(--line), -3px 0 0 var(--line), 0 3px 0 var(--line), 0 -3px 0 var(--line), 6px 6px 0 var(--line);
  --sunset-shadow-sm: 2px 0 0 var(--line), -2px 0 0 var(--line), 0 2px 0 var(--line), 0 -2px 0 var(--line), 3px 3px 0 var(--line);

  /* colours from Lumi's sun & moon prints (INSPO/) */
  --night-teal: #0e2229;
  --deep-teal: #16323b;
  --ember: #c8642c;
  --star-gold: #f2c46d;
  --moon: #f6ecd6;

  /* pixel building blocks: one art pixel for borders and shadows */
  --px: 4px;
  --font-pixel: "Pixelify Sans", var(--font-mono);

  /* theme roles: dark (night) is the default, light (day) overrides these below */
  --cool: var(--aqua);
  --title: var(--moon);
  --block-title: var(--moon);
  --block-shadow: none;
  --line: #050c10;          /* pixel outlines */
  --bar: var(--plum);       /* window title bars */
  --bar-text: var(--moon);
  --nav-bg: #172b33;
  --dot: rgba(166, 228, 231, 0.06);
  --crown: var(--star-gold);
  --stars: 1;
  --sky-img: url("/assets/pixel/sky-night.png");
  --band-img: url("/assets/pixel/band-night.png");
  --hill-back-img: url("/assets/pixel/hill-back-night.png");
  --hill-front-img: url("/assets/pixel/hill-front-night.png");
  --hill-front: #1f1421;    /* matches hill-front-night.png, fills below the art */
  --silhouette: #2b1a30;
  --can: var(--aqua);
  --bloom-petal: var(--apricot);
  --bloom-centre: var(--rose);
  --bloom-glow: rgba(254, 190, 126, 0.9);}

/* light mode: the day sky. Same palette, parchment page, dark plum outlines */
:root[data-theme="light"] {
  --bg: #fbf1e1;
  --surface: #fffaf2;
  --surface-strong: #fffaf2;
  --border: #3a2540;
  --text: #3a2540;
  --text-dim: #735f73;
  --text-muted: #8f8787;
  --cool: #3f8e93;          /* aqua deepened so it reads on light */
  --title: #fffaf2;
  --block-title: var(--rose);
  --line: #3a2540;
  --bar: var(--apricot);
  --bar-text: #3a2540;
  --nav-bg: #fffaf2;
  --dot: rgba(87, 56, 92, 0.08);
  --crown: var(--coral);
  --stars: 0;
  --sky-img: url("/assets/pixel/sky-day.png");
  --band-img: url("/assets/pixel/band-day.png");
  --hill-back-img: url("/assets/pixel/hill-back-day.png");
  --hill-front-img: url("/assets/pixel/hill-front-day.png");
  --hill-front: #a75265;
  --silhouette: var(--plum);
  --can: #3f8e93;
  --bloom-petal: var(--snow);
  --bloom-centre: var(--coral);
  --bloom-glow: rgba(249, 249, 249, 0.95);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}
:root[data-theme="light"] {
  color-scheme: light;
}
html {
  overflow-x: clip; /* falling cats must not cause sideways scrolling */
}

/* pixel cursors (drawn by tools/make_cursors.py): a sunset arrow, and a flower
   for anything clickable. 32x32 (browsers can ignore other sizes). The numbers are the hotspot (the tip / the toes).
   Text boxes keep the normal text cursor. */
:root {
  --cursor-arrow: url("/assets/cursors/arrow.png?v=3") 2 2, auto;
  --cursor-flower: url("/assets/cursors/flower.png?v=4") 10 10, pointer;
}
/* sharper versions for high-resolution screens, where the browser supports it */
@supports (cursor: image-set(url("/assets/cursors/arrow.png?v=3") 1x) 2 2, auto) {
  :root {
    --cursor-arrow: image-set(url("/assets/cursors/arrow.png?v=3") 1x, url("/assets/cursors/arrow@2x.png?v=3") 2x) 2 2, auto;
    --cursor-flower: image-set(url("/assets/cursors/flower.png?v=4") 1x, url("/assets/cursors/flower@2x.png?v=4") 2x) 10 10, pointer;
  }
}
html {
  cursor: var(--cursor-arrow);
}
a[href],
button:not(:disabled),
summary,
select,
label.filter,
[role="button"] {
  cursor: var(--cursor-flower);
}
textarea,
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]) {
  cursor: text;
}

/* smooth crossfade between pages (Chrome/Edge/Safari; others just navigate normally) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* faint dot grid: the "techy" layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 18px 18px;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 20px 48px;
}

/* ---------- sky (every page) ---------- */
.sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: 210px;
  z-index: 0;
  pointer-events: none;
  background: var(--sky-band);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  opacity: 0.55;
}

/* ---------- nav ---------- */
#site-nav {
  position: relative;
  z-index: 2;
}
.nav-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--snow); /* same look as the big name on Home */
  text-shadow: var(--sunset-shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
.nav-links {
  margin-left: auto; /* stays right on Home, where there's no brand */
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  background: var(--nav-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  backdrop-filter: blur(8px);
}
.nav-link {
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(254, 190, 126, 0.12);
}
.nav-link.active {
  background: linear-gradient(135deg, var(--apricot), var(--coral));
  color: var(--dusk);
  font-weight: 700;
}
.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: 2px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
  cursor: var(--cursor-flower);
}
.theme-toggle:hover {
  color: var(--title);
  background: rgba(254, 190, 126, 0.15);
}

/* ---------- display headings ---------- */
.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  line-height: 1.1;
  color: var(--snow);
  text-shadow: var(--sunset-shadow);
  margin: 40px 0 6px;
}
.page-lede {
  color: var(--text-dim);
  margin: 0 0 24px;
  max-width: 60ch;
}
.block-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--block-title);
  text-shadow: var(--block-shadow);
  margin: 0 0 12px;
}

/* small "work in progress" tag next to a heading */
.wip-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: none;
  color: var(--dusk);
  background: linear-gradient(135deg, var(--apricot), var(--coral));
}

/* Oshikatsu Diaries photo grid on the kamioshi pages */
.diary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.diary-grid:empty {
  display: none;
}
.diary-grid figure {
  margin: 0;
}
.diary-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}
.diary-grid figcaption {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ---------- shared surface ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(6px);
}

/* =========================================================
   HOME
   ========================================================= */

/* the big sunset: full-bleed hero */
.hero {
  position: relative;
  z-index: 1;
  height: clamp(300px, 46vw, 420px);
  margin-top: -64px; /* run up behind the nav */
  overflow: hidden;
  background: var(--sky-hero);
}
.hero-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 46%;
  color: var(--bg);
}
.hero-horizon.front {
  z-index: 3; /* in front of the flowers (z 2), behind the can and cat */
}
.hero-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(880px, 100%);
  padding: 0 20px;
  top: 26%;
}
.hero-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 0.9;
  margin: 0;
  color: var(--snow);
  text-shadow: 2px 2px 0 var(--coral), 4px 4px 0 var(--rose), 6px 6px 0 var(--violet), 8px 8px 0 var(--plum);
}

/* ---------- profile ---------- */
.profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  margin-top: -20px;
}
.profile-photo {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(254, 190, 126, 0.12), 0 10px 30px rgba(167, 82, 101, 0.35);
}
.profile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.profile-pills li {
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(254, 190, 126, 0.08);
}
/* ---------- about / long intro ---------- */
.about {
  margin-top: 36px;
}
.about p {
  max-width: 68ch;
  line-height: 1.75;
  margin: 0 0 1em;
}
.about p:last-child {
  margin-bottom: 0;
}
/* collapsible: the short line shows when closed, the full intro when open */
.about summary {
  list-style: none;
  cursor: var(--cursor-flower);
}
.about summary::-webkit-details-marker {
  display: none;
}
.about-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.about-toggle {
  font-size: 0.8rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.about summary:hover .about-toggle {
  color: var(--cool);
}
.about .when-open,
.about details[open] .when-closed,
.about details[open] .about-short {
  display: none;
}
.about details[open] .when-open {
  display: inline;
}
.about p.about-short {
  margin: 0;
}
.about a {
  color: var(--cool);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.about a:hover {
  text-decoration-thickness: 2px;
}
.about p:last-child {
  margin-bottom: 0;
}
.placeholder-text {
  color: var(--text-dim);
  font-style: italic;
}

/* ---------- likes / dni ---------- */
.facts {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  --c: var(--apricot);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 12%, transparent);
}
.chips li:nth-child(5n + 2) { --c: var(--coral); }
.chips li:nth-child(5n + 3) { --c: var(--aqua); }
.chips li:nth-child(5n + 4) { --c: var(--sand); }
.chips li:nth-child(5n + 5) { --c: var(--rose-light); }
/* on light backgrounds the pale palette colours need deepening to read as text */
:root[data-theme="light"] .chips li {
  color: color-mix(in srgb, var(--c) 35%, var(--plum));
  border-color: color-mix(in srgb, var(--c) 70%, transparent);
  background: color-mix(in srgb, var(--c) 28%, transparent);
}
.dni {
  border-color: rgba(236, 114, 99, 0.5);
}
.dni p {
  margin: 0;
}

/* ---------- socials ---------- */
.socials-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.home-socials {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.home-socials a.more {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
}
.home-socials a.more:hover {
  color: var(--cool);
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(167, 82, 101, 0.25), rgba(254, 190, 126, 0.18));
  color: var(--text);
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(254, 190, 126, 0.25);
}
:root[data-theme="light"] .social-btn {
  /* the icons are white, so give them a solid sunset backing */
  background: linear-gradient(135deg, var(--plum), var(--rose));
  color: var(--snow);
  border-color: transparent;
}
.social-btn.compact {
  padding: 10px 12px;
}
.social-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

/* =========================================================
   VTUBERS / FAVES
   ========================================================= */
.portrait-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.portrait-card {
  margin: 0;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
}
.portrait-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}
/* box art / posters / manga covers keep a taller shape */
.portrait-card.cover img {
  aspect-ratio: 3 / 4;
}
.portrait-card figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text);
}
.portrait-card .tag {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
}
.portrait-card.is-link {
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.portrait-card.is-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(254, 190, 126, 0.22);
}
.portrait-card.is-link:hover figcaption {
  color: var(--block-title); /* --title is near-white by day, which vanished on the white card */
}
.portrait-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--title);
  background: radial-gradient(circle at 30% 30%, rgba(254, 190, 126, 0.14), rgba(31, 20, 33, 0.5));
}
.crown {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--crown);
  font-size: 1.4rem;
  line-height: 1;
  text-shadow: 0 0 10px rgba(254, 190, 126, 0.7);
}

/* filter dropdown above the VTubers / Faves lists */
.list-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0 18px;
}
.list-tools .filter {
  margin: 0;
}
.collapse-all {
  font: inherit;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  cursor: var(--cursor-flower);
}
.collapse-all:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--apricot) 60%, transparent);
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.filter select {
  appearance: none;
  font: inherit;
  color: var(--text);
  background-color: var(--surface);
  /* a little chevron, drawn in the current text colour */
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 16px center, right 11px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 34px 6px 14px;
  cursor: var(--cursor-flower);
}
.filter select:hover {
  border-color: color-mix(in srgb, var(--apricot) 60%, transparent);
}
.filter select option {
  background: var(--bg);
  color: var(--text);
}
.portrait-card[hidden],
.oshi-section[hidden] {
  display: none;
}

/* collapsible agency sections; each one takes a sunset stop */
.oshi-section {
  --c: var(--gold);
  margin-top: 18px;
}
.oshi-section:nth-of-type(6n + 2) { --c: var(--coral); }
.oshi-section:nth-of-type(6n + 3) { --c: var(--rose-light); }
.oshi-section:nth-of-type(6n + 4) { --c: var(--aqua); }
.oshi-section:nth-of-type(6n + 5) { --c: var(--sand); }
.oshi-section:nth-of-type(6n + 6) { --c: var(--snow); }
.oshi-section > summary {
  list-style: none;
  cursor: var(--cursor-flower);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent), var(--surface) 70%);
  user-select: none;
}
.oshi-section > summary::-webkit-details-marker {
  display: none;
}
.oshi-section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--c);
  text-shadow: 1px 1px 0 var(--dusk);
}
:root[data-theme="light"] .oshi-section-title,
:root[data-theme="light"] .oshi-section-chevron {
  color: color-mix(in srgb, var(--c) 35%, var(--plum));
  text-shadow: none;
}
:root[data-theme="light"] .oshi-section > summary {
  border-color: color-mix(in srgb, var(--c) 75%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 40%, transparent), var(--surface) 70%);
}
.oshi-section-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 1px 8px;
}
.oshi-section-chevron {
  margin-left: auto;
  color: var(--c);
  transition: transform 0.2s ease;
}
.oshi-section:not([open]) .oshi-section-chevron {
  transform: rotate(-90deg);
}
.oshi-section > .portrait-grid {
  margin-top: 22px;
  padding: 0 4px;
}
.oshi-section .portrait-card {
  border-color: color-mix(in srgb, var(--c) 30%, transparent);
}
.section-note {
  margin: 28px 0 0;
  color: var(--title);
  font-weight: 700;
}

/* ---------- kamioshi pages ---------- */
.back-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.back-link:hover {
  color: var(--cool);
}
.kamioshi-hero {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0 24px;
}
.kamioshi-photo {
  width: 180px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(254, 190, 126, 0.12), 0 10px 30px rgba(167, 82, 101, 0.35);
}
.kamioshi-kicker {
  font-size: 0.85rem;
  color: var(--cool);
}
.kamioshi-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.1;
  color: var(--snow);
  text-shadow: var(--sunset-shadow);
  margin: 4px 0 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.kamioshi-name .crown {
  position: static;
  transform: none;
  font-size: 1.6rem;
  text-shadow: 0 0 10px rgba(254, 190, 126, 0.7);
}
.kamioshi-meta {
  color: var(--text-dim);
  margin: 0;
}
.kamioshi-section {
  margin-top: 18px;
}
.kamioshi-section p {
  line-height: 1.75;
  max-width: 68ch;
  margin: 0 0 1em;
}
.kamioshi-section p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   CAT EASTER EGGS (see assets/js/cats.js)
   ========================================================= */
.peek-cat {
  position: fixed;
  left: 24px;
  bottom: 0;
  width: 92px;
  z-index: 50;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.6, 1);
  pointer-events: none;
}

.cat-rain {
  position: fixed;
  top: -40px;
  z-index: 60;
  font-size: 1.6rem;
  pointer-events: none;
  animation: cat-fall linear forwards;
}
@keyframes cat-fall {
  to { transform: translateY(110vh) rotate(var(--spin, 360deg)); }
}

.cat-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 70;
  background: var(--surface-strong);
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   WATER THE FLOWERS (see assets/js/garden.js)
   ========================================================= */
.flowers {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.flower {
  position: absolute;
  bottom: 2%; /* the stem bottoms hide behind the front hill */
  width: var(--w, 34px);
  height: var(--h, 120px);
  color: var(--silhouette);
  transform-origin: bottom center;
  transition: scale 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.flower svg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: block;
  width: 100%;
  overflow: visible;
}
/* stem + leaf, drawn in CSS so each flower can have its own height */
.flower::before {
  content: "";
  position: absolute;
  left: calc(50% - 1.5px);
  width: 3px;
  top: calc(var(--w) * 0.5);
  bottom: 0;
  background: currentColor;
}
.flower::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--w) * 1.25); /* a fixed distance under the head, so it stays above the hill */
  width: calc(var(--w) * 0.45);
  height: calc(var(--w) * 0.22);
  border-radius: 0 100% 0 100%;
  background: currentColor;
}
.flower .petals {
  fill: none;
  stroke: currentColor;
  stroke-width: 8;
  stroke-dasharray: 4 3.2;
}
.flower .centre {
  fill: currentColor;
}
.flower .petals,
.flower .centre,
.flower svg {
  transition: stroke 0.5s ease, fill 0.5s ease, filter 0.5s ease;
}
.flower.watered {
  scale: 1.35;
}
.flower.watered .petals {
  stroke: var(--bloom-petal);
}
.flower.watered .centre {
  fill: var(--bloom-centre);
}
.flower.watered svg {
  filter: drop-shadow(0 0 6px var(--bloom-glow));
}

.watering-can {
  position: absolute;
  right: 3%;
  bottom: 9%;
  width: clamp(40px, 4.5vw, 54px);
  padding: 0;
  border: 0;
  background: none;
  color: var(--can);
  cursor: var(--cursor-flower);
  z-index: 4;
  transition: transform 0.2s ease;
}
.watering-can:hover {
  transform: rotate(-8deg);
}
.watering-can img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
}
/* held: fixed to the pointer and tipped forward, spout over the cursor */
.watering-can.held {
  position: fixed;
  right: auto;
  bottom: auto;
  z-index: 80;
  pointer-events: none;
  transform: translate(-53px, -55px) rotate(35deg);
  transition: none;
}
body.holding-can,
body.holding-can * {
  cursor: none !important;
}
body.holding-can .hero {
  touch-action: none; /* let a finger drag the can instead of scrolling */
}
.drop {
  position: fixed;
  z-index: 79;
  width: 4px;
  height: 7px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--can);
  pointer-events: none;
  animation: drop-fall 0.45s ease-in forwards;
}
@keyframes drop-fall {
  to { transform: translate(var(--dx, 0), var(--dy, 40px)); opacity: 0; }
}
.sparkle {
  position: absolute;
  z-index: 4;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  animation: sparkle 0.9s ease-out forwards;
}
@keyframes sparkle {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(1.1) rotate(90deg); opacity: 0; }
}
.cat-says {
  position: absolute;
  z-index: 5;
  padding: 5px 11px;
  border-radius: 12px;
  background: var(--snow);
  color: var(--dusk);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--rose);
  pointer-events: none;
  transform: translate(-50%, -100%);
  animation: says-pop 0.18s ease-out;
}
@keyframes says-pop {
  from { transform: translate(-50%, -100%) scale(0.6); opacity: 0; }
}
.water-count {
  position: absolute;
  right: 20px;
  bottom: 4px;
  margin: 0;
  z-index: 3;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.water-count[hidden] {
  display: none;
}

/* =========================================================
   ASK (anonymous Q&A) + INBOX
   ========================================================= */
.ask-box {
  margin-top: 8px;
}
.ask-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--block-title);
  text-shadow: var(--block-shadow);
  margin-bottom: 10px;
}
.ask-box textarea,
.ask-box input,
.qa-item textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  resize: vertical;
}
.ask-box textarea:focus,
.ask-box input:focus,
.qa-item textarea:focus {
  outline: 2px solid var(--cool);
  outline-offset: 1px;
}
.ask-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}
.ask-row .ask-note {
  margin-right: auto;
}
.ask-note {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.ask-send {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 7px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--apricot), var(--coral));
  color: var(--dusk);
  cursor: var(--cursor-flower);
}
.ask-send:disabled {
  opacity: 0.6;
  cursor: wait;
}
.ask-send.post-x {
  background: linear-gradient(135deg, var(--plum), var(--rose));
  color: var(--snow);
}
.ask-turnstile {
  margin-top: 10px;
}
.ask-turnstile:empty {
  display: none;
}
.ask-status {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--cool);
}
.ask-status:empty {
  display: none;
}
.qa-heading {
  margin-top: 36px;
}
.qa-list {
  display: grid;
  gap: 14px;
}
.qa-label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.qa-question {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-left: 3px solid var(--coral);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: color-mix(in srgb, var(--coral) 10%, transparent);
}
#inbox-list .qa-question {
  white-space: pre-line; /* raw text in the inbox, so keep its line breaks */
}
.qa-question p,
.qa-answer p {
  margin: 0 0 0.8em;
  line-height: 1.7;
  max-width: 68ch;
}
.qa-question p:last-child,
.qa-answer p:last-child {
  margin-bottom: 0;
}
.qa-date {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.qa-date a:hover {
  color: var(--cool);
}
.qa-single {
  margin-top: 16px;
}
.qa-item.unanswered {
  border-color: color-mix(in srgb, var(--apricot) 60%, transparent);
}
.qa-item textarea {
  margin-top: 4px;
}
.inbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 14px;
}
.inbox-link {
  font: inherit;
  font-size: 0.82rem;
  color: var(--text-dim);
  background: none;
  border: 0;
  padding: 4px 6px;
  cursor: var(--cursor-flower);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inbox-link:hover {
  color: var(--cool);
}
.inbox-link.danger:hover {
  color: var(--coral);
}

/* ---------- 404 ---------- */
.lost {
  text-align: center;
  padding-top: 40px;
}
.lost svg {
  width: 160px;
  color: var(--apricot);
}
.lost .page-title {
  margin-top: 12px;
}
.lost a {
  color: var(--cool);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- responsive / motion ---------- */
@media (max-width: 640px) {
  .facts {
    grid-template-columns: 1fr;
  }
  .nav-inner {
    justify-content: center;
  }
  .nav-links {
    margin-left: 0;
  }
  .nav-links {
    flex-wrap: nowrap;
  }
  .nav-link {
    padding: 6px 11px;
    font-size: 0.82rem;
  }
  .hero {
    height: 400px;
    margin-top: -100px; /* brand and links stack on two rows here */
  }
  .hero-text {
    top: 26%;
  }
  body[data-page="home"] .hero {
    margin-top: -64px; /* no brand row on Home, so the nav is one row */
    height: 340px; /* shorter = the scene scales smaller, so the sun AND moon fit on a phone */
  }
  .flower {
    --w: 21px; /* 7 art pixels x 3 */
    bottom: 2%;
    height: calc(var(--h) * 0.72);
  }
  .watering-can {
    right: 2%;
    bottom: 5%;
  }
  .kamioshi-name {
    justify-content: flex-start;
  }
}

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

/* =========================================================
   PIXEL LAYER
   Hard 4px outlines (--px), square corners, window title bars,
   the pixel font on titles and labels. Overrides the shapes above.
   ========================================================= */
:root {
  /* a 1-art-pixel outline drawn with hard shadows (no rounding, no blur) */
  --pixel-outline: 0 calc(-1 * var(--px)) 0 var(--line), 0 var(--px) 0 var(--line),
    calc(-1 * var(--px)) 0 0 var(--line), var(--px) 0 0 var(--line);
  --pixel-outline-sm: 0 -2px 0 var(--line), 0 2px 0 var(--line), -2px 0 0 var(--line), 2px 0 0 var(--line);
  --pixel-drop: calc(2 * var(--px)) calc(3 * var(--px)) 0 color-mix(in srgb, var(--line) 35%, transparent);
}
img.px,
.px-art {
  image-rendering: pixelated;
}
:focus-visible {
  outline: 3px solid var(--cool);
  outline-offset: 4px;
  border-radius: 0;
}

/* ---------- windows (cards) ---------- */
.card,
.portrait-card,
.social-btn,
.oshi-section > summary,
.ask-box textarea,
.ask-box input,
.qa-item textarea {
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
}
.card {
  background: var(--surface);
  box-shadow: var(--pixel-outline), var(--pixel-drop);
  margin-left: var(--px);
  margin-right: var(--px);
}
/* the first heading of a window becomes its title bar */
.card > .block-title:first-child,
.card .about-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -24px -24px 18px;
  padding: 7px 14px;
  background: var(--bar);
  color: var(--bar-text);
  border-bottom: var(--px) solid var(--line);
  font-size: 1.05rem;
  text-shadow: none;
}
.card > .block-title:first-child::before,
.card .about-head .block-title::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: var(--bar-icon, url("/assets/pixel/icon-star.png")) center / 16px no-repeat;
  image-rendering: pixelated;
}
/* two little window buttons on the right */
.card > .block-title:first-child::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 26px;
  height: 10px;
  background: linear-gradient(90deg, currentColor 0 10px, transparent 10px 16px, currentColor 16px) center / 26px 10px no-repeat;
  opacity: 0.45;
}
.card .about-head .block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.05rem;
  color: inherit;
  text-shadow: none;
}
.card .about-head .about-toggle {
  color: inherit;
  opacity: 0.8;
  font-family: var(--font-pixel);
}
.about { --bar-icon: url("/assets/pixel/icon-moon.png"); }
.dni { --bar-icon: url("/assets/pixel/icon-sun.png"); }
.kamioshi-section:nth-of-type(odd) { --bar-icon: url("/assets/pixel/icon-sun.png"); }
.kamioshi-section:nth-of-type(even) { --bar-icon: url("/assets/pixel/icon-moon.png"); }

/* headings outside windows: pixel font with a pixel outline */
.block-title,
.page-title,
.kamioshi-name,
.hero-name,
.nav-brand,
.ask-label,
.oshi-section-title {
  font-family: var(--font-pixel);
  font-weight: 700;
}
.page-title,
.kamioshi-name {
  color: var(--title);
  text-shadow: var(--sunset-shadow);
  letter-spacing: 1px;
}
.block-title {
  color: var(--block-title);
  text-shadow: none;
}
.nav-brand {
  color: var(--title);
  text-shadow: var(--sunset-shadow-sm);
  font-size: 1.5rem;
}
.ask-label {
  text-shadow: none;
}

/* ---------- nav ---------- */
.nav-links {
  background: var(--nav-bg);
  box-shadow: var(--pixel-outline);
  border: 0;
  padding: 4px;
  backdrop-filter: none;
}
.nav-link {
  font-family: var(--font-pixel);
  font-size: 1rem;
  padding: 5px 14px;
}
.nav-link:hover {
  background: color-mix(in srgb, var(--apricot) 25%, transparent);
}
.nav-link.active {
  background: var(--coral);
  color: #2b1f2e;
  font-weight: 600;
  box-shadow: inset 0 calc(-1 * var(--px)) 0 rgba(0, 0, 0, 0.2);
}
:root[data-theme="dark"] .nav-link.active,
:root:not([data-theme]) .nav-link.active {
  background: var(--apricot);
}
.theme-toggle {
  border-radius: 0;
}
.theme-toggle:hover {
  background: color-mix(in srgb, var(--apricot) 25%, transparent);
}
.theme-toggle img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  display: block;
}
/* shows the sky you're in: moon at night, sun by day */
.theme-toggle .icon-sun,
:root[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}
:root[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

/* ---------- thin sky band on inner pages ---------- */
.sky {
  background: var(--band-img) center 35% / cover no-repeat;
  image-rendering: pixelated;
  opacity: 0.5;
}

/* ---------- home hero ---------- */
/* the scene is scaled by the hero's height, not its width, so the hills and flowers keep
   their size on every screen; the art is 960 px wide so ultrawide monitors are covered */
.hero {
  background: var(--hill-front) var(--sky-img) center bottom / auto 100% no-repeat;
  image-rendering: pixelated;
}
.hero-horizon {
  height: 100%;
  bottom: 0;
  color: inherit;
  background: var(--hill-back-img) center bottom / auto 100% repeat-x;
  image-rendering: pixelated;
  pointer-events: none;
}
.hero-horizon.front {
  background-image: var(--hill-front-img);
}
.hero-name {
  font-size: clamp(3.4rem, 11vw, 6rem);
  letter-spacing: 3px;
  color: var(--title);
  text-shadow: 4px 0 0 var(--line), -4px 0 0 var(--line), 0 4px 0 var(--line), 0 -4px 0 var(--line), 8px 8px 0 var(--line);
}
.hero-text {
  text-align: center;
  top: 22%;
}
/* Lumi herself, standing on the hill */
.hero-lumi {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 4%;
  width: 72px;  /* 2x the 36x48 sprite */
  height: 96px;
  transform: translateX(-50%);
  pointer-events: none;
}
@media (min-width: 700px) {
  .hero-lumi { width: 108px; height: 144px; } /* 3x */
}
.hero-lumi img,
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
/* blink: the closed-eye frame shows briefly every few seconds */
.blink {
  opacity: 0;
  animation: blink 4.2s steps(1) infinite;
}
@keyframes blink {
  0%, 93% { opacity: 0; }
  94%, 97% { opacity: 1; }
  98%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .blink { animation: none; }
}

/* ---------- pixel flowers (garden.js) ---------- */
.flower {
  --w: 28px; /* 7 art pixels x 4 */
}
.flower svg {
  shape-rendering: crispEdges;
}
.flower::before {
  left: calc(50% - 2px);
  width: 4px;
}
.flower::after {
  width: 12px;
  height: 4px;
  border-radius: 0;
  box-shadow: 4px -4px 0 currentColor;
}
.flower .petals {
  fill: currentColor;
  stroke: none;
}
.flower.watered .petals {
  fill: var(--bloom-petal);
  stroke: none;
}
.flower.watered svg {
  filter: drop-shadow(0 0 0 var(--bloom-glow)) drop-shadow(0 0 4px var(--bloom-glow));
}

/* ---------- watering can: the pixel one ---------- */
.watering-can {
  width: 52px; /* 2x the 26x20 sprite */
  bottom: 7%;
  --hold: translate(-57px, -52px);
}
@media (min-width: 700px) {
  .watering-can { width: 78px; --hold: translate(-84px, -62px); } /* 3x */
}
.watering-can img {
  image-rendering: pixelated;
}
.watering-can.held {
  transform: var(--hold) rotate(35deg);
}
.drop {
  border-radius: 0;
  width: 4px;
  height: 8px;
}
.water-count {
  bottom: calc(7% + 50px);
  right: 12px;
  z-index: 4;
  font-family: var(--font-pixel);
  color: var(--snow);
  text-shadow: 2px 0 0 var(--line), -2px 0 0 var(--line), 0 2px 0 var(--line), 0 -2px 0 var(--line);
}
.cat-says,
.cat-toast {
  border-radius: 0;
  border: 0;
  box-shadow: var(--pixel-outline), 4px 6px 0 color-mix(in srgb, var(--line) 35%, transparent);
  font-family: var(--font-pixel);
}

/* ---------- home: profile window + layout ---------- */
.home-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  margin-top: -36px;
  position: relative;
  z-index: 5;
  align-items: start;
}
.home-stack {
  display: grid;
  gap: 24px;
}
.home-stack .about,
.home-grid .facts {
  margin-top: 0;
}
@media (max-width: 720px) {
  .home-grid { grid-template-columns: 1fr; margin-top: -24px; }
}
.profile.card {
  display: block;
  margin-top: 0;
  text-align: center;
  --bar-icon: url("/assets/pixel/icon-sun.png");
}
.avatar {
  position: relative;
  width: 132px;
  height: 168px;
  margin: 4px auto 14px;
  background: var(--sky-img) 46.5% 55% / auto 260% no-repeat;
  image-rendering: pixelated;
  box-shadow: var(--pixel-outline);
}
.avatar img {
  inset: auto 0 6px 0;
  margin: 0 auto;
  width: 108px;
  height: 144px;
}
.profile-pills {
  justify-content: center;
  gap: 8px;
}
.profile-pills li,
.chips li {
  border: 0;
  border-radius: 0;
  box-shadow: var(--pixel-outline-sm), 3px 4px 0 color-mix(in srgb, var(--line) 30%, transparent);
  margin: 2px;
}
.profile-pills li {
  font-size: 0.82rem;
  padding: 3px 10px;
  background: color-mix(in srgb, var(--apricot) 22%, var(--surface));
}
.chips li {
  /* readable font: the pixel font draws Z like 2 ("ZZZ" -> "222") and 5 like S */
  font-size: 0.82rem;
  padding: 3px 10px;
}
.credit {
  margin: 14px 0 0;
  font-size: 0.72rem;
  color: var(--text-dim);
}
.credit a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.credit a:hover {
  color: var(--cool);
}
.facts {
  grid-template-columns: 1fr;
}

/* ---------- buttons, pills and inputs ---------- */
.social-btn,
.collapse-all,
.filter select,
.ask-send,
.wip-badge,
.oshi-section-count {
  border: 0;
  border-radius: 0;
  box-shadow: var(--pixel-outline-sm), 3px 4px 0 color-mix(in srgb, var(--line) 35%, transparent);
  font-family: var(--font-pixel);
}
.social-btn {
  margin: 2px;
  box-shadow: var(--pixel-outline), var(--pixel-drop);
}
.social-btn:hover,
.collapse-all:hover,
.ask-send:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: var(--pixel-outline-sm), 5px 6px 0 color-mix(in srgb, var(--line) 35%, transparent);
}
.social-btn:hover {
  box-shadow: var(--pixel-outline), 10px 14px 0 color-mix(in srgb, var(--line) 35%, transparent);
}
.collapse-all,
.filter select {
  font-size: 0.95rem;
  margin: 2px;
}
.filter {
  font-family: var(--font-pixel);
  font-size: 0.95rem;
}
.ask-send {
  font-size: 0.95rem;
  font-weight: 600;
}
.ask-box textarea,
.ask-box input,
.qa-item textarea {
  box-shadow: var(--pixel-outline-sm);
  background: color-mix(in srgb, var(--bg) 60%, var(--surface));
}
.qa-question {
  border-radius: 0;
  border-left-width: var(--px);
}

/* ---------- VTubers / Faves ---------- */
.portrait-card {
  background: var(--surface);
  box-shadow: var(--pixel-outline), 6px 8px 0 color-mix(in srgb, var(--line) 30%, transparent);
  margin: var(--px);
}
.portrait-card img,
.portrait-placeholder,
.diary-grid img {
  border-radius: 0;
}
.portrait-card.is-link:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--pixel-outline), 10px 12px 0 color-mix(in srgb, var(--line) 30%, transparent);
}
.oshi-section > summary {
  margin: var(--px);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 30%, var(--surface)) 0 55%, var(--surface));
  box-shadow: var(--pixel-outline), var(--pixel-drop);
}
.oshi-section-title {
  font-size: 1.25rem;
  text-shadow: none;
}
.oshi-section-chevron {
  font-family: var(--font-pixel);
}
.crown {
  text-shadow: 2px 0 0 var(--line), -2px 0 0 var(--line), 0 2px 0 var(--line), 0 -2px 0 var(--line);
}
.kamioshi-photo {
  border-radius: 0;
  border: 0;
  box-shadow: var(--pixel-outline), var(--pixel-drop);
}
.kamioshi-kicker {
  font-family: var(--font-pixel);
}
.wip-badge {
  font-size: 0.8rem;
  color: #2b1f2e;
  background: var(--apricot);
}

@media (min-width: 700px) {
  .water-count { bottom: calc(7% + 72px); }
}
@media (max-width: 640px) {
  .nav-link {
    padding: 4px 7px;
    font-size: 0.9rem;
  }
  .theme-toggle {
    width: 28px;
  }
}
@media (max-width: 640px) {
  .water-count {
    max-width: 38%;
    text-align: right;
    line-height: 1.3;
  }
}

/* ---------- credits (Socials page) ---------- */
.credits {
  margin-top: 28px;
  --bar-icon: url("/assets/pixel/icon-moon.png");
}
.credits ul {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.7;
  font-size: 0.88rem;
}
.credits li + li {
  margin-top: 4px;
}
.credits li::marker {
  color: var(--accent);
}
.credits a {
  color: var(--cool);
  text-decoration: underline;
  text-underline-offset: 3px;
}
