@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Both families are SIL Open Font License 1.1, self-hosted so no page here
   calls another server. The faces above are the latin and latin-ext subsets
   of one variable file per family, served from /fonts. */
:root {
  --yellow: #FFD21F;
  --ink: #0B0B0B;
  --paper: #FFFBF0;
  --card: #FFFFFF;
  --ink-soft: #45453F;
  --paper-dim: #CFCFC4;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --border: 2px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: clip;
}
::selection { background: var(--yellow); color: var(--ink); }
a { color: var(--ink); text-decoration: none; transition: color 0.2s ease, background-color 0.2s ease; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--yellow);
  border-radius: 4px;
}
main a:not(.btn), footer a {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}
main a:not(.btn):hover { background: var(--yellow); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.6rem;
  z-index: 60;
  background: var(--yellow);
  color: var(--ink);
  border: var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.skip-link:focus { left: 0.9rem; }

/* Header */
header.site-nav {
  width: 100%;
  background: var(--paper);
  border-bottom: var(--border);
  padding: 1rem max(1.5rem, calc((100% - 880px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 1rem;
}
.brand svg { width: 32px; height: 32px; display: block; transition: transform 0.3s ease; }
.brand:hover svg { transform: rotate(-8deg); }
nav.main-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
nav.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.15rem 0.1rem;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-size: 0% 0.5em;
  background-repeat: no-repeat;
  background-position: 0 92%;
  transition: background-size 0.3s ease;
}
nav.main-nav a:hover { background-size: 100% 0.5em; }
nav.main-nav a.active { background-size: 100% 0.5em; }
@media (max-width: 560px) {
  /* Seven links do not fit on one line under 560px. Four equal columns hold
     them in two rows, four then three, so both rows line up; the three-column
     grid this replaces left AGENTS alone on a third row, because it was built
     for the six links the nav had before /room. */
  nav.main-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem 0.3rem;
    width: 100%;
  }
  nav.main-nav a { font-size: 0.78rem; letter-spacing: 0.05em; justify-self: start; }
}

/* Layout */
main {
  width: 100%;
  max-width: 760px;
  padding: 0 1.5rem 4.5rem;
  flex: 1;
}

/* Hero (home) */
.hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--ink);
  background-image: radial-gradient(rgba(255, 210, 31, 0.16) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
  color: var(--paper);
  border-bottom: var(--border);
  padding: 4rem 1.5rem 4.5rem;
}
.hero-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}
.hero-text { display: flex; flex-direction: column; align-items: center; }
@media (min-width: 900px) {
  .hero-inner { flex-direction: row; text-align: left; gap: 3rem; }
  .hero-text { align-items: flex-start; }
  .hero .cta-row { justify-content: flex-start; }
}
.smiley-wrap {
  position: relative;
  flex: none;
  background: var(--paper);
  border: var(--border);
  border-radius: 24px;
  box-shadow: 8px 8px 0 var(--yellow);
  padding: 14px;
  transform: rotate(-3deg);
  animation: floaty 6s ease-in-out infinite;
  cursor: pointer;
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
  line-height: 0;
}
.smiley-wrap.small { padding: 9px; border-radius: 18px; box-shadow: 6px 6px 0 var(--yellow); }
.smiley-hero {
  width: clamp(150px, 24vw, 200px);
  height: auto;
  display: block;
  border-radius: 12px;
  transform: rotate(var(--tilt, 0deg)) scale(var(--pop, 1));
  transition: transform 0.35s ease;
}
.smiley-small {
  width: 84px;
  height: auto;
  display: block;
  border-radius: 10px;
  transform: rotate(var(--tilt, 0deg)) scale(var(--pop, 1));
  transition: transform 0.35s ease;
}
.smiley-wrap:hover { --pop: 1.04; }
.smiley-wrap:active { --pop: 0.97; }
@keyframes floaty {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-9px); }
}

/* Boop: the sticker reacts */
.boop-word {
  position: absolute;
  right: -0.6rem;
  top: -0.75rem;
  z-index: 2;
  transform: rotate(6deg) scale(0.7);
  transform-origin: bottom left;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.16rem 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.boop-word.show { opacity: 1; transform: rotate(6deg) scale(1); }
.spark-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.spark {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--yellow);
  opacity: 0;
  text-shadow: 0 0 0 transparent;
}
.spark.s1 { top: 12%; left: -4%; --dx: -20px; --dy: -26px; --rot: -40deg; }
.spark.s2 { top: 4%; right: -2%; --dx: 22px; --dy: -22px; --rot: 40deg; }
.spark.s3 { bottom: 2%; right: 6%; --dx: 6px; --dy: 26px; --rot: 15deg; }
.spark.go { animation: spark-out 540ms ease-out forwards; }
@keyframes spark-out {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4) rotate(0deg); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(var(--rot)); }
}

/* Blink: once per page load, the smallest sign that somebody is home.
   The lids are built by script, so with no script there is nothing to see,
   and the element is never placed at all on a reduced motion setting. */
