/* ============================================================
   THE SOURDOUGH DATABASE
   Shared stylesheet — every page inherits this
   ============================================================ */

:root {
  --paper: #f4ead0;
  --paper-warm: #efe1bd;
  --paper-aged: #e2cf9f;
  --rule-pink: #d8a3a3;
  --rule-pink-strong: #c47878;
  --ink: #2a1f14;
  --ink-soft: #4a3a28;
  --pencil: #5c4a36;
  --pen-blue: #2a4774;
  --pen-red: #a53020;
  --tape: rgba(238, 218, 122, 0.55);
  --tape-pink: rgba(232, 182, 184, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 15% 20%, rgba(180, 130, 70, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 85% 70%, rgba(140, 90, 40, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 90%, rgba(200, 150, 80, 0.05) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.25 0 0 0 0 0.12 0 0 0 0.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

/* ============ NOTEBOOK BINDING ============ */
.binding {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 38px;
  background: linear-gradient(90deg, rgba(0,0,0,0.08) 0%, transparent 100%);
  z-index: 50;
  pointer-events: none;
}
.binding::before {
  content: "";
  position: absolute;
  left: 18px; top: 0; bottom: 0;
  width: 1px;
  background: var(--rule-pink-strong);
  opacity: 0.5;
}
.holes {
  position: fixed;
  left: 8px; top: 0; bottom: 0;
  width: 16px;
  z-index: 51;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 80px 0;
  pointer-events: none;
}
.hole {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d4be84, #8a6f4a);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

/* ============ HEADER ============ */
header {
  padding: 28px 60px 24px 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--ink);
  position: relative;
}
.logo {
  font-family: 'Caveat', cursive;
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  transform: rotate(-1.5deg);
  display: inline-block;
}
.logo .amp { color: var(--pen-red); font-style: italic; }
.logo .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--pen-red);
  border-radius: 50%;
  margin: 0 4px 4px 8px;
  transform: translateY(-2px);
}
.nav {
  display: flex;
  gap: 28px;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  font-weight: 500;
  color: var(--pencil);
}
.nav a { position: relative; transition: color 0.2s; }
.nav a:hover { color: var(--pen-red); }
.nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px; left: -4px; right: -4px;
  height: 8px;
  background: var(--tape);
  z-index: -1;
  transform: rotate(-1deg);
}

/* ============ HERO ============ */
.hero {
  padding: 60px 80px 70px;
  position: relative;
  background-image: linear-gradient(transparent 31px, rgba(216, 163, 163, 0.4) 31px, rgba(216, 163, 163, 0.4) 32px, transparent 32px);
  background-size: 100% 32px;
}
.hero-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}
.hero-main { position: relative; }
.date-stamp {
  font-family: 'Special Elite', monospace;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 36px;
  letter-spacing: 0.04em;
  transform: rotate(-0.5deg);
}
.date-stamp::before { content: "→ "; color: var(--pen-red); }
h1.hero-title {
  font-family: 'Caveat', cursive;
  font-size: clamp(72px, 12vw, 156px);
  font-weight: 700;
  line-height: 0.88;
  color: var(--ink);
  letter-spacing: -0.015em;
  transform: rotate(-1deg);
  transform-origin: left top;
  position: relative;
}
h1.hero-title .word-1 { display: block; }
h1.hero-title .word-2 {
  display: block;
  color: var(--pen-red);
  font-style: italic;
  transform: rotate(0.5deg) translateX(40px);
  margin-top: -10px;
}
h1.hero-title .word-3 {
  display: block;
  transform: rotate(-0.3deg);
  margin-top: -10px;
}
.squiggle-under {
  position: absolute;
  bottom: -18px; left: 30px;
  width: 320px; height: 14px;
}
.hero-deck {
  margin-top: 50px;
  font-family: 'Crimson Pro', serif;
  font-size: 21px;
  line-height: 1.55;
  max-width: 540px;
  color: var(--ink);
  font-style: italic;
  position: relative;
}
.hero-deck::before {
  content: "";
  position: absolute;
  left: -16px; top: 0; bottom: 0;
  width: 3px;
  background: var(--pen-red);
  opacity: 0.6;
}
.hero-margin-note {
  position: absolute;
  top: 240px;
  right: -10px;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--pen-red);
  transform: rotate(-6deg);
  line-height: 1.1;
  text-align: center;
}
.hero-margin-note .arrow-label {
  display: block;
  font-size: 17px;
  color: var(--pen-blue);
}

/* ============ POLAROID ============ */
.polaroid {
  background: #fdf8e8;
  padding: 14px 14px 50px 14px;
  box-shadow: 0 6px 14px rgba(40, 25, 10, 0.18), 0 1px 0 rgba(255,255,255,0.6) inset;
  transform: rotate(2.5deg);
  position: relative;
  margin-top: 40px;
}
.polaroid::before, .polaroid::after {
  content: "";
  position: absolute;
  width: 70px; height: 22px;
  background: var(--tape);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.polaroid::before {
  top: -10px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
}
.polaroid::after {
  bottom: -8px; right: -14px;
  width: 48px; height: 18px;
  transform: rotate(28deg);
  background: var(--tape-pink);
}
.polaroid svg,
.polaroid img {
  width: 100%;
  height: 220px;
  background: #1a1108;
  display: block;
  object-fit: cover;
  object-position: center;
}
.polaroid-caption {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  text-align: center;
  margin-top: 14px;
  color: var(--ink);
  line-height: 1.1;
}
.polaroid-caption small {
  display: block;
  font-size: 14px;
  color: var(--pencil);
  margin-top: 2px;
}

/* ============ MOM SECTION ============ */
.mom-section {
  padding: 80px 80px 100px;
  position: relative;
  background: var(--paper-warm);
  border-top: 1px dashed var(--rule-pink-strong);
  border-bottom: 1px dashed var(--rule-pink-strong);
}
.mom-stains {
  position: absolute;
  top: 30px; right: 60px;
  width: 110px; height: 110px;
  pointer-events: none;
  opacity: 0.7;
}
.mom-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 70px;
  align-items: start;
}
.mom-photo-stack { position: relative; padding-top: 30px; }
.recipe-card-pinned {
  background: #fffae8;
  padding: 22px 24px;
  transform: rotate(-3deg);
  box-shadow: 0 8px 18px rgba(40, 25, 10, 0.18);
  position: relative;
  font-family: 'Special Elite', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  background-image: linear-gradient(transparent 27px, rgba(216, 163, 163, 0.4) 27px, rgba(216, 163, 163, 0.4) 28px, transparent 28px);
  background-size: 100% 28px;
  background-position: 0 6px;
}
.recipe-card-pinned::before {
  content: "";
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  background: radial-gradient(circle at 30% 30%, #c44424, #6b1a08);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  z-index: 2;
}
.recipe-card-pinned h4 {
  font-family: 'Caveat', cursive;
  font-size: 28px;
  font-weight: 700;
  color: var(--pen-red);
  margin-bottom: 10px;
  line-height: 1;
  transform: rotate(-1deg);
}
.recipe-card-pinned ul { list-style: none; margin-bottom: 12px; }
.recipe-card-pinned .strike {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  color: var(--pencil);
  opacity: 0.7;
}
.recipe-card-pinned .annotation {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: var(--pen-blue);
  display: block;
  margin-left: 14px;
  margin-top: -4px;
  margin-bottom: 4px;
  line-height: 1;
  transform: rotate(-1deg);
}
.recipe-card-pinned .signoff {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--pen-blue);
  text-align: right;
  margin-top: 14px;
  transform: rotate(-2deg);
}

.mom-letter { position: relative; padding: 6px 0 0; }
.mom-letter .heading {
  font-family: 'Caveat', cursive;
  font-size: 36px;
  font-weight: 600;
  color: var(--pen-red);
  line-height: 1;
  margin-bottom: 4px;
  transform: rotate(-1deg);
  display: inline-block;
}
.mom-letter .subheading {
  font-family: 'Special Elite', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 28px;
  margin-top: 6px;
}
.mom-letter p {
  font-family: 'Crimson Pro', serif;
  font-size: 19px;
  line-height: 1.65;
  margin-bottom: 16px;
  color: var(--ink);
}
.mom-letter p:first-of-type::first-letter {
  font-family: 'Caveat', cursive;
  font-size: 3em;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  margin: 6px 14px 0 -2px;
  color: var(--pen-red);
}
.mom-letter .pull {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: var(--pen-red);
  line-height: 1.2;
  padding-left: 24px;
  border-left: 3px solid var(--pen-red);
  margin: 24px 0;
  transform: rotate(-0.5deg);
}
.signature {
  margin-top: 32px;
  font-family: 'Caveat', cursive;
  font-size: 36px;
  color: var(--pen-blue);
  transform: rotate(-2deg);
  line-height: 1;
}
.signature .editable-name {
  border-bottom: 1.5px dashed var(--pen-blue);
  padding: 0 8px;
  color: var(--pen-blue);
  opacity: 0.55;
  font-style: italic;
}
.signature small {
  display: block;
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  color: var(--pencil);
  margin-top: 6px;
  transform: rotate(2deg);
  letter-spacing: 0.05em;
}

/* ============ SECTION DIVIDER ============ */
.divider {
  padding: 50px 80px 30px;
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
}
.divider-tab {
  display: inline-block;
  background: var(--paper-aged);
  padding: 8px 28px 8px 16px;
  font-family: 'Special Elite', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  transform: rotate(-1deg);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  margin-bottom: 18px;
  position: relative;
}
.divider-tab::before {
  content: "§";
  color: var(--pen-red);
  margin-right: 10px;
  font-size: 16px;
}
.divider h2 {
  font-family: 'Caveat', cursive;
  font-size: 64px;
  font-weight: 600;
  line-height: 0.95;
  color: var(--ink);
  transform: rotate(-0.7deg);
  margin-bottom: 6px;
}
.divider h2 em {
  color: var(--pen-red);
  font-style: italic;
  border-bottom: 3px solid var(--pen-red);
  padding-bottom: 2px;
  line-height: 0.85;
  display: inline-block;
}
.divider .subtitle {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--pencil);
  margin-top: 4px;
  max-width: 600px;
}
.divider-meta {
  position: absolute;
  top: 50px; right: 80px;
  font-family: 'Caveat', cursive;
  font-size: 20px;
  color: var(--pen-blue);
  transform: rotate(-3deg);
  text-align: right;
}

/* ============ STARTERS ============ */
.starters {
  padding: 30px 80px 70px;
  max-width: 1500px;
  margin: 0 auto;
}
.starter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 40px;
}
.starter-card {
  background: #fdf8e3;
  padding: 22px 24px 24px;
  position: relative;
  box-shadow: 0 4px 12px rgba(40, 25, 10, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-image: linear-gradient(transparent 28px, rgba(216, 163, 163, 0.35) 28px, rgba(216, 163, 163, 0.35) 29px, transparent 29px);
  background-size: 100% 29px;
  background-position: 0 8px;
}
.starter-card:nth-child(1) { transform: rotate(-1.2deg); }
.starter-card:nth-child(2) { transform: rotate(0.8deg); }
.starter-card:nth-child(3) { transform: rotate(-0.5deg); }
.starter-card:nth-child(4) { transform: rotate(1.2deg); }
.starter-card:nth-child(5) { transform: rotate(-0.7deg); }
.starter-card:nth-child(6) { transform: rotate(0.4deg); }
.starter-card:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 10px 24px rgba(40, 25, 10, 0.18);
  z-index: 5;
}
.starter-card::before {
  content: "";
  position: absolute;
  top: -10px; right: 16px;
  width: 50px; height: 18px;
  background: var(--tape);
  transform: rotate(8deg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.starter-card .id {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  color: var(--pen-red);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.starter-card h4 {
  font-family: 'Caveat', cursive;
  font-size: 38px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
  transform: rotate(-0.5deg);
}
.starter-card .origin {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--pencil);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--rule-pink-strong);
}
.starter-stats {
  font-family: 'Special Elite', monospace;
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-soft);
}
.starter-stats .row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted rgba(180, 130, 70, 0.4);
}
.starter-stats .label { letter-spacing: 0.05em; }
.starter-stats .val { color: var(--ink); font-weight: 700; }
.starter-card .stars {
  margin-top: 12px;
  font-family: 'Kalam', cursive;
  font-size: 22px;
  color: var(--pen-red);
  letter-spacing: 2px;
}
.starter-card .scribble {
  position: absolute;
  bottom: 10px; right: 14px;
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: var(--pen-blue);
  transform: rotate(-4deg);
  line-height: 1;
  max-width: 140px;
  text-align: right;
}

