/* ============================================================
   realppl.me - handmade stylesheet
   theme: "the illuminated terminal"
   dark forest green + phosphor terminal text + gold interlace
   ------------------------------------------------------------
   all ornament is hand-coded inline SVG. system fonts only.
   no external requests of any kind.
   edit the custom properties below to retune the whole site.
   ============================================================ */

:root {
  --void:      #050b07;   /* deepest background */
  --deep:      #0a140d;   /* page background */
  --panel:     #0d1a11;   /* cards */
  --panel-2:   #122419;   /* cards, hover */
  --moon:      #e3f0e5;   /* headings - moonlight through canopy */
  --sage:      #a9c3af;   /* body text */
  --fern:      #6f9681;   /* muted text */
  --phosphor:  #7ef0a8;   /* terminal green */
  --phos-dim:  #55a878;   /* terminal green, quiet */
  --gold:      #d9ba7a;   /* gold leaf / nouveau lines */
  --gold-dim:  #9a8352;
  --hair:      rgba(217,186,122,0.22);   /* gold hairlines */
  --hair-g:    rgba(126,240,168,0.16);   /* green hairlines */

  /* legacy aliases - utility pages (game, stream, admin) still
     reference the old names; they map onto the forest palette. */
  --paper:    var(--deep);
  --paper-2:  var(--panel);
  --ink:      var(--moon);
  --ink-soft: var(--sage);
  --rust:     var(--gold);
  --teal:     var(--phosphor);
  --mustard:  var(--gold);
  --rule:     var(--hair);

  --serif:  Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans:   -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:   ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;

  --measure: 36rem; /* readable line length */
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* the hidden attribute always wins, even over explicit display rules */
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--sage);
  background-color: var(--deep);
  /* forest depth: layered green shadow, moonlight from above */
  background-image:
    radial-gradient(ellipse 90rem 40rem at 50% -8rem, rgba(126,240,168,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50rem 60rem at 12% 30%, rgba(6,32,18,0.9) 0%, transparent 70%),
    radial-gradient(ellipse 60rem 70rem at 88% 65%, rgba(4,26,14,0.9) 0%, transparent 70%),
    linear-gradient(180deg, var(--void) 0%, var(--deep) 22rem);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
/* faint scanlines - the crt ghost. barely there on purpose. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(0, 0, 0, 0.10) 3px 4px
  );
  opacity: 0.5;
}
main, header, footer { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--phosphor);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--phos-dim);
}
a:hover { color: var(--gold); text-decoration-color: var(--gold); }
a:focus-visible {
  outline: 2px dashed var(--phosphor);
  outline-offset: 2px;
}

::selection { background: rgba(126,240,168,0.25); color: var(--moon); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--moon);
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin: 0 0 0.5em;
  font-style: italic;
}
/* a gold thread runs out from under every heading */
h2::after {
  content: "";
  display: block;
  width: 7rem;
  height: 1px;
  margin-top: 0.45em;
  background: linear-gradient(90deg, var(--gold), rgba(217,186,122,0));
}
h3 {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.14em;
  color: var(--phosphor);
  margin: 0 0 0.7em;
}
h3::before { content: "> "; color: var(--phos-dim); }

/* ---------- layout containers ---------- */
main { display: block; }
section {
  max-width: 64rem;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}
.section-note {
  color: var(--fern);
  font-style: italic;
  max-width: var(--measure);
  margin: 0 0 2rem;
}

/* subpage top bar: the way back home */
.backbar {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0;
  text-align: center;
}
.backbar a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--phosphor);
  text-decoration: none;
}
.backbar a::before { content: "[ "; color: var(--gold-dim); }
.backbar a::after  { content: " ]"; color: var(--gold-dim); }
.backbar a:hover { color: var(--gold); text-shadow: 0 0 10px rgba(217,186,122,0.5); }

/* ============ ORNAMENT ============ */
.knot-divider {
  display: block;
  width: min(340px, 78vw);
  height: 42px;
  margin: 0 auto;
  color: var(--gold);
  opacity: 0.85;
  filter: drop-shadow(0 0 5px rgba(217,186,122,0.3));
}
.knot-divider-top { margin-bottom: 1rem; }

