/* MarbaSec — "Marba$ Zine": a photocopied / risograph DIY hacker zine.
   Warm newsprint stock, heavy black ink, one electric-cyan spot colour,
   halftone dots and an off-register duotone signature. Archivo Black display,
   IBM Plex Mono for stamps/labels, IBM Plex Sans for reading.
   The mascot is the one full-colour thing pasted onto the page. */

@font-face { font-family: "Monoton"; src: url("/fonts/monoton.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("/fonts/unbounded.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #e2edee;        /* cyan-tint gray stock */
  --paper-2: #d3e2e3;      /* recessed panel */
  --ink: #16191a;          /* cool near-black — text + rules */
  --ink-2: #4f5a5a;        /* secondary text */
  --cyan: #00b9cf;         /* electric-cyan spot ink */
  --cyan-deep: #017c8e;    /* cyan that passes as text on paper */
  --cyan-wash: rgba(0, 185, 207, 0.16);
  --shadow: rgba(22, 25, 26, 0.9);
  --measure: 52rem;
  --wordmark: "Monoton", "Unbounded", sans-serif;   /* the big MARBA$ only */
  --display: "Unbounded", "Archivo Black", Impact, sans-serif;  /* headings + labels */
  --sans: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  /* halftone dot texture */
  --dots: radial-gradient(var(--ink) 1.1px, transparent 1.2px);
  --dots-cyan: radial-gradient(var(--cyan) 1.1px, transparent 1.2px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  background-color: var(--paper);
  /* faint paper grain: two offset dot fields */
  background-image: var(--dots), var(--dots);
  background-size: 7px 7px, 7px 7px;
  background-position: 0 0, 3.5px 3.5px;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* keep the grain whisper-faint so text stays crisp */
body { background-blend-mode: normal; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: var(--paper); opacity: 0.955; pointer-events: none;
}

::selection { background: var(--cyan); color: var(--ink); }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 2px; text-decoration-color: var(--cyan); }
a:hover { color: var(--cyan-deep); }
a:visited { color: var(--ink); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--ink); color: var(--paper); border: 3px solid var(--cyan); padding: 8px 12px; }

/* mono utility look, used for all "stamped" language */
.kicker, .page-path, .event-date, .event-role, .stat .unit, .post-meta,
.year, code, pre, .tile .tag, .fig-label, .colophon, .zush-head .ref,
.tagline-pill, .link-chip, .site-header nav a, .event-go, .go, .tile .go,
.book-cta, .event-venue, .post-list time, .zush-head a { font-family: var(--mono); }

/* ---------- the sheet: masthead + main + colophon share a width ---------- */
.site-header, main, .colophon {
  max-width: var(--measure);
  width: calc(100% - 28px);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- masthead ---------- */
.site-header {
  margin-top: 26px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 6px 18px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--cyan);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand, .brand:visited { color: var(--paper); }
.brand img { height: 34px; width: auto; display: block; }
.brand .wordmark {
  font-family: var(--display); font-weight: 400; font-size: 23px;
  letter-spacing: 0.5px; text-transform: uppercase; line-height: 1;
}
.wink { color: var(--cyan); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-header nav a {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500;
  text-decoration: none; padding: 4px 9px; border: 2px solid transparent; color: var(--paper);
}
.site-header nav a:visited { color: var(--paper); }
.site-header nav a:hover { color: var(--ink); background: var(--cyan); }

main { padding: 4px 2px 30px; flex: 1 0 auto; }

h1, h2, h3 { color: var(--ink); line-height: 1.06; margin-top: 0; }

/* ---------- hero = the cover ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: 1fr auto;
  grid-template-areas: "text mascot" "tag mascot";
  gap: 8px 32px; align-items: start; padding: 34px 4px 8px;
}
.hero-text { grid-area: text; }
.kicker {
  display: inline-block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; color: var(--ink); background: var(--cyan); padding: 4px 10px;
  margin: 0 0 18px; box-shadow: 3px 3px 0 var(--ink);
}
.hero-text h1 { margin: 0; }
.hero-text .hey {
  display: block; font-family: var(--mono); font-weight: 600;
  font-size: clamp(15px, 3vw, 19px); text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-2); margin-bottom: 6px;
}
.hero-text .name {
  display: block; font-family: var(--wordmark); font-weight: 400;
  font-size: clamp(52px, 13vw, 104px); line-height: 0.92; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink);
  /* off-register duotone: cyan mis-print behind the ink */
  text-shadow: 3px 3px 0 var(--cyan);
}
.hero-text .name .wink { color: var(--cyan); text-shadow: 3px 3px 0 var(--ink); }
.lede { font-size: 17.5px; color: var(--ink); margin: 18px 0 0; max-width: 42ch; }

/* mascot pasted on a halftone badge */
.hero-mascot { grid-area: mascot; align-self: center; position: relative; display: flex; flex-direction: column; align-items: center; }
/* the mascot sits on its own stage so the caption can't shift it */
.mascot-stage { position: relative; display: inline-flex; }
.mascot-stage::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -46%);
  width: 210px; height: 210px; border-radius: 50%;
  background-color: var(--paper-2); background-image: var(--dots-cyan);
  background-size: 8px 8px; border: 3px solid var(--ink); z-index: 0;
}
.hero .mascot { height: 176px; width: auto; position: relative; z-index: 1;
  filter: drop-shadow(3px 4px 0 rgba(25,21,16,0.35)); }