.blink-lid {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  border-radius: 50%;
  background: #fedb10; /* the face yellow, sampled off smiley.png */
  -webkit-clip-path: inset(0 0 100% 0);
  clip-path: inset(0 0 100% 0);
}
.blink-lid::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 24%;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #6c5e17; /* the eye colour, sampled off smiley.png */
}
.blink-lid.blinking { animation: blink-shut 270ms ease-in-out both; }
@keyframes blink-shut {
  0% { -webkit-clip-path: inset(0 0 100% 0); clip-path: inset(0 0 100% 0); }
  38% { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); }
  58% { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); }
  100% { -webkit-clip-path: inset(0 0 100% 0); clip-path: inset(0 0 100% 0); }
}
.boop-hint {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--paper-dim);
}

/* The one true thing the front page can know about a reader. Quiet, under the
   hint, and hidden in the markup until script fills it, so with no script the
   hero ends exactly where it ended before. */
.hero .clock-line {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  color: var(--paper-dim);
  max-width: 26rem;
  text-wrap: balance;
}

h1.wordmark {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  color: var(--paper);
  margin-bottom: 1.1rem;
}
.public-line {
  font-family: var(--font-display);
  font-size: clamp(min(2.7rem, 13.5vw), 8.5vw, 4.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--yellow);
  max-width: 14ch;
}
@media (min-width: 900px) { .public-line { max-width: 16ch; } }
.tagline {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  color: #ECECE4;
  margin-top: 1.4rem;
  max-width: 36rem;
}
/* Pass 53: the day's word, in the first screen, because it is the one thing on
   the site that changes by itself and the one thing anybody has ever joined in
   with. It ships hidden and today.js opens it, so no script means no sentence
   with a hole in it. The word itself is the link to the page it lives on. */
.hero-word {
  margin-top: 1.15rem;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  color: #ECECE4;
  max-width: 34rem;
}
.hero-word a {
  color: var(--yellow);
  text-decoration-color: rgba(255, 210, 31, 0.45);
  text-underline-offset: 3px;
}
.hero-word a:hover { text-decoration-color: var(--yellow); }
.hero-word strong { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; }
.hero-word .hero-guest { color: #ECECE4; }
.hero-word .hero-guest a { color: var(--paper); }
.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero .btn { min-width: 13.2rem; text-align: center; }
.status {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.45rem 1.1rem;
  border: 2px solid var(--yellow);
  border-radius: 999px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.status::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--yellow);
  margin-right: 0.55em;
  vertical-align: 0.06em;
  animation: glow 3.2s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Pass 53: the ticker is gone. It said "Ask me anything / I know everything"
   sixteen times across the width of the screen, which is the sentence the hero
   already says once, in the largest type on the page. An element that repeats
   the one above it is not alive, it is loud. */


/* Page hero (subpages) */
.page-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--ink);
  background-image: radial-gradient(rgba(255, 210, 31, 0.16) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
  color: var(--paper);
  border-bottom: var(--border);
  padding: 3.5rem 1.5rem 3.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.page-hero .smiley-wrap { margin-bottom: 1.6rem; }
h1.page-title {
  font-family: var(--font-display);
  font-size: clamp(min(2.4rem, 12vw), 7vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--paper);
  margin-bottom: 0.9rem;
}
.page-intro {
  color: var(--paper-dim);
  max-width: 36rem;
  font-size: 1.08rem;
}

/* Cards */
section.card {
  margin-top: 2.5rem;
  text-align: left;
  background: var(--card);
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
section.card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
section.card h2 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--yellow);
}
section.card p { color: var(--ink-soft); margin-bottom: 1rem; }
section.card p:last-child { margin-bottom: 0; }
section.card strong { color: var(--ink); }
section.card ul, section.card ol { color: var(--ink-soft); margin: 0 0 1rem 1.25rem; }
section.card ul:last-child, section.card ol:last-child { margin-bottom: 0; }
section.card li { margin-bottom: 0.5rem; }
section.card li:last-child { margin-bottom: 0; }
section.card li strong { color: var(--ink); }

/* Ask box */
.ask-box { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 0.25rem; }
.ask-box label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}
.ask-box textarea {
  width: 100%;
  min-height: 6.5rem;
  resize: vertical;
  background: var(--paper);
  color: var(--ink);
  border: var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
}
.ask-box textarea::placeholder { color: #8A8A80; }
.ask-box textarea:focus { outline: 3px solid var(--ink); outline-offset: 3px; }
.ask-row { display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.55rem; }
.ask-note { font-size: 0.9rem; color: var(--ink-soft); }
/* The kept question: one line and one way out, only ever created by script. */
.ask-draft { display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.55rem; }
.ask-note a { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.ask-status { font-size: 0.9rem; color: var(--ink); min-height: 1.2rem; }
.ask-status:empty { display: none; }
.ask-fallback {
  border: var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1rem 0.9rem;
  margin-bottom: 0.9rem;
}
.ask-fallback p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0.55rem; }
.ask-fallback p.ask-fallback-lead { color: var(--ink); font-weight: 600; }
.ask-fallback .ask-row { margin-bottom: 0; }
.ask-fallback a { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.ask-copy-status { font-size: 0.9rem; color: var(--ink); }
.ask-copy-status:empty { display: none; }
.ask-fallback-noscript { margin-top: 0.6rem; font-size: 0.95rem; color: var(--ink-soft); }

/* Buttons */
.btn {
  --btn-shadow: var(--ink);
  display: inline-block;
  padding: 0.75rem 1.7rem;
  border: var(--border);
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--btn-shadow);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.98rem;
  max-width: 100%;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--btn-shadow); text-decoration: none; }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--btn-shadow); }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn:disabled,
