/* ============================================================================
   JANITOR KID — Field Notes (devblog)
   Creepy-cartoon research lab. Functional first: a clean, readable blog feed
   wearing a fun costume. Dark warm bench · cream lab-note cards · type colours.
   Sections: 0 tokens · 1 reset · 2 header/CTA · 3 filters · 4 feed cards ·
             5 post view · 6 footer/personnel · 7 responsive · 8 reduced-motion
   ========================================================================== */

/* ── 0. tokens ──────────────────────────────────────────────────────────── */
:root {
  --bg:       #12150f;          /* warm dark lab bench */
  --bg2:      #1b2016;          /* lifted panels */
  --bg3:      #232a1c;
  --paper:    #efe7d2;          /* cream lab-note paper (readable) */
  --paper-sh: #ddd3b8;
  --ink:      #221c10;          /* text on paper */
  --ink-dim:  #6b6147;
  --bone:     #e9e3d2;          /* text on dark */
  --bone-dim: #9a9484;
  --line:     #34402a;

  --green:  #9bbf5a;   /* specimens (monster) */
  --amber:  #f0a84b;   /* prototypes (weapon) */
  --teal:   #5cc0b0;   /* facility (feature) */
  --red:    #d9573f;   /* warnings, light */
  --accent: var(--green);

  --shadow:  0 10px 24px -10px rgba(0,0,0,.7), 0 2px 6px rgba(0,0,0,.4);
  --shadow-lift: 0 18px 36px -12px rgba(0,0,0,.75), 0 4px 10px rgba(0,0,0,.45);

  --display: "Fredoka", system-ui, sans-serif;
  --mono:    "Space Mono", ui-monospace, monospace;
  --body:    system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* a distinct hand per researcher — the same five people, five different hands.
     --mult-* optically equalizes apparent x-height across the faces (some run
     small, some large) so no single hand shouts in the addenda list. */
  --hand-dr:     "Caveat", "Segoe Print", cursive;            --mult-dr: 1.1;     /* weary joined cursive */
  --hand-reece:  "Permanent Marker", "Comic Sans MS", cursive; --mult-reece: 0.9;  /* reckless felt-tip */
  --hand-wexler: "Reenie Beanie", "Bradley Hand", cursive;     --mult-wexler: 1.3; /* thin jittery scrawl */
  --hand-pim:    "Gochi Hand", "Comic Sans MS", cursive;       --mult-pim: 1.0;    /* round childlike */
  --hand-m:      "Architects Daughter", "Tahoma", sans-serif;  --mult-m: 1.08;     /* rigid neat print */
  --hand:        var(--hand-dr);   /* default lab hand = Dr. ▆▆▆ */

  --field-notes-size: clamp(18px, 1.05rem + 0.45vw, 24px);
  --field-notes-lh:   1.7;
  --addenda-size:     clamp(20px, 1.1rem + 0.4vw, 24px);
  --notes-rule:       clamp(30px, 7vw, 54px);  /* x of the red margin line */

  --r: 14px;  /* friendly rounded corners */
}

/* ── 1. reset ───────────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(155,191,90,.06), transparent 45%),
    radial-gradient(100% 100% at 50% 40%, transparent 60%, rgba(0,0,0,.5)),
    var(--bg);
  color: var(--bone); font-family: var(--body); line-height: 1.6;
  font-size: clamp(15px, .4vw + 14px, 17px);
  -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent;
  min-height: 100svh;
}
body::before { /* faint graph-paper bench texture */
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(155,191,90,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155,191,90,.035) 1px, transparent 1px);
  background-size: 28px 28px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
main, header, footer { position: relative; z-index: 1; }

.nb { color: var(--bone-dim); }
.redact { background: #14110b; color: transparent; border-radius: 3px; padding: 0 .35em;
  box-shadow: 0 1px 0 rgba(0,0,0,.5); user-select: none; }