.fig-label {
  position: relative; z-index: 1; margin: 24px 0 0;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); padding: 7px 12px; }
.op-title { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.op-title b { color: var(--cyan-deep); font-weight: 600; }

/* tagline strip under the hero (marker highlight, "draws" on load) */
/* rotating hero tagline: "[breaks technology] on purpose" */
.tagline {
  margin: 0; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-weight: 600; font-size: 12px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.rotor {
  position: relative; display: inline-block; width: 19ch; height: 1.5em;
  padding: 0 6px; overflow: hidden; text-align: center;
}
.rotor::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--cyan-wash); border-left: 3px solid var(--cyan);
  transform: scaleX(0); transform-origin: left;
  animation: swipe 0.6s cubic-bezier(.2,.7,.3,1) 0.25s forwards;
}
@keyframes swipe { to { transform: scaleX(1); } }
.rotor .word { display: inline-flex; align-items: center; height: 100%; }
.rotor .word.out { animation: word-out 0.3s ease forwards; }
.rotor .word.in { animation: word-in 0.34s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes word-out { to { opacity: 0; transform: translateY(-110%); } }
@keyframes word-in { from { opacity: 0; transform: translateY(110%); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rotor::before { transform: scaleX(1); animation: none; }
  .rotor .word.out, .rotor .word.in { animation: none; }
}

@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "text" "mascot" "tag"; }
  .hero-mascot { align-self: start; align-items: center; margin: 6px 0; }
  .mascot-stage::before { width: 168px; height: 168px; }
  .hero .mascot { height: 138px; }
  .hero-text .name { text-shadow: 3px 3px 0 var(--cyan); }
}

/* ---------- mascot animation (verbatim — do not touch) ---------- */
.mascot-eye { transform-box: fill-box; transform-origin: center; animation: eye-look 7s ease-in-out infinite; will-change: transform; }
@keyframes eye-look {
  0%, 16% { transform: translate(0, 0); }
  24%, 44% { transform: translate(-11px, 5px); }
  52%, 66% { transform: translate(10px, -4px); }
  74%, 84% { transform: translate(2px, 9px); }
  92%, 100% { transform: translate(0, 0); }
}
.lid { transform-box: view-box; will-change: transform; }
.lid-l { transform-origin: 511.6px 300px; animation: blink-l 7s ease-in-out infinite; }
.lid-r { transform-origin: 511.6px 300px; animation: blink-r 7s ease-in-out infinite; }
@keyframes blink-l { 0%,31%{transform:rotate(130deg)} 34%{transform:rotate(0)} 37%,85%{transform:rotate(130deg)} 88%{transform:rotate(0)} 91%,100%{transform:rotate(130deg)} }
@keyframes blink-r { 0%,31%{transform:rotate(-130deg)} 34%{transform:rotate(0)} 37%,85%{transform:rotate(-130deg)} 88%{transform:rotate(0)} 91%,100%{transform:rotate(-130deg)} }
@media (prefers-reduced-motion: reduce) {
  .mascot-eye { animation: none; }
  .lid-l { animation: none; transform: rotate(130deg); }
  .lid-r { animation: none; transform: rotate(-130deg); }
}

