/* ==========================================================================
   Recess Ice
   90s Memphis playground: squiggles, confetti, primary brights on cream,
   chunky geometric type, report cards, lunchboxes and a recess bell.
   ========================================================================== */

:root {
  --cream: #fff6e5;
  --paper: #fffdf7;
  --ink: #1b1b1b;
  --red: #d62828;
  --blue: #2450ff;
  --yellow: #ffd23f;
  --teal: #19c2a6;
  --pink: #ff7eb6;
  --purple: #7b3fe4;
  --orange: #ff8c42;
  --line: 3px solid var(--ink);
  --display: "Bungee", "Arial Black", Impact, sans-serif;
  --shade: "Bungee Shade", "Bungee", "Arial Black", sans-serif;
  --label: "Righteous", "Trebuchet MS", sans-serif;
  --body: "Nunito", "Trebuchet MS", "Segoe UI", sans-serif;
  --max: 1240px;
  --zigzag-yellow: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='14'><path d='M0 1.5 L12 12.5 L24 1.5' fill='%23ffd23f' stroke='%231b1b1b' stroke-width='3'/></svg>");
  --squiggle: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='14'><path d='M2 8 C8 0 16 0 24 7 S40 14 46 6' fill='none' stroke='%23d62828' stroke-width='4' stroke-linecap='round'/></svg>");
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(27, 27, 27, .13) 1.3px, transparent 1.6px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

p, h1, h2, h3, ul, ol, figure, table { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
svg { display: block; max-width: 100%; }
a { color: var(--blue); }
strong { font-weight: 800; }
::selection { background: var(--yellow); color: var(--ink); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 500;
  padding: 8px 16px;
  background: var(--yellow);
  border: var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--label);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }

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

.site-header {
  position: relative;
  z-index: 30;
  background: var(--paper);
  border-bottom: var(--line);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -14px;
  height: 14px;
  background: var(--zigzag-yellow) repeat-x 0 0 / 24px 14px;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 16px 14px;
}
@media (min-width: 760px) { .header-inner { padding: 14px 32px 16px; } }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.logo svg { width: 34px; height: 34px; flex: none; }
.logo .ice { color: var(--blue); }
@media (min-width: 760px) { .logo { font-size: 1.6rem; } .logo svg { width: 40px; height: 40px; } }

.nav ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-block;
  padding: 3px 13px 4px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--blue);
  color: var(--ink);
  font-family: var(--label);
  font-size: .98rem;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.nav li:nth-child(2) a { box-shadow: 3px 3px 0 var(--red); }
.nav li:nth-child(3) a { box-shadow: 3px 3px 0 var(--teal); }
.nav a[aria-current="page"] { background: var(--yellow); }
.nav a:hover { transform: translate(-1px, -1px) rotate(-3deg); }

/* ---------- Shared bits ---------- */

.sec-label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--label);
  font-size: .95rem;
  letter-spacing: .03em;
  transform: rotate(-2deg);
}
.sec-title {
  margin: 14px 0 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.05rem, 6.6vw, 3.9rem);
  line-height: 1.02;
  color: var(--ink);
}
.sec-title::after {
  content: "";
  display: block;
  width: 144px;
  height: 14px;
  margin-top: 10px;
  background: var(--squiggle) repeat-x 0 0 / 48px 14px;
}
.sec-intro { max-width: 58ch; font-size: 1.12rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 12px;
  border: var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px) rotate(-1.5deg); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn--red { background: var(--red); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--yellow { background: var(--yellow); }

.section { position: relative; padding: 80px 0; }
@media (min-width: 760px) { .section { padding: 112px 0; } }

/* Memphis confetti layer */
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.confetti svg { position: absolute; }
.confetti .c1 { top: 8%; left: 3%; width: 56px; }
.confetti .c2 { top: 14%; right: 6%; width: 74px; }
.confetti .c3 { bottom: 12%; left: 44%; width: 46px; }
.confetti .c4 { top: 52%; left: -10px; width: 64px; }
.confetti .c5 { bottom: 6%; right: 3%; width: 60px; }
.confetti .c6 { top: 4%; left: 46%; width: 40px; }

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

.hero { position: relative; overflow: hidden; padding: 48px 0 64px; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
}

.sticker {
  display: inline-block;
  padding: 8px 16px;
  border: var(--line);
  border-radius: 14px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--pink);
  font-family: var(--label);
  font-size: 1.05rem;
  line-height: 1.2;
  transform: rotate(-3deg);
}
.sticker b { font-weight: 400; color: var(--red); }