/* ── DRAFT PREVIEW (local only; never appears on the deployed site) ──────── */
.draft-banner { position: sticky; top: 0; z-index: 999; background: var(--red); color: #fff;
  font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .3px;
  text-align: center; padding: 10px 14px; box-shadow: 0 2px 12px rgba(0,0,0,.55); }
.draft-flag { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 10.5px;
  letter-spacing: 1px; text-transform: uppercase; color: #fff; background: var(--red);
  padding: 3px 8px; border-radius: 5px; margin-bottom: 8px; align-self: flex-start; }
.card.is-draft { outline: 2px dashed var(--red); outline-offset: -2px; }
.draft-note { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 13px;
  color: var(--red); border: 1px dashed var(--red); border-radius: 8px; padding: 8px 12px; margin: 12px 0 4px; }

/* ── 2. header + CTA ────────────────────────────────────────────────────── */
.site-head { max-width: 1100px; margin: 0 auto; padding: clamp(20px,4vw,40px) clamp(16px,4vw,28px) 0; }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-jar { filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%,100%{transform: translateY(0) rotate(-2deg)} 50%{transform: translateY(-4px) rotate(2deg)} }
.brand-text { display: grid; }
.brand-game { font-family: var(--display); font-weight: 700; font-size: clamp(26px,5.4vw,40px);
  letter-spacing: .5px; color: #fff; line-height: 1; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.brand-sub { font-family: var(--hand); font-size: clamp(16px,2.4vw,20px); color: var(--green); margin-top: 2px; }

.head-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.cta { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .3px;
  padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); color: var(--bone);
  background: var(--bg2); transition: transform .12s ease, border-color .15s, background .15s, color .15s;
  display: inline-block; white-space: nowrap; }
.cta:hover { transform: translateY(-2px); border-color: var(--green); }
.cta-primary { background: var(--green); color: #16200a; border-color: var(--green); }
.cta-primary:hover { background: #aee063; }

.head-blurb { margin-top: 22px; max-width: 70ch; color: var(--bone-dim); font-size: clamp(15px,1.6vw,17px); }
.head-blurb strong { color: var(--bone); }

/* ── 3. filters ─────────────────────────────────────────────────────────── */
#app { max-width: 1100px; margin: 0 auto; padding: clamp(20px,4vw,34px) clamp(16px,4vw,28px) 60px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px;
  border-bottom: 1px dashed var(--line); padding-bottom: 16px; }
.filter { font-family: var(--mono); font-size: 13px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--bone-dim); transition: all .15s; }
.filter:hover { color: var(--bone); border-color: var(--bone-dim); }
.filter.active { background: var(--bone); color: var(--bg); border-color: var(--bone); font-weight: 700; }

/* ── 4. feed cards ──────────────────────────────────────────────────────── */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: clamp(18px,3vw,28px); }
.card {
  --accent: var(--green);
  position: relative; background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; text-align: left;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s;
}
.card[data-type="monster"] { --accent: var(--green); }
.card[data-type="weapon"]  { --accent: var(--amber); }
.card[data-type="feature"] { --accent: var(--teal); }
.card:not(.upcoming):hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--accent); }
.card-top { border-top: 4px solid var(--accent); }