.tagline-pill {
  display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink); background: var(--cyan); padding: 3px 9px;
  margin-bottom: 12px; box-shadow: 2px 2px 0 var(--ink);
}

/* ---------- section headers = zine banner bars ---------- */
.zush-head { display: flex; align-items: center; gap: 14px; margin: 44px 0 18px; }
.zush-head .emoji { display: none; }
.zush-head h2 {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(19px, 3.4vw, 27px); text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--ink); white-space: nowrap;
}
.zush-head .rule { flex: 1; height: 8px; min-width: 24px;
  background-color: var(--ink); background-image: var(--dots-cyan); background-size: 6px 6px; }
.zush-head[data-path]::after {
  content: attr(data-path); font-family: var(--mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink);
  border: 2px solid var(--ink); padding: 3px 8px; white-space: nowrap;
}
.zush-head a { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; white-space: nowrap; }
.zush-head a, .zush-head a:visited { color: var(--ink); border-bottom: 2px solid var(--cyan); }
.zush-head a:hover { color: var(--cyan-deep); }

/* ---------- upcoming = a photocopied flyer / listings ---------- */
.event-list { list-style: none; margin: 0; padding: 0; border: 3px solid var(--ink); background: var(--paper); }
.event-list li + li .event-row { border-top: 2px solid var(--ink); }
.event-row {
  display: grid; grid-template-columns: 4.6rem auto 1fr auto; gap: 6px 16px;
  align-items: center; padding: 12px 14px; text-decoration: none;
}
.event-row, .event-row:visited { color: var(--ink); }
.event-row:hover { background: var(--cyan-wash); }
.event-date {
  font-size: 12px; font-weight: 600; text-transform: uppercase; text-align: center;
  color: var(--ink); background: var(--cyan); padding: 6px 4px; line-height: 1.1;
  display: flex; flex-direction: column; box-shadow: 2px 2px 0 var(--ink);
}
.event-date .mon { display: block; }
.event-date .day { display: block; font-size: 17px; }
.event-role {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink); padding: 2px 7px; border: 2px solid var(--ink); background: var(--paper);
}
.event-role.host { background: var(--cyan); }
.event-role.mod { background: var(--ink); color: var(--cyan); }
.event-title { min-width: 0; font-weight: 600; color: var(--ink); }
.event-venue { display: block; font-weight: 400; font-size: 11.5px; color: var(--ink-2); letter-spacing: 0.01em; }
.event-go { font-size: 12px; font-weight: 600; color: var(--cyan-deep); white-space: nowrap; text-decoration: none; }
@media (max-width: 620px) {
  .event-row { grid-template-columns: auto 1fr; }
  .event-role { justify-self: start; }
  .event-title { grid-column: 1 / -1; }
  .event-go { grid-column: 1 / -1; }
}

/* ---------- sticker cards (tiles) — uniform, balanced 2-up grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tile {
  display: block; padding: 18px; text-decoration: none; position: relative;
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.tile, .tile:visited { color: var(--ink); }
.tile:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--cyan); }
.tile .ico {
  font-size: 22px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 2px solid var(--ink); background: var(--cyan); margin-bottom: 14px;
  color: var(--ink);
}
/* line icons (Lucide, ISC) in place of emojis */
.ic { width: 23px; height: 23px; display: block; }
.link-chip .ico { display: inline-flex; align-items: center; }
.link-chip .ic { width: 16px; height: 16px; }
.tile h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 19px; text-transform: uppercase; letter-spacing: 0.3px; }
.tile p { margin: 0; font-size: 13.5px; color: var(--ink); }
.tile .go { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--cyan-deep); }

/* feature = a full-width banner card */
.tile.feature { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; padding: 20px 22px; }
.tile.feature .feature-body { min-width: 0; }
.tile.feature h3 { font-size: 24px; }
.tile.feature p { font-size: 14px; max-width: 62ch; }
.stat {
  flex-shrink: 0; text-align: center; background: var(--ink); color: var(--cyan);
  border: 3px solid var(--ink); padding: 12px 18px; box-shadow: 4px 4px 0 var(--cyan);
}
.stat .num { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 8vw, 46px); line-height: 0.9; color: var(--cyan); }
.stat .unit { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--paper); margin-top: 6px; }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } .tile.feature { flex-direction: column; align-items: flex-start; } }

