/* Vacamp — the marketing site. One stylesheet, no framework, no third-party
   requests. Colours come from the app icon: forest, cream, leaf, coral. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
/* The journal authors' hands: Elfriede writes in Kalam, Bo in Caveat,
   Oliver in Dancing Script. Only the latin subsets, self-hosted like the rest. */
@font-face {
  font-family: "Kalam";
  src: url("fonts/kalam.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Dancing Script";
  src: url("fonts/dancing-script.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #174c3c;
  --forest-deep: #0e2f25;
  --night: #0a1f19;
  --cream: #fffcf5;
  --sand: #f5efe1;
  --leaf: #56b870;
  --coral: #f47c5c;
  --gold: #ffd9a0;

  --bg: var(--cream);
  --surface: #ffffff;
  --band: var(--sand);
  --ink: #1b2a24;
  --muted: #56665f;
  --line: rgba(23, 76, 60, 0.14);
  --link: var(--forest);
  --accent: var(--coral);

  /* The drawn landscape, dusk by default. */
  --sky-1: #0e2f25;
  --sky-2: #2f5a4b;
  --sky-3: #e9a47a;
  --moon: #ffe7bf;
  --m1: #4d7466;
  --m2: #2b5244;
  --m3: #1a3d31;
  --m4: #10291f;
  --road: #d9b98a;
  --ground: #0a1f19;

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", -apple-system, "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(14, 47, 37, 0.06), 0 12px 32px -12px rgba(14, 47, 37, 0.22);

  /* Each journal author's ink. */
  --ink-elfriede: #1f4fa8;
  --ink-bo: #cf4a17;
  --ink-oliver: #2b2b2b;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1714;
    --surface: #13211c;
    --band: #101d19;
    --ink: #e7eee9;
    --muted: #a3b3ab;
    --line: rgba(255, 252, 245, 0.1);
    --link: #7fd092;
    --accent: #f6906f;
    --ink-elfriede: #9dbcff;
    --ink-bo: #ff9a6b;
    --ink-oliver: #e4e4e4;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

/* ---- The shell: the map is the stage, the page is a panel on it -------- */

html, body.shell { height: 100%; }
body.shell { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
.stage {
  --panel-w: clamp(400px, 42vw, 640px);
  position: relative; flex: 1; min-height: 0;
  display: grid; grid-template-columns: var(--panel-w) 1fr;
  transition: grid-template-columns 0.35s ease;
}
.panel {
  position: relative; z-index: 2; min-width: 0;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg);
  box-shadow: 1px 0 0 var(--line), 12px 0 32px -16px rgba(10, 31, 25, 0.35);
  outline: none;
  transition: opacity 0.25s ease;
}
.is-loading .panel { opacity: 0.55; }
.map-pane { position: relative; min-width: 0; background: #dfe7e2; }
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (prefers-color-scheme: dark) { .map-pane { background: #1b2420; } }

.map-mode .stage { grid-template-columns: 0 1fr; }
.map-mode .panel { visibility: hidden; transition: visibility 0s 0.35s; }
.panel-bar, .panel-peek { display: none; }

@media (max-width: 820px) {
  .stage { display: block; }
  .map-pane { position: absolute; inset: 0; }
  .panel {
    position: absolute; left: 0; right: 0; bottom: 0; height: 64%;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 36px -8px rgba(10, 31, 25, 0.4);
    transition: transform 0.35s ease, visibility 0s;
  }
  .map-mode .panel { transform: translateY(100%); visibility: hidden; transition: transform 0.35s ease, visibility 0s 0.35s; }
  .panel-bar {
    position: sticky; top: 0; z-index: 5;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.55rem 1rem 0.45rem; background: var(--bg);
    border-radius: 22px 22px 0 0;
  }
  .grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin-left: calc(50% - 20px); position: absolute; left: 0; top: 7px; }
  .panel-hide { margin-left: auto; margin-top: 0.4rem; font-size: 0.88rem; font-weight: 700; text-decoration: none; }
  .panel-peek {
    display: none; position: absolute; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 3;
    transform: translateX(-50%);
    padding: 0.75rem 1.2rem; border-radius: 999px;
    background: var(--forest-deep); color: var(--cream);
    font-weight: 700; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
    box-shadow: 0 8px 24px rgba(10, 31, 25, 0.35);
  }
  .map-mode .panel-peek { display: block; }
}

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 3.6vw, 3.5rem); font-weight: 650; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.15rem); }
h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: italic; font-weight: 500; }
p { margin: 0 0 1.1em; }

.wrap, .wrap-narrow { margin-inline: clamp(1.25rem, 5%, 2.75rem); }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--cream); color: var(--forest); padding: 0.6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