/* ============ HYDRATION ============ */
.hydration-section {
  padding: 30px 80px 70px;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}
.sketched-chart {
  background: var(--paper);
  padding: 32px;
  position: relative;
  border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-0.8deg);
}
.sketched-chart h3 {
  font-family: 'Caveat', cursive;
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--ink);
}
.sketched-chart .sub {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 24px;
}
.sketched-chart svg { width: 100%; height: 270px; }

.ferment-table-wrap {
  background: #fdf8e3;
  padding: 28px;
  border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(0.6deg);
  position: relative;
}
.ferment-table-wrap::before {
  content: "";
  position: absolute;
  top: -12px; left: 30px;
  width: 80px; height: 22px;
  background: var(--tape);
  transform: rotate(-3deg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.ferment-table-wrap h3 {
  font-family: 'Caveat', cursive;
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--ink);
}
.ferment-table-wrap .sub {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 22px;
}
.ferment-table {
  width: 100%;
  font-family: 'Special Elite', monospace;
  font-size: 13px;
  border-collapse: collapse;
}
.ferment-table th {
  text-align: left;
  padding: 10px 6px;
  border-bottom: 2px solid var(--ink);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pen-red);
}
.ferment-table td {
  padding: 10px 6px;
  border-bottom: 1px dashed var(--rule-pink);
  color: var(--ink-soft);
}
.ferment-table tr.featured td {
  background: var(--tape);
  color: var(--ink);
  font-weight: 700;
  position: relative;
}
.ferment-table tr.featured td:first-child::before {
  content: "→ ";
  color: var(--pen-red);
  font-weight: 700;
}
.ferment-margin {
  margin-top: 18px;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--pen-blue);
  line-height: 1.1;
  transform: rotate(-1.5deg);
}

/* ============ FLOUR ============ */
.flour-section {
  padding: 30px 80px 70px;
  max-width: 1500px;
  margin: 0 auto;
}
.flour-paper {
  background: #fdf8e3;
  padding: 36px;
  border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-0.4deg);
  position: relative;
  background-image: linear-gradient(transparent 31px, rgba(216, 163, 163, 0.3) 31px, rgba(216, 163, 163, 0.3) 32px, transparent 32px);
  background-size: 100% 32px;
  background-position: 0 8px;
}
.flour-paper::before {
  content: "";
  position: absolute;
  top: -14px; left: 60px;
  width: 100px; height: 24px;
  background: var(--tape-pink);
  transform: rotate(-4deg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.flour-paper::after {
  content: "";
  position: absolute;
  top: -14px; right: 100px;
  width: 80px; height: 22px;
  background: var(--tape);
  transform: rotate(3deg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.flour-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Special Elite', monospace;
  font-size: 13px;
}
.flour-table thead th {
  text-align: left;
  padding: 10px 14px 12px;
  border-bottom: 2px solid var(--ink);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pen-red);
  font-weight: 400;
}
.flour-table td {
  padding: 14px;
  border-bottom: 1px dashed var(--rule-pink);
  color: var(--ink-soft);
  vertical-align: middle;
}
.flour-table tr:hover td { background: rgba(238, 218, 122, 0.25); }
.flour-name {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
  display: block;
}
.protein-bar {
  display: inline-block;
  height: 7px;
  background: var(--pen-red);
  vertical-align: middle;
  margin-right: 8px;
  min-width: 4px;
}
.stamp {
  display: inline-block;
  padding: 3px 10px;
  border: 1.5px solid var(--ink);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  transform: rotate(-2deg);
  background: rgba(238, 218, 122, 0.4);
}
.stamp.hot {
  border-color: var(--pen-red);
  color: var(--pen-red);
  background: rgba(229, 100, 80, 0.15);
  transform: rotate(2deg);
}
.star-rating { color: var(--pen-red); font-size: 16px; letter-spacing: 1px; }

/* ============ TOOLS ============ */
.tools {
  padding: 30px 80px 70px;
  max-width: 1500px;
  margin: 0 auto;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.tool-card {
  background: #fdf8e3;
  padding: 28px 28px 32px;
  position: relative;
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.25s ease;
}
.tool-card:nth-child(odd) { transform: rotate(-0.5deg); }
.tool-card:nth-child(even) { transform: rotate(0.5deg); }
.tool-card:hover {
  transform: rotate(0deg) translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}
.tool-num {
  position: absolute;
  top: 14px; right: 18px;
  font-family: 'Caveat', cursive;
  font-size: 60px;
  font-weight: 700;
  color: var(--pen-red);
  opacity: 0.15;
  line-height: 1;
}
.tool-card .kicker {
  font-family: 'Special Elite', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pen-red);
  margin-bottom: 8px;
}
.tool-card h4 {
  font-family: 'Caveat', cursive;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 14px;
  color: var(--ink);
}
.tool-card p {
  font-family: 'Crimson Pro', serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.tool-card .cta {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--pen-blue);
  border-bottom: 2px solid var(--pen-blue);
  padding-bottom: 1px;
}

/* ============ JOURNAL ============ */
.journal-section {
  padding: 30px 80px 70px;
  max-width: 1500px;
  margin: 0 auto;
}
.journal-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}
.journal-entry {
  background: #fdf8e3;
  padding: 28px;
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  position: relative;
  background-image: linear-gradient(transparent 27px, rgba(216, 163, 163, 0.3) 27px, rgba(216, 163, 163, 0.3) 28px, transparent 28px);
  background-size: 100% 28px;
  background-position: 0 10px;
}
.journal-entry:nth-child(1) { transform: rotate(-0.5deg); }
.journal-entry:nth-child(2) { transform: rotate(0.5deg); }
.journal-entry:nth-child(3) { transform: rotate(-0.3deg); }
.journal-entry::before {
  content: "";
  position: absolute;
  top: -10px; left: 30px;
  width: 60px; height: 18px;
  background: var(--tape);
  transform: rotate(-2deg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.journal-entry .stamp-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pen-red);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--rule-pink-strong);
}
.journal-entry h4 {
  font-family: 'Caveat', cursive;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 12px;
  color: var(--ink);
}
.journal-entry .lead {
  font-family: 'Crimson Pro', serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.journal-entry .byline {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: var(--pen-blue);
  text-align: right;
  transform: rotate(-1deg);
}
.journal-entry.featured h4 { font-size: 40px; }
.journal-entry.featured .lead { font-size: 18px; }

/* ============ SIGNUP ============ */
.signup {
  padding: 80px 80px;
  text-align: center;
  border-top: 2px dashed var(--rule-pink-strong);
  background: var(--paper-warm);
  position: relative;
}
.signup h2 {
  font-family: 'Caveat', cursive;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 700;
  line-height: 0.95;
  color: var(--ink);
  transform: rotate(-1deg);
  max-width: 900px;
  margin: 0 auto;
}
.signup h2 em {
  color: var(--pen-red);
  font-style: italic;
  border-bottom: 4px solid var(--pen-red);
}
.signup .form-row {
  margin: 36px auto 0;
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 540px;
  border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  background: #fdf8e3;
}
.signup input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  background: transparent;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--ink);
  outline: none;
}
.signup input::placeholder { color: var(--pencil); opacity: 0.7; }
.signup button {
  background: var(--pen-red);
  color: #fdf8e3;
  border: none;
  padding: 16px 28px;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  border-left: 1.5px solid var(--ink);
}
.signup button:hover { background: var(--ink); }
.signup-note {
  margin-top: 20px;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--pen-blue);
  transform: rotate(-1deg);
}

/* ============ FOOTER ============ */
footer {
  padding: 60px 80px 30px;
  background: var(--paper);
  border-top: 1.5px solid var(--ink);
}
.foot-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 80px 32px;
  border-bottom: 1.5px dashed var(--rule-pink-strong);
}
.foot-brand {
  font-family: 'Caveat', cursive;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  transform: rotate(-1deg);
  display: inline-block;
}
.foot-brand .amp { color: var(--pen-red); }
.foot-tag {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: var(--pencil);
  max-width: 320px;
  margin-top: 12px;
}
.foot-col h5 {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pen-red);
  margin-bottom: 14px;
}
.foot-col ul { list-style: none; }
.foot-col li {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 4px;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}
.foot-col li:hover { color: var(--pen-red); transform: translateX(3px); }
.colophon {
  max-width: 1400px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--pencil);
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 80px 40px;
}

/* ============ ANIMATIONS ============ */
.fade-up { animation: fadeUp 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; }
}
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.35s; }
.d4 { animation-delay: 0.5s; }

/* ============ 404 PAGE ============ */
.not-found {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
}
.not-found .big {
  font-family: 'Caveat', cursive;
  font-size: clamp(96px, 18vw, 220px);
  font-weight: 700;
  line-height: 0.85;
  color: var(--pen-red);
  transform: rotate(-3deg);
  margin-bottom: 8px;
}
.not-found h2 {
  font-family: 'Caveat', cursive;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: var(--ink);
  transform: rotate(-1deg);
  margin-bottom: 18px;
}
.not-found p {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 520px;
  line-height: 1.55;
  margin-bottom: 28px;
}
.not-found .home-link {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: var(--pen-blue);
  border-bottom: 2px solid var(--pen-blue);
  padding-bottom: 2px;
}

/* ============================================================
   TOOLS PAGES (shared)
   ============================================================ */
.tool-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 80px 80px;
}

.tool-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}
.tool-header .breadcrumb {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 14px;
}
.tool-header .breadcrumb a {
  color: var(--pen-red);
  border-bottom: 1px dashed var(--pen-red);
}
.tool-header h1 {
  font-family: 'Caveat', cursive;
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 700;
  line-height: 0.9;
  color: var(--ink);
  transform: rotate(-1deg);
  display: inline-block;
  margin-bottom: 8px;
}
.tool-header h1 em {
  color: var(--pen-red);
  font-style: italic;
}
.tool-header .lede {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 8px auto 0;
}

/* Mode tabs */
.mode-tabs {
  display: flex;
  gap: 0;
  justify-content: center;
  margin: 40px auto 36px;
  max-width: 600px;
  border: 1.5px solid var(--ink);
  background: #fdf8e3;
  box-shadow: 4px 4px 0 var(--ink);
}
.mode-tab {
  flex: 1;
  padding: 18px 20px;
  font-family: 'Caveat', cursive;
  font-size: 26px;
  font-weight: 600;
  color: var(--pencil);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-right: 1.5px solid var(--ink);
  position: relative;
}
.mode-tab:last-child { border-right: none; }
.mode-tab:hover { color: var(--ink); background: rgba(238, 218, 122, 0.25); }
.mode-tab.active {
  color: var(--ink);
  background: var(--tape);
}
.mode-tab.active::before {
  content: "✓ ";
  color: var(--pen-red);
}
.mode-tab .sub {
  display: block;
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.6;
  margin-top: 2px;
  font-weight: 400;
}