/* ============ HERO ============ */
.hero {
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
}
@media (min-width: 720px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }
}
.prompt {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--phos-dim);
  margin: 0 0 1.1rem;
}
.prompt-user { color: var(--phosphor); }
.prompt-path { color: var(--gold); }
.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 0.25em;
  vertical-align: text-bottom;
  background: var(--phosphor);
  box-shadow: 0 0 8px rgba(126,240,168,0.8);
  animation: blink 1.15s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.name {
  font-size: clamp(3rem, 10vw, 5.5rem);
  margin: 0;
  line-height: 1;
  font-style: italic;
  color: var(--moon);
  text-shadow:
    0 0 24px rgba(126,240,168,0.25),
    0 0 60px rgba(126,240,168,0.12);
}
.tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  margin: 1.3rem 0 0.7rem;
  font-style: italic;
  color: var(--sage);
  max-width: 28rem;
}
.meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fern);
  margin: 0;
}

/* the photo: an arched window in the trees, gold-leafed */
.hero-photo {
  margin: 0 0 0 auto;
  position: relative;
  max-width: 19rem;
}
@media (max-width: 719px) {
  .hero-photo { max-width: 15.5rem; margin: 0 auto; }
}
.arch {
  position: relative;
  border-radius: 10rem 10rem 10px 10px;
  padding: 9px;
  background:
    linear-gradient(160deg, rgba(217,186,122,0.85), rgba(154,131,82,0.5) 40%, rgba(217,186,122,0.75)) border-box;
  box-shadow:
    0 0 0 1px rgba(217,186,122,0.35),
    0 20px 50px -16px rgba(0,0,0,0.85),
    0 0 40px rgba(126,240,168,0.08);
}
.arch::before {
  /* inner hairline between gold band and photo */
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 9.7rem 9.7rem 8px 8px;
  border: 1px solid rgba(5,11,7,0.9);
  pointer-events: none;
}
.arch img {
  width: 100%;
  border-radius: 9.4rem 9.4rem 6px 6px;
  aspect-ratio: 27 / 32;
  object-fit: cover;
  background: var(--panel);
  filter: saturate(0.96);
}
.hero-photo figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fern);
  text-align: center;
  margin-top: 0.8rem;
}
/* nouveau tendrils curling off the arch's shoulders */
.flourish {
  position: absolute;
  width: 58px;
  height: 58px;
  color: var(--gold);
  opacity: 0.9;
  filter: drop-shadow(0 0 5px rgba(217,186,122,0.3));
  pointer-events: none;
}
.flourish-l { left: -30px; bottom: -6px; }
.flourish-r { right: -30px; bottom: -6px; transform: scaleX(-1); }

.jumpnav {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--gold-dim);
  text-align: center;
}
.jumpnav a {
  margin: 0 0.35rem;
  text-decoration: none;
  color: var(--phosphor);
}
.jumpnav a::before { content: "["; color: var(--gold-dim); margin-right: 0.35em; }
.jumpnav a::after  { content: "]"; color: var(--gold-dim); margin-left: 0.35em; }
.jumpnav a:hover {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(217,186,122,0.5);
}

/* ============ CURRENTLY ============ */
.now-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 600px) {
  .now-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
}
.now-col {
  background: linear-gradient(170deg, var(--panel-2), var(--panel) 55%);
  padding: 1.3rem 1.2rem 1.1rem;
  border: 1px solid var(--hair);
  border-radius: 6px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
/* a gold pip at each card's crown, like a nail of light */
.now-col::before {
  content: "";
  position: absolute;
  top: -4px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 7px; height: 7px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(217,186,122,0.7);
}
.now-col:hover {
  border-color: rgba(126,240,168,0.4);
  box-shadow: 0 0 24px rgba(126,240,168,0.08), 0 14px 30px -18px rgba(0,0,0,0.9);
  transform: translateY(-2px);
}
.now-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}
.now-col li {
  padding: 0.4rem 0;
  border-bottom: 1px dotted var(--hair-g);
}
.now-col li:last-child { border-bottom: none; }
.updated {
  text-align: right;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fern);
  margin-top: 1.75rem;
}

