/* =================================================================
   kagerou.glass — blog/ledger.css
   The Dispensary — 病棟ログ.
   A futurist Japanese menhera / jirai-kei (地雷系) treatment: plum-black
   base, sick-sweet pastel pink + menhera lavender, a cyber chromatic
   glitch edge, and the clinic motifs (pills, ℞, crosses, broken hearts)
   the aesthetic shares with the pharmacopeia. Subtle, not saccharine.
   ================================================================= */

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

/* Blog-specific tokens. The shared system (colors, fonts, pixel hearts,
   glow, scanlines, glitch, seals, reduced-motion) lives in yamero.css,
   loaded before this file. */
:root {
  --base-2:     #161019;   /* panels */
  --base-3:     #1d1422;   /* lifted slips */
  --line-lilac: rgba(194, 164, 242, 0.18);
  --measure:    72ch;
}

/* Blog reading rhythm (overrides shared body) */
body {
  font-size: clamp(1.02rem, 0.4vw + 0.96rem, 1.14rem);
  line-height: 1.85;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.6rem);
}

/* =================================================================
   Pink gingham ribbon (jirai signature) — reuses the .marble slot
   ================================================================= */
.marble {
  height: 13px;
  width: 100%;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 134, 191, 0.30) 9px 18px),
    repeating-linear-gradient(0deg,  transparent 0 9px, rgba(255, 134, 191, 0.30) 9px 18px),
    linear-gradient(rgba(194, 164, 242, 0.10), rgba(194, 164, 242, 0.10));
  opacity: 0.9;
  border-bottom: 1px solid var(--line-soft);
}

/* =================================================================
   Chromatic-aberration glitch (futurist edge)
   ================================================================= */
.glitch {
  text-shadow:
    -0.026em 0 rgba(255, 95, 166, 0.6),
     0.026em 0 rgba(118, 230, 224, 0.6);
}
.glitch:hover { animation: glitch 0.42s steps(2, end) 1; }