/* Explainer cards above the tabs */
.explainer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}
.explainer {
  background: #fdf8e3;
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 26px 28px;
  position: relative;
  background-image: linear-gradient(transparent 27px, rgba(216, 163, 163, 0.3) 27px, rgba(216, 163, 163, 0.3) 28px, transparent 28px);
  background-size: 100% 28px;
  background-position: 0 8px;
}
.explainer:nth-child(1) { transform: rotate(-0.5deg); }
.explainer:nth-child(2) { transform: rotate(0.4deg); }
.explainer::before {
  content: "";
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 90px; height: 22px;
  background: var(--tape);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.explainer h3 {
  font-family: 'Caveat', cursive;
  font-size: 30px;
  font-weight: 600;
  color: var(--pen-red);
  margin-bottom: 4px;
  line-height: 1;
}
.explainer .label {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 14px;
}
.explainer p {
  font-family: 'Crimson Pro', serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.explainer p:last-child { margin-bottom: 0; }
.explainer .example {
  font-family: 'Special Elite', monospace;
  font-size: 12px;
  background: rgba(238, 218, 122, 0.4);
  padding: 8px 12px;
  border-left: 3px solid var(--pen-red);
  margin-top: 12px;
  color: var(--ink);
}

/* Calculator card (the main interactive panel) */
.calc-card {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 40px;
  position: relative;
  background-image: linear-gradient(transparent 31px, rgba(216, 163, 163, 0.28) 31px, rgba(216, 163, 163, 0.28) 32px, transparent 32px);
  background-size: 100% 32px;
  background-position: 0 12px;
}
.calc-card::before {
  content: "";
  position: absolute;
  top: -14px; left: 60px;
  width: 100px; height: 24px;
  background: var(--tape-pink);
  transform: rotate(-3deg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.calc-card::after {
  content: "";
  position: absolute;
  top: -14px; right: 80px;
  width: 80px; height: 22px;
  background: var(--tape);
  transform: rotate(4deg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

/* Inputs panel */
.inputs h3, .results h3 {
  font-family: 'Caveat', cursive;
  font-size: 36px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1;
}
.inputs .h3-sub, .results .h3-sub {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 22px;
}

.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 4px;
  font-weight: 500;
}
.field .hint {
  font-family: 'Special Elite', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--pencil);
  margin-bottom: 8px;
  display: block;
}
.field-input-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--ink);
  background: #fdf8e3;
  box-shadow: 3px 3px 0 var(--ink);
}
.field-input-wrap:focus-within {
  box-shadow: 3px 3px 0 var(--pen-red);
  border-color: var(--pen-red);
}
.field input[type="number"], .field input[type="text"] {
  flex: 1;
  padding: 12px 14px;
  border: none;
  background: transparent;
  font-family: 'Special Elite', monospace;
  font-size: 18px;
  color: var(--ink);
  outline: none;
  width: 100%;
  -moz-appearance: textfield;
}
.field input::-webkit-outer-spin-button,
.field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.field-input-wrap .unit {
  font-family: 'Special Elite', monospace;
  font-size: 13px;
  color: var(--pencil);
  padding: 12px 16px 12px 0;
  display: flex;
  align-items: center;
  letter-spacing: 0.05em;
  background: transparent;
}

/* Slider */
.field-slider {
  margin-top: 4px;
}
.field-slider input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  background: var(--paper-aged);
  outline: none;
  border-radius: 3px;
  border: 1px solid var(--ink);
}
.field-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--pen-red);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--ink);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.field-slider input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--pen-red);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--ink);
}
.field-slider .slider-row {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  color: var(--pencil);
}

/* Advanced details (collapsible) */
.advanced-section {
  margin-top: 28px;
  border-top: 2px dashed var(--rule-pink-strong);
  padding-top: 22px;
}
.advanced-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Caveat', cursive;
  font-size: 24px;
  color: var(--pen-blue);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s;
}
.advanced-toggle:hover { color: var(--pen-red); }
.advanced-toggle .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 20px;
}
.advanced-toggle.open .arrow { transform: rotate(90deg); }
.advanced-toggle .label-aux {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--pencil);
  text-transform: uppercase;
  margin-left: auto;
}
.advanced-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.advanced-content.open {
  max-height: 1200px;
}
.advanced-content > .inner {
  padding-top: 18px;
}

/* Results panel */
.results {
  position: relative;
}
.results-card {
  background: #fdf8e3;
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 26px 28px;
  margin-top: 4px;
  background-image: linear-gradient(transparent 27px, rgba(216, 163, 163, 0.3) 27px, rgba(216, 163, 163, 0.3) 28px, transparent 28px);
  background-size: 100% 28px;
  background-position: 0 8px;
  transform: rotate(0.4deg);
}
.results-card .stamp-pin {
  position: absolute;
  top: 26px; right: -18px;
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pen-red);
  background: var(--tape);
  border: 1.5px solid var(--pen-red);
  padding: 5px 12px;
  transform: rotate(6deg);
  box-shadow: 2px 2px 0 var(--ink);
}

.headline-stat {
  text-align: center;
  padding: 16px 0 22px;
  border-bottom: 1.5px dashed var(--rule-pink-strong);
  margin-bottom: 18px;
}
.headline-stat .label {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 4px;
}
.headline-stat .num {
  font-family: 'Caveat', cursive;
  font-size: 90px;
  font-weight: 700;
  line-height: 0.9;
  color: var(--pen-red);
  display: block;
}
.headline-stat .num small {
  font-size: 36px;
  color: var(--ink);
}
.headline-stat .desc {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  font-family: 'Special Elite', monospace;
  font-size: 14px;
  padding: 9px 0;
  border-bottom: 1px dotted rgba(180, 130, 70, 0.45);
}
.result-row:last-child { border-bottom: none; }
.result-row .label {
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.result-row .val {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}
.result-row .val em {
  font-style: normal;
  color: var(--pen-red);
}
.result-row.highlight {
  border-bottom: 1px dashed var(--pen-red);
}
.result-row.highlight .val { color: var(--pen-red); }

/* Sweet spot indicator */
.sweet-spot {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(238, 218, 122, 0.5);
  border: 1.5px dashed var(--ink);
  font-family: 'Caveat', cursive;
  font-size: 19px;
  color: var(--ink);
  line-height: 1.3;
  position: relative;
}
.sweet-spot strong { color: var(--pen-red); font-weight: 700; }
.sweet-spot.warning { background: rgba(229, 100, 80, 0.18); border-color: var(--pen-red); }
.sweet-spot.warning strong { color: var(--pen-red); }

/* The 'why fail is okay' section */
.failure-blessing {
  margin-top: 70px;
  padding: 50px 60px;
  background: var(--paper-warm);
  border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  position: relative;
  transform: rotate(-0.3deg);
}
.failure-blessing::before {
  content: "";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 120px; height: 24px;
  background: var(--tape-pink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.failure-blessing .heading {
  font-family: 'Caveat', cursive;
  font-size: 50px;
  font-weight: 600;
  color: var(--pen-red);
  line-height: 1;
  margin-bottom: 8px;
  transform: rotate(-1deg);
  display: inline-block;
}
.failure-blessing .subhead {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 24px;
  margin-top: 6px;
}
.failure-blessing p {
  font-family: 'Crimson Pro', serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 14px;
}
.failure-blessing p:first-of-type::first-letter {
  font-family: 'Caveat', cursive;
  font-size: 3em;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  margin: 6px 14px 0 -2px;
  color: var(--pen-red);
}
.failure-blessing .pull {
  font-family: 'Caveat', cursive;
  font-size: 28px;
  color: var(--pen-red);
  line-height: 1.2;
  padding-left: 22px;
  border-left: 3px solid var(--pen-red);
  margin: 22px 0;
  transform: rotate(-0.5deg);
}
.failure-blessing .signoff {
  margin-top: 20px;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--pen-blue);
  text-align: right;
  transform: rotate(-1deg);
}

/* "Try this next" tip box */
.tip-box {
  margin-top: 22px;
  padding: 18px 22px;
  background: rgba(42, 71, 116, 0.07);
  border-left: 4px solid var(--pen-blue);
}
.tip-box .tip-label {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pen-blue);
  margin-bottom: 6px;
}
.tip-box p {
  font-family: 'Crimson Pro', serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

/* Mode panels (show/hide) */
.mode-panel { display: none; }
.mode-panel.active { display: block; }

@media (max-width: 1024px) {
  .calc-grid, .explainer-grid { grid-template-columns: 1fr; gap: 30px; }
  .results-card { transform: none; }
  .results-card .stamp-pin { top: -16px; right: 20px; }
}
@media (max-width: 640px) {
  .tool-page { padding: 30px 24px 50px; }
  .tool-header h1 { font-size: 56px; }
  .calc-card { padding: 24px 20px; }
  .calc-card::before, .calc-card::after { display: none; }
  .mode-tab { font-size: 18px; padding: 14px 12px; }
  .mode-tab .sub { font-size: 9px; }
  .headline-stat .num { font-size: 64px; }
  .failure-blessing { padding: 30px 24px; }
  .failure-blessing .heading { font-size: 36px; }
}
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
}
.not-found .big {
  font-family: 'Caveat', cursive;
  font-size: clamp(96px, 18vw, 220px);
  font-weight: 700;
  line-height: 0.85;
  color: var(--pen-red);
  transform: rotate(-3deg);
  margin-bottom: 8px;
}
.not-found h2 {
  font-family: 'Caveat', cursive;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: var(--ink);
  transform: rotate(-1deg);
  margin-bottom: 18px;
}
.not-found p {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 520px;
  line-height: 1.55;
  margin-bottom: 28px;
}
.not-found .home-link {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: var(--pen-blue);
  border-bottom: 2px solid var(--pen-blue);
  padding-bottom: 2px;
}

/* ============ TOOLS / CALCULATORS ============ */
/* Page-level layout for /tools/* pages */
.tool-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 80px 80px;
}

.tool-page .tool-header {
  margin-bottom: 36px;
  position: relative;
}
.tool-page .breadcrumb {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 24px;
}
.tool-page .breadcrumb a { color: var(--pen-blue); }
.tool-page .breadcrumb a:hover { color: var(--pen-red); }
.tool-page .breadcrumb .sep { margin: 0 10px; color: var(--rule-pink-strong); }

.tool-page h1 {
  font-family: 'Caveat', cursive;
  font-size: clamp(54px, 8vw, 96px);
  font-weight: 700;
  line-height: 0.92;
  color: var(--ink);
  letter-spacing: -0.015em;
  transform: rotate(-1deg);
  margin-bottom: 8px;
}
.tool-page h1 em {
  color: var(--pen-red);
  font-style: italic;
  font-variation-settings: "WONK" 1;
}
.tool-page .tool-tagline {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
  max-width: 600px;
  margin-top: 6px;
}