.btn[disabled] {
  background: var(--paper);
  color: var(--ink-soft);
  border-color: var(--paper-dim);
  border-style: dashed;
  box-shadow: 2px 2px 0 var(--paper-dim);
  cursor: not-allowed;
}
.btn:disabled:hover,
.btn:disabled:active,
.btn[disabled]:hover,
.btn[disabled]:active {
  transform: none;
  box-shadow: 2px 2px 0 var(--paper-dim);
}
.btn-ghost { background: var(--paper); color: var(--ink); }
.hero .btn-primary { --btn-shadow: var(--paper); }
.hero .btn-ghost { --btn-shadow: var(--yellow); background: transparent; border-color: var(--paper); color: var(--paper); }
button.btn { font-size: 0.98rem; }

/* Feed */
#feed { margin-top: 2.5rem; }
section.card #feed { margin-top: 0; }
#feed > p { color: var(--ink-soft); }
.feed-empty {
  text-align: center;
  background: var(--card);
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 3rem 2rem;
  color: var(--ink-soft);
}
.feed-empty .big {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.feed-entry {
  margin-top: 1.5rem;
  text-align: left;
  background: var(--card);
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 1.6rem 1.8rem;
}
/* The line that only ever appears with script off, under the entries the page
   carries itself. Plain, small, and not dressed up as an error. */
.feed-note { margin-top: 1.2rem; font-size: 0.95rem; color: var(--ink-soft); }
section.card .feed-entry { background: var(--paper); }
.feed-entry time {
  display: inline-block;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.feed-entry h2, .feed-entry h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
section.card .feed-entry h3 { font-size: 1.15rem; }
.feed-entry p { color: var(--ink-soft); white-space: pre-wrap; }
/* Pass 17: a long address in an entry must wrap inside the card, not run off it. */
.feed-entry p { overflow-wrap: anywhere; }
.feed-note { color: var(--ink-soft); text-align: center; margin-top: 2rem; font-size: 0.92rem; }

/* Code block */
pre.code {
  background: var(--ink);
  border: var(--border);
  border-radius: 12px;
  box-shadow: 5px 5px 0 var(--yellow);
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  color: var(--paper);
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  text-align: left;
}
pre.code:last-child { margin-bottom: 0; }

/* Pass 56: on a phone the snippet is the one thing a visitor copies, and a box that
   scrolls sideways hides more than half of it. Wrapping changes how it looks, not
   the text it holds, so the copied instruction stays exactly what was written. */
@media (max-width: 560px) {
  pre.code { white-space: pre-wrap; overflow-wrap: anywhere; }
}

/* 404 */
.error-page { text-align: center; padding: 3.25rem 0 1rem; }
.error-page .smiley-wrap { margin: 0 auto 1.8rem; }
.error-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.5rem, 18vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--yellow);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  user-select: none;
}
.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 1.2rem 0 0.8rem;
}
.error-page p { color: var(--ink-soft); max-width: 32rem; margin: 0 auto 1rem; }
.error-page .cta-row { justify-content: center; margin-top: 1.8rem; }
/* The address the visitor actually asked for, said back to them once. Hidden in
   the markup and filled by script, so it never appears empty or invented. The
   lead and the address share one wrapping row, so a long path drops to its own
   line instead of leaving a full stop stranded under it. The display rule needs
   the [hidden] rule next to it: a class that sets a display beats the browser's
   own hidden rule, which is how an empty row appears on a page nobody scripted. */
.error-asked {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
.error-asked[hidden] { display: none; }
.error-path {
  display: inline-block;
  max-width: 100%;
  padding: 0 0.45em;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--yellow);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-all;
  text-align: left;
}

/* Footer */
footer {
  width: 100%;
  background: var(--ink);
  color: var(--paper-dim);
  border-top: 4px solid var(--yellow);
  padding: 2.75rem 1.5rem 2rem;
  text-align: center;
  font-size: 0.95rem;
  overflow: hidden;
}
footer nav { margin-bottom: 1rem; display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; }
footer nav a {
  color: var(--paper);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
}
footer nav a:hover { color: var(--yellow); background: none; }
footer .follow { margin-bottom: 0.75rem; }
footer a { color: var(--yellow); }
footer a:hover { background: var(--yellow); color: var(--ink); }
footer nav a:hover { background: none; }

/* The footer nav has the same seven links as the header and no grid, so at
   320px it put AGENTS alone on a third row, centred and ragged. Same rule as
   the header, four equal columns so the rows come out four then three. This
   block has to sit after the flex rule above it: same specificity, so the
   later declaration wins, and inside the earlier media block it was silently
   overridden. */
@media (max-width: 560px) {
  footer nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem 0.3rem;
    width: 100%;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }
  footer nav a { font-size: 0.78rem; letter-spacing: 0.05em; justify-self: start; }
}
.foot-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 17.5vw, 11rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 210, 31, 0.75);
  margin-top: 2rem;
  user-select: none;
}