/* ---------- book (a big sticker) ---------- */
.book { margin: 4px 0 16px; }
.book-card {
  display: flex; gap: 20px; align-items: center; padding: 18px; text-decoration: none;
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
}
.book-card, .book-card:visited { color: var(--ink); }
.book-card:hover { box-shadow: 7px 7px 0 var(--cyan); }
.book-card img { width: 96px; height: auto; border: 3px solid var(--ink); display: block; flex-shrink: 0; }
.book-card h2 { margin: 8px 0 5px; font-family: var(--display); font-weight: 400; font-size: 20px; text-transform: uppercase; }
.book-card p { margin: 0 0 8px; font-size: 13.5px; color: var(--ink); }
.book-cta { font-size: 12px; font-weight: 600; color: var(--cyan-deep); }

/* ---------- post list ---------- */
.post-list { list-style: none; margin: 0; padding: 0; border: 3px solid var(--ink); background: var(--paper); }
.post-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 12px 14px; }
.post-list li + li { border-top: 2px solid var(--ink); }
.post-list li:hover { background: var(--cyan-wash); }
.post-list a.post-link { font-weight: 600; color: var(--ink); text-decoration: none; }
.post-list a.post-link:hover { color: var(--cyan-deep); text-decoration: underline; text-decoration-color: var(--cyan); }
.post-list time { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.year-group { margin-top: 8px; }
.year { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: 0.5px; color: var(--ink); margin: 26px 0 10px; }
.year::after { content: ""; }
.page-path { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); background: var(--cyan); padding: 3px 9px; margin: 18px 0 14px; box-shadow: 2px 2px 0 var(--ink); }
.page-head { margin-bottom: 8px; }
.page-head h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 7vw, 56px); text-shadow: 3px 3px 0 var(--cyan); }
.page-head .lede { color: var(--ink); font-size: 17px; }

/* ---------- links row ---------- */
.links-row { display: flex; flex-wrap: wrap; gap: 10px; }
.link-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500;
  text-decoration: none; padding: 6px 11px; background: var(--paper);
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.link-chip, .link-chip:visited { color: var(--ink); }
.link-chip:hover { background: var(--cyan); box-shadow: 3px 3px 0 var(--cyan-deep); }
.link-chip .ico { font-size: 14px; }

/* ---------- prose (about / projects / 404) ---------- */
.prose h1 { margin-top: 6px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 7vw, 56px); text-shadow: 3px 3px 0 var(--cyan); }
.prose h2 { margin: 30px 0 12px; font-family: var(--display); font-weight: 400; font-size: clamp(19px, 3.4vw, 26px); text-transform: uppercase; letter-spacing: 0.3px; color: var(--ink); display: inline-block; border-bottom: 6px solid var(--cyan); padding-bottom: 2px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; }

/* ---------- posts ---------- */
.post-header { margin-bottom: 8px; }
.post-header h1 { margin-bottom: 8px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 5.2vw, 44px); letter-spacing: 0.3px; line-height: 1.02; text-shadow: 3px 3px 0 var(--cyan); }
.post-meta { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); background: var(--cyan); display: inline-block; padding: 3px 9px; margin-top: 0; box-shadow: 2px 2px 0 var(--ink); }
.post-body { margin-top: 20px; }
.post-body img, .post-body video { max-width: 100%; max-height: 70vh; width: auto; height: auto; border: 3px solid var(--ink); display: block; margin: 22px auto; box-shadow: 5px 5px 0 var(--ink); }
.post-body p { margin: 14px 0; }
.post-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; }
.post-body a:hover { color: var(--cyan-deep); }
.post-body em { color: var(--ink-2); }
.post-body h2, .post-body h3 { margin: 28px 0 10px; font-family: var(--display); font-weight: 400; text-transform: uppercase; }
.post-body h2 { font-size: clamp(20px, 3.6vw, 28px); }
.post-body h3 { font-size: clamp(17px, 3vw, 22px); }
.post-body blockquote { margin: 20px 0; padding: 10px 16px; border-left: 6px solid var(--cyan); background: var(--paper-2); color: var(--ink); }
.post-body hr { border: none; height: 5px; background-color: var(--ink); background-image: var(--dots-cyan); background-size: 6px 6px; margin: 26px 0; }
.post-footer { margin-top: 28px; padding-top: 14px; border-top: 3px solid var(--ink); font-family: var(--mono); font-size: 13px; font-weight: 600; }
.post-footer a { text-decoration: none; }