/* ============ ABOUT / PROSE ============ */
.prose {
  max-width: var(--measure);
  margin: 0;
  font-size: 1.075rem;
}
.prose p { margin: 0 0 1.1em; }
.prose .lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: #c6d9ca;
}
.prose .lede::first-letter {
  font-size: 3.4rem;
  float: left;
  line-height: 0.85;
  padding: 0.12rem 0.55rem 0 0;
  color: var(--gold);
  font-weight: 700;
  font-style: normal;
  text-shadow: 0 0 14px rgba(217,186,122,0.4);
}
.signoff {
  font-style: italic;
  color: var(--fern);
  margin-top: 2rem;
}

.see-all-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--phosphor);
  text-decoration: none;
  border-bottom: 1px solid var(--phos-dim);
  padding-bottom: 2px;
}
.see-all-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
  text-shadow: 0 0 10px rgba(217,186,122,0.5);
}

/* ============ ARTICLE PAGE (about.html, future articles) ============ */
.article-page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
.article-head {
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--hair);
}
.article-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--phos-dim);
  margin: 0 0 0.4rem;
}
.article-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--moon);
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
  text-shadow: 0 0 24px rgba(126,240,168,0.18);
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--fern);
  margin: 0;
}
.article-tag {
  background: var(--panel);
  border: 1px solid var(--hair-g);
  padding: 0.1rem 0.5rem;
  border-radius: 2px;
  color: var(--phosphor);
  text-transform: lowercase;
  letter-spacing: 0.05em;
}
.article-updated {
  margin-left: auto;
  font-style: italic;
}
.article-prose {
  max-width: 36rem;
  margin: 0 auto;
}
.article-prose p {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 0 1.1em;
}
.article-prose .lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: #c6d9ca;
}
.article-prose .lede::first-letter {
  font-size: 3.2rem;
  float: left;
  line-height: 0.9;
  padding: 0.1rem 0.5rem 0 0;
  color: var(--gold);
  font-weight: 700;
  text-shadow: 0 0 14px rgba(217,186,122,0.4);
}
.article-refs {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--fern);
}
.article-refs h3 {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  margin: 0 0 0.6rem;
}
.article-refs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.article-refs li { padding: 0.3rem 0; }

/* ============ GALLERY ============ */
/* album chips: which room of the gallery you're in. locked rooms
   answer the same way locked lists do everywhere on the site. */
.albums {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1rem;
}
.album-chip {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--sage);
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
}
.album-chip.active {
  color: var(--phosphor);
  border-color: rgba(126,240,168,0.4);
}
button.album-chip {
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
button.album-chip:hover {
  border-color: var(--phosphor);
  box-shadow: 0 0 14px rgba(126,240,168,0.15);
}
.album-chip .lock-glyph { color: var(--gold-dim); margin-left: 0.4em; }
.albums-note {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fern);
  margin: 0 0 2.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 2rem 1.4rem;
  align-items: start;
}
.ph { margin: 0; }
/* every photo sits in its own gold-leafed window, like the hero arch.
   three window shapes rotate through the wall. */
.frame {
  position: relative;
  padding: 6px;
  background: linear-gradient(160deg, rgba(217,186,122,0.8), rgba(154,131,82,0.45) 40%, rgba(217,186,122,0.7)) border-box;
  box-shadow:
    0 0 0 1px rgba(217,186,122,0.3),
    0 14px 34px -14px rgba(0,0,0,0.85);
}
.frame img {
  width: 100%;
  object-fit: cover;
  background: var(--panel);
  filter: saturate(0.96);
}
.frame-arch       { border-radius: 8rem 8rem 8px 8px; }
.frame-arch img   { border-radius: 7.7rem 7.7rem 5px 5px; aspect-ratio: 4 / 5; }
.frame-round      { border-radius: 50%; }
.frame-round img  { border-radius: 50%; aspect-ratio: 1 / 1; }
.frame-plain      { border-radius: 8px; }
.frame-plain img  { border-radius: 5px; aspect-ratio: 4 / 5; }

/* the single dark hairline inside the gold band - the detail that
   makes the hero window read as a real frame. matches .arch::before. */
.frame::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(5,11,7,0.85);
  pointer-events: none;
  z-index: 1;
}
.frame-arch::before  { border-radius: 7.8rem 7.8rem 6px 6px; }
.frame-round::before { border-radius: 50%; }
.frame-plain::before { border-radius: 6px; }

/* nouveau tendrils on the gallery frames, echoing the hero arch.
   smaller than the hero's, tucked into the bottom corners. */