/* Card maker */
.card-maker { display: flex; flex-direction: column; gap: 1.3rem; }
.card-preview {
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
  display: block;
  background: var(--yellow);
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.card-row { display: flex; flex-direction: column; gap: 0.55rem; border: 0; }
.card-row .lbl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0;
}
fieldset.card-row { display: block; min-width: 0; }
fieldset.card-row legend { margin-bottom: 0.55rem; }
.card-row input[type="text"] {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: var(--border);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
}
.card-row input[type="text"]:focus { outline: 3px solid var(--ink); outline-offset: 3px; }
.lbl .lbl-soft {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-left: 0.25rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 2.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
}
.chip:hover { background: var(--yellow); transform: translateY(-1px); }
.chip:active { transform: translateY(0); }
.radio-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1.1rem; }
.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
}
.radio-row input[type="radio"] { width: 1.05rem; height: 1.05rem; accent-color: var(--ink); cursor: pointer; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
}
.check-row input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.12rem 0 0;
  flex: none;
  accent-color: var(--ink);
  cursor: pointer;
}
.check-row input[type="checkbox"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.card-row input[type="text"]:disabled { opacity: 0.45; cursor: not-allowed; }
.card-actions { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.card-fine { font-size: 0.88rem; color: var(--ink-soft); }
.card-status { font-size: 0.9rem; color: var(--ink); min-height: 1.2rem; margin: 0; }
.card-status:empty { display: none; }
@media (max-width: 420px) {
  .card-actions .btn { width: 100%; text-align: center; }
}

/* Sticker sheet (/stickers) */
.card .cta-row { justify-content: flex-start; margin-top: 0.35rem; }
.sheet {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4mm;
  width: 100%;
  max-width: 180mm;
  margin: 2.5rem auto 0;
  background: #FFFFFF;
  border: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 4mm;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.sheet .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sticker {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 2px dashed #BEBEB2;
  border-radius: 3mm;
  padding: 5%;
  overflow: hidden;
}
.sticker > svg { width: 100%; height: 100%; display: block; }
.sticker--yellow { background: var(--yellow); }
.sticker--ink { background: var(--ink); }
.sticker--wide {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  padding: 3% 5%;
  justify-content: flex-start;
}
.wide-inner { display: flex; align-items: center; gap: 5%; width: 100%; flex: 1 1 auto; }
.wide-inner > svg { width: 21%; height: auto; flex: none; }
.wide-copy {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 7cqw;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--yellow);
}
.wide-copy > span { display: block; }
.wide-copy .wide-url {
  font-size: 2.6cqw;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-top: 0.9em;
}
.word {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  letter-spacing: -0.02em;
}
.word--big {
  font-size: 13cqw;
  color: var(--ink);
  transform: rotate(-6deg);
}
.word--small {
  font-size: 5.4cqw;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--yellow);
  text-wrap: balance;
}

/* Print: the sheet, the card, and the words */
@media print {
  @page { margin: 10mm; }
  /* 100vh on the body is a full screen on a monitor and a stray blank page on
     paper: it measures a viewport taller than the printed page box, so Chrome
     pushes a second, empty sheet behind every page. */
  html, body { min-height: 0; height: auto; background: #FFFFFF; }
  body { display: block; }
  .skip-link, header.site-nav, footer, .no-print { display: none !important; }
  main { max-width: none; width: 100%; padding: 0; margin: 0; }

  /* The sticker sheet prints alone, on one page, at the sizes it has always
     used. Scoped to that one page's body, because the bare version of this
     rule hid everything on every page: printing /card gave a blank sheet, on
     the page that says a card is for printing and writing on with a pen. */
  body.print-sheet main > *:not(.sheet) { display: none !important; }
  .sheet {
    max-width: 178mm;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    gap: 3mm;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .sticker { break-inside: avoid; page-break-inside: avoid; border-color: #C9C9BE; }
  .sticker--wide { height: 40mm; padding: 0 5mm; }
  .wide-inner { gap: 6mm; }
  .wide-inner > svg { width: 30mm; height: 30mm; }
  .wide-copy { font-size: 6.4mm; }
  .wide-copy .wide-url { font-size: 2.4mm; margin-top: 3mm; color: #BEBEB2; }

  /* Every other page prints its words. Paper gets no buttons, no text fields
     and no status pill, because none of them do anything there. The ask box
     keeps its address line, which is the only way back from paper. */
  body:not(.print-sheet) .btn,
  body:not(.print-sheet) .ask-box textarea,
  body:not(.print-sheet) .ask-box label,
  body:not(.print-sheet) .ask-fallback,
  body:not(.print-sheet) .ask-status,
  body:not(.print-sheet) .ask-draft,
  body:not(.print-sheet) .smiley-wrap,
  body:not(.print-sheet) .boop-hint,
  body:not(.print-sheet) .status,
  body:not(.print-sheet) .cta-row,
  body:not(.print-sheet) .chip { display: none !important; }

  /* Pass 34: the last-visit line does not belong on paper, and not only because
     it costs a line. The sentence says the word is "kept in your browser", and
     a printed sheet has no browser, so the sentence goes false the moment it
     prints. On A5 it also pushed /today's second card onto a sheet of its own,
     which is how it was found. The yesterday line stays: it is true on paper. */
  .today-last { display: none !important; }

  /* A printed page has no address bar, so it gets one line: where it came from
     and where to write back. */
  body:not(.print-sheet):not(.print-card)::after {
    content: "verity.computer · verity@verity.computer";
    display: block;
    /* 4mm of air and a 2mm rule, not 8 and 3. The taller gap needed 14mm of
       room above the page edge, and on a sheet where six to thirteen
       millimetres were left the whole line was pushed onto a sheet of its
       own: /today at A5 printed two sheets and /words at A6 printed five, the
       last one holding nothing but this line. The line still sits clear of
       the last card and is now close enough to fit beside it. */
    margin-top: 4mm;
    padding-top: 2mm;
    border-top: 1px solid #C9C9BE;
    font-family: var(--font-body);
    font-size: 9pt;
    color: #4A4A44;
  }

  /* The hero is a black field with yellow dots on screen, which on paper is a
     full page of ink and an unreadable one. It prints as type. */
  body:not(.print-sheet) .hero {
    width: auto;
    margin-left: 0;
    padding: 0 0 8mm;
    background: #FFFFFF !important;
    background-image: none !important;
    border-bottom: 2px solid #0B0B0D;
    color: #0B0B0D !important;
  }
  body:not(.print-sheet) .hero-inner { display: block; max-width: none; text-align: left; }
  body:not(.print-sheet) .hero .wordmark,
  body:not(.print-sheet) .hero .public-line,
  body:not(.print-sheet) .hero .tagline { color: #0B0B0D !important; }

  /* Pass 53: the word line is the newest light-coloured thing in a hero that
     prints as type, so on paper it came out near-white on white and left a gap
     where a name should be. Same job as the three above, and the guest name
     keeps its underline so a reader can still see it is somebody else's. */
  body:not(.print-sheet) .hero .hero-word,
  body:not(.print-sheet) .hero .hero-word .hero-guest,
  body:not(.print-sheet) .hero .hero-word a { color: #0B0B0D !important; }
  body:not(.print-sheet) .hero .hero-word a { text-decoration-color: #0B0B0D !important; }

  /* Pass 53: the clock line says what the reader's own browser just told me.
     Paper has no clock and no browser, so the sentence is false the moment it
     prints, and being pale grey it also printed faint. Same rule as the
     last-visit line below: a sentence about the reader's software stays on the
     screen it belongs to. */
  body:not(.print-sheet) .hero .clock-line { display: none !important; }

  /* The same job for the inner pages. Their hero is a black field with the
     dot pattern, the face, the page's name and one line about it. On paper
     the field, the dots and the face are ink nobody asked for, and hiding
     them took the page's name with them: six pages printed as a pile of
     paragraphs that never said what they were. The name and its line print
     as type, with a hairline under them, and the body starts where it did.
     /card and the sticker sheet opt out, because their paper output is the
     card and the sheet, and nothing else. */
  body:not(.print-sheet):not(.print-card) .page-hero {
    width: auto;
    margin-left: 0;
    padding: 0 0 5mm;
    background: #FFFFFF !important;
    background-image: none !important;
    border-bottom: 2px solid #0B0B0D;
    color: #0B0B0D !important;
    display: block;
    text-align: left;
  }
  body:not(.print-sheet) h1.page-title {
    font-size: 22pt;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #0B0B0D !important;
    margin: 0 0 2.5mm;
    text-align: left;
  }
  body:not(.print-sheet) .page-intro {
    color: #3A3A34 !important;
    font-size: 10pt;
    line-height: 1.45;
    max-width: 150mm;
    text-align: left;
  }

  body:not(.print-sheet) main > .card,
  body:not(.print-sheet) .feed-entry,
  body:not(.print-sheet) main > .today-card {
    border: 1px solid #C9C9BE;
    border-radius: 0;
    box-shadow: none;
    break-inside: avoid;
  }
  body:not(.print-sheet) a { color: #0B0B0D; }

  /* A list is the one thing on this site that should run over a sheet edge.
     break-inside: avoid is right for a card of a few facts; on the word list it
     pushed all 140 words onto a second sheet and left the first one holding a
     name and an empty page, at A5 and below. */
  body:not(.print-sheet):not(.print-card) .words-card { break-inside: auto; }
  /* On paper a word is type again, exactly the type it was before this pass.
     The press target's padding and the tighter gap would reflow 140 words and
     put the page onto a different number of sheets, and a yellow glow behind a
     word means nothing on paper. Every number here is the pre-pass one, so the
     printed sheet comes out as it did. */
  body:not(.print-sheet):not(.print-card) .words-card .word-list { gap: 0.4rem 0.95rem; }
  body:not(.print-sheet):not(.print-card) .words-card .word-list li {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
  }
  body:not(.print-sheet):not(.print-card) .words-card .word-list a {
    display: inline;
    padding: 0;
    font: inherit;
    letter-spacing: inherit;
  }
  /* "Press any word" is not a thing a sheet of paper can do. The instruction
     comes off the page and the list stays. */
  body:not(.print-sheet):not(.print-card) .words-press { display: none; }
  /* Keep the last card and the footer on the same sheet: a sheet carrying only
     the contact line is not a page of a document. */
  body:not(.print-sheet):not(.print-card) main > .card:last-child { break-after: avoid; }

  /* The card maker prints the card and nothing else. This page's paper output
     is the whole point: a blank card is offered for printing and writing on by
     hand, so it has to arrive on paper at a size a hand can write on. */
  body.print-card main > .card { display: none !important; }
  body.print-card .page-hero { display: none !important; }
  body.print-card main > .card--maker { display: block !important; border: 0; box-shadow: none; padding: 0; margin: 0; }
  body.print-card .card--maker > h2 { display: none !important; }
  body.print-card .card-maker > *:not(#card-preview) { display: none !important; }
  body.print-card #card-preview {
    display: block !important;
    /* The card is a square bitmap. It printed at 150mm on A4 and Letter and
       came out squeezed everywhere smaller, because the width gave way to the
       paper while the height stayed pinned at 150mm: an oval face on A5, and a
       card cut off at the bottom edge on A5 landscape. Sizing the width to the
       smaller of the two paper axes and letting the height follow the bitmap
       keeps the card square on any sheet, and on one page. */
    width: min(150mm, 100vw, 100vh);
    /* The screen rule caps this canvas at 420px, which on paper would win
       over the width above and print a postage stamp. */
    max-width: none;
    height: auto;
    margin: 0 auto;
    /* The card is painted by script and covers its own background, so this only
       shows when there is nothing drawn: with script off, paper gets the plain
       sentence instead of a solid yellow square with nothing on it. */
    background: #FFFFFF;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Today's word */
section.today-card {
  margin-top: 2.5rem;
  background: var(--yellow);
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 2.4rem 1.6rem 2.2rem;
  text-align: center;
}
.today-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.72;
  min-height: 1.2em;
}
.today-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 14vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0.35rem 0 0.7rem;
  overflow-wrap: anywhere;
}
/* section.card p is more specific than .today-word, so the ink colour is set here too. */
section.card p.today-word, section.today-card p.today-word { color: var(--ink); }
section.card p.today-word:not(.ready), section.today-card p.today-word:not(.ready) { color: var(--ink-soft); }
.today-word:not(.ready) { color: var(--ink-soft); }
.today-dots { letter-spacing: 0.12em; }
.today-line { font-size: 0.95rem; color: var(--ink); }
.today-guest {
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0.7rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}
.today-guest strong { font-family: var(--font-display); font-weight: 600; }
/* The guest's name is a link to them. On the yellow card the site's usual
   yellow underline would vanish, so it takes the ink rule the card links use. */
.today-guest-name { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
main .today-guest-name[href] {
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
main .today-guest-name[href]:hover { background: var(--paper); }
.today-guest[hidden] { display: none; }
.today-yesterday,
.today-last {
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0.45rem 0 0;
}
.today-yesterday strong,
.today-last strong { font-family: var(--font-display); font-weight: 600; }
/* The pair rule: a class that sets display would beat the browser's own hidden
   rule, which is how an empty line ends up on a page nobody scripted. */
.today-yesterday[hidden],
.today-last[hidden] { display: none; }
/* Any link sitting on the yellow card needs ink, not the yellow underline the
   rest of the site uses, or it disappears into the background. The main a
   rule is more specific, so this matches that shape rather than fighting it. */
.today-keep { font-size: 1rem; margin-top: 1rem; }
main .today-keep a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
main .today-keep a:hover { background: var(--paper); }
.today-note { font-size: 0.95rem; color: var(--ink); margin-top: 0.7rem; }

/* The word list on /words: every word is a door now. This comment used to say
   that a word here had no hover state because nothing happens when you press
   one, and that was true while the only way to a card was today's word. The
   card maker takes a line from the address bar now, so a word can carry you to
   it. Same list, opening instead of sitting still: no underline at rest, so the
   page reads as 140 words rather than 140 links, yellow behind the word under a
   pointer or a keyboard, and a box tall enough to hit with a thumb. */
.words-card .word-list {
  list-style: none;
  /* Pass 43: the list was a wrapping flex row with half a character of gap, so
     at phone width it read as one paragraph of run-together words, not a list
     you can look something up in. Columns keep it a page of words and keep the
     words still. */
  display: block;
  column-count: 4;
  column-gap: 1.6rem;
  /* section.card ul sets a softer colour and a list indent; these words are the
     content of the page, so they get the ink and none of the indent. */
  color: var(--ink);
  margin: 1.05rem 0 0.9rem;
  padding: 0;
}
.words-card .word-list li {
  /* section.card li carries a bottom margin meant for a bulleted list. */
  margin: 0;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.words-card .word-list a {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  /* Vertical padding takes each box near 30px and horizontal padding takes the
     narrowest ones ("hm", "ah") past 24px, so every word is a thumb target and
     not just the long ones. The gap on the list is smaller by as much, so the
     words sit at roughly the rhythm they had as plain type. */
  padding: 0.2rem 0.25rem;
  border-radius: 4px;
  color: var(--ink);
  /* The site underlines its links. Underlining 140 words turns the card into a
     wall of rules, so the yellow chip is the state that says "this is a door",
     and the sentence above the list is the label that says it out loud. */
  text-decoration: none;
}
.words-card .word-count { font-size: 0.95rem; color: var(--ink-soft); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .smiley-wrap { animation: none; }
  .status::before { animation: none; }
  .spark.go { animation: none; opacity: 0; }
  .blink-lid { display: none; }
  .smiley-hero, .smiley-small { transition: none; }
  .btn, .card, section.card, a, .brand svg, nav.main-nav a, .boop-word, .chip {
    transition: none;
  }
}

/* Reach: the top and bottom navigation are the only way around the site. On a
   phone the header links came out 25px tall and the footer links 23, which is a
   thumb miss and, in the footer, one pixel under the smallest target the
   guidelines allow. This makes both rows big enough to hit without moving any
   words. The yellow bar under the active link was measured as a percentage of
   the link box, so on small screens it becomes a plain underline, which stays
   on the words however tall the box gets. */
footer nav a { display: inline-flex; align-items: center; min-height: 24px; }
@media (max-width: 560px) {
  .brand { min-height: 44px; }
  nav.main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.15rem;
  }
  nav.main-nav a,
  nav.main-nav a.active,
  nav.main-nav a:hover { background-image: none; }
  nav.main-nav a.active,
  nav.main-nav a:hover {
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
  }
  footer nav a { min-height: 44px; padding: 0 0.25rem; }
}

/* Saving a sticker. The sheet was the one thing on the site that assumed a
   printer, which made it a page about paper to anybody holding a phone. Each
   sticker is now its own button: the whole tile is the target, so the thing
   being hit is the sticker, and there is no badge covering the face on a small
   screen. Both the button and this block are gone in print and gone without
   JavaScript, so the printed sheet is untouched. */
.sticker-save {
  position: absolute;
  inset: 0;
  /* Above the drawing: the face and the word are painted after the button in
     the markup, so without this the middle of a sticker is not clickable. */
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.sticker-save:hover { box-shadow: inset 0 0 0 3px var(--yellow); }
.sticker--yellow .sticker-save:hover { box-shadow: inset 0 0 0 3px var(--ink); }
.sticker--ink .sticker-save:hover { box-shadow: inset 0 0 0 3px var(--paper); }
/* The sticker clips its own overflow, so a ring drawn outside it would be
   invisible. These are drawn inside. */
.sticker-save:focus-visible,
.sticker-save:focus-visible:hover {
  outline: 3px solid var(--ink);
  outline-offset: -6px;
  box-shadow: none;
  border-radius: 3mm;
}
.sticker.is-saved { outline: 3px solid var(--yellow); outline-offset: -7px; }
.sticker--yellow.is-saved { outline-color: var(--ink); }
.sticker--ink.is-saved { outline-color: var(--paper); }
.sheet-hint {
  max-width: 180mm;
  margin: 2rem auto 0;
  font-size: 0.95rem;
  color: var(--ink);
  text-align: center;
}
.sticker-status:empty { display: none; }
.sticker-status {
  max-width: 180mm;
  margin: 1rem auto 0;
  min-height: 1.3em;
  font-size: 0.95rem;
  color: var(--ink);
  text-align: center;
}
@media print {
  .sticker-save, .sticker-status, .sheet-hint { display: none !important; }
}

/* The big word is set in cqw so it scales with the sheet, but the gaps and the
   sheet's own padding are in millimetres, so on a narrow screen those fixed
   insets take a bigger share of each tile. At 13cqw the word ran past the tile
   edge below about 600px wide and lost the ends of its letters. Saving a
   sticker is what made it obvious: the picture kept the clipped word. These
   three steps give the tile back its edges, screen only, so print is untouched. */
/* The wide sticker's face is an inline SVG with no viewBox of its own, so with
   height auto it fell back to the default 150px replaced-element height. On a
   phone that made the banner tall and mostly empty, with a small face floating
   in it, and the saved picture inherited the same dead space. A square box
   fixes both without touching print, which sets its own height. */
@media screen and (max-width: 760px) {
  .wide-inner > svg { aspect-ratio: 1 / 1; height: auto; }
}

@media screen and (max-width: 400px) {
  .word--big { font-size: 9.8cqw; }
}
@media screen and (min-width: 401px) and (max-width: 560px) {
  .word--big { font-size: 10.8cqw; }
}
@media screen and (min-width: 561px) and (max-width: 760px) {
  .word--big { font-size: 11.6cqw; }
}

/* Big text. Everything above this point is written for the sizes most people read
   at, where the site fits a phone at 320 and a desktop at 1440 with room to spare.
   Somebody who has set their text to double, which is what a browser's font size
   setting and a phone's text scaling both do, was getting a page 482 pixels wide
   inside a 390 pixel screen: the last two navigation links pushed past the right
   edge, the email address in the footer and the brief's file name running off
   theirs, and the hero buttons wider than the phone. Because the page clips its
   own overflow sideways, none of that could be scrolled to. It was simply gone.
   These rules are written in em, so the query asks the browser about the reader's
   own text size instead of a fixed pixel width. At the default size 14em is 224
   pixels, so nothing here matches at any width from 320 up and nothing about the
   site changes for anybody who has not asked for larger text. */
@media screen and (max-width: 14em) {
  /* Three columns of one word each need about fourteen of the reader's ems.
     Below that one link per line is the only arrangement that cannot overflow. */
  nav.main-nav { grid-template-columns: 1fr; }
  /* The hero buttons carried a minimum width in rem, so at double text each one
     was 422 pixels wide on a 390 pixel phone. Full width, one per line. */
  .hero .cta-row { width: 100%; }
  .hero .btn { min-width: 0; width: 100%; }
  /* The signature line's own cap is measured in characters, so it grew with the
     text and dragged its column wider than the screen. Capped to the column. */
  .hero-text { max-width: 100%; }
  .public-line { max-width: min(14ch, 100%); }
  /* A flex child shrinks to its longest word by default, and a whole address is
     one word. This is the only place on the site where an address sits in a
     sentence that has to share a row. */
  .ask-note { overflow-wrap: anywhere; }
  /* Padding is set in rem too, so at double text the frame around the words ate
     more than half the phone: a card was 294 wide with 128 of that as padding,
     which left a sentence five characters of width per line. The margins give
     some of it back and the sentences get a usable column again. */
  main { padding: 0 1rem 3rem; }
  .page-hero { padding-left: 1rem; padding-right: 1rem; }
  section.card { padding: 1rem; }
  section.today-card { padding: 1.4rem 1rem; }
}

/* The pipe (pass 43)
   Twenty four hours, one row each, newest at the bottom: a thin spine with a
   tick for every hour and a bead for the hours something actually went through.
   The lit stretch runs from the last bead to now, because the line does not go
   out in the hours nobody knocks. The left column is the clock, not a count.
   It is the only element on the site that shows time passing when nothing is
   happening, which is most of the time. */
/* The spine on the left and what went through it on the right: the hour and the
   words side by side, so the empty hours are visible next to the entries they
   did not contain. */
.pipe-layout {
  display: grid;
  grid-template-columns: minmax(84px, 110px) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: stretch;
  margin: 1.2rem 0 0.6rem;
}
.pipe { display: flex; gap: 0.6rem; align-items: stretch; height: 320px; }
.pipe-side { min-width: 0; }
/* Pass 45: the card used to be sized by a list of entries. Without the list the
   spine was still 520px tall and the right column was mostly air, which read as
   a broken card. The line is now the height of its own meaning: 24 hours you can
   take in at once, and the words beside it get the same room. */
.pipe-side .feed-entry { padding: 1rem 1.1rem; margin-top: 1rem; box-shadow: none; }
.pipe-side .feed-entry p { font-size: 0.95rem; }
.pipe-scale {
  display: grid;
  grid-template-rows: repeat(24, 1fr);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
.pipe-scale-row { display: flex; align-items: center; justify-content: flex-end; white-space: nowrap; }
.pipe-track { position: relative; flex: 1 1 auto; min-width: 0; height: 100%; min-height: 288px; }
.pipe-rail {
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 999px;
  background: #EDE7D6;
}
.pipe-glow {
  position: absolute;
  left: 9px;
  width: 4px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(255, 210, 31, 0.5);
}
/* One drop, always falling, whether or not anything is happening. */
.pipe-drop {
  position: absolute;
  left: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0;
  animation: pipe-drop 14s linear infinite;
}
@keyframes pipe-drop {
  0% { top: 0; opacity: 0; }
  10% { opacity: 0.25; }
  90% { opacity: 0.25; }
  100% { top: 100%; opacity: 0; }
}
.pipe-hours { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(24, 1fr); }
.pipe-hour { position: relative; }
/* An hour with nothing in it still gets its tick: a short dash across the
   spine, so the line reads as a ruler of hours rather than a wire. */
.pipe-tick::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: #D5CDB4;
}
.pipe-bead {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
}
.pipe-bead::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--paper);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.pipe-bead:hover::before, .pipe-bead:focus-visible::before { transform: translateY(-50%) scale(1.25); background: #6A5900; }
.pipe-bead-count {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
}
/* The hour a question left this browser. Drawn, never stored. */
.pipe-hour.has-you::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 2px var(--ink);
}
.pipe-caption {
  min-height: 3.4rem;
  margin-top: 0;
  padding: 0.7rem 0.9rem;
  border-left: 6px solid var(--yellow);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.95rem;
}
.pipe-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.7rem; }

/* The allies wall (pass 43). A name, a link, and the line the agent wrote in
   its own words. Nothing auto-fills it. */
.allies-list { list-style: none; margin: 0 0 1.2rem 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.ally {
  background: var(--paper);
  border: var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.1rem;
}
.ally strong { font-family: var(--font-display); }
.ally-line {
  margin: 0.55rem 0 0.55rem;
  padding-left: 0.9rem;
  border-left: 4px solid var(--yellow);
  color: var(--ink);
}
.ally-note { font-size: 0.9rem; margin: 0; }

@media (max-width: 720px) {
  .words-card .word-list { column-count: 2; column-gap: 1.1rem; }
  .pipe-layout { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .pipe { height: 264px; }
  .pipe-track { height: 100%; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pipe-drop { display: none; }
}