.hero-title {
  margin: 30px 0 6px;
  font-family: var(--display);
  font-weight: 400;
  line-height: .92;
}
.hero-title .row { display: block; white-space: nowrap; }
.hero-title .letters { font-size: min(17.5vw, 8.4rem); }
.hero-title .letters span {
  display: inline-block;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink);
}
.hero-title .l1 { color: var(--red); }
.hero-title .l2 { color: var(--blue); }
.hero-title .l3 { color: var(--yellow); }
.hero-title .l4 { color: var(--teal); }
.hero-title .l5 { color: var(--pink); }
.hero-title .l6 { color: var(--purple); }
.hero-title .ice {
  display: block;
  font-family: var(--shade);
  font-size: min(21vw, 9.6rem);
  line-height: 1;
  color: var(--blue);
  margin-top: 2px;
}
@media (min-width: 960px) {
  .hero-title .letters { font-size: min(8.6vw, 7.6rem); }
  .hero-title .ice { font-size: min(10.4vw, 9rem); }
}

.hook {
  font-family: var(--display);
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  line-height: 1.2;
}
.hook mark {
  background: linear-gradient(transparent 52%, var(--yellow) 52% 92%, transparent 92%);
  color: inherit;
  padding: 0 .1em;
}
.hero-sub { margin-top: 14px; max-width: 46ch; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.hero-art { position: relative; max-width: 480px; width: 100%; margin: 0 auto; }
.cup-art { width: 100%; height: auto; overflow: visible; }

/* Recess bell countdown */
.bell-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -6px auto 0;
  max-width: 360px;
  padding: 12px 18px 12px 14px;
  border: var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--blue);
  transform: rotate(1.5deg);
}
.bell { width: 58px; height: 58px; flex: none; transform-origin: 50% 8%; }
.bell-label { font-family: var(--label); font-size: .95rem; line-height: 1.2; }
.bell-time {
  font-family: var(--display);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.bell-note { margin-top: 4px; font-size: .82rem; line-height: 1.35; }
.bell-box.is-ringing .bell-time { color: var(--blue); }

/* ---------- Recess rules ---------- */

.rules-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  margin-top: 40px;
  isolation: isolate;
}
@media (min-width: 860px) { .rules-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.rule {
  --rule-bg: var(--paper);
  position: relative;
  z-index: 0;
  padding: 28px 24px 30px;
}
.rule::before,
.rule::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
}
.rule::before {
  z-index: -1;
  border: var(--line);
  background: var(--rule-bg);
}
.rule::after {
  z-index: -2;
  transform: translate(12px, 12px);
  background: repeating-linear-gradient(45deg, var(--ink) 0 3px, transparent 3px 10px);
}
.rule--blue { --rule-bg: var(--blue); color: #fff; }
.rule--yellow { --rule-bg: var(--yellow); }
.rule--pink { --rule-bg: var(--pink); }
.rule:nth-child(2) { transform: rotate(1.2deg); }
.rule:nth-child(3) { transform: rotate(-1deg); }
.rule-num {
  display: inline-grid;
  place-items: center;
  width: 58px; height: 58px;
  margin-bottom: 14px;
  border: var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.7rem;
}
.rule h3 { font-family: var(--display); font-weight: 400; font-size: 1.45rem; line-height: 1.1; margin-bottom: 10px; }
.rule p { font-size: 1.05rem; }
.rules-note { position: relative; z-index: 1; margin-top: 44px; max-width: 60ch; font-size: 1.12rem; }

/* ---------- Lunchbox lineup (trading cards) ---------- */

.lineup-section { background: var(--paper); border-top: var(--line); border-bottom: var(--line); }
.lineup-section::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 18px;
  background: repeating-linear-gradient(90deg, var(--red) 0 36px, var(--yellow) 36px 72px, var(--blue) 72px 108px, var(--teal) 108px 144px);
  border-bottom: var(--line);
}
.lineup {
  display: grid;
  gap: 26px;
  margin-top: 40px;
}
@media (min-width: 600px) { .lineup { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lineup { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tcard {
  --accent: var(--red);
  position: relative;
  display: flex;
  flex-direction: column;
  border: var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--accent);
  overflow: hidden;
  transform: rotate(-1.2deg);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tcard:nth-child(even) { transform: rotate(1.1deg); }
.tcard:nth-child(3n) { transform: rotate(-.4deg); }
.tcard--blue { --accent: var(--blue); }
.tcard--yellow { --accent: var(--yellow); }
.tcard--teal { --accent: var(--teal); }
.tcard--pink { --accent: var(--pink); }
.tcard--purple { --accent: var(--purple); }
.tcard--orange { --accent: var(--orange); }
.tcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-bottom: var(--line);
  background: var(--accent);
  font-family: var(--label);
  font-size: .95rem;
}
.tcard--blue .tcard-top, .tcard--purple .tcard-top, .tcard--red .tcard-top { color: #fff; }
.tcard-art {
  display: grid;
  place-items: center;
  height: 132px;
  border-bottom: var(--line);
  background-color: var(--cream);
  background-image: radial-gradient(var(--accent) 2.2px, transparent 2.6px);
  background-size: 16px 16px;
}
.tcard-art svg { width: 104px; height: 104px; }
.tcard-body { padding: 14px 16px 18px; }
.tcard h3 { font-family: var(--display); font-weight: 400; font-size: 1.3rem; line-height: 1.1; }
.tcard p { margin-top: 8px; font-size: 1rem; line-height: 1.5; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tcard:hover { animation: wiggle .45s ease-in-out; box-shadow: 9px 9px 0 var(--accent); }
}
.lineup-note { margin-top: 30px; font-family: var(--label); font-size: 1.05rem; }

/* Hopscotch build-your-own */
.hop-panel {
  position: relative;
  margin-top: 72px;
  padding: 36px 20px 40px;
  border: var(--line);
  border-radius: 28px;
  background-color: #262a33;
  background-image:
    radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px),
    radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px);
  background-size: 9px 9px, 13px 13px;
  background-position: 0 0, 4px 6px;
  color: #fff;
  box-shadow: 8px 8px 0 var(--yellow);
}
@media (min-width: 760px) { .hop-panel { padding: 48px 44px 52px; } }
.hop-panel h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 4.4vw, 2.5rem); line-height: 1.05; }
.hop-panel > p { margin-top: 10px; max-width: 56ch; color: #f3f3f3; }
.hop {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.hop li {
  grid-column: span 2;
  width: min(100%, 300px);
  justify-self: center;
  min-height: 150px;
  padding: 16px 16px 18px;
  border: 3px dashed rgba(255, 255, 255, .9);
  border-radius: 6px;
}
.hop li.pair { grid-column: span 1; width: 100%; }
.hop-num { display: block; font-family: var(--display); font-size: 2.6rem; line-height: 1; }
.hop li:nth-child(1) .hop-num { color: var(--yellow); }
.hop li:nth-child(2) .hop-num { color: var(--pink); }
.hop li:nth-child(3) .hop-num { color: var(--teal); }
.hop li:nth-child(4) .hop-num { color: #8fb0ff; }
.hop li:nth-child(5) .hop-num { color: var(--orange); }
.hop h4 { margin: 8px 0 4px; font-family: var(--label); font-weight: 400; font-size: 1.15rem; line-height: 1.2; }
.hop p { font-size: .95rem; line-height: 1.45; color: #f3f3f3; }
@media (min-width: 900px) {
  .hop { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 16px; }
  .hop li { grid-column: auto; grid-row: span 2; width: 100%; align-self: center; }
  .hop li.pair { grid-row: span 1; }
  .hop li:nth-child(3) { grid-column: 3; grid-row: 1; }
  .hop li:nth-child(4) { grid-column: 3; grid-row: 2; }
  .hop li:nth-child(5) { grid-column: 4; grid-row: 1 / span 2; }
}

/* ---------- Permission slip (waitlist) ---------- */

.slip-section { padding-top: 96px; }
.slip {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 34px 22px 30px;
  border: 3px dashed var(--ink);
  border-radius: 6px;
  background-color: var(--paper);
  box-shadow: 10px 10px 0 var(--red);
  transform: rotate(-.8deg);
}
@media (min-width: 760px) { .slip { padding: 44px 48px 38px; } }
.scissors {
  position: absolute;
  top: -19px;
  left: 28px;
  width: 38px;
  height: 38px;
  padding: 4px;
  background: var(--cream);
}
.slip-school { font-family: var(--label); font-size: 1rem; color: var(--red); }
.slip h2 { margin-top: 2px; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1; }
.slip-body { margin-top: 14px; max-width: 54ch; font-size: 1.12rem; line-height: 1.7; }
.slip-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
@media (min-width: 640px) { .slip-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.slip-sign {
  grid-column: 1 / -1;
  font-family: var(--label);
  font-size: 1rem;
}
.slip-form input[type="email"] {
  min-width: 0;
  width: 100%;
  padding: 8px 4px 6px;
  border: 0;
  border-bottom: 3px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--label);
  font-size: 1.45rem;
}
.slip-form input[type="email"]::placeholder { color: #6b6b6b; }
.slip-form input[type="email"]:focus-visible { outline: none; border-bottom-color: var(--blue); background: rgba(36, 80, 255, .06); }
.slip-form button {
  justify-self: start;
  padding: 12px 22px 13px;
  border: var(--line);
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  font-family: var(--display);
  font-size: 1.02rem;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.slip-form button:hover { transform: translate(-2px, -2px) rotate(-2deg); box-shadow: 7px 7px 0 var(--ink); }
.slip-form button:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.slip-form button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.slip-form button:disabled { cursor: progress; background: #6b84ff; }
.slip-status {
  grid-column: 1 / -1;
  min-height: 1.6em;
  font-family: var(--label);
  font-size: 1.08rem;
}
.slip-status[data-state="error"] { color: var(--red); }
.slip-status[data-state="ok"] { color: #0d6f5f; }
.slip-fine { margin-top: 12px; font-size: .92rem; }
.approved {
  display: none;
  position: absolute;
  right: 18px;
  top: 22px;
  padding: 6px 14px;
  border: 4px solid var(--red);
  border-radius: 10px;
  color: var(--red);
  font-family: var(--display);
  font-size: 1.4rem;
  opacity: .92;
  transform: rotate(-12deg);
  pointer-events: none;
}
.slip.is-approved .approved { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .slip.is-approved .approved { animation: stamp-down .35s cubic-bezier(.2, 1.6, .4, 1) both; }
}
@keyframes stamp-down {
  from { opacity: 0; transform: rotate(-12deg) scale(1.5); }
  to { opacity: .92; transform: rotate(-12deg) scale(1); }
}

/* ---------- Report card (vibe) ---------- */

.report-grid { position: relative; z-index: 1; display: grid; gap: 44px; align-items: start; }
@media (min-width: 960px) { .report-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.report-copy p + p { margin-top: 14px; }
.report-copy .sec-intro { margin-top: 8px; }

.report {
  border: var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--teal);
  overflow: hidden;
}
.report-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  padding: 14px 18px;
  background: var(--blue);
  color: #fff;
  border-bottom: var(--line);
}
.report-head h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1; }
.report-head p { font-family: var(--label); font-size: .98rem; }
.report table { width: 100%; border-collapse: collapse; }
.report th, .report td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 2px solid #c9dafc; }
.report thead th {
  font-family: var(--label);
  font-weight: 400;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #eef3ff;
  border-bottom: var(--line);
}
.report tbody th { font-family: var(--display); font-weight: 400; font-size: 1rem; line-height: 1.2; width: 28%; }
.report td { font-size: .98rem; line-height: 1.45; }
.report td.mark { width: 1%; white-space: nowrap; }
@media (max-width: 559px) {
  .report th, .report td { padding: 10px 8px; }
  .report td { font-size: .92rem; }
  .report tbody th { font-size: .9rem; }
  .mark span { font-size: .8rem; padding: 2px 8px; }
}
.mark span {
  display: inline-block;
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--label);
  font-size: .9rem;
  transform: rotate(-4deg);
}
.mark--star span { background: var(--yellow); }
.mark--loud span { background: var(--pink); }
.mark--warn span { background: #bfeee6; }
.mark--ok span { background: #dfe7ff; }
.report-comments { padding: 16px 18px 20px; font-size: 1rem; }
.report-comments strong { font-family: var(--label); font-weight: 400; }
.scrawl { font-family: var(--label); color: var(--red); font-size: 1.12rem; }

/* ---------- Passed notes (blog cards) ---------- */

.notes { display: grid; gap: 40px 28px; margin-top: 44px; }
@media (min-width: 860px) { .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.note {
  --tilt: -1.5deg;
  position: relative;
  padding: 34px 20px 22px 54px;
  border-radius: 4px;
  background-color: #fff;
  background-image:
    linear-gradient(90deg, transparent 38px, #f28b8b 38px 40px, transparent 40px),
    linear-gradient(180deg, #c9dafc 0 2px, transparent 2px);
  background-size: 100% 100%, 100% 26px;
  background-repeat: no-repeat, no-repeat;
  box-shadow: 0 0 0 2px var(--ink), 7px 7px 0 var(--blue);
  transform: rotate(var(--tilt));
  transition: transform .2s ease;
}
.note:nth-child(2) { --tilt: 1.4deg; box-shadow: 0 0 0 2px var(--ink), 7px 7px 0 var(--red); }
.note:nth-child(3) { --tilt: -.6deg; box-shadow: 0 0 0 2px var(--ink), 7px 7px 0 var(--teal); }
.note::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 92px;
  height: 26px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(255, 210, 63, .85);
  border: 1px solid rgba(27, 27, 27, .25);
}
.note-meta { font-family: var(--label); font-size: .95rem; color: var(--blue); }
.note h3, .note h2 { margin-top: 6px; font-family: var(--display); font-weight: 400; font-size: 1.3rem; line-height: 1.15; }
.note h3 a, .note h2 a { color: var(--ink); text-decoration: none; }
.note h3 a::after, .note h2 a::after { content: ""; position: absolute; inset: 0; }
.note p:not(.note-meta) { margin-top: 8px; font-size: 1rem; line-height: 1.55; }
.note-more { display: inline-block; margin-top: 10px; font-family: var(--label); color: var(--red); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .note:hover { transform: rotate(0deg) translateY(-4px); }
  .note:hover h3 a, .note:hover h2 a { text-decoration: underline wavy var(--red) 2px; text-underline-offset: 5px; }
}
.notes-more { margin-top: 48px; }

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

.site-footer {
  position: relative;
  margin-top: 40px;
  padding: 56px 16px 36px;
  background: var(--blue);
  color: #fff;
  border-top: var(--line);
  text-align: center;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 14px;
  background: var(--zigzag-yellow) repeat-x 0 0 / 24px 14px;
}
.footer-logo { font-family: var(--display); font-size: clamp(2rem, 8vw, 3.2rem); line-height: 1; text-shadow: 4px 4px 0 var(--ink); }
.footer-logo span { color: var(--yellow); }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; }
.footer-nav a {
  display: inline-block;
  padding: 4px 14px;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-family: var(--label);
  text-decoration: none;
}
.footer-nav a:hover { background: #fff; color: var(--blue); }
.site-footer :focus-visible { outline-color: var(--yellow); }
.footer-copy { margin-top: 20px; font-size: .98rem; }
.footer-tag { margin-top: 4px; font-family: var(--label); color: var(--yellow); }

/* ---------- Blog index: the cork board ---------- */

.board-section { padding: 48px 0 88px; }
.corkboard {
  position: relative;
  padding: 40px 18px 56px;
  border: var(--line);
  border-radius: 18px;
  background-color: #d6a467;
  background-image:
    radial-gradient(rgba(120, 72, 24, .35) 1.2px, transparent 1.6px),
    radial-gradient(rgba(255, 236, 200, .35) 1px, transparent 1.4px);
  background-size: 11px 11px, 7px 7px;
  background-position: 0 0, 3px 5px;
  box-shadow: inset 0 0 0 10px #a8692e, inset 0 0 0 13px var(--ink), 10px 10px 0 var(--ink);
}
@media (min-width: 760px) { .corkboard { padding: 56px 48px 72px; } }
.banner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 22px 22px 24px;
  border: var(--line);
  border-radius: 6px;
  background: var(--yellow);
  text-align: center;
  transform: rotate(-1.5deg);
  box-shadow: 6px 6px 0 rgba(27, 27, 27, .35);
}
.banner h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 8vw, 4.4rem); line-height: 1; }
.banner p { margin-top: 8px; font-size: 1.08rem; }
.pin {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 22px; height: 22px;
  margin-left: -11px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .2);
  z-index: 2;
}
.corkboard .notes { margin-top: 56px; }
.corkboard .note::before { display: none; }
.corkboard .note:nth-child(2) .pin { background: var(--blue); }
.corkboard .note:nth-child(3) .pin { background: var(--teal); }
.corkboard .note--sticky {
  background-color: #fff3a6;
  background-image: none;
  padding-left: 22px;
}
.corkboard .note--pink { background-color: #ffd3e7; background-image: none; padding-left: 22px; }
.board-foot { margin-top: 48px; text-align: center; }

/* ---------- Post: notebook ---------- */

.post-wrap { padding: 44px 0 24px; }
.post-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 1000px) { .post-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; } }

.notebook {
  position: relative;
  padding: 34px 20px 40px 22px;
  border: var(--line);
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 10px 10px 0 var(--pink);
}
@media (min-width: 760px) {
  .notebook {
    padding: 48px 56px 56px 96px;
    background-image:
      radial-gradient(circle at 34px 50%, var(--cream) 0 10px, var(--ink) 10px 12px, transparent 12.5px),
      linear-gradient(90deg, transparent 66px, #f28b8b 66px 68px, transparent 68px);
    background-size: 100% 220px, 100% 100%;
    background-repeat: repeat-y, no-repeat;
  }
}
.post-kicker { font-family: var(--label); font-size: 1rem; color: var(--blue); }
.post-title {
  margin-top: 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.04;
}
.post-meta {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-family: var(--label);
  font-size: .98rem;
  transform: rotate(-1.5deg);
}

.prose { margin-top: 34px; font-size: 1.125rem; line-height: 1.75; max-width: 68ch; }
.prose > * + * { margin-top: 1.05em; }
.prose .first { font-size: 1.24rem; font-weight: 600; }
.prose h2 {
  margin-top: 1.9em;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.15;
  scroll-margin-top: 24px;
}
.prose h2 span {
  background: linear-gradient(transparent 55%, var(--yellow) 55% 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.prose h2:nth-of-type(3n+2) span { background: linear-gradient(transparent 55%, #bfeee6 55% 92%, transparent 92%); }
.prose h2:nth-of-type(3n) span { background: linear-gradient(transparent 55%, #ffd3e7 55% 92%, transparent 92%); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose ul li::marker { content: "\25B2  "; color: var(--red); font-size: .8em; }
.prose ol li::marker { font-family: var(--display); color: var(--blue); }
.prose em { font-style: italic; }
.prose a { color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose .letter-open { font-family: var(--label); font-size: 1.35rem; color: var(--red); }
.sign-off { margin-top: 28px; font-family: var(--label); font-size: 1.35rem; color: var(--red); transform: rotate(-2deg); display: inline-block; }

.toc {
  position: relative;
  padding: 26px 20px 22px;
  border: var(--line);
  border-radius: 4px;
  background: #fff3a6;
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(1.5deg);
}
@media (min-width: 1000px) { .toc { position: sticky; top: 24px; } }
.toc::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 84px;
  height: 24px;
  transform: translateX(-50%) rotate(3deg);
  background: rgba(36, 80, 255, .35);
  border: 1px solid rgba(27, 27, 27, .25);
}
.toc-title { font-family: var(--display); font-size: 1.15rem; }
.toc ol { margin: 10px 0 0; padding-left: 1.3em; }
.toc li { font-size: .98rem; line-height: 1.35; }
.toc li + li { margin-top: 8px; }
.toc li::marker { font-family: var(--label); color: var(--red); }
.toc a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; }
.toc a:hover { color: var(--blue); }
.toc-back { display: inline-block; margin-top: 16px; font-family: var(--label); color: var(--blue); }

.hall-pass { padding: 12px 0 72px; }
.hall-pass ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; list-style: none; margin: 0; padding: 0; }

/* ---------- 404 ---------- */

.oob { position: relative; overflow: hidden; padding: 64px 0 96px; text-align: center; }
.oob-inner { position: relative; z-index: 1; }
.ball { width: 120px; height: 120px; margin: 0 auto; }
.oob .code { font-family: var(--shade); font-size: clamp(4.5rem, 20vw, 10rem); line-height: 1; color: var(--red); }
.oob h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1.02; }
.oob p { max-width: 46ch; margin: 16px auto 0; font-size: 1.12rem; }
.oob .hero-actions { justify-content: center; }

/* ---------- Confetti burst (signup success) ---------- */

.burst {
  position: fixed;
  top: -20px;
  width: 10px;
  height: 14px;
  z-index: 600;
  pointer-events: none;
  animation: fall 1.8s cubic-bezier(.3, .6, .5, 1) forwards;
}

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

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-2.5deg); }
  50% { transform: rotate(2deg); }
  75% { transform: rotate(-1deg); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(8deg); }
}
@keyframes drop-in {
  0% { transform: translateY(-60px) rotate(-10deg); opacity: 0; }
  70% { transform: translateY(6px) rotate(3deg); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  10%, 30%, 50%, 70% { transform: rotate(16deg); }
  20%, 40%, 60%, 80% { transform: rotate(-16deg); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0) scaleY(1); }
  45% { transform: translateY(-70px) scaleY(1.02); }
  90% { transform: translateY(0) scaleY(.9); }
}
@keyframes fall {
  to { transform: translate(var(--dx, 0), 105vh) rotate(var(--rot, 540deg)); opacity: .9; }
}

@media (prefers-reduced-motion: no-preference) {
  .confetti svg { animation: floaty 6s ease-in-out infinite; }
  .confetti .c2 { animation-duration: 7.5s; animation-delay: -2s; }
  .confetti .c3 { animation-duration: 5.2s; animation-delay: -1s; }
  .confetti .c4 { animation-duration: 8s; }
  .confetti .c5 { animation-duration: 6.6s; animation-delay: -3s; }
  .hero-title .letters span { animation: drop-in .6s cubic-bezier(.3, 1.4, .5, 1) both; }
  .hero-title .l2 { animation-delay: .06s; }
  .hero-title .l3 { animation-delay: .12s; }
  .hero-title .l4 { animation-delay: .18s; }
  .hero-title .l5 { animation-delay: .24s; }
  .hero-title .l6 { animation-delay: .3s; }
  .hero-title .letters span:hover { animation: wiggle .4s ease-in-out; }
  .sticker:hover, .btn:hover, .nav a:hover { animation: wiggle .4s ease-in-out; }
  .bell-box.is-ringing .bell { animation: ring 1.2s ease-in-out 2; }
  .bell-box:hover .bell { animation: ring .8s ease-in-out 1; }
  .ball { animation: bounce 1.1s cubic-bezier(.5, 0, .5, 1) infinite; }
  .cup-art .drip { animation: floaty 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .burst { display: none; }
}