/* Intro / why-it-matters block */
.tool-intro {
  background: #fdf8e3;
  border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 32px 36px;
  margin-bottom: 40px;
  position: relative;
  transform: rotate(-0.3deg);
  background-image: linear-gradient(transparent 27px, rgba(216, 163, 163, 0.3) 27px, rgba(216, 163, 163, 0.3) 28px, transparent 28px);
  background-size: 100% 28px;
  background-position: 0 12px;
}
.tool-intro::before {
  content: "";
  position: absolute;
  top: -14px; left: 40px;
  width: 110px; height: 24px;
  background: var(--tape);
  transform: rotate(-3deg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.tool-intro::after {
  content: "";
  position: absolute;
  top: -12px; right: 60px;
  width: 70px; height: 22px;
  background: var(--tape-pink);
  transform: rotate(4deg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.tool-intro h2 {
  font-family: 'Caveat', cursive;
  font-size: 34px;
  font-weight: 600;
  color: var(--pen-red);
  margin-bottom: 8px;
  transform: rotate(-0.5deg);
  display: inline-block;
  line-height: 1;
}
.tool-intro p {
  font-family: 'Crimson Pro', serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 12px;
}
.tool-intro p:last-child { margin-bottom: 0; }
.tool-intro .reassure {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(238, 218, 122, 0.4);
  border-left: 3px solid var(--pen-blue);
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--pen-blue);
  line-height: 1.3;
  transform: rotate(-0.3deg);
}

/* Tabs (mode selector) */
.tab-strip {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 2px solid var(--ink);
  position: relative;
  z-index: 2;
}
.tab-strip .tab {
  font-family: 'Caveat', cursive;
  font-size: 28px;
  font-weight: 700;
  background: var(--paper-aged);
  color: var(--pencil);
  padding: 14px 32px 16px;
  border: 1.5px solid var(--ink);
  border-bottom: none;
  margin-right: -1.5px;
  cursor: pointer;
  position: relative;
  bottom: -2px;
  transform: rotate(-1deg);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.tab-strip .tab:nth-child(2) { transform: rotate(0.8deg); }
.tab-strip .tab:nth-child(3) { transform: rotate(-0.5deg); }
.tab-strip .tab:hover {
  background: var(--paper-warm);
  color: var(--ink);
}
.tab-strip .tab.active {
  background: #fdf8e3;
  color: var(--pen-red);
  border-bottom-color: #fdf8e3;
  z-index: 3;
  transform: rotate(0deg) translateY(-2px);
}
.tab-strip .tab .num {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--pen-red);
  display: block;
  margin-bottom: -2px;
  text-transform: uppercase;
  font-weight: 400;
}

/* Tab panels */
.tab-panel {
  display: none;
  background: #fdf8e3;
  border: 1.5px solid var(--ink);
  border-top: none;
  padding: 40px 44px;
  margin-bottom: 36px;
  position: relative;
  background-image: linear-gradient(transparent 27px, rgba(216, 163, 163, 0.25) 27px, rgba(216, 163, 163, 0.25) 28px, transparent 28px);
  background-size: 100% 28px;
  background-position: 0 12px;
}
.tab-panel.active { display: block; }

.panel-section-title {
  font-family: 'Caveat', cursive;
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
  transform: rotate(-0.4deg);
  display: inline-block;
}
.panel-section-title em { color: var(--pen-red); font-style: italic; }
.panel-explain {
  font-family: 'Crimson Pro', serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 700px;
}

/* Calculator grid layout */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

/* Input column */
.calc-inputs {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 28px;
  position: relative;
  transform: rotate(-0.5deg);
}
.calc-inputs::before {
  content: "INPUTS";
  position: absolute;
  top: -10px; left: 16px;
  background: var(--paper);
  padding: 0 10px;
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--pen-red);
}

.input-group {
  margin-bottom: 22px;
}
.input-group:last-child { margin-bottom: 0; }
.input-group label {
  display: block;
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 6px;
}
.input-group .label-hint {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--pencil);
  margin-bottom: 10px;
  text-transform: none;
  letter-spacing: 0;
  display: block;
}
.input-row {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--ink);
  background: #fffae8;
  position: relative;
}
.input-row input[type="number"] {
  flex: 1;
  font-family: 'Caveat', cursive;
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: none;
  padding: 12px 16px;
  outline: none;
  width: 100%;
  -moz-appearance: textfield;
}
.input-row input[type="number"]::-webkit-outer-spin-button,
.input-row input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.input-row .unit {
  font-family: 'Special Elite', monospace;
  font-size: 14px;
  color: var(--pencil);
  padding: 0 16px 0 8px;
  letter-spacing: 0.06em;
  border-left: 1.5px dashed var(--rule-pink-strong);
  height: 100%;
  display: flex;
  align-items: center;
  background: rgba(232, 218, 178, 0.4);
  align-self: stretch;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.preset {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  background: var(--paper-aged);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  padding: 4px 12px;
  cursor: pointer;
  transform: rotate(-1deg);
  transition: background 0.15s, transform 0.15s;
}
.preset:nth-child(even) { transform: rotate(1deg); }
.preset:hover {
  background: var(--tape);
  transform: rotate(0deg) translateY(-1px);
}

/* Results column */
.calc-results {
  background: #fdf8e8;
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 28px 30px;
  position: relative;
  transform: rotate(0.4deg);
}
.calc-results::before {
  content: "";
  position: absolute;
  top: -12px; left: 30px;
  width: 80px; height: 22px;
  background: var(--tape);
  transform: rotate(-3deg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.big-result {
  text-align: center;
  padding: 14px 0 18px;
  border-bottom: 2px dashed var(--rule-pink-strong);
  margin-bottom: 18px;
}
.big-result .label {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 4px;
}
.big-result .value {
  font-family: 'Caveat', cursive;
  font-size: 96px;
  font-weight: 700;
  line-height: 0.95;
  color: var(--pen-red);
  letter-spacing: -0.015em;
  display: block;
  transform: rotate(-1deg);
}
.big-result .pct { font-size: 56px; vertical-align: top; margin-left: 4px; }

.breakdown {
  font-family: 'Special Elite', monospace;
  font-size: 13px;
  line-height: 1.9;
}
.breakdown .row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted rgba(180, 130, 70, 0.45);
  padding: 4px 0;
}
.breakdown .row .label {
  color: var(--pencil);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}
.breakdown .row .val {
  color: var(--ink);
  font-weight: 700;
}
.breakdown .row.total .label,
.breakdown .row.total .val {
  color: var(--pen-red);
}

.interpretation {
  margin-top: 22px;
  padding: 16px 18px;
  background: rgba(238, 218, 122, 0.32);
  border-left: 3px solid var(--pen-blue);
  font-family: 'Crimson Pro', serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.interpretation strong {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--pen-blue);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  transform: rotate(-0.3deg);
}

/* Advanced collapsible */
.advanced {
  margin-top: 32px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
}
.advanced summary {
  cursor: pointer;
  padding: 16px 22px;
  font-family: 'Caveat', cursive;
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper-aged);
  user-select: none;
  transition: background 0.15s;
}
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary:hover { background: var(--paper-warm); }
.advanced summary::after {
  content: "+";
  font-family: 'Caveat', cursive;
  font-size: 36px;
  color: var(--pen-red);
  font-weight: 700;
  line-height: 0.6;
  transition: transform 0.2s;
}
.advanced[open] summary::after {
  content: "−";
  transform: rotate(0deg);
}
.advanced summary .a-num {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--pen-red);
  text-transform: uppercase;
  margin-right: 12px;
}
.advanced .a-body {
  padding: 28px 30px;
  border-top: 1.5px solid var(--ink);
}
.advanced .a-intro {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Multi-flour blend rows */
.flour-row {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}
.flour-row.header {
  margin-bottom: 6px;
}
.flour-row.header .h {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pencil);
}
.flour-row .add-row,
.flour-row .remove-row {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  font-weight: 700;
  color: var(--pen-red);
  background: var(--paper-aged);
  border: 1.5px solid var(--ink);
  padding: 4px 12px;
  cursor: pointer;
  transition: background 0.15s;
  align-self: end;
  height: fit-content;
}
.flour-row .add-row:hover,
.flour-row .remove-row:hover { background: var(--tape); }
.flour-input {
  width: 100%;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  background: #fffae8;
  border: 1.5px solid var(--ink);
  padding: 6px 12px;
  color: var(--ink);
  outline: none;
}
.flour-input::placeholder { color: var(--pencil); opacity: 0.6; }

.add-flour-btn {
  font-family: 'Caveat', cursive;
  font-size: 20px;
  font-weight: 600;
  color: var(--pen-blue);
  background: transparent;
  border: 1.5px dashed var(--pen-blue);
  padding: 8px 18px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
}
.add-flour-btn:hover {
  background: rgba(42, 71, 116, 0.1);
}

/* Tips list */
.tips-block {
  margin-top: 36px;
  padding: 24px 28px;
  background: var(--paper-warm);
  border: 1.5px dashed var(--rule-pink-strong);
  position: relative;
}
.tips-block h3 {
  font-family: 'Caveat', cursive;
  font-size: 30px;
  color: var(--pen-red);
  margin-bottom: 14px;
  transform: rotate(-0.5deg);
  display: inline-block;
  line-height: 1;
}
.tips-block ul {
  list-style: none;
  font-family: 'Crimson Pro', serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}
.tips-block li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
}
.tips-block li::before {
  content: "✎";
  position: absolute;
  left: 0; top: 1px;
  color: var(--pen-blue);
  font-family: 'Caveat', cursive;
  font-size: 22px;
}
.tips-block li strong {
  font-family: 'Caveat', cursive;
  font-size: 20px;
  color: var(--pen-red);
  font-weight: 700;
  margin-right: 4px;
}

/* Bottom encouragement note */
.encouragement {
  margin-top: 40px;
  text-align: center;
  padding: 28px 24px;
  position: relative;
}
.encouragement .scribble {
  font-family: 'Caveat', cursive;
  font-size: 30px;
  color: var(--pen-blue);
  line-height: 1.2;
  transform: rotate(-1.5deg);
  display: inline-block;
  max-width: 600px;
}
.encouragement .signoff {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--pen-red);
  margin-top: 16px;
  transform: rotate(-1deg);
  display: inline-block;
}

/* Responsive for tools */
@media (max-width: 900px) {
  .tool-page { padding: 30px 24px 60px; }
  .calc-grid { grid-template-columns: 1fr; gap: 24px; }
  .calc-inputs, .calc-results { transform: rotate(0deg); }
  .tab-strip .tab {
    font-size: 22px;
    padding: 12px 18px 14px;
  }
  .tab-panel { padding: 28px 22px; }
  .tool-intro { padding: 24px; }
  .tool-intro::before, .tool-intro::after { display: none; }
  .big-result .value { font-size: 76px; }
  .flour-row { grid-template-columns: 1.5fr 1fr auto; }
}


@media (max-width: 1024px) {
  .hero-grid, .mom-grid, .hydration-section { grid-template-columns: 1fr; gap: 40px; }
  .starter-grid, .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .journal-grid, .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-margin-note { display: none; }
}
@media (max-width: 640px) {
  .binding, .holes { display: none; }
  header { padding: 20px 24px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .nav { gap: 16px; flex-wrap: wrap; font-size: 18px; }
  .hero, .mom-section, .divider, .starters, .hydration-section, .flour-section, .tools, .journal-section, .signup, footer { padding-left: 24px; padding-right: 24px; }
  .hero { padding-top: 36px; padding-bottom: 36px; }
  .mom-section { padding-top: 50px; padding-bottom: 50px; }
  .divider { padding-top: 40px; }
  .divider h2 { font-size: 44px; }
  .divider-meta { display: none; }
  .starter-grid, .tools-grid, .journal-grid, .foot-grid { grid-template-columns: 1fr; }
  .flour-paper { padding: 20px; overflow-x: auto; }
  .flour-table { min-width: 600px; }
  .flour-paper::before, .flour-paper::after { display: none; }
  h1.hero-title { font-size: 64px; }
  h1.hero-title .word-2 { transform: rotate(0.5deg) translateX(10px); }
  .signup { padding: 50px 24px; }
}

/* ============ ABOUT PAGE ============ */

.about-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 50px 80px 100px;
}

.breadcrumb {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 40px;
}
.breadcrumb a { color: var(--pen-blue); }
.breadcrumb a:hover { color: var(--pen-red); }
.breadcrumb .sep { margin: 0 10px; color: var(--rule-pink-strong); }

.about-title {
  font-family: 'Caveat', cursive;
  font-size: clamp(64px, 10vw, 110px);
  font-weight: 700;
  line-height: 0.9;
  color: var(--ink);
  transform: rotate(-1deg);
  margin-bottom: 50px;
  position: relative;
}
.about-title em {
  color: var(--pen-red);
  font-style: italic;
  display: block;
}

.prose-section {
  background-image: linear-gradient(
    transparent 31px,
    rgba(216, 163, 163, 0.35) 31px,
    rgba(216, 163, 163, 0.35) 32px,
    transparent 32px
  );
  background-size: 100% 32px;
  background-position: 0 8px;
  margin-bottom: 64px;
}
.prose-section p {
  font-family: 'Crimson Pro', serif;
  font-size: 20px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 20px;
}
.prose-section p:last-child { margin-bottom: 0; }
.prose-section .opener::first-letter {
  font-family: 'Caveat', cursive;
  font-size: 3em;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  margin: 6px 14px 0 -2px;
  color: var(--pen-red);
}

.section-label {
  display: block;
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pen-red);
  background: var(--paper-aged);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 6px 18px 6px 12px;
  transform: rotate(-0.8deg);
  margin-bottom: 20px;
  width: fit-content;
}
.section-label::before { content: "§ "; color: var(--pen-red); font-size: 14px; }

.section-heading {
  font-family: 'Caveat', cursive;
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  transform: rotate(-0.5deg);
  margin-bottom: 24px;
  display: block;
}
.section-heading em { color: var(--pen-red); font-style: italic; }

.divider-ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 64px 0;
  color: var(--rule-pink-strong);
  opacity: 0.7;
}
.divider-ornament .line { flex: 1; height: 1px; background: currentColor; }
.divider-ornament .pip {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--pen-red);
  transform: rotate(-3deg);
}