@keyframes glitch {
  0%   { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  20%  { transform: translate(-2px, 1px); }
  40%  { transform: translate(2px, -1px); clip-path: inset(12% 0 40% 0); }
  60%  { transform: translate(-1px, 0); clip-path: inset(60% 0 8% 0); }
  80%  { transform: translate(1px, 1px); }
  100% { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
}

/* =================================================================
   Masthead
   ================================================================= */
.masthead {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.4rem) 0 1.4rem;
}

.masthead-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--cyan);
  font-size: 1.05rem;
  text-shadow: -0.04em 0 rgba(255,95,166,0.6), 0.03em 0 rgba(118,230,224,0.5);
}
.masthead-rule::before,
.masthead-rule::after {
  content: '';
  height: 1px;
  flex: 1;
  max-width: 200px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.masthead-mark {
  display: inline-block;
  font-family: var(--f-display);
  font-size: clamp(2rem, 6vw, 3.1rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
  margin: 0.6rem 0 0.5rem;
  transition: color 0.3s ease;
}
.masthead-mark:hover { color: var(--pink-soft); }

.masthead-title {
  font-family: var(--f-digital);
  font-size: clamp(0.8rem, 2vw, 1.05rem);
  letter-spacing: 0.18em;
  color: var(--pink-soft);
  text-transform: lowercase;
}

.masthead-meta {
  margin-top: 0.9rem;
  font-family: var(--f-digital);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.masthead-meta .dot { color: var(--pink); }

.colophon-nav { text-align: center; margin-top: 0.6rem; }
.colophon-nav a {
  font-family: var(--f-digital);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 1px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.colophon-nav a:hover { color: var(--pink); border-color: var(--pink); }

/* =================================================================
   Manuscript intro (ledger index)
   ================================================================= */
.preamble {
  max-width: 64ch;
  margin: 2.4rem auto 0;
  text-align: justify;
  hyphens: auto;
  color: var(--ink-soft);
}
.preamble p { text-indent: 0; }

.dropcap::first-letter {
  font-family: var(--f-display);
  float: left;
  font-size: 3.4em;
  line-height: 0.82;
  padding: 0.04em 0.14em 0 0;
  margin: 0.06em 0.04em 0 0;
  color: var(--pink);
  text-shadow: -0.012em 0 rgba(255,95,166,0.5), 0.012em 0 rgba(118,230,224,0.4);
}

/* =================================================================
   The Ledger table (index of entries) — clinical chart
   ================================================================= */
.ledger { margin: 3rem auto 1rem; }

.ledger-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.ledger-head h2 {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 0.96rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ledger-head .ledger-head-note {
  font-family: var(--f-digital);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ledger-table thead th {
  font-family: var(--f-digital);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.ledger-table thead th.col-fol  { width: 3.4rem; text-align: center; }
.ledger-table thead th.col-seal { width: 3rem; text-align: center; }
.ledger-table thead th.col-date { width: 8.5rem; white-space: nowrap; }

.ledger-row { transition: background 0.3s ease; }
.ledger-row td {
  padding: 1.1rem 0.9rem;
  border-bottom: 1px solid var(--line-hair);
  vertical-align: baseline;
}
.ledger-row:last-child td { border-bottom: none; }
.ledger-row:hover { background: var(--pink-glow); }

.col-fol {
  text-align: center;
  font-family: var(--f-digital);
  font-size: 1rem;
  color: var(--pink);
}

.entry-link {
  display: block;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.24rem;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.25s ease;
}
.entry-link:hover { color: var(--pink); }
.entry-blurb {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-dim);
}

/* Capsule pill tag (category) */
.col-recipe { white-space: nowrap; }
.pill, .col-recipe-pill {
  display: inline-block;
  font-family: var(--f-digital);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(194,164,242,0.16) 0 50%, rgba(255,134,191,0.18) 50% 100%);
  position: relative;
}
.col-recipe { font-family: var(--f-digital); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.col-recipe::before {
  content: '';
  display: inline-block;
  width: 0.5rem; height: 0.5rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan) 0 50%, var(--pink) 50% 100%);
  vertical-align: 0.02em;
  box-shadow: 0 0 4px rgba(118, 230, 224, 0.5);
}

.col-date {
  font-family: var(--f-digital);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  white-space: nowrap;
}
.col-seal { text-align: center; }

/* Pixel-heart seal */
.seal {
  display: inline-block;
  width: 1.9rem;
  height: 1.62rem;
  font-size: 0;
  color: transparent;
  text-decoration: none;
  background: var(--px-heart-pink) center / contain no-repeat;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 5px rgba(255, 95, 166, 0.6));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
}
.seal:hover {
  transform: scale(1.18) rotate(-6deg);
  background-image: var(--px-heart-cyan);
  filter: drop-shadow(0 0 9px rgba(118, 230, 224, 0.85));
  animation: glitch 0.42s steps(2, end) 1;
}
.seal:active { transform: scale(0.94); }

/* =================================================================
   Patronage block — "Refill the Dispensary" (Ko-fi)
   ================================================================= */
.dispensary {
  position: relative;
  margin: 4.5rem auto 1.8rem;
  max-width: 46rem;
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  overflow: visible;
  transform: rotate(-0.8deg);
  background:
    radial-gradient(ellipse 82% 72% at 50% 52%, rgba(13,10,16,0.92), rgba(13,10,16,0.55) 62%, transparent 100%),
    var(--tex-damask),
    radial-gradient(120% 90% at 50% 0%, rgba(255,134,191,0.07), transparent 60%),
    var(--base-2);
  background-size: auto, 84px 84px, auto, auto;
  border: 1px solid var(--line);
  outline: 1px solid var(--line-hair);
  outline-offset: 5px;
  box-shadow: 0 0 44px -12px var(--pink-glow);
}
.dispensary::before {
  content: '✚';
  position: absolute;
  top: -0.72em;
  left: 50%;
  transform: translateX(-50%);
  background: var(--base);
  padding: 0 0.55rem;
  color: var(--pink);
  font-size: 1.2rem;
}
.dispensary h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.dispensary p {
  max-width: 38ch;
  margin: 0 auto 1.7rem;
  color: var(--ink-soft);
  text-shadow: 0 1px 6px rgba(13,10,16,0.9);
}
.dispensary h2, .dispensary p, .dispensary .kofi-seal { position: relative; z-index: 1; }

/* Capsule Ko-fi button */
.kofi-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.5rem 0.6rem 0.6rem;
  font-family: var(--f-digital);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--base);
  background: linear-gradient(120deg, var(--cyan), var(--pink) 55%, var(--pink-hot));
  border-radius: 999px;
  box-shadow: 0 0 22px -6px var(--pink-hot), 0 0 22px -10px var(--cyan), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.kofi-seal .kofi-wax {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--base);
  color: var(--pink);
  font-family: var(--f-body);
  font-size: 0.8rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.kofi-seal:hover { transform: translateY(-2px); box-shadow: 0 6px 26px -6px var(--pink-hot), inset 0 1px 0 rgba(255,255,255,0.4); }
.kofi-seal:active { transform: translateY(0); }

/* =================================================================
   Entry page
   ================================================================= */
.entry { position: relative; z-index: 1; }
.entry-masthead { text-align: center; margin: 2.6rem auto 0; }

.entry-stamps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}
.folio-no {
  font-family: var(--f-digital);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: var(--pink);
}
.date-stamp {
  font-family: var(--f-digital);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crimson);
  border: 1.5px solid var(--crimson);
  border-radius: 4px;
  padding: 0.28rem 0.66rem;
  transform: rotate(-2.4deg);
  box-shadow: 0 0 0 3px rgba(232, 68, 126, 0.08);
}
.entry-category {
  font-family: var(--f-digital);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lilac);
}