.card-media { position: relative; aspect-ratio: 16/11; background:
  radial-gradient(80% 80% at 50% 30%, #232a1c, #12150f); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.card-tape { position: absolute; top: -8px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 92px; height: 22px; background: rgba(240,232,200,.22); border: 1px dashed rgba(240,232,200,.35); }
.badge { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-weight: 700;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #14180f;
  background: var(--accent); padding: 5px 9px; border-radius: 6px; box-shadow: var(--shadow);
  transform: rotate(-2deg); }

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-family: var(--display); font-weight: 700; font-size: 22px; color: #fff; line-height: 1.1; }
.card-meta { font-family: var(--mono); font-size: 11.5px; color: var(--bone-dim); letter-spacing: .2px; }
.card-meta .by { color: var(--accent); }
.card-excerpt { color: var(--bone-dim); font-size: 14.5px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.read { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--accent); }
.card:hover .read { text-decoration: underline; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-size: 10.5px; color: var(--bone-dim); border: 1px solid var(--line);
  padding: 2px 7px; border-radius: 999px; }

/* upcoming teaser card */
.card.upcoming { border-style: dashed; background: repeating-linear-gradient(135deg, var(--bg2) 0 16px, #181d12 16px 32px); cursor: default; }
.card.upcoming .card-media { aspect-ratio: 16/9; display: grid; place-content: center; }
.card.upcoming .coming { font-family: var(--display); font-weight: 700; color: var(--bone-dim); font-size: 15px;
  border: 2px dashed var(--line); padding: 18px 22px; border-radius: var(--r); transform: rotate(-2deg); text-align: center; }
.card.upcoming .stamp { position: absolute; top: 14px; right: 10px; font-family: var(--mono); font-weight: 700;
  color: var(--red); border: 2px solid var(--red); padding: 3px 8px; border-radius: 4px; transform: rotate(8deg);
  font-size: 11px; letter-spacing: 1px; opacity: .85; }

/* ── 5. post view ───────────────────────────────────────────────────────── */
#post-view { max-width: 800px; margin: 0 auto; }
.back { font-family: var(--mono); font-size: 13px; color: var(--bone-dim); display: inline-block; margin-bottom: 18px; }
.back:hover { color: var(--green); }

.post { --accent: var(--green); }
.post[data-type="weapon"]  { --accent: var(--amber); }
.post[data-type="feature"] { --accent: var(--teal); }

.post-badge { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 12px;
  letter-spacing: 1px; text-transform: uppercase; color: #14180f; background: var(--accent);
  padding: 6px 12px; border-radius: 6px; transform: rotate(-1.5deg); }
.post-title { font-family: var(--display); font-weight: 700; font-size: clamp(30px,6vw,48px);
  color: #fff; line-height: 1.05; margin: 14px 0 6px; }
.post-meta { font-family: var(--mono); font-size: 13px; color: var(--bone-dim); margin-bottom: 24px; }
.post-meta .by { color: var(--accent); }

/* the art, celebrated — full colour, framed like a pinned specimen photo */
.post-figure { position: relative; margin: 0 0 28px; background:
  radial-gradient(70% 70% at 50% 35%, #232a1c, #10140f); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(16px,4vw,34px); }
.post-figure::before, .post-figure::after { content: ""; position: absolute; top: -10px; width: 110px; height: 26px;
  background: rgba(240,232,200,.20); border: 1px dashed rgba(240,232,200,.32); }
.post-figure::before { left: 16%; transform: rotate(-3deg); }
.post-figure::after  { right: 16%; transform: rotate(2deg); }
.post-figure img { width: 100%; max-height: 60vh; object-fit: contain; margin: 0 auto;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.5)); }
.post-figcap { font-family: var(--mono); font-size: 12px; color: var(--bone-dim); text-align: center; margin-top: 14px; }

/* per-researcher handwriting — apply to any handwritten element; --hand-scale
   carries the optical-size multiplier so each face sits at a matched x-height */
.hand-dr     { font-family: var(--hand-dr);     --hand-scale: var(--mult-dr); }
.hand-reece  { font-family: var(--hand-reece);  --hand-scale: var(--mult-reece); }
.hand-wexler { font-family: var(--hand-wexler); --hand-scale: var(--mult-wexler); }
.hand-pim    { font-family: var(--hand-pim);    --hand-scale: var(--mult-pim); }
.hand-m      { font-family: var(--hand-m);      --hand-scale: var(--mult-m); }

/* the lab notes — handwritten by the author, on cream paper for readability */
.notes { background: linear-gradient(180deg, var(--paper), var(--paper-sh)); color: var(--ink);
  border-radius: var(--r); padding: clamp(22px,5vw,40px); box-shadow: var(--shadow); position: relative;
  transform: rotate(-.3deg);
  /* start the writing to the RIGHT of the margin rule, like a real notepad */
  padding-left: calc(var(--notes-rule) + clamp(20px, 2.5vw, 32px)); }
.notes::before { /* ruled margin line, like a notepad */
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--notes-rule); width: 2px;
  background: rgba(217,87,63,.25); }
.notes p { font-size: calc(var(--field-notes-size) * var(--hand-scale, 1)); line-height: var(--field-notes-lh);
  margin-bottom: .8em; letter-spacing: .2px; }
.notes p:last-child { margin-bottom: 0; }
.notes .redact { background: var(--ink); }
.signature { font-size: calc(clamp(22px,3.6vw,30px) * var(--hand-scale, 1)); font-weight: 700; color: var(--ink);
  margin-top: 1.1em; transform: rotate(-2deg); }
.signature .by-label { font-family: var(--mono); font-size: 12px; color: var(--ink-dim); display: block; transform: rotate(2deg); }

.post-tags { margin-top: 22px; }
.post-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px;
  border-top: 1px dashed var(--line); padding-top: 20px; }
.post-nav a { font-family: var(--mono); font-size: 13px; color: var(--bone-dim); max-width: 46%; }
.post-nav a:hover { color: var(--green); }
.post-nav a .pn-label { color: var(--green); display: block; font-weight: 700; }

/* ── 5b. rich post sections — designed lab readouts ─────────────────────── */
.post-status { font-family: var(--mono); font-size: 12px; color: var(--accent);
  border: 1px solid var(--accent); padding: 1px 9px; border-radius: 999px; white-space: nowrap; }

.lab-sec { margin-top: 38px; }
.sec-h { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sec-h::before { content: ""; width: 11px; height: 11px; background: var(--accent); border-radius: 2px;
  transform: rotate(45deg); flex: 0 0 auto; box-shadow: 0 0 12px var(--accent); }
.sec-h::after { content: ""; flex: 1; height: 0; border-top: 1px dashed var(--line); }
.sec-note { font-family: var(--hand); font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--bone-dim); font-size: 17px; }

/* a distressed rubber-stamp of the post TYPE, on the hero plate */
.fig-stamp { position: absolute; top: 12px; right: 12px; z-index: 3; font-family: var(--mono); font-weight: 700;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent);
  border: 2.5px solid var(--accent); border-radius: 6px; padding: 4px 11px; transform: rotate(6deg); opacity: .92; }

/* ── FIELD DESIGNATION → the creature card ──────────────────────────────── */
.creature-card { background: linear-gradient(160deg, var(--bg3), var(--bg2)); border: 1px solid var(--line);
  border-top: 3px solid var(--accent); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.cc-head { display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  border-bottom: 1px dashed var(--line); background: rgba(0,0,0,.18); }
.cc-stamp { flex: 0 0 auto; width: 66px; height: 66px; border-radius: 50%; display: grid; place-content: center;
  text-align: center; color: var(--accent); border: 2.5px dashed var(--accent); transform: rotate(-7deg); }
.cc-stamp-no { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1; }
.cc-stamp-sub { font-family: var(--mono); font-size: 8px; letter-spacing: 1px; text-transform: uppercase; opacity: .8; }
.cc-headmeta { display: grid; gap: 6px; }
.cc-type { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); }
.cc-status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; color: var(--bone-dim); }
.cc-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
.cc-status.ok { color: var(--green); } .cc-status.bad { color: var(--red); } .cc-status.warn { color: var(--amber); }
.cc-status.bad .cc-dot { animation: blip 1.4s steps(1) infinite; }
@keyframes blip { 50% { opacity: .25; } }
.cc-threat { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px dashed var(--line); }
.cc-threat-label { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--bone-dim); }
.cc-gauge { display: inline-flex; gap: 4px; }
.cc-gauge .pip { width: 22px; height: 12px; border-radius: 2px; background: #000; border: 1px solid var(--line); transform: skewX(-12deg); }
.cc-gauge .pip.on { background: linear-gradient(180deg, var(--amber), var(--red)); border-color: transparent; box-shadow: 0 0 8px rgba(217,87,63,.5); }
.cc-threat-read { font-family: var(--mono); font-size: 12px; color: var(--bone-dim); }
.cc-rows { padding: 6px 18px 16px; }
.cc-row { display: grid; grid-template-columns: minmax(110px,30%) 1fr; gap: 6px 16px; padding: 9px 0; }
.cc-row + .cc-row { border-top: 1px dotted var(--line); }
.cc-k { font-family: var(--mono); font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--bone-dim); padding-top: 2px; }
.cc-v { font-size: 16px; color: var(--bone); }
.cc-v .redact, .cc-threat-read .redact { background: #14110b; }

/* ── OBSERVED BEHAVIORS → monitoring feeds (the animation slots) ─────────── */
.obs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.obs { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.obs-feed { position: relative; aspect-ratio: 4/3; overflow: hidden; display: grid; place-content: center;
  background: radial-gradient(90% 90% at 50% 40%, #1a2016, #0a0d08); }
.obs-feed::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22;
  background: repeating-linear-gradient(rgba(255,255,255,.05) 0 1px, transparent 1px 3px); }
.obs-feedlabel { position: absolute; top: 8px; left: 9px; z-index: 2; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--accent); opacity: .85; }
.obs-corner { position: absolute; width: 14px; height: 14px; z-index: 2; border: 2px solid var(--accent); opacity: .55; }
.obs-corner.tl { top: 7px; left: 7px; border-right: 0; border-bottom: 0; }
.obs-corner.tr { top: 7px; right: 7px; border-left: 0; border-bottom: 0; }
.obs-corner.bl { bottom: 7px; left: 7px; border-right: 0; border-top: 0; }
.obs-corner.br { bottom: 7px; right: 7px; border-left: 0; border-top: 0; }
.obs-media { width: 100%; height: 100%; object-fit: contain; padding: 12px; display: block; position: relative; z-index: 1; }
.obs-empty-feed { display: grid; justify-items: center; gap: 7px; text-align: center; padding: 16px; color: var(--bone-dim); position: relative; z-index: 1; }
.obs-empty-icon { font-size: 26px; color: var(--accent); opacity: .6; animation: pend 3.2s ease-in-out infinite; }
@keyframes pend { 0%,100% { opacity: .3; } 50% { opacity: .75; } }
.obs-empty-tag { font-family: var(--mono); font-weight: 700; font-size: 11.5px; letter-spacing: 1px; }
.obs-empty-sub { font-family: var(--mono); font-size: 10px; color: #5d5b50; letter-spacing: .5px; }
.obs-cap { padding: 13px 16px 16px; }
.obs-slot { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.obs-tag { font-family: var(--mono); font-size: 9.5px; color: var(--bone-dim); border: 1px solid var(--line);
  border-radius: 999px; padding: 1px 7px; margin-left: 8px; text-transform: uppercase; letter-spacing: .5px; }
.obs-tag.cls { color: var(--red); border-color: var(--red); }
.obs-text { color: var(--bone-dim); font-size: 14.5px; margin-top: 8px; }
/* a classified feed is locked down + red */
.obs.is-classified .obs-feed { background: radial-gradient(90% 90% at 50% 40%, #2a1410, #0c0605); }
.obs.is-classified .obs-corner, .obs.is-classified .obs-feedlabel, .obs.is-classified .obs-empty-icon, .obs.is-classified .obs-slot { color: var(--red); border-color: var(--red); }

/* ── PERSONNEL ROSTER (e.g. the intro's team files) ─────────────────────── */
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 14px; }
.rost { background: linear-gradient(180deg, var(--paper), var(--paper-sh)); color: var(--ink); border-radius: var(--r);
  padding: 15px 17px; box-shadow: var(--shadow); border-left: 4px solid var(--accent); transform: rotate(var(--rot,0deg)); }
.rost-name { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); }
.rost-role { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-dim); margin-bottom: 9px; }
.rost-stats { display: grid; gap: 3px; margin-bottom: 9px; }
.rost-stat { font-family: var(--mono); font-size: 11.5px; color: #4a3f28; }
.rost-stat b { color: var(--ink); font-weight: 700; }
.rost-note { font-size: calc(17px * var(--hand-scale, 1)); color: var(--ink); line-height: 1.25; }

/* incident memo — a typed report on cream, with a red stamp */
.memo { position: relative; background: linear-gradient(180deg, var(--paper), var(--paper-sh)); color: var(--ink);
  border-radius: var(--r); padding: clamp(20px,4vw,30px); box-shadow: var(--shadow); font-family: var(--mono); }
.memo p { font-size: 15px; line-height: 1.7; margin-bottom: .7em; }
.memo p:last-child { margin-bottom: 0; }
.memo-stamp { position: absolute; top: 14px; right: 14px; font-family: var(--mono); font-weight: 700;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--red);
  border: 2px solid var(--red); padding: 3px 9px; border-radius: 5px; transform: rotate(7deg); opacity: .8; }

/* containment notes — a checklist */
.checklist { list-style: none; display: grid; gap: 11px; }
.checklist li { position: relative; padding-left: 30px; color: var(--bone); font-size: 15.5px; }
.checklist li::before { content: "▣"; position: absolute; left: 0; top: -1px; color: var(--accent); font-size: 16px; }
.checklist .redact { background: #14110b; }

/* researcher addenda — handwritten quote cards */
.addenda { display: grid; gap: 12px; }
.add-q { background: var(--bg2); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--r); padding: 12px 16px 14px; }
.add-who { font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--accent); }
.add-quote { font-size: calc(var(--addenda-size) * var(--hand-scale, 1)); color: var(--bone); line-height: 1.3; margin-top: 3px; }

.filed { font-family: var(--mono); font-size: 12px; color: var(--bone-dim); letter-spacing: .5px; margin-top: 22px; }

@media (max-width: 560px) { .obs-grid { grid-template-columns: 1fr; } .cc-row { grid-template-columns: 1fr; gap: 2px; } .cc-head { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .obs-empty-icon { animation: none; opacity: .55; } .cc-status.bad .cc-dot { animation: none; } }

/* ── 6. footer / personnel ──────────────────────────────────────────────── */
.site-foot { max-width: 1100px; margin: 0 auto; padding: 0 clamp(16px,4vw,28px) 60px; }
.personnel { border-top: 1px dashed var(--line); padding-top: 30px; }
.foot-h { font-family: var(--display); font-weight: 700; font-size: 22px; color: #fff; }
.foot-h-note { font-family: var(--hand); font-weight: 600; font-size: 18px; color: var(--bone-dim); }
.crew { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 14px; margin-top: 18px; }
.crew li { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px;
  transform: rotate(var(--rot,0deg)); }
.crew .who { font-family: var(--mono); font-weight: 700; color: var(--green); font-size: 14px; }
.crew .vibe { color: var(--bone-dim); font-size: 13.5px; margin-top: 3px; }

.foot-bottom { margin-top: 36px; display: grid; gap: 18px; justify-items: start; }
.foot-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.foot-fine { color: var(--bone-dim); font-size: 13px; max-width: 70ch; }
.foot-fine strong { color: var(--bone); }

.noscript { max-width: 1100px; margin: 0 auto; padding: 30px; color: var(--bone-dim); text-align: center; }

/* ── 7. responsive ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .head-inner { flex-direction: column; align-items: flex-start; }
  .feed { grid-template-columns: 1fr; }
  .notes { transform: none; }
}
@supports (padding: max(0px)) {
  .site-head, #app, .site-foot { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
}

/* ── 8. reduced motion ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .12s !important; }
  .brand-jar { animation: none; }
  .card:not(.upcoming):hover { transform: none; }
  .cta:hover { transform: none; }
}