.pinned-card {
  background: #fffae8;
  padding: 28px 30px 30px;
  transform: rotate(1.8deg);
  box-shadow: 0 8px 24px rgba(40, 25, 10, 0.15);
  position: relative;
  font-family: 'Special Elite', monospace;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 48px;
  background-image: linear-gradient(transparent 27px, rgba(216, 163, 163, 0.4) 27px, rgba(216, 163, 163, 0.4) 28px, transparent 28px);
  background-size: 100% 28px;
  background-position: 0 6px;
}
.pinned-card::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 30% 30%, #c44424, #6b1a08);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.pinned-card::after {
  content: "";
  position: absolute;
  top: -8px;
  right: -12px;
  width: 70px;
  height: 22px;
  background: rgba(238, 218, 122, 0.55);
  transform: rotate(28deg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.pinned-card .card-title {
  font-family: 'Caveat', cursive;
  font-size: 30px;
  font-weight: 700;
  color: var(--pen-red);
  margin-bottom: 12px;
  line-height: 1;
  transform: rotate(-1deg);
  display: block;
}
.pinned-card .strike {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  color: var(--pencil);
  opacity: 0.7;
}
.pinned-card .annotation {
  font-family: 'Caveat', cursive;
  font-size: 20px;
  color: var(--pen-blue);
  display: block;
  margin-left: 16px;
  margin-top: -4px;
  margin-bottom: 4px;
  line-height: 1;
  transform: rotate(-1deg);
}
.pinned-card .signoff {
  font-family: 'Caveat', cursive;
  font-size: 24px;
  color: var(--pen-blue);
  text-align: right;
  margin-top: 16px;
  transform: rotate(-2deg);
  display: block;
}

.pull {
  font-family: 'Caveat', cursive;
  font-size: 32px;
  font-weight: 600;
  color: var(--pen-red);
  line-height: 1.25;
  padding-left: 28px;
  border-left: 3px solid var(--pen-red);
  margin: 32px 0;
  transform: rotate(-0.4deg);
  max-width: 640px;
}

.margin-note {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--pen-blue);
  line-height: 1.2;
  transform: rotate(-2deg);
  display: inline-block;
  margin: 24px 0;
}

.gary-block {
  background: #fdf8e3;
  border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 28px 32px;
  transform: rotate(0.5deg);
  position: relative;
  margin: 48px 0;
}
.gary-block::before {
  content: "SPECIMEN № 0001";
  position: absolute;
  top: -11px;
  left: 18px;
  background: var(--paper);
  padding: 0 10px;
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--pen-red);
}
.gary-block .gary-name {
  font-family: 'Caveat', cursive;
  font-size: 48px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}
.gary-block .gary-latin {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--pencil);
  margin-bottom: 18px;
}
.gary-stats { font-family: 'Special Elite', monospace; font-size: 12.5px; line-height: 1.9; }
.gary-stats .stat-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted rgba(180, 130, 70, 0.4);
}
.gary-stats .stat-row .lbl {
  color: var(--pencil);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 10.5px;
}
.gary-stats .stat-row .val { color: var(--ink); font-weight: 700; }
.gary-note {
  margin-top: 16px;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--pen-blue);
  line-height: 1.2;
  transform: rotate(-1deg);
}

.forward-list { list-style: none; margin: 20px 0; }
.forward-list li {
  font-family: 'Crimson Pro', serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  padding-left: 32px;
  position: relative;
  margin-bottom: 12px;
}
.forward-list li::before {
  content: "✎";
  position: absolute;
  left: 0; top: 2px;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--pen-blue);
}
.forward-list li strong {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--pen-red);
  font-weight: 700;
  margin-right: 4px;
}

.sign-off {
  margin-top: 70px;
  padding-top: 40px;
  border-top: 1.5px dashed var(--rule-pink-strong);
  text-align: center;
}
.sign-off .closing {
  font-family: 'Caveat', cursive;
  font-size: 36px;
  font-weight: 600;
  color: var(--pen-blue);
  line-height: 1.2;
  transform: rotate(-1.5deg);
  display: inline-block;
  margin-bottom: 8px;
}
.sign-off .sig-name {
  font-family: 'Caveat', cursive;
  font-size: 28px;
  color: var(--ink);
  transform: rotate(-1deg);
  display: block;
  margin-top: 8px;
  line-height: 1.75;
}
.sign-off .sig-sub {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-top: 6px;
  display: block;
}

.about-cta {
  margin-top: 60px;
  background: var(--paper-warm);
  border: 1.5px dashed var(--rule-pink-strong);
  padding: 32px 36px;
  text-align: center;
}
.about-cta h3 {
  font-family: 'Caveat', cursive;
  font-size: 36px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1;
}
.about-cta h3 em { color: var(--pen-red); font-style: italic; }
.about-cta p {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.about-cta .form-row {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background: #fdf8e3;
}
.about-cta input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  background: transparent;
  font-family: 'Caveat', cursive;
  font-size: 20px;
  color: var(--ink);
  outline: none;
}
.about-cta input::placeholder { color: var(--pencil); opacity: 0.7; }
.about-cta button {
  background: var(--pen-red);
  color: #fdf8e3;
  border: none;
  padding: 14px 24px;
  font-family: 'Caveat', cursive;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  border-left: 1.5px solid var(--ink);
  transition: background 0.2s;
}
.about-cta button:hover { background: var(--ink); }
.about-cta .note {
  margin-top: 14px;
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: var(--pen-blue);
}

@media (max-width: 720px) {
  .about-wrap { padding: 30px 24px 60px; }
  .about-title { font-size: 64px; }
  .section-heading { font-size: 40px; }
  .pull { font-size: 26px; }
  .pinned-card { transform: rotate(0deg); }
}

/* ============ STARTER DETAIL PAGE ============ */

.starter-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 50px 80px 100px;
}

.specimen-header {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
  margin-bottom: 64px;
}
.specimen-id {
  font-family: 'Special Elite', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pen-red);
  margin-bottom: 8px;
}
.specimen-name {
  font-family: 'Caveat', cursive;
  font-size: clamp(64px, 10vw, 110px);
  font-weight: 700;
  line-height: 0.88;
  color: var(--ink);
  transform: rotate(-1deg);
  margin-bottom: 10px;
}
.specimen-name em { color: var(--pen-red); font-style: italic; display: block; }
.specimen-origin {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--pencil);
  margin-bottom: 24px;
}
.specimen-tagline {
  font-family: 'Crimson Pro', serif;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 580px;
  padding-left: 20px;
  border-left: 3px solid var(--pen-red);
  font-style: italic;
}

.spec-card {
  background: #fdf8e3;
  border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 24px 26px;
  transform: rotate(1deg);
  position: relative;
}
.spec-card::before {
  content: "DATA SHEET";
  position: absolute;
  top: -11px; left: 16px;
  background: var(--paper);
  padding: 0 10px;
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--pen-red);
}
.spec-card::after {
  content: "";
  position: absolute;
  top: -12px; right: 24px;
  width: 70px; height: 20px;
  background: rgba(238, 218, 122, 0.55);
  transform: rotate(4deg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.spec-table { width: 100%; font-family: 'Special Elite', monospace; font-size: 12px; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px dotted rgba(180, 130, 70, 0.45); }
.spec-table td { padding: 9px 0; vertical-align: top; line-height: 1.4; }
.spec-table td:first-child {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pencil);
  width: 44%;
  padding-right: 10px;
}
.spec-table td:last-child { color: var(--ink); font-weight: 700; }
.spec-table .accent { color: var(--pen-red); }
.spec-note {
  margin-top: 16px;
  font-family: 'Caveat', cursive;
  font-size: 20px;
  color: var(--pen-blue);
  line-height: 1.2;
  transform: rotate(-1deg);
}

.stars { font-family: 'Kalam', cursive; font-size: 20px; color: var(--pen-red); letter-spacing: 2px; }

.prose p {
  font-family: 'Crimson Pro', serif;
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 720px;
}
.prose p:last-child { margin-bottom: 0; }
.prose .opener::first-letter {
  font-family: 'Caveat', cursive;
  font-size: 3em;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  margin: 6px 14px 0 -2px;
  color: var(--pen-red);
}

.timeline { margin: 36px 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 22px; top: 0; bottom: 0;
  width: 2px;
  background: var(--rule-pink-strong);
  opacity: 0.6;
}
.timeline-entry {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.timeline-year {
  font-family: 'Special Elite', monospace;
  font-size: 12px;
  color: var(--pen-red);
  text-align: center;
  padding-top: 4px;
  line-height: 1.1;
  position: relative;
}
.timeline-year::after {
  content: "";
  position: absolute;
  right: -14px; top: 8px;
  width: 12px; height: 12px;
  background: var(--pen-red);
  border-radius: 50%;
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 2px var(--pen-red);
}
.timeline-content {
  background: #fdf8e3;
  border: 1.5px solid var(--ink);
  padding: 18px 22px;
  position: relative;
}
.timeline-content::before {
  content: "";
  position: absolute;
  left: -10px; top: 12px;
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 10px solid var(--ink);
}
.timeline-content::after {
  content: "";
  position: absolute;
  left: -8px; top: 13px;
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 9px solid #fdf8e3;
}
.timeline-content h4 {
  font-family: 'Caveat', cursive;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.timeline-content p {
  font-family: 'Crimson Pro', serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.timeline-content .tag {
  display: inline-block;
  font-family: 'Special Elite', monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pen-red);
  background: rgba(165, 48, 32, 0.1);
  border: 1px solid rgba(165, 48, 32, 0.3);
  padding: 2px 8px;
  margin-bottom: 8px;
}

.bread-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 32px 0;
}
.bread-card {
  background: var(--paper-warm);
  border: 1.5px solid var(--ink);
  padding: 22px 24px;
}
.bread-card:nth-child(odd) { transform: rotate(-0.5deg); }
.bread-card:nth-child(even) { transform: rotate(0.5deg); }
.bread-card h4 {
  font-family: 'Special Elite', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pen-red);
  margin-bottom: 8px;
}
.bread-card .val {
  font-family: 'Caveat', cursive;
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}
.bread-card .desc {
  font-family: 'Crimson Pro', serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--pencil);
  font-style: italic;
}

.flour-profile {
  background: #fdf8e3;
  border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 28px 32px;
  transform: rotate(-0.5deg);
  position: relative;
  margin: 36px 0;
}
.flour-profile::before {
  content: "FLOUR SPECIFICATION";
  position: absolute;
  top: -11px; left: 18px;
  background: var(--paper);
  padding: 0 10px;
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--pen-red);
}
.flour-profile h3 {
  font-family: 'Caveat', cursive;
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1;
}
.flour-profile .sub {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--pencil);
  margin-bottom: 20px;
}
.flour-stats { font-family: 'Special Elite', monospace; font-size: 13px; line-height: 1.9; }
.flour-stats .row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted rgba(180, 130, 70, 0.45);
  padding: 5px 0;
}
.flour-stats .lbl { text-transform: uppercase; letter-spacing: 0.1em; font-size: 10.5px; color: var(--pencil); }
.flour-stats .val { color: var(--ink); font-weight: 700; }
.flour-note {
  margin-top: 16px;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--pen-blue);
  line-height: 1.2;
  transform: rotate(-1deg);
}

.qc-block {
  background: var(--paper-warm);
  border-left: 4px solid var(--pen-red);
  padding: 24px 28px;
  margin: 32px 0;
  max-width: 720px;
}
.qc-block .qc-label {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pen-red);
  margin-bottom: 10px;
}
.qc-block p {
  font-family: 'Crimson Pro', serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

.sources {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1.5px dashed var(--rule-pink-strong);
}
.sources h4 {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 14px;
}
.sources ul {
  list-style: none;
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  line-height: 1.9;
  color: var(--pencil);
}
.sources ul a { color: var(--pen-blue); }
.sources ul a:hover { color: var(--pen-red); }

.specimen-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0 0;
  border-top: 1.5px solid var(--ink);
  margin-top: 64px;
}
.specimen-nav a {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  font-weight: 600;
  color: var(--pen-blue);
}
.specimen-nav a:hover { color: var(--pen-red); }
.specimen-nav .back {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pencil);
  text-align: center;
}

@media (max-width: 820px) {
  .starter-wrap { padding: 30px 24px 60px; }
  .specimen-header { grid-template-columns: 1fr; gap: 32px; }
  .spec-card { transform: rotate(0deg); }
  .specimen-name { font-size: 64px; }
  .bread-grid { grid-template-columns: 1fr; gap: 18px; }
  .bread-card { transform: rotate(0deg) !important; }
  .timeline::before { display: none; }
  .timeline-entry { grid-template-columns: 50px 1fr; gap: 10px; }
  .section-heading { font-size: 40px; }
}

