/* Journal tokens — reuse the homepage brand palette + fonts verbatim, then add
   journal-specific rhythm tokens. Kept in sync with index.html :root. */
:root {
  --bg: #08080a;
  --bg-2: #0d0d10;
  --ink: #f3f1ec;
  --ink-dim: #a8a49c;
  --ink-faint: #6a6862;
  --gold: #c6a15b;
  --line: rgba(243, 241, 236, .12);
  --disp: "Clash Display", "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --deva: "Noto Serif Devanagari", var(--body);
  --edge: clamp(20px, 5vw, 80px);

  /* journal rhythm */
  --measure: 66ch;          /* readable column width */
  --lead: 1.75;             /* body line-height */
  --block-gap: clamp(1.5rem, 4vw, 2.6rem);
  --accent: var(--gold);
  --surface: var(--bg);
  --surface-2: var(--bg-2);
  --card-radius: 14px;
}

/* ---- reset + base (mirrors homepage conventions) ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.journal {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: var(--lead);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.journal :lang(hi), body.journal :lang(sa) { font-family: var(--deva); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--disp); font-weight: 600; line-height: 1.02; letter-spacing: -.02em; }
::selection { background: var(--gold); color: #08080a; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

.label {
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-dim);
}

/* ---- texture overlays (shared with homepage) ---- */
.grain {
  position: fixed; inset: 0; z-index: 9; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.vignette {
  position: fixed; inset: 0; z-index: 8; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
}

/* ---- nav ---- */
.j-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--edge);
  background: rgba(8,8,10,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.wordmark { font-family: var(--disp); font-weight: 600; font-size: 1.1rem; letter-spacing: .02em; }
.wordmark b { color: var(--gold); font-weight: 600; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  color: var(--ink-dim); transition: color .3s ease;
}
.nav-links a:hover { color: var(--ink); }

/* ---- article scaffold ---- */
.j-main { padding: clamp(48px, 8vw, 110px) var(--edge) clamp(60px, 10vw, 130px); }
.j-article { max-width: var(--measure); margin: 0 auto; }
.j-article-head { margin-bottom: clamp(2rem, 6vw, 3.6rem); text-align: center; }
.j-article-head h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 600; }
.j-dek { color: var(--ink-dim); font-size: 1.15rem; margin-top: 1rem; }
.j-meta { color: var(--ink-faint); font-size: .82rem; letter-spacing: .08em; margin-top: 1.4rem; text-transform: uppercase; }
.j-body > * + * { margin-top: var(--block-gap); }
.j-body p { max-width: 100%; }
.j-body a:not(.j-btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.j-body a:not(.j-btn):hover { color: var(--gold); }
.j-body h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-top: calc(var(--block-gap) * 1.4); }
.j-body h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
.j-body ul, .j-body ol { padding-left: 1.4em; }
.j-body li + li { margin-top: .4em; }
.j-body strong { color: #fff; font-weight: 600; }
.j-body em { font-style: italic; }

.j-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(2.4rem, 6vw, 3.4rem); }
.tag {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
}
.j-back { margin-top: 2.6rem; }
.j-back a { color: var(--ink-dim); font-size: .9rem; letter-spacing: .04em; }
.j-back a:hover { color: var(--gold); }

/* ---- blocks ---- */
.blk-hero {
  position: relative; margin: 0 calc(-1 * var(--edge)) var(--block-gap);
  padding: clamp(60px, 14vw, 150px) var(--edge); text-align: center; overflow: hidden;
}
.blk-hero.has-bg .hero-inner { position: relative; z-index: 2; }
.blk-hero .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .5;
}
.blk-hero.has-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,8,10,.5), rgba(8,8,10,.82));
}
.blk-hero h1 { font-size: clamp(2.4rem, 9vw, 6rem); font-weight: 700; letter-spacing: -.03em; }
.blk-hero p { color: var(--ink-dim); font-size: clamp(1.1rem, 2.4vw, 1.5rem); margin-top: 1rem; }
.hero-eyebrow { margin-bottom: 1.4rem; }