.entry-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 5.5vw, 3.2rem);
  line-height: 1.18;
  color: var(--ink);
  max-width: 18ch;
  margin: 0.3rem auto 0.6rem;
}
.entry-standfirst {
  font-size: 1.06rem;
  color: var(--ink-dim);
  max-width: 46ch;
  margin: 0 auto;
}

.entry-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  color: var(--pink);
}
.entry-rule::before,
.entry-rule::after {
  content: '';
  height: 1px;
  flex: 1;
  max-width: 240px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* Body prose */
.entry-body {
  max-width: var(--measure);
  margin: 0 auto;
  text-align: justify;
  hyphens: auto;
  color: var(--ink-soft);
}
.entry-body > p { margin-bottom: 1.35rem; }
.entry-body > p + p { text-indent: 1.4em; }
.entry-body .dropcap::first-letter { font-size: 4em; }
.entry-body > p:first-of-type { text-indent: 0; }

.entry-body h2 {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  color: var(--pink-soft);
  margin: 2.7rem 0 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-indent: 0;
}
.entry-body h2::before { content: '✚'; color: var(--pink); font-size: 0.9em; }

.entry-body h3 {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 1.32rem;
  color: var(--ink);
  margin: 2rem 0 0.6rem;
  text-indent: 0;
}

.entry-body a {
  color: var(--pink);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 134, 191, 0.4);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.entry-body a:hover { color: var(--cyan); border-color: var(--cyan); }

.entry-body strong { font-weight: 700; color: var(--ink); }
.entry-body em { font-style: italic; color: var(--lilac-soft); }

.entry-body ul, .entry-body ol {
  max-width: 54ch;
  margin: 0 auto 1.4rem;
  padding-left: 1.7rem;
  text-align: left;
}
.entry-body li { margin-bottom: 0.5rem; }
.entry-body ul { list-style: none; padding-left: 1.4rem; }
.entry-body ul li { position: relative; }
.entry-body ul li::before {
  content: '♡';
  position: absolute;
  left: -1.4rem;
  color: var(--pink);
}

/* Quote */
.entry-body blockquote {
  margin: 1.9rem auto;
  max-width: 52ch;
  padding: 0.4rem 0 0.4rem 1.5rem;
  border-left: 2px solid var(--pink);
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 1.32rem;
  line-height: 1.5;
  color: var(--lilac-soft);
  text-align: left;
}
.entry-body blockquote p { text-indent: 0 !important; margin-bottom: 0.5rem; }
.entry-body blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--f-digital);
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* Inline code */
.entry-body code {
  font-family: var(--f-mono);
  font-size: 0.82em;
  background: var(--base-3);
  padding: 0.08em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--line-hair);
  color: var(--pink-soft);
}

/* ℞ prescription slip — code block */
.recipe {
  position: relative;
  max-width: 68ch;
  margin: 2.1rem auto;
  background: var(--base-3);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--pink);
  border-radius: 4px;
  box-shadow: 0 10px 30px -14px rgba(255, 95, 166, 0.4), 0 0 0 1px var(--line-hair);
  transform: rotate(-0.4deg);
  overflow: hidden;
}
.recipe::before {
  content: '℞ recipe';
  position: absolute;
  top: 0; left: 0;
  font-family: var(--f-digital);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--base);
  background: linear-gradient(90deg, var(--pink), var(--lilac));
  padding: 0.2rem 0.7rem;
  border-bottom-right-radius: 6px;
}
.recipe pre { margin: 0; padding: 1.9rem 1.3rem 1.2rem; overflow-x: auto; }
.recipe code {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  background: none;
  border: none;
  padding: 0;
  color: var(--ink-soft);
  white-space: pre;
}
.recipe .c-key { color: var(--pink-hot); }
.recipe .c-com { color: var(--ink-faint); font-style: italic; }
.recipe .c-str { color: var(--cyan); }

