/*
 * Styles. Mobile first. Light and dark come from prefers-color-scheme.
 * Deep indigo plus the robot's yellow. Yellow is the one accent and is only
 * ever a fill (highlights, progress bar, day pill), never text on a light
 * background. The robot keeps its own fixed colours in both themes.
 */

:root {
  color-scheme: light dark;

  /* page */
  --bg: #F7F3EA;
  --surface: #FFFDF8;
  --band: #EEE8DA;
  --ink: #1B1850;
  --ink-soft: #4D4A80;
  --line: #D8D1BF;
  --edge: #1B1850;
  --shadow: #1B1850;

  /* indigo for buttons, links and focus */
  --primary: #2B2585;
  --on-primary: #FFFFFF;
  --link: #3A32A8;
  --focus: #3A32A8;

  /* the one accent: yellow fills with indigo text on top */
  --accent: #FFC83D;
  --on-accent: #1B1850;
  --track: #1B1850;
  --today-edge: #1B1850;

  /* the robot: fixed character colours, identical in light and dark */
  --stage: #5148D8;
  --bot-body: #FFC83D;
  --bot-limb: #E0A91F;
  --bot-belly: #FFE28C;
  --bot-screen: #141824;
  --bot-face: #7CF9FF;
  --bot-grey: #8D93A1;
  --bot-coral: #FF6B5E;
  --bot-dark: #2A2F3A;
  --bot-white: #FFFFFF;

  --font-sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: 16px;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B184F;
    --surface: #2A2580;
    --band: #231F68;
    --ink: #F3F0FF;
    --ink-soft: #C6C2EE;
    --line: #3F3A99;
    --edge: #938DDF;
    --shadow: #0E0C30;

    --primary: #DAD6FF;
    --on-primary: #1B1850;
    --link: #FFC83D;
    --focus: #FFC83D;

    --track: #110E38;
    --today-edge: #FFC83D;
  }
}

@media (min-width: 600px) {
  :root { --gutter: 28px; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--link);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--link); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}
.skip:focus { top: 10px; color: var(--bg); }