.kicker {
  font: 700 0.78rem/1.2 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.kicker a { color: inherit; text-decoration: none; }
.kicker-light { color: var(--gold); }

/* ---- Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 1.4rem;
  border-radius: 999px;
  background: var(--forest); color: var(--cream);
  font: 700 1rem/1 var(--sans);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--forest-deep); }
.btn-cream { background: var(--cream); color: var(--forest-deep); }
.btn-cream:hover { background: #fff; }
.btn-small { min-height: 40px; padding: 0 1.05rem; font-size: 0.92rem; }
.appstore { display: inline-block; line-height: 0; }
.appstore img { width: 150px; height: 50px; }

/* ---- Header ----------------------------------------------------------- */

.site-header { position: relative; z-index: 10; flex: none; color: var(--cream); background: var(--forest-deep); box-shadow: 0 1px 0 rgba(255, 252, 245, 0.08); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; padding: 0 clamp(1rem, 2.4vw, 1.75rem); }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: inherit; text-decoration: none; font: 800 1.45rem/1 var(--sans); letter-spacing: -0.04em; }
.brand .mark { width: 30px; height: 41px; color: var(--leaf); }
.site-header .brand .mark { color: var(--cream); }
.site-header .brand .mark circle:first-child, .site-header .brand .mark path:last-child { fill: var(--forest); }
.main-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.main-nav a { color: var(--cream); text-decoration: none; font-weight: 600; font-size: 0.97rem; opacity: 0.86; }
.main-nav a:hover, .main-nav a[aria-current] { opacity: 1; text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.site-header .btn { background: var(--cream); color: var(--forest-deep); }

.map-toggle .when-mapping, .map-mode .map-toggle .when-reading { display: none; }
.map-mode .map-toggle .when-mapping { display: inline; }

@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; gap: 0.2rem 1rem; padding: 0.6rem 1rem 0.4rem; }
  .site-header .btn { margin-left: auto; }
  .main-nav { order: 3; width: 100%; margin: 0.35rem 0 0; gap: 1.2rem; overflow-x: auto; padding-bottom: 0.3rem; scrollbar-width: none; }
  .main-nav a { white-space: nowrap; font-size: 0.92rem; }
}

/* ---- Heroes ----------------------------------------------------------- */

.hero, .post-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--cream);
  background: var(--forest-deep);
  min-height: 420px;
  display: flex; align-items: flex-end;
}
.hero-short, .post-hero { min-height: 360px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg .scene, .hero-photo { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 31, 25, 0.78) 0%, rgba(10, 31, 25, 0.35) 55%, rgba(10, 31, 25, 0) 80%),
    linear-gradient(0deg, rgba(10, 31, 25, 0.7) 0%, rgba(10, 31, 25, 0) 45%);
  pointer-events: none;
}
.hero-inner { position: relative; padding: 5rem 0 2.6rem; }
.hero h1, .post-hero h1 { max-width: 16ch; text-wrap: balance; }
.hero h1 em, .post-hero h1 em { color: var(--gold); }
.post-hero h1 { font-size: clamp(1.9rem, 3vw, 2.7rem); max-width: 22ch; }
.hero-lead { font-size: 1.12rem; max-width: 34rem; color: rgba(255, 252, 245, 0.9); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-top: 2rem; }
.hero-note { margin-top: 1rem; font-size: 0.92rem; color: rgba(255, 252, 245, 0.72); }
.post-meta { color: rgba(255, 252, 245, 0.78); font-size: 0.95rem; }

.photo-credit {
  position: absolute; right: 1rem; bottom: 0.6rem; z-index: 1; margin: 0;
  font-size: 0.72rem; color: rgba(255, 252, 245, 0.7);
}
.photo-credit a { color: inherit; }

.hero-home { min-height: 0; background: var(--forest-deep); }
.hero-home .hero-inner { padding: 3.2rem 0 2.6rem; }
.map-hint { display: flex; gap: 0.75rem; align-items: flex-start; margin: 1.6rem 0 0; padding: 0.95rem 1.1rem; border-radius: 14px; background: rgba(255, 252, 245, 0.08); border: 1px solid rgba(255, 252, 245, 0.14); font-size: 0.97rem; color: rgba(255, 252, 245, 0.9); }
.map-hint strong { color: var(--gold); }
.map-hint .arrow { font-size: 1.4rem; line-height: 1; color: var(--gold); }
.hint-narrow { display: none; }
@media (max-width: 820px) { .hint-wide { display: none; } .hint-narrow { display: inline; } }