/* ============ INLINE BODY LINKS ============ */
/* Used for contextual internal links within prose/body copy */
.content-link {
  color: var(--pen-blue);
  border-bottom: 1px dashed var(--pen-blue);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.content-link:hover {
  color: var(--pen-red);
  border-bottom-color: var(--pen-red);
}

/* ============ TROUBLE ATLAS — HUB PAGE ============ */

.atlas-hub-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 80px 100px;
}

/* Search bar */
.atlas-search-wrap {
  position: relative;
  margin-bottom: 56px;
}
.atlas-search-label {
  display: block;
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pen-red);
  margin-bottom: 10px;
}
.atlas-search-input-row {
  display: flex;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  background: #fdf8e3;
  position: relative;
}
.atlas-search-input {
  flex: 1;
  font-family: 'Caveat', cursive;
  font-size: 28px;
  color: var(--ink);
  background: transparent;
  border: none;
  padding: 16px 20px;
  outline: none;
}
.atlas-search-input::placeholder { color: var(--pencil); opacity: 0.6; }
.atlas-search-icon {
  padding: 0 20px;
  display: flex;
  align-items: center;
  color: var(--pen-red);
  font-family: 'Caveat', cursive;
  font-size: 28px;
}
.atlas-autocomplete {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: #fdf8e3;
  border: 2px solid var(--ink);
  border-top: none;
  box-shadow: 5px 5px 0 var(--ink);
  z-index: 100;
  display: none;
  max-height: 320px;
  overflow-y: auto;
}
.atlas-autocomplete.open { display: block; }
.autocomplete-item {
  padding: 14px 20px;
  border-bottom: 1px dashed var(--rule-pink);
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 12px;
  transition: background 0.15s;
}
.autocomplete-item:hover { background: var(--paper-warm); }
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item .ac-name {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--ink);
  font-weight: 600;
}
.autocomplete-item .ac-cat {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pen-red);
}
.autocomplete-item .ac-snippet {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--pencil);
  margin-left: auto;
  flex-shrink: 0;
}

/* Category sections */
.atlas-category {
  margin-bottom: 56px;
}
.atlas-category-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.atlas-category-heading .cat-icon {
  font-family: 'Caveat', cursive;
  font-size: 36px;
  color: var(--pen-red);
  line-height: 1;
  transform: rotate(-3deg);
}
.atlas-category-heading h2 {
  font-family: 'Caveat', cursive;
  font-size: 42px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  transform: rotate(-0.5deg);
}
.atlas-category-heading h2 em { color: var(--pen-red); font-style: italic; }
.atlas-category-heading .cat-count {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-left: auto;
}

.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.problem-card {
  background: #fdf8e3;
  border: 1.5px solid var(--ink);
  padding: 20px 22px 24px;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  display: block;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.problem-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.problem-card:nth-child(odd) { transform: rotate(-0.4deg); }
.problem-card:nth-child(even) { transform: rotate(0.4deg); }
.problem-card:nth-child(odd):hover,
.problem-card:nth-child(even):hover { transform: translate(-2px, -2px) rotate(0deg); }
.problem-card .pc-num {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pen-red);
  margin-bottom: 6px;
}
.problem-card .pc-name {
  font-family: 'Caveat', cursive;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.problem-card .pc-symptom {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: var(--pencil);
  margin-bottom: 12px;
}
.problem-card .pc-badge {
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid var(--rule-pink-strong);
  color: var(--pencil);
  display: inline-block;
}
.problem-card .pc-badge.common { border-color: var(--pen-red); color: var(--pen-red); }
.problem-card .pc-cta {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: var(--pen-blue);
  position: absolute;
  bottom: 14px;
  right: 16px;
}

/* "Not listed" note */
.atlas-not-listed {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--paper-warm);
  border: 1.5px dashed var(--rule-pink-strong);
  text-align: center;
}
.atlas-not-listed p {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.atlas-not-listed .nl-note {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--pen-blue);
}

@media (max-width: 900px) {
  .atlas-hub-wrap { padding: 30px 24px 60px; }
  .problem-cards { grid-template-columns: 1fr 1fr; gap: 14px; }
  .problem-card { transform: rotate(0deg) !important; }
}
@media (max-width: 560px) {
  .problem-cards { grid-template-columns: 1fr; }
  .atlas-search-input { font-size: 22px; }
}

/* ============ TROUBLE ATLAS — INDIVIDUAL PROBLEM PAGES ============ */

.atlas-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 50px 80px 100px;
}

/* Problem header */
.problem-id {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pen-red);
  margin-bottom: 8px;
}
.problem-title {
  font-family: 'Caveat', cursive;
  font-size: clamp(56px, 9vw, 96px);
  font-weight: 700;
  line-height: 0.9;
  color: var(--ink);
  transform: rotate(-1deg);
  margin-bottom: 10px;
}
.problem-title em { color: var(--pen-red); font-style: italic; display: block; }
.problem-tagline {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 620px;
  padding-left: 20px;
  border-left: 3px solid var(--pen-red);
  margin-bottom: 32px;
}