/* Marginal gloss */
.gloss {
  font-family: var(--f-body);
  font-style: italic;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-dim);
  text-align: left;
}
.gloss::before { content: '♡ '; color: var(--pink); font-style: normal; }
@media (min-width: 1200px) {
  .gloss {
    float: right;
    clear: right;
    width: 15rem;
    margin: 0.3rem -17rem 1rem 0;
  }
}
@media (max-width: 1199px) {
  .gloss {
    display: block;
    margin: 1.4rem auto;
    max-width: 52ch;
    padding-left: 1rem;
    border-left: 1px solid var(--pink);
  }
}

/* Divider */
.asterism {
  text-align: center;
  margin: 2.4rem 0;
  color: var(--pink);
  font-size: 1rem;
  letter-spacing: 0.5em;
  text-shadow: -0.012em 0 rgba(255,95,166,0.5), 0.012em 0 rgba(118,230,224,0.4);
}

/* Figure */
.entry-body figure { margin: 2rem auto; max-width: var(--measure); }
.entry-body figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 10px 30px -14px rgba(255, 95, 166, 0.4);
}
.entry-body figcaption {
  margin-top: 0.6rem;
  font-style: italic;
  font-size: 0.82rem;
  color: var(--ink-dim);
  text-align: center;
}
/* Diagram hue treatments so imported figures match the dark jirai palette.
   fig-invert: white-background line art (molecules, mechanisms, plots) →
   dark with light strokes. fig-tint: colour figures/photos, nudged gently. */
.entry-body figure img.fig-invert {
  filter: invert(0.92) hue-rotate(178deg) saturate(0.9) brightness(0.96);
  background: transparent;
  border-color: var(--line-cyan);
}
.entry-body figure img.fig-tint {
  filter: saturate(0.82) hue-rotate(-8deg) contrast(0.96) brightness(0.92);
}
.entry-body figure img.fig-plain { filter: none; }

/* =================================================================
   Refill the Dispensary — Monero (XMR) address, click to copy
   ================================================================= */
.xmr {
  margin: 1.6rem auto 0;
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.xmr-label {
  font-family: var(--f-digital);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--lilac-soft);
}
.xmr-addr {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--cyan);
  background: var(--void);
  border: 1px solid var(--line-cyan);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  width: 100%;
  word-break: break-all;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.xmr-addr:hover, .xmr-addr:focus { color: var(--cyan-hot); border-color: var(--cyan-hot); box-shadow: 0 0 18px -7px var(--cyan); outline: none; }
.xmr-hint {
  font-family: var(--f-digital);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* =================================================================
   Colophon
   ================================================================= */
.colophon { max-width: var(--measure); margin: 3rem auto 0; text-align: center; }
.colophon .asterism { margin-top: 0; }
.signature {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}
.signature .sig-seal { color: var(--pink); font-family: var(--f-body); }
.signed-meta {
  font-family: var(--f-digital);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* Prev/next nav */
.folio-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--measure);
  margin: 2.6rem auto 0;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.4rem;
}
.folio-nav a {
  font-family: var(--f-body);
  text-decoration: none;
  color: var(--ink-dim);
  max-width: 45%;
  transition: color 0.25s ease;
}
.folio-nav a:hover { color: var(--pink); }
.folio-nav .fn-label {
  display: block;
  font-family: var(--f-digital);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.25rem;
}
.folio-nav .fn-next { text-align: right; }
.folio-nav .fn-title { font-family: var(--f-head); }

/* =================================================================
   Reading-progress ink line
   ================================================================= */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--lilac), var(--pink), var(--cyan));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(255, 95, 166, 0.6);
}

/* =================================================================
   Footer
   ================================================================= */
.ledger-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1.5rem 3.4rem;
  margin-top: 2.4rem;
}
.ledger-footer .footer-mark {
  font-family: var(--f-display);
  font-size: 1rem;
  color: var(--ink-soft);
}
.footer-line {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-family: var(--f-digital);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-line a { color: var(--ink-dim); text-decoration: none; transition: color 0.25s ease; }
.footer-line a:hover { color: var(--pink); }
.footer-line .dot { color: var(--pink); }
.footer-craft {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.footer-craft a { color: var(--ink-dim); text-decoration: none; }
.footer-craft a:hover { color: var(--pink); }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 680px) {
  .ledger-table thead th.col-recipe,
  .ledger-row .col-recipe { display: none; }
  .ledger-table thead th.col-date { width: auto; }
  .col-date { font-size: 0.62rem; }
  .ledger-row td { padding: 0.9rem 0.5rem; }
  .entry-stamps { flex-wrap: wrap; gap: 0.7rem; }
  .entry-body { text-align: left; }
  .preamble { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .glitch:hover, .seal:hover { animation: none; }
  .progress { transition: none; }
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