/* figures + photos */
.post-figure { margin: 24px 0; text-align: center; }
.post-figure img { border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
/* keep personal / portrait photos modest, not full-bleed */
.post-figure img { max-height: 460px; width: auto; }
.post-figure figcaption { margin-top: 10px; color: var(--ink-2); font-size: 12.5px; font-family: var(--mono); }
.photo-duo { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.photo-duo img { width: auto; height: 300px; max-height: 300px; object-fit: cover; margin: 0; }
@media (max-width: 560px) { .photo-duo img { height: 220px; } }
/* About / Projects prose photos stay modest — the blog keeps big images */
.prose .post-figure > img { max-height: 430px; }
.prose .photo-duo img { height: 256px; max-height: 256px; }
.photo-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 3 / 2; border: 3px dashed var(--ink); color: var(--ink-2); padding: 20px; box-shadow: none; }
.photo-slot .cam { font-size: 28px; }
.photo-slot .hint { font-family: var(--mono); font-size: 12px; }

/* code */
code, pre, kbd { font-size: 13px; }
:not(pre) > code { background: var(--paper-2); border: 2px solid var(--ink); padding: 0 5px; }
pre { background: var(--ink); color: var(--paper); border: 3px solid var(--ink); padding: 14px; overflow-x: auto; box-shadow: 5px 5px 0 var(--cyan); }
pre code { background: none; border: none; padding: 0; color: var(--paper); }

/* ---------- colophon (back cover / footer) ---------- */
.colophon {
  margin-top: 40px; margin-bottom: 44px; background: var(--ink); color: var(--paper);
  border: 3px solid var(--ink); box-shadow: 7px 7px 0 var(--cyan); padding: 20px 22px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; font-family: var(--mono); font-size: 12.5px;
}
.colophon .co-mark { font-family: var(--display); font-weight: 400; font-size: 18px; text-transform: uppercase; color: var(--paper); letter-spacing: 0.5px; }
.colophon .co-mark .wink { color: var(--cyan); }
.colophon .co-line { color: var(--paper); }
.colophon .co-line a { color: var(--cyan); text-decoration: none; }
.colophon .co-line a:hover { text-decoration: underline; }
.colophon .co-stamp { margin-left: auto; color: var(--ink); background: var(--cyan); padding: 3px 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 620px) { .colophon .co-stamp { margin-left: 0; } }

/* ---------- motion: the print run ----------
   Everything here is print-shop physics: sheets dropping onto ink layers,
   rubber stamps, stickers slapping on, off-register plates settling.
   Transform/opacity only; the whole block honours prefers-reduced-motion. */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* cross-fade between pages, where the browser supports it */
  @view-transition { navigation: auto; }

  /* hero: one focal moment — the headline's off-register settle.
     Everything else fades in quietly around it. */
  .hero-text .hey, .lede, .hero-mascot { animation: fade-in 0.55s ease backwards 0.12s; }
  .hero-text .name { animation: misprint 0.7s cubic-bezier(.2,.7,.3,1) backwards 0.18s; }
  .hero-text .name .wink { animation: misprint-wink 0.7s cubic-bezier(.2,.7,.3,1) backwards 0.18s; }

  /* subpage headlines get the same off-register settle */
  .page-head h1, .prose h1, .post-header h1 { animation: misprint 0.75s cubic-bezier(.2,.7,.3,1) backwards 0.15s; }

  /* ambient: halftone rules drift like the press is still running */
  .zush-head .rule, .post-body hr { animation: dots-march 22s linear infinite; }

  /* hover physics: springy, slightly rotated — stickers, not buttons */
  .tile { transition: transform 0.26s cubic-bezier(.3,1.4,.55,1), box-shadow 0.26s cubic-bezier(.3,1.4,.55,1); }
  .tile:hover { transform: translate(-2px, -2px) rotate(-0.35deg); }
  .tile .ico { transition: transform 0.3s cubic-bezier(.34,1.56,.64,1); }
  .tile:hover .ico { transform: rotate(-8deg) scale(1.07); }
  .link-chip { transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), background-color 0.15s ease, box-shadow 0.25s cubic-bezier(.34,1.56,.64,1); }
  .link-chip:hover { transform: translate(-1px, -2px) rotate(-1deg); }
  .event-go { transition: transform 0.22s cubic-bezier(.2,.7,.3,1); }
  .event-row:hover .event-go { transform: translateX(5px); }
  .event-date { transition: transform 0.28s cubic-bezier(.34,1.56,.64,1); }
  .event-row:hover .event-date { transform: rotate(-4deg) scale(1.06); }
  .book-card { transition: box-shadow 0.22s ease; }
  .book-card img { transition: transform 0.32s cubic-bezier(.34,1.56,.64,1); }
  .book-card:hover img { transform: rotate(-2.5deg) translateY(-4px) scale(1.02); }
  .brand img { transition: transform 0.3s cubic-bezier(.34,1.56,.64,1); }
  .brand:hover img { transform: rotate(-8deg) scale(1.08); }

  /* nav: cyan ink swipes across instead of switching on */
  .site-header nav a { position: relative; isolation: isolate; }
  .site-header nav a::after {
    content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cyan);
    transform: scaleX(0); transform-origin: left center;
    transition: transform 0.22s cubic-bezier(.2,.7,.3,1);
  }
  .site-header nav a:hover { background: transparent; }
  .site-header nav a:hover::after { transform: scaleX(1); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes misprint {
  0% { opacity: 0; text-shadow: -8px -6px 0 var(--cyan); }
  35% { opacity: 1; }
  100% { opacity: 1; text-shadow: 3px 3px 0 var(--cyan); }
}
@keyframes misprint-wink {
  0% { text-shadow: -8px -6px 0 var(--ink); }
  100% { text-shadow: 3px 3px 0 var(--ink); }
}
@keyframes dots-march { to { background-position: 132px 0; } }

/* scroll reveals: elements are tagged .rv by JS (only when motion is allowed),
   revealed with .inview, then both classes are removed so hover transitions
   return to normal. Below-the-fold only — nothing above the fold ever hides. */
html.anim .rv { opacity: 0; transform: translateY(18px); }
html.anim .zush-head.rv, html.anim .prose h2.rv, html.anim .year.rv { transform: translateY(10px); }
html.anim .event-list, html.anim .post-list { overflow: hidden; }
html.anim .tile.rv, html.anim .book-card.rv { transform: scale(0.95) rotate(var(--slap, 0.7deg)); transform-origin: 50% 60%; }
html.anim .tile.rv:nth-child(even) { --slap: -0.7deg; }
html.anim .link-chip.rv { transform: translateY(10px) rotate(1.5deg); }
html.anim .rv.inview { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.55s cubic-bezier(.26,1.25,.48,1); }

/* post + event lists reveal like a feed: older entries stream up past their
   slot, the top two drop in from above and glide down to settle */
html.anim .post-list li.rv, html.anim .event-list li.rv { opacity: 0; transform: none; }
html.anim .post-list li.rv.inview, html.anim .event-list li.rv.inview {
  transition: none; opacity: 1;
  animation: feed-up 0.42s cubic-bezier(.2,.7,.3,1) backwards;
  animation-delay: var(--rvd, 0ms);
}
html.anim .post-list li.rv.inview:nth-child(-n+2),
html.anim .event-list li.rv.inview:nth-child(-n+2) {
  animation: glide-down 0.65s cubic-bezier(.22,1.1,.36,1) backwards;
  animation-delay: var(--rvd, 0ms);
}
@keyframes feed-up {
  0% { opacity: 0; transform: translateY(46px); }
  55% { opacity: 1; }
  70% { transform: translateY(-6px); }
  100% { opacity: 1; transform: none; }
}
@keyframes glide-down {
  0% { opacity: 0; transform: translateY(-16px); }
  45% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}

/* the banner's rule draws itself; the data-path stamp lands after it */
html.anim .zush-head.rv .rule { transform: scaleX(0); transform-origin: left center; }
html.anim .zush-head.rv.inview .rule { transform: scaleX(1); transition: transform 0.6s cubic-bezier(.2,.7,.3,1) 0.12s; }
html.anim .zush-head.rv::after { opacity: 0; transform: scale(1.4) rotate(3deg); }
html.anim .zush-head.rv.inview::after { opacity: 1; transform: none; transition: opacity 0.3s ease 0.3s, transform 0.4s cubic-bezier(.34,1.56,.64,1) 0.3s; }