.frame .flourish { width: 42px; height: 42px; }
.frame .flourish-l { left: -14px; bottom: -4px; }
.frame .flourish-r { right: -14px; bottom: -4px; }
.ph figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fern);
  margin-top: 0.7rem;
  line-height: 1.5;
  padding: 0 0.2rem;
}
.ph figcaption strong {
  color: var(--sage);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0;
}

/* ============ DISPATCHES ============ */
.dispatches-head {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.dispatches-tag {
  font-family: var(--serif);
  font-style: italic;
  color: var(--fern);
  margin: 0;
}

/* terminal-style buttons: reveal, summaries, vault locks */
.dispatches-reveal,
.hiring-summary,
.vault-lock {
  display: inline-block;
  margin: 0.5rem 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  background: rgba(126,240,168,0.04);
  color: var(--phosphor);
  border: 1px solid rgba(126,240,168,0.35);
  padding: 0.75rem 1.4rem;
  cursor: pointer;
  border-radius: 4px;
  list-style: none;
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.dispatches-reveal { display: block; margin: 1rem auto; }
.dispatches-reveal::before, .hiring-summary::before, .vault-lock::before { content: "[ "; color: var(--gold-dim); }
.dispatches-reveal::after,  .hiring-summary::after,  .vault-lock::after  { content: " ]"; color: var(--gold-dim); }
.dispatches-reveal:hover,
.hiring-summary:hover,
.vault-lock:hover {
  background: rgba(126,240,168,0.09);
  border-color: var(--phosphor);
  box-shadow: 0 0 18px rgba(126,240,168,0.18);
}
.hiring-summary::-webkit-details-marker { display: none; }
.hiring-summary::marker { content: ""; }
details[open] > .hiring-summary {
  background: rgba(217,186,122,0.06);
  border-color: var(--hair);
  color: var(--gold);
}

/* the vault: personal lists stay out of the page source; this button
   asks for them. in the real build it calls the worker, which decides. */
.vault-lock {
  font-size: 0.78rem;
  padding: 0.55rem 1rem;
  margin-top: 0.9rem;
}
.vault-note {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--phos-dim);
  line-height: 1.6;
  margin: 0.9rem 0 0;
}
.vault-impl {
  color: var(--fern);
  font-size: 0.72rem;
}

/* ============ THE DOOR (front-door knock on the homepage) ============
   A celtic knocker in the ornament gold: small trinity-knot backplate,
   larger hanging ring. The ring swings on a 3D hinge (rotateX around
   the boss at y=53 of the 132-unit viewBox = 40.2%). Hover lifts it,
   clicking plays the knock and opens the terminal beside it; once the
   line is open the knocker goes inert (class .open, set in script.js). */
.door {
  text-align: center;
  padding-top: 2.5rem;
}

.door-scene {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  margin-top: 1.5rem;
}
.knocker-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
}
/* the knocker steps aside once the line is open (script.js sets hidden;
   this rule is needed because the flex display above would win otherwise) */
.knocker-col[hidden] { display: none; }
.knocker {
  position: relative;
  width: 150px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--gold);
  perspective: 340px;
  filter: drop-shadow(0 0 10px rgba(217,186,122,0.12));
  transition: filter 0.2s;
}
.knocker:hover,
.knocker:focus-visible {
  filter: drop-shadow(0 0 16px rgba(217,186,122,0.32));
}
.knocker:focus-visible {
  outline: 1px solid var(--gold-dim);
  outline-offset: 8px;
  border-radius: 10px;
}
.knocker svg { display: block; width: 100%; height: auto; }
.knocker-swing {
  position: absolute;
  inset: 0;
  transform-origin: 50% 40.2%; /* the hinge boss */
  transition: transform 0.25s ease;
  will-change: transform;
}
.knocker:hover .knocker-swing,
.knocker:focus-visible .knocker-swing { transform: rotateX(38deg); }
.knocker.knocking .knocker-swing { animation: knock-drop 0.5s ease-out; }
.knock-hint {
  margin: 0.7rem 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--phos-dim);
}
@keyframes knock-drop {
  0%   { transform: rotateX(38deg); }
  35%  { transform: rotateX(0deg); }
  55%  { transform: rotateX(14deg); }
  75%  { transform: rotateX(0deg); }
  100% { transform: rotateX(0deg); }
}