.blk-lead { font-size: clamp(1.3rem, 2.8vw, 1.7rem); line-height: 1.5; color: #efeee9; }
.blk-heading .kicker { display: block; margin-bottom: .5rem; color: var(--gold); }

.blk-quote { margin-left: 0; padding-left: clamp(18px, 3vw, 30px); border-left: 2px solid var(--gold); }
.blk-quote blockquote { font-family: var(--disp); font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.blk-quote .cite { margin-top: 1rem; color: var(--ink-dim); font-size: .9rem; font-family: var(--body); }

figure { margin: 0; }
.blk-image img { width: 100%; border-radius: var(--card-radius); cursor: zoom-in; }
.blk-image figcaption, .gallery-cap, .blk-audio figcaption { margin-top: .7rem; color: var(--ink-faint); font-size: .85rem; text-align: center; }
.blk-image.w-wide { margin-left: clamp(-40px, -4vw, 0px); margin-right: clamp(-40px, -4vw, 0px); }
.blk-image.w-full { margin-left: calc(-1 * var(--edge)); margin-right: calc(-1 * var(--edge)); }
.blk-image.w-full img { border-radius: 0; }

.blk-gallery { display: grid; gap: 12px; }
.blk-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.blk-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.blk-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.blk-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
@media (max-width: 640px) { .blk-gallery.cols-3, .blk-gallery.cols-4 { grid-template-columns: repeat(2, 1fr); } }

.blk-divider { border: 0; height: 1px; }
.div-rule { background: var(--line); }
.div-gold { background: linear-gradient(90deg, transparent, var(--gold), transparent); height: 1px; }
.div-space { height: 0; }
.div-dots { height: auto; text-align: center; }
.div-dots::before { content: "· · ·"; color: var(--ink-faint); letter-spacing: .6em; }

.blk-spotify iframe { border-radius: 12px; }
.blk-youtube { position: relative; border-radius: var(--card-radius); overflow: hidden; aspect-ratio: 16/9; }
.yt-facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: #000; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s; }
.yt-facade:hover img { opacity: 1; }
.yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 68px; height: 48px; border-radius: 12px; background: rgba(200,20,20,.9); }
.yt-play::after { content: ""; position: absolute; top: 50%; left: 52%; transform: translate(-50%,-50%); border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; }
.blk-youtube iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.blk-audio audio { width: 100%; }

.blk-poem, .blk-lyrics { text-align: center; font-family: var(--disp); font-weight: 500; }
.blk-poem .stanza { line-height: 1.9; font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
.blk-poem .stanza + .stanza { margin-top: 1.6rem; }
.blk-lyrics { display: flex; flex-direction: column; gap: .2rem; }
.lyric-label { margin: 1.4rem 0 .4rem; color: var(--gold); }
.lyric-line { line-height: 1.8; font-size: clamp(1.1rem, 2.2vw, 1.4rem); }
.lyric-gap { display: block; height: 1rem; }

.blk-callout { border: 1px solid var(--line); border-radius: var(--card-radius); padding: clamp(18px, 3vw, 28px); background: var(--surface-2); }
.blk-callout .callout-title { font-weight: 600; margin-bottom: .5rem; color: #fff; }
.blk-callout.c-gold { border-color: rgba(198,161,91,.4); background: rgba(198,161,91,.06); }
.blk-callout.c-gold .callout-title { color: var(--gold); }
.blk-callout.c-warn { border-color: rgba(200,120,60,.4); }

.blk-button { text-align: center; }
.j-btn { display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 500; letter-spacing: .02em; font-size: .95rem; transition: transform .25s ease, background .25s ease; }
.j-btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #08080a; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.sp-sm { height: .5rem; } .sp-md { height: 1.5rem; } .sp-lg { height: 3rem; } .sp-xl { height: 6rem; }

/* ---- listing ---- */
.j-listing-head { max-width: var(--measure); margin: 0 auto clamp(2.4rem, 6vw, 4rem); text-align: center; }
.j-listing-head h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); margin: .6rem 0; }
.j-listing-head .j-dek { margin-bottom: 2rem; }
.j-search {
  width: 100%; max-width: 460px; padding: 13px 20px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
  font-family: var(--body); font-size: .95rem;
}
.j-search::placeholder { color: var(--ink-faint); }
.j-search:focus { outline: none; border-color: var(--gold); }

.j-list { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(20px, 3vw, 34px); }
.j-card { border: 1px solid var(--line); border-radius: var(--card-radius); overflow: hidden; background: var(--surface-2); transition: transform .3s ease, border-color .3s ease; }
.j-card:hover { transform: translateY(-4px); border-color: rgba(198,161,91,.35); }
.card-cover { display: block; aspect-ratio: 16/9; overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.j-card:hover .card-cover img { transform: scale(1.04); }
.card-body { padding: clamp(18px, 2.4vw, 26px); }
.card-meta { color: var(--ink-faint); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.card-body h2 { font-size: 1.4rem; margin: .5rem 0 .6rem; }
.card-body h2 a:hover { color: var(--gold); }
.card-dek { color: var(--ink-dim); font-size: .95rem; }
.card-body .j-tags { margin-top: 1rem; }
.j-empty, .j-noresults { text-align: center; color: var(--ink-dim); grid-column: 1/-1; margin-top: 2rem; }
.j-clear { background: none; border: 0; color: var(--gold); cursor: pointer; text-decoration: underline; font: inherit; }

/* ---- footer ---- */
.j-foot { border-top: 1px solid var(--line); padding: clamp(30px, 5vw, 50px) var(--edge); }
.foot-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.j-foot a:hover { color: var(--gold); }

/* ---- lightbox ---- */
.j-lightbox { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; background: rgba(4,4,6,.94); padding: 4vw; cursor: zoom-out; }
.j-lightbox.open { display: grid; }
.j-lightbox img { max-width: 100%; max-height: 92vh; border-radius: 8px; }
.j-lightbox-close { position: absolute; top: 22px; right: 26px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto; } }
@media (max-width: 560px) { .nav-links { gap: 18px; } body.journal { font-size: 17px; } }

/* ---- typography presets (compose with any theme/layout) ---- */

/* modern — the default: General Sans body, tight Clash Display headings. */
.type-modern { --lead: 1.7; }
.type-modern .j-body h2, .type-modern .j-article-head h1 { letter-spacing: -.025em; }

/* editorial — larger measure, airy leading, drop-cap on the first paragraph. */
.type-editorial { --measure: 40rem; --lead: 1.85; font-size: 19px; }
.type-editorial .j-body > p:first-of-type::first-letter {
  float: left; font-family: var(--disp); font-weight: 600; font-size: 3.4em;
  line-height: .82; padding: .04em .12em 0 0; color: var(--gold);
}
.type-editorial .j-body h2 { font-weight: 500; }

/* poetry — centered, spacious, italic captions. */
.type-poetry { --measure: 34rem; --lead: 1.9; }
.type-poetry .j-body { text-align: center; }
.type-poetry .j-body .blk-quote { border: 0; padding: 0; }
.type-poetry figcaption { font-style: italic; }

/* notebook — ruled, intimate, monospace accents on labels/meta. */
.type-notebook { --lead: 1.8; }
.type-notebook .label, .type-notebook .j-meta, .type-notebook .card-meta,
.type-notebook .lyric-label { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; }
.type-notebook .j-body h2 { border-bottom: 1px solid var(--line); padding-bottom: .3em; }

/* ---- layouts (control column width + alignment) ---- */

/* essay — the default single readable column. */
.layout-essay { --measure: 40rem; }

/* story — wider, media-forward; full-bleed images breathe. */
.layout-story { --measure: 46rem; }
.layout-story .blk-image.w-wide { margin-left: clamp(-90px, -8vw, 0px); margin-right: clamp(-90px, -8vw, 0px); }

/* poem — narrow, centered, generous vertical space. */
.layout-poem { --measure: 32rem; --block-gap: clamp(2rem, 5vw, 3.2rem); }
.layout-poem .j-body { text-align: center; }
.layout-poem .j-article-head h1 { font-weight: 500; }

/* manifesto — large display type, tighter measure, punchy. */
.layout-manifesto { --measure: 44rem; }
.layout-manifesto .j-body { font-size: 1.2em; font-weight: 500; }
.layout-manifesto .j-body h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.layout-manifesto .j-article-head h1 { font-size: clamp(2.8rem, 9vw, 6rem); font-weight: 700; }

/* gallery — media-forward; the body column is wide for grids. */
.layout-gallery { --measure: 60rem; }
.layout-gallery .blk-gallery { gap: 16px; }

/* letter — indented, intimate, like a written note. */
.layout-letter { --measure: 36rem; }
.layout-letter .j-body p + p { text-indent: 1.6em; margin-top: 0; }
.layout-letter .j-article-head { text-align: left; }

/* :::versecard — verse poster + its transcribed text, side by side on desktop,
   stacked on mobile. Breaks out of the narrow article measure and re-centers on
   the viewport (works under any layout because the article is margin:auto). */
.blk-versecard {
  width: min(92vw, 62rem);
  margin-left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: start;
  text-align: initial;
}
.blk-versecard.vc-flip .vc-poster { order: 2; }

/* Long verses make the text column much taller than the poster — pin the poster
   so it stays in view while reading instead of floating in a gap. */
.blk-versecard .vc-poster {
  margin: 0;
  position: sticky;
  top: clamp(16px, 5vh, 44px);
  align-self: start;
}
.blk-versecard .vc-poster img {
  width: 100%;
  border-radius: var(--card-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  cursor: zoom-in;
}

/* .vc-text also carries .blk-poem, so it inherits the centered verse styling. */
.blk-versecard .vc-text .stanza { margin: 0 0 1.4rem; }
.blk-versecard .vc-text .stanza:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .blk-versecard {
    width: 100%;
    margin-left: 0;
    transform: none;
    grid-template-columns: 1fr;
    gap: clamp(1.4rem, 6vw, 2.2rem);
  }
  .blk-versecard .vc-poster { position: static; }
  /* keep natural reading order on mobile: poster first, then words */
  .blk-versecard.vc-flip .vc-poster { order: 0; }
}

/* ---- release smart-link pages ---- */
.is-release .j-main { max-width: 940px; margin: 0 auto; padding-top: clamp(28px, 5vw, 56px); }
.is-music .j-main { max-width: 640px; margin: 0 auto; }

/* top: poster + info/links side by side (fits one screen; stacks on mobile) */
.release-top {
  display: grid; grid-template-columns: minmax(0, 400px) 1fr;
  gap: clamp(28px, 5vw, 58px); align-items: center;
}
.release-cover { margin: 0; }
.release-cover img {
  width: 100%; border-radius: 16px; aspect-ratio: 1/1; object-fit: cover;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px var(--line);
}
.release-meta { min-width: 0; }
.release-status { color: var(--gold); margin-bottom: 12px; }
.release-meta h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.release-dek { color: var(--ink-dim); margin: 14px 0 26px; font-size: 1.05rem; }

.release-links { display: flex; flex-direction: column; gap: 11px; max-width: 460px; }
.rl {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 22px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-2); font-weight: 500; font-size: 1rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.rl:hover { transform: translateY(-2px); border-color: rgba(198,161,91,.5); background: #15151a; }
.rl-go { color: var(--ink-faint); transition: color .2s; }
.rl:hover .rl-go { color: var(--gold); }
.rl-spotify:hover { box-shadow: inset 3px 0 0 #1db954; }
.rl-apple:hover { box-shadow: inset 3px 0 0 #fc3c44; }
.rl-ytmusic:hover, .rl-youtube:hover { box-shadow: inset 3px 0 0 #ff0000; }
.rl-bandcamp:hover { box-shadow: inset 3px 0 0 #629aa9; }
.rl-soundcloud:hover { box-shadow: inset 3px 0 0 #ff7700; }

/* stack the top on narrow screens */
@media (max-width: 760px) {
  .release-top { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .release-cover img { max-width: 320px; margin: 0 auto; }
  .release-meta { display: flex; flex-direction: column; align-items: center; }
  .release-links { align-self: stretch; max-width: none; }
}

/* lyrics toggle (native <details> — indexable + no JS) */
.lyrics-toggle {
  max-width: var(--measure); margin: clamp(30px, 6vw, 52px) auto 0;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); overflow: hidden;
}
.lyrics-toggle summary {
  list-style: none; cursor: pointer; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--disp); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em;
}
.lyrics-toggle summary::-webkit-details-marker { display: none; }
.lyrics-toggle summary::after { content: "+"; color: var(--gold); font-size: 1.5rem; line-height: 1; transition: transform .3s ease; }
.lyrics-toggle[open] summary::after { transform: rotate(45deg); }
.lyrics-toggle summary:hover { color: var(--gold); }
.lyrics-body { padding: 4px 24px 28px; text-align: center; }
.lyrics-body .lyric-line { display: block; line-height: 1.9; font-size: 1.08rem; }
.lyrics-body .lyric-label { color: var(--gold); margin: 1.3rem 0 .4rem; }

/* story section below the top */
.release-storywrap { max-width: var(--measure); margin: clamp(40px, 7vw, 68px) auto 0; }
.story-lead {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  text-align: center; margin-bottom: clamp(24px, 5vw, 44px);
}
.story-lead::before, .story-lead::after { content: ""; height: 1px; flex: 1; background: var(--line); max-width: 90px; }
.story-time { color: var(--ink-faint); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.release-story { margin: 0 auto; }

/* music index */
.rel-list { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.rel-card {
  display: flex; align-items: center; gap: 16px; padding: 12px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2);
  transition: transform .25s ease, border-color .25s ease;
}
.rel-card:hover { transform: translateY(-2px); border-color: rgba(198,161,91,.4); }
.rel-cover { flex-shrink: 0; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; }
.rel-cover img { width: 100%; height: 100%; object-fit: cover; }
.rel-info { display: flex; flex-direction: column; gap: 5px; }
.rel-status { color: var(--gold); font-size: .66rem; }
.rel-title { font-family: var(--disp); font-weight: 600; font-size: 1.3rem; }

/* ---- email capture (Substack) ---- */
.signup {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 9vw, 104px) var(--edge);
  text-align: center;
}
.signup-inner { max-width: 34rem; margin: 0 auto; }
.signup .label { color: var(--gold); margin-bottom: 14px; }
.signup-h { font-size: clamp(1.7rem, 4.4vw, 2.7rem); line-height: 1.05; margin-bottom: 14px; }
.signup-dek { color: var(--ink-dim); margin-bottom: 26px; font-size: 1.02rem; }
.signup-form {
  display: flex; gap: 10px; max-width: 440px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.signup-form input {
  flex: 1; min-width: 210px;
  background: var(--surface-2, var(--bg-2)); border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 14px 20px; font-family: var(--body); font-size: .95rem;
}
.signup-form input::placeholder { color: var(--ink-faint); }
.signup-form input:focus { outline: none; border-color: var(--gold); }
.signup-form button {
  background: var(--gold); color: #08080a; border: 0; border-radius: 999px;
  padding: 14px 28px; font-family: var(--body); font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: transform .2s ease, filter .2s ease;
}
.signup-form button:hover { transform: translateY(-2px); filter: brightness(1.05); }
.signup-wa {
  display: inline-block; margin-top: 14px; padding: 12px 24px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
  font-weight: 500; font-size: .9rem; transition: border-color .2s ease, color .2s ease;
}
.signup-wa:hover { border-color: #25D366; color: #25D366; }
.signup-alt { margin-top: 16px; font-size: .82rem; color: var(--ink-faint); }
.signup-alt a { color: var(--ink-dim); text-decoration: underline; text-underline-offset: 3px; }
.signup-alt a:hover { color: var(--gold); }

/* ---- link-in-bio page (/link/) ---- */
.is-link .link-main { max-width: 30rem; margin: 0 auto; padding: clamp(48px, 11vw, 84px) var(--edge) 0; text-align: center; }
.link-head { margin-bottom: clamp(26px, 6vw, 40px); }
.link-logo { font-family: var(--disp); font-weight: 600; font-size: 2.1rem; letter-spacing: .02em; }
.link-logo b { color: var(--gold); }
.link-tagline { color: var(--ink-dim); margin-top: 10px; font-size: .95rem; }
.link-list { display: flex; flex-direction: column; gap: 12px; }
.link-btn {
  display: block; padding: 16px 22px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--bg-2); font-weight: 500; font-size: 1rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.link-btn:hover { transform: translateY(-2px); border-color: rgba(198,161,91,.5); background: #15151a; }
.link-btn.primary { background: var(--gold); color: #08080a; border-color: var(--gold); }
.link-btn.primary:hover { filter: brightness(1.05); color: #08080a; }
.link-btn.feat { border-color: rgba(198,161,91,.4); }
.link-btn .k { display: block; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.is-link .signup { border-top: 1px solid var(--line); margin-top: clamp(34px, 8vw, 56px); }
.is-link .j-foot { border-top: 1px solid var(--line); }

/* cinematic — the homepage's own mood: deep radial night + gold, grain on. */
.theme-cinematic {
  --surface: #08080a;
  --surface-2: #0d0d10;
  background:
    radial-gradient(120% 90% at 50% 0%, #12172a 0%, #0b0f1c 32%, #07080f 66%, #05060b 100%) fixed;
}
.theme-cinematic .blk-hero.has-bg::after {
  background: linear-gradient(180deg, rgba(7,8,15,.45), rgba(5,6,11,.85));
}

/* eclipse — neutral blue-hour palette (generic dramatic dark theme). */
.theme-eclipse {
  --surface: #070809;
  --surface-2: #0e1114;
  --ink: #eef1f4;
  --ink-dim: #9aa4ad;
  --line: rgba(238, 241, 244, .12);
  --accent: #7fa8c9;
  --gold: #7fa8c9;
  background:
    radial-gradient(130% 100% at 50% 0%, #101c26 0%, #0a1017 40%, #070809 76%) fixed;
}
.theme-eclipse .blk-quote { border-color: var(--accent); }
.theme-eclipse .btn-gold { background: var(--accent); color: #070809; }
.theme-eclipse ::selection { background: var(--accent); color: #070809; }

/* mahakaal — dramatic: near-black depth with a gold sheen, echoing the cover. */
.theme-mahakaal {
  --surface: #060505;
  --surface-2: #0d0908;
  --ink: #f4efe6;
  --ink-dim: #b0a696;
  --accent: #d0a95c;
  --gold: #d0a95c;
  background:
    radial-gradient(120% 90% at 50% -10%, #241a10 0%, #0d0908 42%, #060505 78%) fixed;
}
.theme-mahakaal .j-article-head h1, .theme-mahakaal .blk-hero h1 {
  background: linear-gradient(180deg, #f7e9c9, #cfa456);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.theme-mahakaal .blk-quote { border-color: var(--gold); }
.theme-mahakaal .vignette { background: radial-gradient(ellipse at center, transparent 48%, rgba(0,0,0,.68) 100%); }

/* minimal — near-monochrome, no texture, restraint. */
.theme-minimal {
  --surface: #0a0a0b;
  --surface-2: #101012;
  --ink: #eeeeee;
  --ink-dim: #9a9a9d;
  --accent: #d8d8d8;
  --gold: #d8d8d8;
  background: #0a0a0b;
}
.theme-minimal .grain, .theme-minimal .vignette { display: none; }
.theme-minimal .blk-quote { border-color: #444; }
.theme-minimal .btn-gold { background: #eee; color: #0a0a0b; }
.theme-minimal ::selection { background: #eee; color: #0a0a0b; }

/* notebook — warm graphite panels, ruled lines, a working-journal feel. */
.theme-notebook {
  --surface: #0f0e0c;
  --surface-2: #16140f;
  --ink: #efece3;
  --ink-dim: #a9a291;
  --line: rgba(243, 241, 236, .14);
  --accent: #c9a15b;
  background:
    linear-gradient(180deg, #0f0e0c, #0c0b09) fixed;
}
.theme-notebook .j-body { position: relative; }
.theme-notebook .j-card, .theme-notebook .blk-callout { background: var(--surface-2); }
.theme-notebook .blk-quote { border-left-style: dashed; }

/* paper — a light reading surface (still brand-consistent warm off-white). */
.theme-paper {
  --surface: #f6f3ec;
  --surface-2: #efeada;
  --ink: #1a1815;
  --ink-dim: #5c574d;
  --ink-faint: #8a8478;
  --line: rgba(26, 24, 21, .14);
  --accent: #9a7326;
  --gold: #9a7326;
  background: #f6f3ec;
}
.theme-paper .grain { opacity: .025; mix-blend-mode: multiply; }
.theme-paper .vignette { display: none; }
.theme-paper .j-nav { background: rgba(246,243,236,.8); border-bottom-color: var(--line); }
.theme-paper ::selection { background: #9a7326; color: #f6f3ec; }
.theme-paper .btn-gold { color: #f6f3ec; }
.theme-paper .j-body strong { color: #000; }
.theme-paper .blk-callout.c-gold { background: rgba(154,115,38,.08); }

/* poetry — soft, quiet, more air; lower contrast, muted gold. */
.theme-poetry {
  --surface: #0b0b0d;
  --surface-2: #111013;
  --ink: #ece9e2;
  --ink-dim: #b3aea4;
  --accent: #cdb37e;
  background: radial-gradient(130% 100% at 50% 12%, #14131a 0%, #0b0b0d 60%) fixed;
}
.theme-poetry .grain { opacity: .03; }
.theme-poetry .vignette { background: radial-gradient(ellipse at center, transparent 62%, rgba(0,0,0,.4) 100%); }
.theme-poetry .blk-quote { border-color: var(--accent); }