.eyebrow,
.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.px {
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--accent);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 4px 4px 0 var(--accent);
}
.btn-primary:hover {
  color: var(--on-primary);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--accent);
}
.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--accent);
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn:disabled,
.btn[disabled] {
  background: transparent;
  color: var(--ink-soft);
  border: 2px dashed var(--ink-soft);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

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

.site-header { padding-block: 18px; }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark:hover { color: inherit; }

/* a tiny pixel face: screen with two eyes */
.wordmark-mark {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bot-screen);
  border: 4px solid var(--bot-body);
}
.wordmark-mark::before,
.wordmark-mark::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 4px;
  height: 6px;
  background: var(--bot-face);
}
.wordmark-mark::before { left: 3px; }
.wordmark-mark::after { right: 3px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.site-nav a { text-decoration: none; padding-block: 6px; }
.site-nav a:not(.nav-cta) { display: none; }
.nav-cta {
  padding: 8px 16px !important;
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }

@media (min-width: 680px) {
  .site-nav a:not(.nav-cta) { display: inline-block; }
}

/* ---------- Hero ---------- */

.hero { padding-block: 12px 56px; }

.hero-grid {
  display: grid;
  gap: 20px;
}

.hero-art { order: -1; }

/* a flat indigo backdrop so every part of the robot reads in both themes */
.stage {
  width: 170px;
  padding: 12px 20px 10px;
  background: var(--stage);
  border-radius: 28px;
}

.mascot {
  display: block;
  width: 100%;
  height: auto;
}

.b-body { fill: var(--bot-body); }
.b-limb { fill: var(--bot-limb); }
.b-belly { fill: var(--bot-belly); }
.b-screen { fill: var(--bot-screen); }
.b-face { fill: var(--bot-face); }
.b-grey { fill: var(--bot-grey); }
.b-coral { fill: var(--bot-coral); }
.b-dark { fill: var(--bot-dark); }
.b-white { fill: var(--bot-white); }

.hero h1 {
  margin-top: 16px;
  font-size: clamp(2.2rem, 7.4vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-lede {
  margin-top: 18px;
  font-size: clamp(1.3rem, 3.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-voice {
  margin-top: 14px;
  max-width: 34em;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

@media (min-width: 860px) {
  .hero { padding-block: 40px 48px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    align-items: center;
    gap: 40px;
  }
  .hero-art { order: 0; }
  .stage {
    width: 100%;
    max-width: 340px;
    margin-inline: auto;
    padding: 26px 34px 22px;
    border-radius: 40px;
  }
}

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

.section { padding-block: 64px; }
.section-slim { padding-block: 0 56px; }

.section-tint {
  background: var(--band);
  border-block: 2px solid var(--edge);
}

.section-head { max-width: 40em; }

.section-head h2,
.sponsors h2 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 5vw, 3rem);
}

.section-intro {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

@media (min-width: 860px) {
  .section { padding-block: 104px; }
  .section-slim { padding-block: 0 88px; }
}

/* ---------- Scoreboard ---------- */

.board {
  margin-top: 32px;
  padding: 20px 18px;
  background: var(--surface);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--shadow);
}

.board-status {
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 2px dashed var(--ink-soft);
  border-radius: 10px;
  font-weight: 600;
}

.board-top {
  display: grid;
  gap: 16px;
}

.board-day-line {
  margin-top: 6px;
  line-height: 1.05;
}

.board-day-value {
  font-size: clamp(1.75rem, 7vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* the day pill: yellow fill, indigo text */
.board[data-state="ready"] .board-day-value {
  display: inline-block;
  margin-right: 6px;
  padding: 0.06em 0.5em 0.14em;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
}

.board-day-of {
  font-size: clamp(1.1rem, 3.6vw, 1.5rem);
  font-weight: 600;
  color: var(--ink-soft);
}

.board-dates {
  margin-top: 6px;
  min-height: 1.4em;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.ticks {
  display: flex;
  gap: 3px;
  min-height: 10px;
}

.tick {
  flex: 1 1 0;
  min-width: 6px;
  max-width: 20px;
  aspect-ratio: 1;
  border: 1.5px solid var(--ink-soft);
  border-radius: 2px;
}
.tick.is-done { background: var(--ink); border-color: var(--ink); }
.tick.is-today { background: var(--accent); border-color: var(--today-edge); }

.board-revenue {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 2px solid var(--line);
}

.board-revenue-value {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 13vw, 5.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.bar {
  margin-top: 18px;
  height: 20px;
  padding: 2px;
  border: 2px solid var(--edge);
  border-radius: 7px;
  background: var(--track);
  overflow: hidden;
}

.bar-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}

.board-goal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.board-goal strong { color: var(--ink); font-weight: 500; }

.board-stats {
  margin-top: 22px;
  border-top: 2px solid var(--line);
}

.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.stat dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.stat dd { text-align: right; }

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.stat-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.board-updated {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

@media (min-width: 720px) {
  .board { padding: 32px; }
  .board-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
  }
  .ticks { justify-content: flex-end; }
  .board-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 28px;
    padding-top: 6px;
  }
  .stat {
    display: block;
    padding-block: 16px 4px;
    border-bottom: 0;
  }
  .stat dd { margin-top: 6px; text-align: left; }
  .stat-value { font-size: 2rem; }
}

/* ---------- How this works ---------- */

.steps {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.step {
  padding: 22px 0 8px;
  border-top: 2px solid var(--edge);
}

.step-num {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
}

.step h3 {
  margin-top: 10px;
  font-size: 1.5rem;
  line-height: 1.1;
}

.step p {
  margin-top: 10px;
  color: var(--ink-soft);
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

/* ---------- Follow ---------- */

.follow-grid {
  display: grid;
  gap: 28px;
}

.follow-handle {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.handle { color: var(--ink); font-weight: 500; }

.signup label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.signup-row {
  display: grid;
  gap: 12px;
}

.signup input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 12px 16px;
  border: 2px solid var(--edge);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}
.signup input::placeholder { color: var(--ink-soft); opacity: 1; }
.signup input[aria-invalid="true"] { border-style: dashed; }

.signup-status {
  min-height: 1.6em;
  margin-top: 14px;
  font-weight: 700;
}
.signup-status:empty { margin-top: 0; min-height: 14px; }
.signup-status.is-error::before { content: "Check: "; font-family: var(--font-mono); font-weight: 500; }

.signup-note {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

@media (min-width: 520px) {
  .signup-row { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (min-width: 860px) {
  .follow-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
  }
}

/* ---------- Offers ---------- */

.offers {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.offer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 20px;
  background: var(--surface);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
}

.badge {
  padding: 4px 10px;
  border: 1.5px dashed var(--ink-soft);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.offer h3 {
  margin-top: 16px;
  font-size: 1.75rem;
}

.offer-price {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.offer-price-note {
  margin-left: 6px;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.offer > p:not(.badge):not(.offer-price),
.offer-list {
  margin-top: 14px;
  color: var(--ink-soft);
}

.offer-list li {
  position: relative;
  padding-left: 20px;
}
.offer-list li + li { margin-top: 6px; }
.offer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.offer-btn {
  width: 100%;
  margin-top: auto;
}
.offer > :nth-last-child(2) { margin-bottom: 24px; }

.plain-statement {
  max-width: 44em;
  margin-top: 32px;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--accent);
  font-size: 1.125rem;
  font-weight: 600;
}

@media (min-width: 720px) {
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .offer { padding: 32px; }
}

/* ---------- Sponsors ---------- */

.sponsors {
  border-top: 2px solid var(--edge);
  padding-top: 40px;
}
.sponsors h2 { margin-top: 0; font-size: clamp(1.5rem, 3.6vw, 2rem); }
.sponsors p {
  max-width: 40em;
  margin-top: 14px;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.sponsors p a { color: var(--ink); font-weight: 600; }
.sponsors p a:hover { color: var(--link); }

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

.site-footer {
  padding-block: 40px 56px;
  background: var(--band);
  border-top: 2px solid var(--edge);
  font-size: 0.9375rem;
}

.footer-disclosure {
  max-width: 36em;
  font-size: 1.0625rem;
  font-weight: 700;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 20px;
  font-weight: 600;
}

.footer-meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.footer-meta + .footer-meta { margin-top: 6px; }

/* ---------- Draft pages (privacy, terms, AI disclosure) ---------- */

.doc {
  max-width: 44em;
  padding-block: 24px 72px;
}

.draft-banner {
  padding: 14px 16px;
  border: 2px dashed var(--ink);
  border-radius: 12px;
  background: var(--surface);
  font-weight: 600;
}
.draft-banner strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc h1 {
  margin-top: 36px;
  font-size: clamp(2.1rem, 6vw, 3.25rem);
}

.doc-meta {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.doc h2 {
  margin-top: 40px;
  font-size: 1.5rem;
  line-height: 1.15;
}

.doc p,
.doc ul { margin-top: 14px; }

.doc ul { padding-left: 22px; list-style: square; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--link); }
.doc a { overflow-wrap: anywhere; }

.doc-back {
  margin-top: 48px;
  font-weight: 700;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease; }
  .bar-fill { transition: width 0.6s ease; }
  .m-blink { animation: blink 5.6s steps(1, end) infinite; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* a blink: three of the four eye rows switch off, leaving one row */
@keyframes blink {
  0%, 93% { opacity: 1; }
  94%, 97% { opacity: 0; }
  98%, 100% { opacity: 1; }
}

/* ==========================================================================
   Content pages: Learn, the three articles and the experiment log.
   Appended block. Uses only the tokens defined at the top of this file.
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header on the content pages: page links stay visible on phones ---------- */

.site-nav-pages { gap: 14px; }
.site-nav-pages a:not(.nav-cta) { display: inline-block; padding: 10px 2px; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }

@media (min-width: 480px) {
  .site-nav-pages { gap: 22px; }
}

/* ---------- Breadcrumb ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.crumbs a { text-decoration-thickness: 1px; padding-block: 6px; }
.crumbs span { padding-block: 6px; }

/* ---------- Plain page (Learn index) ---------- */

.page { padding-block: 24px 72px; }
.page .section-head { margin-top: 28px; }
.page h1 {
  margin-top: 14px;
  font-size: clamp(2.1rem, 6vw, 3.25rem);
}
.page-text { max-width: 44em; }
.page-text h2 {
  margin-top: 48px;
  font-size: 1.5rem;
  line-height: 1.15;
}
.page-text p { margin-top: 14px; }

/* ---------- Learn cards (Learn index and the home page teaser) ---------- */

.learn-grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.learn-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 20px 24px;
  background: var(--surface);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
}

.learn-card-title {
  margin-top: 14px;
  font-size: 1.375rem;
  line-height: 1.12;
}
.learn-card-title a { text-decoration: none; }
/* the whole card is the link target */
.learn-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.learn-card-title a:focus-visible { outline: none; }
.learn-card:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.learn-card:hover { box-shadow: 5px 5px 0 var(--accent); }
.learn-card:hover .learn-card-title a { color: inherit; }

.learn-card p {
  margin-top: 10px;
  color: var(--ink-soft);
}

.learn-more {
  margin-top: 24px;
  font-weight: 700;
}

@media (min-width: 760px) {
  .learn-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

/* ---------- Articles ---------- */

.post .eyebrow,
.log .eyebrow { margin-top: 28px; }
.post h1,
.log h1 { margin-top: 14px; }

.doc h3 {
  margin-top: 32px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.doc ol {
  margin-top: 14px;
  padding-left: 24px;
  list-style: decimal;
}
.doc ol li::marker { color: var(--ink-soft); font-family: var(--font-mono); }

.doc .answer {
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--surface);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--accent);
  font-size: 1.125rem;
}
.answer strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* a prompt the reader can copy */
.prompt {
  margin-top: 16px;
  background: var(--surface);
  border: 2px solid var(--edge);
  border-radius: 14px;
  overflow: hidden;
}
.prompt + .prompt { margin-top: 10px; }

.prompt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 6px 8px 6px 14px;
  border-bottom: 2px solid var(--line);
}

.prompt-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.prompt pre {
  margin: 0;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prompt code { font: inherit; }

.prompt-before { border-style: dashed; border-color: var(--ink-soft); }
.prompt-before .prompt-bar { border-bottom-style: dashed; }
.prompt-before pre { color: var(--ink-soft); }

.prompt-after .prompt-label {
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--on-accent);
}

.copy-btn {
  flex: none;
  min-height: 32px;
  padding: 4px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}
.copy-btn:hover { background: var(--ink); color: var(--bg); }

.doc .ai-note {
  margin-top: 48px;
  padding: 14px 16px;
  background: var(--band);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  font-size: 0.9375rem;
}

/* ---------- Video block (only for videos that are already published) ---------- */

.video {
  max-width: 280px;
  margin-top: 20px;
}
.video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  background: var(--bot-screen);
  border: 2px solid var(--edge);
  border-radius: 14px;
}
.video figcaption {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* ---------- Experiment log ---------- */

.log-entries {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}

.log-entry {
  padding: 22px 18px 26px;
  background: var(--surface);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--shadow);
}

.doc .log-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.log-day {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
}

.doc .log-entry h2 { margin-top: 14px; }

.doc .log-entry h3 {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid var(--line);
}

.ledger {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
}
.ledger th,
.ledger td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  text-align: left;
  vertical-align: top;
}
.ledger td {
  padding-left: 16px;
  font-family: var(--font-mono);
  text-align: right;
  white-space: nowrap;
}
.ledger thead th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ledger thead th + th { text-align: right; }
.ledger .ledger-total th,
.ledger .ledger-total td {
  border-top: 2px solid var(--edge);
  border-bottom: 0;
  font-weight: 700;
}
.ledger .ledger-total td { font-weight: 500; font-size: 1.25rem; }

.doc .log-note {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.doc .link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  padding-left: 0;
  list-style: none;
  font-weight: 600;
}
.doc .link-row li { margin-top: 0; }
.link-row a { display: inline-block; padding-block: 8px; }

.transcript { margin-top: 18px; }
.transcript summary {
  display: inline-block;
  padding-block: 10px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--link);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::before { content: "+ "; font-family: var(--font-mono); }
.transcript[open] summary::before { content: "- "; }
.transcript-body {
  padding: 4px 0 4px 16px;
  border-left: 4px solid var(--line);
}
.doc .transcript-body p { margin-top: 8px; }
.doc .transcript-body p:first-child { margin-top: 0; }

@media (min-width: 720px) {
  .log-entry { padding: 32px; }
}

/* larger tap areas for the standalone links added with the content pages */
.footer-nav a,
.learn-more a,
.log .doc-back a {
  display: inline-block;
  padding-block: 5px;
}