/* the line opens in the door's place, like a screen lighting up */
.door-line {
  width: min(36rem, 100%);
  height: 27rem;
  border: 1px solid var(--gold-dim);
  border-radius: 6px;
  overflow: hidden;
  background: #060d09;
  box-shadow: 0 0 24px rgba(126,240,168,0.08);
  animation: door-open 0.5s ease;
}
.door-line[hidden] { display: none; }
.door-line iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
@keyframes door-open {
  from { opacity: 0; transform: translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .knocker-swing { transition: none; }
  .knocker.knocking .knocker-swing,
  .door-line { animation: none; }
}

.dispatches-feed { display: grid; gap: 2.5rem; }

.post {
  padding: 1.6rem 1.5rem;
  background: linear-gradient(170deg, var(--panel-2), var(--panel) 60%);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--gold-dim);
  border-radius: 4px;
}
.post-meta {
  display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: baseline;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--fern);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.post-date { color: var(--phosphor); font-weight: 700; }
.post-type {
  border: 1px solid var(--hair-g);
  padding: 0.1rem 0.5rem;
  border-radius: 2px;
}
.post-type-dispatch      { color: var(--gold); border-color: var(--hair); }
.post-type-thought       { color: var(--phosphor); }
.post-type-story-chapter { color: var(--moon); }
.post-tag { color: var(--fern); font-style: italic; }
.post-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--moon);
  margin: 0 0 0.6rem;
  text-transform: none;
  letter-spacing: 0;
}
.post-title::before { content: none; }
.post-p {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 0.9em;
  max-width: var(--measure);
}

/* ============ CONTACT / FORM ============ */
.hiring, .application-reveal { margin: 0; }
.hiring-body { margin: 1.5rem 0 0; }

.contact-form-wrap { margin-top: 1.25rem; }
.contact-form { display: grid; gap: 1.1rem; }
.contact-form label { display: grid; gap: 0.35rem; }
.contact-form label > span {
  font-family: var(--serif);
  font-size: 1rem;
  color: #c6d9ca;
  line-height: 1.4;
}
.contact-form .field-note {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--fern);
  line-height: 1.5;
}
.contact-form input,
.contact-form textarea {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--moon);
  background: rgba(5,11,7,0.7);
  border: 1px solid var(--hair-g);
  padding: 0.65rem 0.8rem;
  border-radius: 4px;
  caret-color: var(--phosphor);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--phosphor);
  box-shadow: 0 0 14px rgba(126,240,168,0.18);
}
.contact-form textarea { resize: vertical; min-height: 4.5rem; }
.contact-form .form-section-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin: 2rem 0 0.25rem;
}
.contact-form button {
  justify-self: start;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  background: var(--phosphor);
  color: var(--void);
  border: none;
  padding: 0.85rem 1.7rem;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 700;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
  box-shadow: 0 0 20px rgba(126,240,168,0.25);
}
.contact-form button:hover {
  background: var(--gold);
  box-shadow: 0 0 26px rgba(217,186,122,0.4);
  transform: translateY(-1px);
}
.contact-form button:active { transform: translateY(0); }
.form-note {
  font-family: var(--mono);
  font-size: 0.85rem;
  margin: 0;
  min-height: 1.2em;
}
.form-note.ok  { color: var(--phosphor); }
.form-note.err { color: #e08a6a; }

/* honeypot - hide from real users */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ============ FOOTER ============ */
.foot {
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4.5rem;
  text-align: center;
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fern);
}
.foot p { margin: 0.35rem 0; }
.tiny { font-size: 0.7rem; opacity: 0.75; }
.foot .knot-divider { margin-bottom: 2rem; }