/* Each page tints the drawn landscape. */
.hero-page-story { --sky-1: #081a15; --sky-2: #16372d; --sky-3: #3f6b5c; --moon: #fff4dc; --road: #8c9f8f; }
.hero-short { --sky-3: #f2b98c; }
.hero-plain { --sky-1: #111c2e; --sky-2: #283f4f; --sky-3: #d88e6c; --m1: #4b6068; --m2: #2b4448; --m3: #19332f; }

.hero-bg::after { background: linear-gradient(0deg, rgba(10, 31, 25, 0.9) 5%, rgba(10, 31, 25, 0.3) 70%, rgba(10, 31, 25, 0.15)); }
@media (max-width: 820px) {
  .hero, .hero-short, .post-hero { min-height: 300px; }
  .hero-inner { padding: 3rem 0 1.8rem; }
}

/* ---- Live stats ------------------------------------------------------- */

.stats { background: var(--night); color: var(--cream); padding: 2.4rem 0 2rem; border-top: 1px solid rgba(255, 252, 245, 0.08); }
.stats-label { display: flex; align-items: center; gap: 0.6rem; font: 700 0.78rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--leaf); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 0 rgba(86, 184, 112, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(86, 184, 112, 0); } 100% { box-shadow: 0 0 0 0 rgba(86, 184, 112, 0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1.2rem; margin: 1.2rem 0 1rem; }
.stats-grid div { display: flex; flex-direction: column-reverse; }
.stats-grid dd { margin: 0; font: 600 clamp(2rem, 3vw, 2.6rem)/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats-grid dt { color: rgba(255, 252, 245, 0.72); margin-top: 0.4rem; }
.stats-note { font-size: 0.86rem; color: rgba(255, 252, 245, 0.55); margin: 0; }

/* ---- Sections --------------------------------------------------------- */

.section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-sand { background: var(--band); }
.section-forest { background: var(--forest); color: var(--cream); }
.section-forest a { color: var(--gold); }
.section-title { max-width: 22ch; text-wrap: balance; margin-bottom: 2.2rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.more { font-weight: 700; }
.more a, a.more { text-decoration: none; }

.split { display: grid; gap: 0.5rem; }
.split h2 { text-wrap: balance; }
.prose-block p { font-size: 1.08rem; }

.steps { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; }
.steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; }
.steps li .step-num { grid-row: span 2; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.step-num { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--forest); color: var(--cream); font: 600 1.15rem/1 var(--display); }
.steps h3 { margin-bottom: 0.3rem; }
.steps p { color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem 1.8rem; }
.feature { border-top: 2px solid var(--forest); padding-top: 1.1rem; }
.feature h3 { font-size: 1.22rem; }
.feature p { color: var(--muted); margin: 0; }
@media (prefers-color-scheme: dark) { .feature, .steps li { border-color: var(--leaf); } .step-num { background: var(--leaf); color: var(--night); } }

/* ---- Quote band ------------------------------------------------------- */

.quote-band { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, #7a3b22 0%, var(--night) 60%); color: var(--cream); padding: clamp(4.5rem, 9vw, 6.5rem) 0; text-align: center; }
.quote-bg { position: absolute; inset: 0; z-index: -1; }
.quote-bg img { width: 100%; height: 100%; object-fit: cover; }
.quote-bg:has(img)::after { content: ""; position: absolute; inset: 0; background: rgba(10, 31, 25, 0.55); }
.quote-inner blockquote { margin: 0 0 2rem; }
.quote-inner blockquote p { font: italic 500 clamp(1.7rem, 2.8vw, 2.4rem)/1.2 var(--display); letter-spacing: -0.015em; text-wrap: balance; margin: 0; }

/* ---- Journal ---------------------------------------------------------- */

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.4rem; }
.post-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s ease; }
.post-card:hover { transform: translateY(-3px); }
.post-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.post-card-media { aspect-ratio: 5 / 3; background: var(--forest-deep); }
.post-card-media img, .post-card-media svg { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 1.3rem 1.4rem 1.6rem; }
.post-card-body .kicker { margin-bottom: 0.6rem; }
.post-card h3 { font-size: 1.28rem; margin-bottom: 0.5rem; }
.post-card-link:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.post-card-body .post-card-desc { color: var(--muted); font-size: 0.97rem; margin: 0; }

.card-art .a-sky { fill: #2f5a4b; }
.card-art .a-sun { fill: var(--gold); }
.card-art .a-far { fill: #3f6a5a; }
.card-art .a-near { fill: #173a2f; }
.card-art .a-tent { fill: var(--coral); }
.art-sea .a-sky { fill: #8fb9c4; } .art-sea .a-far { fill: #4f8a9a; } .art-sea .a-near { fill: #1f4f5a; } .art-sea .a-sun { fill: #fff1c9; }
.art-dusk .a-sky { fill: #e9a47a; } .art-dusk .a-far { fill: #9a5d52; } .art-dusk .a-near { fill: #3a2a33; }
.art-night .a-sky { fill: #14233a; } .art-night .a-far { fill: #26384d; } .art-night .a-near { fill: #0c1622; } .art-night .a-sun { fill: #fff4dc; }
.art-forest .a-sky { fill: #cfe3c9; } .art-forest .a-far { fill: #6f9d78; } .art-forest .a-near { fill: #174c3c; } .art-forest .a-sun { fill: #fff8e4; }

.post-body { padding: clamp(2.4rem, 5vw, 3.5rem) 0; }

/* ---- Story ------------------------------------------------------------ */

.story { padding: clamp(2.4rem, 5vw, 3.5rem) 0 0; }
.prose-story { font-size: 1.12rem; }
.prose-story h2 { margin-top: 2.4em; }
.prose-story h2:first-child { margin-top: 0; }
.dropcap::first-letter { float: left; font: 600 4.2em/0.82 var(--display); margin: 0.08em 0.1em 0 0; color: var(--forest); }
@media (prefers-color-scheme: dark) { .dropcap::first-letter { color: var(--leaf); } }
.principles-wrap { background: var(--band); padding: clamp(3rem, 7vw, 4.5rem) 0; margin: clamp(2.5rem, 6vw, 4rem) 0; }
.principles { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem 1.8rem; }
.principles li { counter-increment: p; }
.principles li::before { content: counter(p, decimal-leading-zero); display: block; font: italic 500 2.6rem/1 var(--display); color: var(--accent); margin-bottom: 0.7rem; }
.principles p { color: var(--muted); margin: 0; }
.signoff { font: italic 500 1.5rem/1.4 var(--display); margin-top: 2rem; }
.signoff span { font: 700 0.95rem/1 var(--sans); font-style: normal; color: var(--muted); }
.story + .cta-band { margin-top: clamp(3rem, 7vw, 4.5rem); }

/* ---- Prose (reading pages) ------------------------------------------- */

.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.55em; }
.prose li::marker { color: var(--accent); }
.prose .lead { font-size: 1.24rem; line-height: 1.55; color: var(--ink); }
.prose .aside { margin-top: 2.5em; padding: 1.2rem 1.4rem; border-radius: var(--radius); background: var(--band); font-size: 1rem; }
.prose code { background: var(--band); padding: 0.1em 0.35em; border-radius: 5px; font-size: 0.88em; }
.prose table { border-collapse: collapse; margin: 1.2rem 0 1.6rem; width: 100%; font-size: 0.97rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.8rem 0.6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose .photo-figure { margin: 2rem 0; }
.prose .photo-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.prose .photo-figure figcaption { margin-top: 0.45rem; font-size: 0.78rem; color: var(--muted, inherit); }
.prose .photo-figure figcaption a { color: inherit; }
.prose .box { border-left: 3px solid var(--leaf); padding: 0.5rem 0 0.5rem 1.2rem; margin: 1.8rem 0; }
.prose address { font-style: normal; font-size: 1.1rem; line-height: 1.7; }
.prose pre.letter {
  white-space: pre-wrap; font: 400 0.98rem/1.6 ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--coral);
  border-radius: 12px; padding: 1.3rem 1.5rem; margin: 1.5rem 0; overflow-x: auto;
}
.prose-page #panel-content > .prose { padding: clamp(2.4rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.prose-page .prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.h1-aside { font-weight: 400; font-style: italic; color: var(--muted); font-size: 0.6em; }
.contact-card { display: inline-block; padding: 0.9rem 1.3rem; border-radius: 14px; background: var(--band); font-weight: 700; font-size: 1.1rem; }
.contact-card a { text-decoration: none; }

.page-grid { padding: 2.2rem 0 clamp(3rem, 7vw, 4.5rem); }
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.4rem; font-size: 0.9rem; }
.toc .kicker { width: 100%; margin-bottom: 0.3rem; }
.toc a { padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--band); color: var(--ink); text-decoration: none; font-weight: 600; }
.toc a:hover { background: var(--line); }
.prose h2[id] { scroll-margin-top: 4rem; }

/* ---- CTA band --------------------------------------------------------- */

.cta-band { background: var(--forest); color: var(--cream); padding: clamp(3.5rem, 7vw, 5rem) 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; background: radial-gradient(ellipse at 50% 100%, rgba(244, 124, 92, 0.35), transparent 60%); pointer-events: none; }
.cta-inner { position: relative; }
.cta-band h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.cta-band p { color: rgba(255, 252, 245, 0.8); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; align-items: center; margin-top: 1.8rem; }

/* ---- Footer ----------------------------------------------------------- */

.site-footer { background: var(--night); color: rgba(255, 252, 245, 0.78); padding: 4rem 0 2rem; font-size: 0.95rem; }
.site-footer a { color: rgba(255, 252, 245, 0.78); text-decoration: none; }
.site-footer a:hover { color: var(--cream); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 2rem; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .brand { color: var(--cream); margin-bottom: 1rem; }
.footer-brand .brand .mark { color: var(--forest); }
.footer-brand p { max-width: 22rem; }
.site-footer nav { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer h2 { font: 700 0.75rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--leaf); margin: 0.4rem 0 0.6rem; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem; border-top: 1px solid rgba(255, 252, 245, 0.1); margin-top: 3rem; padding-top: 1.5rem; font-size: 0.85rem; color: rgba(255, 252, 245, 0.55); }
.footer-base p { margin: 0; }

/* ---- Journal authors -------------------------------------------------- */

/* A post, card or filter link takes its author's hand and ink from by-<slug>.
   --hand-size evens out how large each face looks at the same font-size. */
.by-elfriede { --hand: "Kalam", "Bradley Hand", cursive; --hand-size: 1; --pen: var(--ink-elfriede); }
.by-bo { --hand: "Caveat", "Bradley Hand", cursive; --hand-size: 1.2; --pen: var(--ink-bo); }
.by-oliver { --hand: "Dancing Script", "Snell Roundhand", cursive; --hand-size: 1.1; --pen: var(--ink-oliver); }
.hand { font-family: var(--hand, var(--display)); letter-spacing: 0; }

.author-drawing { display: block; height: auto; flex: none; }

.post-title { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.2rem); margin-bottom: 0.6rem; }
.post-title .author-drawing { width: clamp(60px, 9vw, 92px); color: var(--cream); }
.post-hero .post-title h1 { font-size: calc(clamp(2rem, 3.4vw, 2.9rem) * var(--hand-size, 1)); font-weight: 600; line-height: 1.12; letter-spacing: 0; max-width: 20ch; margin: 0; }

.prose .photo-figure.has-note { position: relative; }
.photo-note {
  position: absolute; right: 3%; bottom: 2rem; max-width: 80%;
  transform: rotate(-3deg);
  padding: 0.1em 0.55em; border-radius: 8px;
  background: var(--surface); color: var(--pen); box-shadow: var(--shadow);
  font-size: calc(1.3rem * var(--hand-size, 1)); line-height: 1.25;
}
.prose .post-ps { font-family: var(--hand); color: var(--pen); font-size: calc(1.3rem * var(--hand-size, 1)); line-height: 1.4; margin-top: 2.2rem; }
.post-signoff { color: var(--pen); font-size: calc(1.7rem * var(--hand-size, 1)); line-height: 1.25; text-align: right; margin: 1.8rem 0 0; transform: rotate(-1.5deg); }
.post-author { display: flex; gap: 1rem; align-items: flex-start; margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--muted); }
.post-author .author-drawing { width: 64px; color: var(--pen); margin-top: 0.2rem; }
.post-author p { margin: 0; min-width: 0; }

.prose .tips { background: var(--band); border-radius: var(--radius); padding: 1.1rem 1.4rem; margin: 1.8rem 0; font-size: 1rem; }
.prose .tips h3 { font: 700 0.78rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.6rem; }
.prose .tips ul { margin: 0; }

.post-card-body p.post-card-author { display: flex; align-items: center; gap: 0.55rem; margin: 1rem 0 0; color: var(--pen); }
.post-card-author .author-drawing { width: 40px; }
.post-card-author .hand { font-size: calc(1.3rem * var(--hand-size, 1)); line-height: 1; }

.author-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.8rem; }
.author-filter a { padding: 0.5rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.author-filter a:hover { border-color: var(--pen, var(--forest)); }
.author-filter a[aria-current="page"] { background: var(--forest); border-color: var(--forest); color: var(--cream); }