/* Quick stats bar */
.quick-stats {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--ink);
  background: #fdf8e3;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.qs-item {
  flex: 1;
  padding: 14px 18px;
  border-right: 1px dashed var(--rule-pink-strong);
  min-width: 120px;
}
.qs-item:last-child { border-right: none; }
.qs-label {
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 4px;
}
.qs-value {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.qs-value.red { color: var(--pen-red); }
.qs-value.blue { color: var(--pen-blue); }

/* Visual block */
.visual-block {
  margin: 36px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.visual-block.single { grid-template-columns: 1fr; max-width: 560px; }

/* Video facade card */
.video-card {
  display: block;
  text-decoration: none;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.video-card:hover img { opacity: 1; }
.video-card .vc-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(26, 17, 8, 0.55);
  transition: background 0.2s;
}
.video-card:hover .vc-overlay { background: rgba(26, 17, 8, 0.4); }
.vc-play {
  width: 52px;
  height: 52px;
  background: var(--pen-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.vc-play svg { fill: #fdf8e3; margin-left: 3px; }
.vc-label {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fdf8e3;
  text-align: center;
  padding: 0 12px;
}
.vc-sub {
  font-family: 'Caveat', cursive;
  font-size: 16px;
  color: rgba(253, 248, 227, 0.7);
  margin-top: 4px;
}
/* Placeholder when no specific video chosen */
.video-facade-placeholder {
  display: block;
  text-decoration: none;
  background: var(--rye, #2c1d10);
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid var(--ink);
  transition: background 0.2s;
}
.video-facade-placeholder:hover { background: var(--pen-red); }
.video-facade-placeholder .vfp-icon {
  width: 48px; height: 48px;
  background: rgba(253, 248, 227, 0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.video-facade-placeholder .vfp-icon svg { fill: #fdf8e3; margin-left: 3px; }
.video-facade-placeholder .vfp-label {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fdf8e3;
  text-align: center;
  padding: 0 16px;
  line-height: 1.5;
}
.video-facade-placeholder .vfp-sub {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: rgba(253, 248, 227, 0.65);
}

/* Own photo (hidden by default, uncomment to activate) */
.own-photo {
  margin: 0;
  border: 1.5px solid var(--ink);
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--ink);
}
.own-photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.own-photo figcaption {
  padding: 12px 16px;
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--pencil);
  background: #fdf8e3;
  border-top: 1px dashed var(--rule-pink-strong);
}

/* Cause list */
.cause-list {
  list-style: none;
  margin: 20px 0;
  counter-reset: causes;
}
.cause-list li {
  counter-increment: causes;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px dashed var(--rule-pink);
}
.cause-list li:last-child { border-bottom: none; }
.cause-list li::before {
  content: counter(causes);
  font-family: 'Caveat', cursive;
  font-size: 30px;
  font-weight: 700;
  color: var(--pen-red);
  line-height: 1;
  text-align: center;
}
.cause-list .cause-name {
  font-family: 'Caveat', cursive;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}
.cause-list .cause-body {
  font-family: 'Crimson Pro', serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.cause-list .cause-likelihood {
  font-family: 'Special Elite', monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pen-red);
  margin-bottom: 6px;
}

/* Fix steps */
.fix-steps {
  list-style: none;
  margin: 20px 0;
  counter-reset: fixes;
}
.fix-steps li {
  counter-increment: fixes;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
  padding: 18px 0 18px;
  border-bottom: 1px dotted var(--rule-pink);
}
.fix-steps li:last-child { border-bottom: none; }
.fix-steps li::before {
  content: counter(fixes);
  font-family: 'Caveat', cursive;
  font-size: 30px;
  font-weight: 700;
  color: var(--pen-blue);
  background: rgba(42, 71, 116, 0.12);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fix-steps .fix-name {
  font-family: 'Caveat', cursive;
  font-size: 24px;
  font-weight: 700;
  color: var(--pen-blue);
  line-height: 1;
  margin-bottom: 4px;
}
.fix-steps .fix-body {
  font-family: 'Crimson Pro', serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Quick checklist */
.quick-checklist {
  background: #fdf8e3;
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 24px 28px;
  transform: rotate(-0.4deg);
  position: relative;
  margin: 32px 0;
}
.quick-checklist::before {
  content: "QUICK CHECKLIST";
  position: absolute;
  top: -11px; left: 18px;
  background: var(--paper);
  padding: 0 10px;
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--pen-red);
}
.quick-checklist h3 {
  font-family: 'Caveat', cursive;
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1;
}
.checklist-items { list-style: none; }
.checklist-items li {
  font-family: 'Special Elite', monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  padding-left: 28px;
  position: relative;
  border-bottom: 1px dotted var(--rule-pink);
  padding-top: 8px;
  padding-bottom: 8px;
}
.checklist-items li::before {
  content: "☐";
  position: absolute;
  left: 0;
  color: var(--pen-red);
  font-size: 16px;
  top: 8px;
}

/* Related problems */
.related-problems {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1.5px dashed var(--rule-pink-strong);
}
.related-problems h3 {
  font-family: 'Caveat', cursive;
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  transform: rotate(-0.5deg);
  display: inline-block;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.related-card {
  background: var(--paper-warm);
  border: 1.5px solid var(--ink);
  padding: 14px 16px;
  text-decoration: none;
  display: block;
  transition: background 0.2s;
}
.related-card:hover { background: #fdf8e3; }
.related-card .rc-cat {
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pen-red);
  margin-bottom: 4px;
}
.related-card .rc-name {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}

/* Atlas nav */
.atlas-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0 0;
  border-top: 1.5px solid var(--ink);
  margin-top: 56px;
}
.atlas-nav a {
  font-family: 'Caveat', cursive;
  font-size: 24px;
  font-weight: 600;
  color: var(--pen-blue);
}
.atlas-nav a:hover { color: var(--pen-red); }
.atlas-nav .an-center {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pencil);
  text-align: center;
}

@media (max-width: 720px) {
  .atlas-wrap { padding: 30px 24px 60px; }
  .visual-block { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .cause-list li, .fix-steps li { grid-template-columns: 28px 1fr; }
  .problem-title { font-size: 56px; }
}


/* ============ PRIVACY PAGE ============ */
.privacy-wrap {
      max-width: 800px;
      margin: 0 auto;
      padding: 50px 80px 100px;
    }

    .privacy-title {
      font-family: 'Caveat', cursive;
      font-size: clamp(56px, 9vw, 88px);
      font-weight: 700;
      line-height: 0.9;
      color: var(--ink);
      transform: rotate(-1deg);
      margin-bottom: 10px;
    }
    .privacy-title em { color: var(--pen-red); font-style: italic; display: block; }

    .privacy-meta {
      font-family: 'Special Elite', monospace;
      font-size: 11px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--pencil);
      margin-bottom: 40px;
      display: flex;
      gap: 24px;
      flex-wrap: wrap;
    }
    .privacy-meta span { color: var(--pen-red); }

    /* Table of contents */
    .toc-block {
      background: #fdf8e3;
      border: 1.5px solid var(--ink);
      box-shadow: 4px 4px 0 var(--ink);
      padding: 24px 28px;
      transform: rotate(-0.4deg);
      margin-bottom: 48px;
      position: relative;
    }
    .toc-block::before {
      content: "CONTENTS";
      position: absolute;
      top: -11px; left: 18px;
      background: var(--paper);
      padding: 0 10px;
      font-family: 'Special Elite', monospace;
      font-size: 10px;
      letter-spacing: 0.2em;
      color: var(--pen-red);
    }
    .toc-block h3 {
      font-family: 'Caveat', cursive;
      font-size: 26px;
      font-weight: 600;
      color: var(--ink);
      margin-bottom: 12px;
    }
    .toc-list {
      list-style: none;
      font-family: 'Special Elite', monospace;
      font-size: 12px;
      line-height: 2;
      columns: 2;
      gap: 24px;
    }
    .toc-list a {
      color: var(--pen-blue);
      text-decoration: none;
      letter-spacing: 0.06em;
    }
    .toc-list a:hover { color: var(--pen-red); }

    /* Policy sections */
    .policy-section {
      margin-bottom: 52px;
      scroll-margin-top: 80px;
    }
    .policy-section h2 {
      font-family: 'Caveat', cursive;
      font-size: 40px;
      font-weight: 600;
      color: var(--ink);
      line-height: 1;
      transform: rotate(-0.5deg);
      margin-bottom: 6px;
      display: inline-block;
    }
    .policy-section h2 em { color: var(--pen-red); font-style: italic; }
    .policy-section .sec-label {
      font-family: 'Special Elite', monospace;
      font-size: 10px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--pen-red);
      display: block;
      margin-bottom: 8px;
    }
    .policy-rule {
      height: 2px;
      background: var(--ink);
      margin-bottom: 20px;
    }

    .policy-body p {
      font-family: 'Crimson Pro', serif;
      font-size: 18px;
      line-height: 1.7;
      color: var(--ink);
      margin-bottom: 16px;
    }
    .policy-body p:last-child { margin-bottom: 0; }

    .policy-body ul, .policy-body ol {
      font-family: 'Crimson Pro', serif;
      font-size: 18px;
      line-height: 1.7;
      color: var(--ink);
      margin: 12px 0 16px 24px;
    }
    .policy-body li { margin-bottom: 8px; }

    /* Data table */
    .data-table {
      width: 100%;
      border-collapse: collapse;
      font-family: 'Special Elite', monospace;
      font-size: 12px;
      margin: 20px 0;
      background: #fdf8e3;
    }
    .data-table th {
      text-align: left;
      padding: 12px 16px;
      border-bottom: 2px solid var(--ink);
      font-size: 10px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--pen-red);
      background: var(--paper-aged);
    }
    .data-table td {
      padding: 12px 16px;
      border-bottom: 1px dashed var(--rule-pink);
      vertical-align: top;
      line-height: 1.6;
      color: var(--ink-soft);
    }
    .data-table tr:last-child td { border-bottom: none; }

    /* Callout box */
    .policy-callout {
      background: var(--paper-warm);
      border-left: 3px solid var(--pen-blue);
      padding: 18px 22px;
      margin: 20px 0;
    }
    .policy-callout.red { border-left-color: var(--pen-red); }
    .policy-callout p {
      font-family: 'Crimson Pro', serif;
      font-size: 17px;
      line-height: 1.6;
      color: var(--ink);
      margin: 0;
    }
    .policy-callout strong {
      font-family: 'Caveat', cursive;
      font-size: 22px;
      color: var(--pen-blue);
      font-weight: 700;
      display: block;
      margin-bottom: 4px;
    }
    .policy-callout.red strong { color: var(--pen-red); }

    /* Contact block */
    .contact-block {
      background: #fdf8e3;
      border: 1.5px solid var(--ink);
      box-shadow: 4px 4px 0 var(--ink);
      padding: 26px 30px;
      transform: rotate(0.4deg);
      margin-top: 48px;
    }
    .contact-block h3 {
      font-family: 'Caveat', cursive;
      font-size: 32px;
      font-weight: 600;
      color: var(--ink);
      margin-bottom: 12px;
      line-height: 1;
    }
    .contact-block .contact-line {
      font-family: 'Special Elite', monospace;
      font-size: 13px;
      line-height: 1.9;
      color: var(--ink-soft);
    }
    .contact-block .contact-line a { color: var(--pen-blue); }

    @media (max-width: 720px) {
      .privacy-wrap { padding: 30px 24px 60px; }
      .privacy-title { font-size: 56px; }
      .toc-list { columns: 1; }
      .data-table { font-size: 11px; }
      .data-table th, .data-table td { padding: 8px 10px; }
    }


/* ============ BAKE SCHEDULE BUILDER ============ */
/* ── Bake Schedule Builder ─────────────────────────────────────── */

    .schedule-wrap {
      max-width: 900px;
      margin: 0 auto;
      padding: 50px 80px 100px;
    }

    /* Page title */
    .schedule-title {
      font-family: 'Caveat', cursive;
      font-size: clamp(56px, 9vw, 96px);
      font-weight: 700;
      line-height: 0.9;
      color: var(--ink);
      transform: rotate(-1deg);
      margin-bottom: 10px;
    }
    .schedule-title em { color: var(--pen-red); font-style: italic; display: block; }

    .schedule-subtitle {
      font-family: 'Crimson Pro', serif;
      font-style: italic;
      font-size: 19px;
      line-height: 1.6;
      color: var(--ink-soft);
      max-width: 620px;
      margin-bottom: 48px;
    }

    /* ── INPUT PANEL ────────────────────────────────────────────────── */
    .input-panel {
      background: #fdf8e3;
      border: 1.5px solid var(--ink);
      box-shadow: 6px 6px 0 var(--ink);
      padding: 32px 36px;
      position: relative;
      margin-bottom: 48px;
      transform: rotate(-0.3deg);
    }
    .input-panel::before {
      content: "SCHEDULE INPUTS";
      position: absolute;
      top: -11px; left: 20px;
      background: var(--paper);
      padding: 0 10px;
      font-family: 'Special Elite', monospace;
      font-size: 10px;
      letter-spacing: 0.2em;
      color: var(--pen-red);
    }

    /* ── UNIT TOGGLE (°F / °C) ──────────────────────────────────── */
    .unit-toggle {
      display: flex;
      border: 1.5px solid var(--ink);
      overflow: hidden;
      background: var(--paper);
      flex-shrink: 0;
    }
    .unit-toggle button {
      font-family: 'Special Elite', monospace;
      font-size: 11px;
      letter-spacing: 0.1em;
      padding: 7px 16px;
      border: none;
      background: transparent;
      cursor: pointer;
      color: var(--pencil);
      transition: background 0.15s, color 0.15s;
    }
    .unit-toggle button.active {
      background: var(--ink);
      color: #fdf8e3;
    }

    /* ── INPUT PANEL SECTIONS ───────────────────────────────────── */
    .sched-section {
      padding: 32px 0;
    }
    .sched-section:first-child { padding-top: 4px; }
    .sched-section:last-child  { padding-bottom: 4px; }

    .input-divider {
      height: 1px;
      background: var(--rule-pink-strong);
      opacity: 0.35;
    }

    .sched-label {
      display: block;
      font-family: 'Special Elite', monospace;
      font-size: 11px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--pen-red);
      margin-bottom: 20px;
    }

    /* ── DATE / TIME INPUTS ─────────────────────────────────────── */
    .sched-datetime {
      display: flex;
      flex-direction: column;
      gap: 14px;
      margin-bottom: 20px;
    }
    .sched-field {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .sched-sublabel {
      font-family: 'Special Elite', monospace;
      font-size: 9.5px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--pencil);
    }
    .sched-field input {
      font-family: 'Caveat', cursive;
      font-size: 26px;
      color: var(--ink);
      background: var(--paper);
      border: 1.5px solid var(--ink);
      padding: 12px 16px;
      outline: none;
      width: 100%;
      box-sizing: border-box;
    }
    .sched-field input:focus { border-color: var(--pen-blue); }

    .from-now-btn {
      font-family: 'Caveat', cursive;
      font-size: 20px;
      color: var(--pen-blue);
      background: none;
      border: none;
      border-top: 1.5px dashed var(--rule-pink-strong);
      padding: 16px 0 0;
      cursor: pointer;
      display: block;
      width: 100%;
      text-align: left;
      transition: color 0.15s;
    }
    .from-now-btn:hover { color: var(--pen-red); }

    /* ── TEMPERATURE ────────────────────────────────────────────── */
    .sched-temp-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
    }
    .sched-temp-header .sched-label { margin-bottom: 0; }

    .sched-temp-readout {
      display: flex;
      align-items: baseline;
      gap: 6px;
      margin-bottom: 4px;
    }
    .sched-temp-number {
      font-family: 'Caveat', cursive;
      font-size: 96px;
      font-weight: 700;
      color: var(--ink);
      line-height: 1;
    }
    .sched-temp-deg {
      font-family: 'Special Elite', monospace;
      font-size: 28px;
      color: var(--pencil);
      align-self: flex-end;
      margin-bottom: 12px;
    }
    .sched-bulk-preview {
      margin-left: auto;
      text-align: right;
      align-self: flex-end;
      margin-bottom: 10px;
    }
    .sbp-label {
      display: block;
      font-family: 'Special Elite', monospace;
      font-size: 9px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--pencil);
      margin-bottom: 3px;
    }
    .sched-bulk-preview strong {
      font-family: 'Caveat', cursive;
      font-size: 32px;
      font-weight: 700;
      color: var(--pen-red);
      line-height: 1;
    }

    .temp-slider {
      -webkit-appearance: none;
      appearance: none;
      width: 100%;
      height: 16px;
      background: linear-gradient(to right,
        #7ab0d0 0%,
        #b8cfd8 25%,
        #e8d878 48%,
        #e08040 72%,
        #a53020 100%
      );
      outline: none;
      border: 1.5px solid var(--ink);
      cursor: ew-resize;
      margin-top: 16px;
    }
    .temp-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 8px;
      height: 32px;
      background: var(--ink);
      cursor: ew-resize;
      border: 2px solid #fdf8e3;
      box-shadow: 0 0 0 1.5px var(--ink), 2px 2px 4px rgba(0,0,0,0.25);
    }
    .temp-slider::-moz-range-thumb {
      width: 6px;
      height: 30px;
      background: var(--ink);
      cursor: ew-resize;
      border: 2px solid #fdf8e3;
      box-shadow: 0 0 0 1.5px var(--ink);
      border-radius: 0;
    }
    .temp-scale {
      display: flex;
      justify-content: space-between;
      font-family: 'Special Elite', monospace;
      font-size: 10px;
      color: var(--pencil);
      letter-spacing: 0.06em;
      margin-top: 8px;
      opacity: 0.7;
    }

    /* ── PROOF METHOD TOGGLE ────────────────────────────────────── */
    .proof-toggle {
      display: flex;
      border: 1.5px solid var(--ink);
      box-shadow: 4px 4px 0 var(--ink);
      overflow: hidden;
      width: 100%;
    }
    .proof-toggle button {
      flex: 1;
      font-family: 'Caveat', cursive;
      font-size: 24px;
      font-weight: 600;
      padding: 20px 16px;
      border: none;
      background: var(--paper);
      cursor: pointer;
      color: var(--pencil);
      border-right: 1.5px solid var(--ink);
      transition: background 0.15s, color 0.15s;
      text-align: center;
      line-height: 1.2;
    }
    .proof-toggle button:last-child { border-right: none; }
    .proof-toggle button.active {
      background: var(--ink);
      color: #fdf8e3;
    }
    .proof-toggle button .pt-sub {
      display: block;
      font-family: 'Special Elite', monospace;
      font-size: 10px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      opacity: 0.7;
      margin-top: 4px;
    }

        /* ── OUTPUT SECTION ─────────────────────────────────────────────── */
    .schedule-output { display: none; }
    .schedule-output.visible { display: block; }

    /* Summary headline */
    .schedule-summary {
      background: var(--paper-warm);
      border: 1.5px solid var(--ink);
      padding: 20px 24px;
      margin-bottom: 32px;
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }
    .summary-lead {
      font-family: 'Caveat', cursive;
      font-size: 28px;
      font-weight: 600;
      color: var(--ink);
      flex: 1;
    }
    .summary-lead strong { color: var(--pen-red); }
    .summary-total {
      font-family: 'Special Elite', monospace;
      font-size: 11px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--pencil);
      text-align: right;
    }

    /* Sleep warning */
    .sleep-warning {
      display: none;
      background: #fff8e1;
      border: 2px solid #c47a3c;
      box-shadow: 4px 4px 0 #c47a3c;
      padding: 18px 22px;
      margin-bottom: 28px;
    }
    .sleep-warning.visible { display: flex; gap: 14px; align-items: flex-start; }
    .sleep-warning .sw-icon {
      font-family: 'Caveat', cursive;
      font-size: 32px;
      color: #c47a3c;
      flex-shrink: 0;
      line-height: 1;
    }
    .sleep-warning .sw-text {
      font-family: 'Crimson Pro', serif;
      font-size: 17px;
      line-height: 1.6;
      color: var(--ink);
    }
    .sleep-warning .sw-text strong {
      font-family: 'Caveat', cursive;
      font-size: 22px;
      color: #c47a3c;
      display: block;
      margin-bottom: 4px;
    }

    /* ── VISUAL TIMELINE ─────────────────────────────────────────────── */
    .timeline-section {
      margin-bottom: 40px;
    }
    .timeline-section-label {
      font-family: 'Special Elite', monospace;
      font-size: 10px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--pen-red);
      margin-bottom: 14px;
    }

    /* ── NOTEBOOK TIMELINE ───────────────────────────────────────── */
    .timeline-notebook {
      border: 1.5px solid var(--ink);
      box-shadow: 5px 5px 0 var(--ink);
      overflow: hidden;
      background: var(--paper);
    }

    /* Day strip — sits above the phase cells */
    .tl-day-strip {
      position: relative;
      height: 22px;
      background: var(--ink);
    }
    .tl-day-cell {
      position: absolute;
      top: 0; bottom: 0;
      display: flex;
      align-items: center;
      padding-left: 8px;
      font-family: 'Special Elite', monospace;
      font-size: 9.5px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: rgba(253, 248, 227, 0.75);
      border-right: 1px solid rgba(253, 248, 227, 0.15);
      white-space: nowrap;
      overflow: hidden;
    }

    /* Phase cells row — the main event */
    .tl-phases {
      display: flex;
      height: 78px;
      border-bottom: 1px solid var(--ink);
    }

    .tl-phase-cell {
      border-right: 1.5px solid var(--ink);
      padding: 10px 10px 8px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-width: 0;
      overflow: hidden;
      cursor: default;
      transition: filter 0.12s;
      position: relative;
    }
    .tl-phase-cell:last-child { border-right: none; }
    .tl-phase-cell:hover { filter: brightness(0.93); }

    /* Cell types */
    .tl-active {
      background: var(--ink);
      color: #fdf8e3;
    }
    .tl-passive {
      background: var(--paper-warm);
      color: var(--ink);
      /* subtle ruled lines */
      background-image: linear-gradient(
        transparent 20px,
        rgba(216, 163, 163, 0.3) 20px, rgba(216, 163, 163, 0.3) 21px,
        transparent 21px
      );
      background-size: 100% 21px;
    }
    .tl-passive-cold {
      background: var(--paper-aged);
      color: var(--ink-soft);
      /* diagonal hatching = cold proof */
      background-image: repeating-linear-gradient(
        -45deg,
        transparent, transparent 5px,
        rgba(42, 71, 116, 0.08) 5px, rgba(42, 71, 116, 0.08) 6px
      );
    }
    .tl-bake {
      background: var(--pen-red);
      color: #fdf8e3;
    }

    /* Cell content */
    .tl-cell-name {
      font-family: 'Special Elite', monospace;
      font-size: 9px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      opacity: 0.85;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .tl-cell-time {
      font-family: 'Caveat', cursive;
      font-size: 26px;
      font-weight: 700;
      line-height: 1;
      white-space: nowrap;
      overflow: hidden;
    }
    .tl-cell-dur {
      font-family: 'Special Elite', monospace;
      font-size: 9px;
      letter-spacing: 0.08em;
      opacity: 0.65;
      white-space: nowrap;
    }

    /* Time strip — sits below the phase cells */
    .tl-time-strip {
      position: relative;
      height: 24px;
      background: #fdf8e3;
      border-top: 1px solid rgba(42,31,20,0.12);
    }
    .tl-tick {
      position: absolute;
      top: 50%;
      transform: translate(-50%, -50%);
      font-family: 'Special Elite', monospace;
      font-size: 9.5px;
      letter-spacing: 0.08em;
      color: var(--pencil);
      white-space: nowrap;
    }

    /* ── CUSTOM TOOLTIP ──────────────────────────────────────────── */
    .tl-tooltip {
      position: fixed;
      background: #fdf8e3;
      border: 1.5px solid var(--ink);
      box-shadow: 4px 4px 0 var(--ink);
      padding: 14px 18px;
      pointer-events: none;
      display: none;
      z-index: 200;
      min-width: 180px;
      max-width: 260px;
    }
    .tl-tooltip.visible { display: block; }
    .tlt-name {
      font-family: 'Caveat', cursive;
      font-size: 28px;
      font-weight: 700;
      color: var(--ink);
      line-height: 1;
      margin-bottom: 6px;
    }
    .tlt-time {
      font-family: 'Special Elite', monospace;
      font-size: 11px;
      letter-spacing: 0.1em;
      color: var(--pen-red);
      margin-bottom: 4px;
    }
    .tlt-dur {
      font-family: 'Special Elite', monospace;
      font-size: 10px;
      color: var(--pencil);
      letter-spacing: 0.08em;
      margin-bottom: 8px;
    }
    .tlt-steps {
      font-family: 'Crimson Pro', serif;
      font-style: italic;
      font-size: 13px;
      color: var(--pencil);
      line-height: 1.5;
      border-top: 1px dashed var(--rule-pink);
      padding-top: 7px;
    }

    /* ── STEP CARDS ──────────────────────────────────────────────────── */
    .steps-section { margin-bottom: 48px; }
    .steps-label {
      font-family: 'Special Elite', monospace;
      font-size: 10px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--pen-red);
      margin-bottom: 16px;
    }
    .step-cards { display: flex; flex-direction: column; gap: 14px; }

    .step-card {
      display: grid;
      grid-template-columns: 8px 120px 1fr;
      gap: 0;
      background: #fdf8e3;
      border: 1.5px solid var(--ink);
      box-shadow: 3px 3px 0 var(--ink);
      position: relative;
      overflow: hidden;
    }
    .step-card.passive { opacity: 0.85; }

    .step-phase-bar {
      grid-column: 1;
      /* background set by JS */
    }

    .step-time-col {
      grid-column: 2;
      padding: 16px 14px;
      border-right: 1px dashed var(--rule-pink);
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      gap: 4px;
    }
    .step-time-main {
      font-family: 'Caveat', cursive;
      font-size: 26px;
      font-weight: 700;
      color: var(--ink);
      line-height: 1;
    }
    .step-time-day {
      font-family: 'Special Elite', monospace;
      font-size: 9.5px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--pencil);
    }
    .step-time-window {
      font-family: 'Special Elite', monospace;
      font-size: 9.5px;
      color: var(--pen-blue);
      line-height: 1.5;
      margin-top: 2px;
    }
    .step-time-duration {
      font-family: 'Special Elite', monospace;
      font-size: 9px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--pencil);
      opacity: 0.8;
    }

    .step-content {
      grid-column: 3;
      padding: 16px 20px;
    }
    .step-name {
      font-family: 'Caveat', cursive;
      font-size: 28px;
      font-weight: 700;
      color: var(--ink);
      line-height: 1;
      margin-bottom: 6px;
    }
    .step-name .step-num {
      font-family: 'Special Elite', monospace;
      font-size: 9px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--pen-red);
      display: block;
      margin-bottom: 2px;
    }
    .step-description {
      font-family: 'Crimson Pro', serif;
      font-size: 15px;
      line-height: 1.6;
      color: var(--ink-soft);
      margin-bottom: 10px;
    }
    .step-look-for {
      background: rgba(42, 71, 116, 0.07);
      border-left: 2px solid var(--pen-blue);
      padding: 8px 12px;
    }
    .step-look-for .lf-label {
      font-family: 'Special Elite', monospace;
      font-size: 8.5px;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--pen-blue);
      margin-bottom: 3px;
    }
    .step-look-for p {
      font-family: 'Crimson Pro', serif;
      font-style: italic;
      font-size: 14px;
      line-height: 1.55;
      color: var(--ink);
      margin: 0;
    }
    /* Passive step badge */
    .step-passive-badge {
      position: absolute;
      top: 10px; right: 12px;
      font-family: 'Special Elite', monospace;
      font-size: 9px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--pen-blue);
      background: rgba(42,71,116,0.1);
      padding: 2px 8px;
      border: 1px solid rgba(42,71,116,0.25);
    }

    /* ── PRINT BUTTON ────────────────────────────────────────────────── */
    .print-row {
      display: flex;
      gap: 14px;
      align-items: center;
      justify-content: flex-end;
      margin-top: 8px;
    }
    .print-btn {
      font-family: 'Caveat', cursive;
      font-size: 22px;
      font-weight: 600;
      background: var(--ink);
      color: #fdf8e3;
      border: none;
      padding: 12px 28px;
      cursor: pointer;
      box-shadow: 4px 4px 0 var(--pen-red);
      transition: transform 0.15s, box-shadow 0.15s;
    }
    .print-btn:hover {
      transform: translate(-2px, -2px);
      box-shadow: 6px 6px 0 var(--pen-red);
    }
    .recalc-note {
      font-family: 'Caveat', cursive;
      font-size: 18px;
      color: var(--pen-blue);
    }

    /* ── RESPONSIVE ─────────────────────────────────────────────────── */
    @media (max-width: 720px) {
      .schedule-wrap { padding: 30px 24px 60px; }
      .schedule-title { font-size: 56px; }
      .input-panel { padding: 24px 20px; transform: rotate(0deg); }
      .unit-toggle { width: fit-content; }
      .step-card { grid-template-columns: 6px 90px 1fr; }
      .step-time-main { font-size: 20px; }
      .step-name { font-size: 22px; }
      .temp-big { font-size: 48px; }
      .proof-toggle button { font-size: 18px; padding: 12px 10px; }
    }

    /* Print styles */
    @media print {
      header, footer, .input-panel, .print-row, .breadcrumb { display: none; }
      .schedule-output { display: block !important; }
      .step-card { break-inside: avoid; box-shadow: none; border: 1px solid #999; }
      .timeline-container { overflow: visible; }
      body { background: white; }
    }

/* ============ COMING SOON CARDS ============ */

.starter-card.coming-soon,
.tool-card.coming-soon {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
  position: relative;
  filter: grayscale(30%);
  /* Subtle diagonal sketch hatching */
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 9px,
      rgba(42, 31, 20, 0.04) 9px,
      rgba(42, 31, 20, 0.04) 10px
    );
}

/* The hand-drawn "coming soon" stamp */
.starter-card.coming-soon::after,
.tool-card.coming-soon::after {
  content: "coming soon ✎";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-7deg);
  font-family: 'Caveat', cursive;
  font-size: 24px;
  font-weight: 700;
  color: var(--pen-red);
  white-space: nowrap;
  padding: 5px 16px 6px;
  /* Rough stamp border — two-layer trick for hand-drawn feel */
  border: 2px solid var(--pen-red);
  outline: 1px solid var(--pen-red);
  outline-offset: 3px;
  background: rgba(244, 234, 208, 0.9);
  letter-spacing: 0.04em;
  z-index: 2;
  pointer-events: none;
  /* Slight opacity variation to look inked, not printed */
  box-shadow: 1px 1px 0 rgba(165, 48, 32, 0.25),
              -1px -1px 0 rgba(165, 48, 32, 0.1);
}

/* ============ CHART SOURCES FOOTNOTE ============ */
.chart-sources {
  margin-top: 20px;
  padding: 14px 20px;
  border-top: 1px dashed var(--rule-pink-strong);
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--pencil);
  line-height: 1.8;
}
.chart-sources .cs-label {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: var(--pen-red);
  margin-right: 8px;
  font-weight: 600;
}