/* ============ SUBSCRIBE ============ */
.subscribe {
  display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center;
  margin-top: 0.4rem;
}
.subscribe-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hair);
}
.subscribe-rss {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--hair);
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  text-decoration: none;
}
.subscribe-rss:hover {
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(217,186,122,0.25);
  color: var(--gold);
}
.rss-glyph { display: inline-block; transform: translateY(-1px); }
.subscribe-email { display: flex; gap: 0.4rem; flex: 1; min-width: 16rem; }
.foot-subscribe {
  justify-content: center;
  flex: 0 1 auto;
  margin: 0 auto 1.75rem;
  max-width: 24rem;
}
.subscribe-email input[type="email"] {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 0.55rem 0.8rem;
  background: rgba(5,11,7,0.7);
  color: var(--moon);
  border: 1px solid var(--hair-g);
  border-radius: 4px;
  caret-color: var(--phosphor);
}
.subscribe-email input[type="email"]:focus {
  outline: none;
  border-color: var(--phosphor);
  box-shadow: 0 0 14px rgba(126,240,168,0.18);
}
.subscribe-email button {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  background: transparent;
  color: var(--phosphor);
  border: 1px solid rgba(126,240,168,0.35);
  padding: 0.55rem 1rem;
  cursor: pointer;
  border-radius: 4px;
}
.subscribe-email button:hover {
  background: rgba(126,240,168,0.09);
  border-color: var(--phosphor);
  box-shadow: 0 0 14px rgba(126,240,168,0.18);
}
.vh { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* ============ LIVE BADGE + WATCH MODAL ============ */
.live-badge {
  position: fixed;
  top: 1rem; right: 1rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--panel-2);
  color: var(--phosphor);
  border: 1px solid rgba(126,240,168,0.35);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-decoration: none;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.8);
}
.live-badge:hover { border-color: var(--phosphor); color: var(--gold); }
.live-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ff5040;
  box-shadow: 0 0 0 4px rgba(255,80,64,0.25);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,80,64,0.25); }
  50%      { box-shadow: 0 0 0 8px rgba(255,80,64,0.05); }
}
.watch-modal {
  border: 1px solid var(--hair);
  padding: 0;
  background: var(--void);
  color: var(--moon);
  max-width: min(90vw, 60rem);
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.8);
}
.watch-modal::backdrop { background: rgba(3,7,5,0.85); }
.watch-close-form { margin: 0; }
.watch-close {
  position: absolute; top: 0.4rem; right: 0.6rem;
  background: transparent; color: var(--sage);
  border: none; font-size: 1.8rem; line-height: 1;
  cursor: pointer; padding: 0.2rem 0.5rem;
}
#watch-video {
  display: block;
  width: 100%;
  background: #000;
  aspect-ratio: 16 / 9;
}
.watch-status {
  margin: 0;
  padding: 0.7rem 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fern);
  text-align: center;
}

/* ============ FIREFLIES ============ */
/* a few slow lights drifting between the trees. pure css, no js. */
.fireflies {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.firefly {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--phosphor);
  filter: blur(1px);
  box-shadow: 0 0 10px 2px rgba(126,240,168,0.5);
  opacity: 0;
  animation: drift 16s ease-in-out infinite, glimmer 4.2s ease-in-out infinite;
}
.firefly:nth-child(1) { left: 12%; top: 30%; animation-delay: 0s, 0.6s; }
.firefly:nth-child(2) { left: 78%; top: 18%; animation-delay: -5s, 1.8s; animation-duration: 21s, 5.1s; }
.firefly:nth-child(3) { left: 55%; top: 65%; animation-delay: -9s, 0s;   animation-duration: 18s, 3.6s; }
.firefly:nth-child(4) { left: 30%; top: 80%; animation-delay: -13s, 2.4s; animation-duration: 24s, 4.8s; }
.firefly:nth-child(5) { left: 90%; top: 55%; animation-delay: -3s, 1.2s;  animation-duration: 19s, 4.4s; }
@keyframes drift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3.5rem, 2.5rem); }
  50%  { transform: translate(2rem, 5rem); }
  75%  { transform: translate(4rem, 1.5rem); }
  100% { transform: translate(0, 0); }
}
@keyframes glimmer {
  0%, 100% { opacity: 0; }
  50%      { opacity: 0.85; }
}

/* ---------- reduced motion / contrast ---------- */
@media (prefers-reduced-motion: reduce) {
  .cursor, .live-dot, .firefly { animation: none; }
  .firefly { opacity: 0.4; }
  * { transition: none !important; }
}
@media (prefers-contrast: more) {
  :root {
    --sage: #d5e5d8;
    --fern: #b7ccbc;
    --hair: rgba(217,186,122,0.55);
    --hair-g: rgba(126,240,168,0.45);
  }
  body::before, .fireflies { display: none; }
}

/* ---------- print ---------- */
@media print {
  body { background: #fff; color: #000; }
  body::before, .fireflies, .jumpnav, .contact-form, .foot a { display: none; }
}
