/* The Learning Depot — "classroom scrapbook" design
   Palette sampled from the logo */
:root {
  --navy: #1b5166;
  --navy-deep: #133b4b;
  --teal: #56a1a6;
  --purple: #9b7bb4;
  --coral: #ec6a5e;
  --sage: #8ea56c;
  --mustard: #f2aa3c;
  --wood: #f3dcc0;
  --paper: #fdf8ee;
  --ink: #213b46;
  --muted: #566d77;
  --line: rgba(27, 81, 102, .07);
  --hard: 4px 4px 0 var(--navy);
  --soft: 0 14px 28px -14px rgba(19, 59, 75, .45);
  --display: "Grandstander", "Comic Sans MS", system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 1.08rem/1.7 var(--body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--coral); }
a:hover { color: var(--coral); }
:focus-visible { outline: 3px dashed var(--coral); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); line-height: 1.08; margin: 0 0 .45em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; color: #fff; }
.hidden { display: none !important; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* handwritten note */
.note { font-family: var(--hand); font-size: 1.6rem; line-height: 1.1; color: var(--coral); display: inline-block; transform: rotate(-2deg); margin-bottom: .6rem; }
.note.teal { color: var(--teal); }
.note.light { color: var(--mustard); }

/* crayon underline */
.scribble { position: relative; white-space: nowrap; z-index: 0; }
.scribble svg { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .42em; z-index: -1; overflow: visible; }
.scribble path { fill: none; stroke: var(--mustard); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.1s .7s ease-out forwards; }
.scribble.coral path { stroke: var(--coral); }
.scribble.teal path { stroke: var(--teal); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Header: notebook divider tabs ---------- */
.site-header { position: relative; z-index: 40; background: var(--navy); }
.site-header::after { /* colored stripe from "Depot" */
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px;
  background: linear-gradient(90deg, var(--purple) 0 20%, var(--coral) 0 40%, var(--sage) 0 60%, var(--mustard) 0 80%, var(--teal) 0);
}
.site-header .container { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.brand {
  display: block; background: #fff; padding: .55rem .9rem .7rem; margin-top: .6rem; margin-bottom: -2.6rem;
  border-radius: 14px; box-shadow: var(--hard); transform: rotate(-2.5deg); transition: transform .25s ease;
  position: relative; z-index: 2;
}
.brand:hover { transform: rotate(0) scale(1.03); }
.brand img { height: 86px; width: auto; }
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; padding-top: .5rem; }
.header-phone { color: #fff; font-family: var(--display); font-weight: 600; text-decoration: none; font-size: 1rem; display: inline-flex; gap: .4rem; align-items: center; }
.header-phone:hover { color: var(--mustard); }
.header-phone small { font-family: var(--body); font-weight: 400; opacity: .75; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; align-items: flex-start; }
.nav li { --t: var(--teal); }
.nav li:nth-child(6n+1) { --t: var(--teal); }
.nav li:nth-child(6n+2) { --t: var(--purple); }
.nav li:nth-child(6n+3) { --t: var(--coral); }
.nav li:nth-child(6n+4) { --t: var(--sage); }
.nav li:nth-child(6n+5) { --t: var(--mustard); }
.nav li:nth-child(6n+6) { --t: #7fb9bd; }
.nav a {
  display: block; position: relative; top: 6px; padding: .7rem .95rem .55rem; background: var(--t); color: #fff;
  font: 700 1rem var(--display); text-decoration: none; border-radius: 0 0 12px 12px;
  transition: transform .2s ease, padding .2s ease; text-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.nav a:hover { transform: translateY(4px); color: #fff; }
.nav a[aria-current="page"] { padding-top: 1.15rem; background: #fff; color: var(--navy); text-shadow: none; box-shadow: inset 0 -5px 0 var(--t); }
.menu-toggle {
  display: none; margin: .9rem 0; background: var(--mustard); color: var(--navy-deep); border: 0; border-radius: 10px;
  padding: .55rem 1rem; font: 700 1rem var(--display); box-shadow: 3px 3px 0 var(--navy-deep); cursor: pointer;
}
@media (max-width: 1020px) {
  .menu-toggle { display: inline-block; }
  .header-right { padding-top: 0; flex-direction: row; align-items: center; gap: 1rem; }
  .header-phone small { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; background: var(--paper); display: none; border-bottom: 4px solid var(--navy); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 1.2rem 1.25rem; gap: .5rem; }
  .nav a, .nav a[aria-current="page"] { top: 0; border-radius: 12px; padding: .75rem 1rem; box-shadow: 3px 3px 0 var(--navy); }
  .nav a[aria-current="page"] { background: var(--t); color: #fff; }
  .brand { margin-bottom: -1.6rem; }
  .brand img { height: 62px; }
}
@media (max-width: 520px) { .header-phone span { display: none; } }

/* ---------- Buttons: chunky toy blocks ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.45rem; border-radius: 12px;
  font: 700 1.05rem var(--display); text-decoration: none; cursor: pointer; border: 2.5px solid var(--navy);
  background: var(--coral); color: #fff; box-shadow: var(--hard); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: #fff; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--navy); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--navy); }
.btn.navy { background: var(--navy); }
.btn.mustard { background: var(--mustard); color: var(--navy-deep); }
.btn.mustard:hover { color: var(--navy-deep); }
.btn.paper { background: #fff; color: var(--navy); }
.btn.paper:hover { color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Photo treatments ---------- */
.polaroid {
  background: #fff; padding: .8rem .8rem 3rem; box-shadow: var(--soft); position: relative;
  transform: rotate(var(--r, 2deg)); transition: transform .35s ease; margin: 0;
}
.polaroid:hover { transform: rotate(0deg) scale(1.015); }
.polaroid img { width: 100%; aspect-ratio: var(--ar, 4/3); object-fit: cover; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: .6rem; text-align: center; font: 1.55rem/1 var(--hand); color: var(--navy); }
.tape::before {
  content: ""; position: absolute; top: -16px; left: 50%; width: 120px; height: 32px; transform: translateX(-50%) rotate(-4deg);
  background: color-mix(in srgb, var(--tape, var(--mustard)) 70%, transparent);
  clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 50%);
  z-index: 2;
}
.tape.corner::before { left: 8%; transform: rotate(-28deg); width: 100px; }

/* ---------- Sticky notes ---------- */
.sticky {
  --c: var(--mustard);
  background: color-mix(in srgb, var(--c) 32%, #fffdf6); padding: 2.2rem 1.7rem 1.7rem; position: relative;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 16px 22px -16px rgba(19,59,75,.55);
  transform: rotate(var(--r, -1.5deg)); transition: transform .3s ease, box-shadow .3s ease;
  border-radius: 2px 2px 26px 2px / 2px 2px 14px 2px;
}
.sticky:hover { transform: rotate(0) translateY(-6px); box-shadow: 0 26px 30px -18px rgba(19,59,75,.55); }
.sticky::before { /* push pin */
  content: ""; position: absolute; top: 10px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8 0 20%, transparent 22%), var(--pin, var(--coral));
  box-shadow: 1px 3px 3px rgba(0,0,0,.25);
}
.sticky h3 { margin-top: .3rem; }
.sticky h3, .notebook h3, .index-card h3, .band .sticky h3, .band .notebook h3, .band .index-card h3 { color: var(--navy); }
.pass-head h3 { color: #fff; }
.sticky p:last-child { margin-bottom: 0; }
.s-purple { --c: var(--purple); --pin: var(--mustard); }
.s-coral { --c: var(--coral); --pin: var(--navy); }
.s-sage { --c: var(--sage); --pin: var(--coral); }
.s-mustard { --c: var(--mustard); --pin: var(--teal); }
.s-teal { --c: var(--teal); --pin: var(--purple); }
.s-navy { --c: var(--navy); --pin: var(--mustard); }

.doodle { position: absolute; pointer-events: none; z-index: 0; }
.doodle svg { width: 100%; height: 100%; overflow: visible; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(5rem, 9vw, 7.5rem) 0 clamp(4rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .c-teal { color: var(--teal); }
.hero .lead { font-size: 1.22rem; max-width: 33rem; color: var(--muted); margin-bottom: 1.8rem; }
.hero-art { position: relative; }
.hero-art .polaroid { --r: 3.5deg; --ar: 1/1.02; }
.hero-art .sticky {
  position: absolute; left: -12%; bottom: -8%; width: 215px; --r: -7deg; padding: 1.9rem 1.2rem 1.2rem;
  font-family: var(--hand); font-size: 1.45rem; line-height: 1.1; color: var(--navy-deep); text-align: center;
}
.hero-art .sticky strong { display: block; font-family: var(--display); font-size: 1.55rem; color: var(--coral); margin-bottom: .2rem; }
.d-star { width: 56px; height: 56px; top: -34px; right: -18px; color: var(--mustard); }
.d-sun { width: 90px; height: 90px; top: 8%; left: -40px; color: var(--teal); opacity: .55; }
.d-swirl { width: 140px; height: 60px; right: 40%; bottom: -10px; color: var(--purple); opacity: .6; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin: 1rem auto 2rem; }
  .hero-art .sticky { left: -4%; width: 190px; }
  .d-sun { display: none; }
}

/* info ticket strip */
.ticket {
  display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 2.5px solid var(--navy); border-radius: 16px;
  box-shadow: var(--hard); position: relative; margin-top: -1rem;
}
.ticket > * { padding: 1.1rem 1.4rem; display: flex; gap: .9rem; align-items: center; text-decoration: none; color: var(--ink); }
.ticket > * + * { border-left: 2.5px dashed #c6d6da; }
.ticket .ico { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--a); }
.ticket .ico svg { width: 22px; height: 22px; }
.ticket strong { display: block; font-family: var(--display); color: var(--navy); font-size: 1.1rem; line-height: 1.2; }
.ticket span { font-size: .98rem; line-height: 1.35; }
.ticket a:hover strong { color: var(--coral); }
@media (max-width: 800px) { .ticket { grid-template-columns: 1fr; } .ticket > * + * { border-left: 0; border-top: 2.5px dashed #c6d6da; } }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.14rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split.wide-left { grid-template-columns: 1.25fr .85fr; }
.split.wide-right { grid-template-columns: .85fr 1.25fr; }
@media (max-width: 880px) { .split, .split.wide-left, .split.wide-right { grid-template-columns: 1fr; } }

/* scalloped band edges */
.band { --c: var(--navy); background: var(--c); color: #e3eef1; margin: 24px 0; }
.band::before, .band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 24px;
  background: radial-gradient(circle 18px at 50% 100%, var(--c) 17.5px, transparent 18.5px) 0 0 / 36px 24px repeat-x;
}
.band::before { top: -23px; }
.band::after { bottom: -23px; transform: scaleY(-1); }
.band h2, .band h3 { color: #fff; }
.band.teal { --c: #d9ecec; color: var(--ink); }
.band.teal h2 { color: var(--navy); }
.band.wood { --c: #f8e6cd; color: var(--ink); }
.band.wood h2, .band.wood h3 { color: var(--navy); }

/* Pillars: corkboard of sticky notes */
.board { display: grid; align-items: start; grid-template-columns: repeat(2, 1fr); gap: 2.4rem 2.6rem; max-width: 980px; margin-inline: auto; }
.board > :nth-child(even) { margin-top: 3rem; }
.board > :nth-child(1) { --r: -2deg; }
.board > :nth-child(2) { --r: 1.8deg; }
.board > :nth-child(3) { --r: 1.2deg; }
.board > :nth-child(4) { --r: -1.6deg; }
@media (max-width: 760px) { .board { grid-template-columns: 1fr; } .board > :nth-child(even) { margin-top: 0; } }

/* lined notebook paper */
.notebook {
  background-color: #fff;
  background-image:
    linear-gradient(90deg, transparent 54px, rgba(236,106,94,.55) 54px 56px, transparent 56px),
    repeating-linear-gradient(transparent 0 31px, rgba(86,161,166,.28) 31px 32px);
  background-position: 0 0, 0 12px;
  padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.4rem, 4vw, 2.8rem) clamp(1.8rem, 4vw, 2.8rem) clamp(4.4rem, 7vw, 5.4rem);
  box-shadow: var(--soft); position: relative; line-height: 32px;
}
.notebook p { margin-bottom: 32px; }
.notebook p:last-child { margin-bottom: 0; }
.notebook::after { /* binder holes */
  content: ""; position: absolute; left: 20px; top: 40px; bottom: 40px; width: 16px;
  background: radial-gradient(circle, var(--paper) 7px, rgba(19,59,75,.18) 7.5px 8.5px, transparent 9px) 0 0 / 16px 110px repeat-y;
}

/* Director */
.director { display: grid; grid-template-columns: 330px 1fr; align-items: start; }
.director .polaroid { --r: -4deg; --ar: 3/4; z-index: 2; margin-top: 2.5rem; margin-right: -3rem; }
.director .notebook h2 { line-height: 1.1; margin-bottom: 0; }
.director .notebook .note { margin-bottom: 1rem; }
@media (max-width: 880px) { .director { grid-template-columns: 1fr; } .director .polaroid { max-width: 290px; margin: 0 auto -1.5rem; } }

/* stickers */
.sticker { background: #fff; padding: 10px; border-radius: 22px; box-shadow: var(--soft); transform: rotate(var(--r, 5deg)); max-width: 300px; margin-inline: auto; transition: transform .3s ease; }
.sticker:hover { transform: rotate(-2deg) scale(1.04); }
.sticker img { border-radius: 14px; }

/* index cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: start; }
.cards > :nth-child(2) { margin-top: 2.5rem; }
.cards > :nth-child(3) { margin-top: 1rem; }
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; } .cards > * { margin-top: 0 !important; } }
.index-card {
  --a: var(--teal);
  background-color: #fff;
  background-image: linear-gradient(var(--a), var(--a)), repeating-linear-gradient(transparent 0 27px, rgba(86,161,166,.22) 27px 28px);
  background-size: 100% 4px, 100% 100%; background-position: 0 58px, 0 70px; background-repeat: no-repeat, repeat;
  padding: 1.1rem 1.5rem 1.5rem; box-shadow: var(--soft); position: relative; transform: rotate(var(--r, 0deg));
  transition: transform .3s ease;
}
.index-card:hover { transform: rotate(0) translateY(-5px); }
.index-card .head { display: flex; align-items: center; gap: .7rem; height: 48px; margin-bottom: 1.2rem; }
.index-card .head svg { width: 30px; height: 30px; color: var(--a); flex: none; }
.index-card h3 { margin: 0; font-size: 1.3rem; }
.index-card p { line-height: 28px; }
.index-card p:last-child { margin-bottom: 0; }
.a-coral { --a: var(--coral); } .a-purple { --a: var(--purple); } .a-sage { --a: var(--sage); } .a-mustard { --a: var(--mustard); } .a-teal { --a: var(--teal); } .a-navy { --a: var(--navy); }
.cards > :nth-child(1) { --r: -1.5deg; } .cards > :nth-child(2) { --r: 1deg; } .cards > :nth-child(3) { --r: -.5deg; }

.app-badges { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 3rem; }

/* ---------- Visitor pass (contact info) ---------- */
.pass { background: #fff; border: 2.5px solid var(--navy); border-radius: 18px; box-shadow: var(--hard); overflow: hidden; }
.pass-head { background: var(--navy); color: #fff; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.pass-head h3 { color: #fff; margin: 0; font-size: 1.3rem; }
.pass-head .note { margin: 0; color: var(--mustard); font-size: 1.4rem; }
.pass ul { list-style: none; margin: 0; padding: .4rem 1.5rem 1rem; }
.pass li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: .9rem 0; align-items: center; }
.pass li + li { border-top: 2px dotted #c6d6da; }
.pass .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--a); transform: rotate(-4deg); }
.pass li:nth-child(even) .ico { transform: rotate(4deg); }
.pass .ico svg { width: 22px; height: 22px; }
.pass strong { display: block; font-family: var(--display); color: var(--navy); line-height: 1.2; }
.pass a { text-decoration: none; }
.pass a:hover { text-decoration: underline; }

.map-frame { --r: -1.5deg; padding-bottom: .8rem; }
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }

.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: .55rem 0; border-bottom: 2px dotted #c6d6da; }
.hours td:last-child { text-align: right; font-weight: 700; color: var(--navy); }
.hours .closed td:last-child { color: var(--coral); }

/* ---------- Chalkboard CTA ---------- */
.chalk-wrap { padding: clamp(3rem, 7vw, 5rem) 0; }
.chalkboard {
  background: radial-gradient(ellipse at 30% 20%, #23566a, var(--navy-deep) 70%); color: #f2f6f4; border-radius: 10px;
  border: 14px solid #c9a275; box-shadow: inset 0 0 40px rgba(0,0,0,.35), var(--soft), 0 0 0 4px #a98257;
  padding: clamp(2rem, 5vw, 3.2rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; position: relative;
}
.chalkboard::after { /* chalk tray */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -26px; height: 12px; background: #a98257; border-radius: 0 0 6px 6px;
}
.chalkboard h2 { font-family: var(--hand); font-weight: 700; color: #fff; font-size: clamp(2.6rem, 5vw, 3.8rem); margin: 0 0 .2rem; line-height: 1; }
.chalkboard p { font-family: var(--hand); font-size: 1.7rem; line-height: 1.2; margin: 0; color: #dfe9e5; }
.chalkboard p a { color: var(--mustard); text-decoration: none; }
.chalkboard .btn-row { justify-content: flex-end; }
@media (max-width: 800px) { .chalkboard { grid-template-columns: 1fr; } .chalkboard .btn-row { justify-content: flex-start; } }

/* ---------- Footer ---------- */
.site-footer { --c: var(--navy-deep); background: var(--c); color: #c9dde2; padding-top: 4rem; position: relative; margin-top: 24px; }
.site-footer::before { content: ""; position: absolute; top: -23px; left: 0; right: 0; height: 24px; background: radial-gradient(circle 18px at 50% 100%, var(--c) 17.5px, transparent 18.5px) 0 0 / 36px 24px repeat-x; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.2rem; padding-bottom: 3rem; }
@media (max-width: 880px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--mustard); font-family: var(--hand); font-size: 1.8rem; font-weight: 700; margin-bottom: .4rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--mustard); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-logo { background: #fff; border-radius: 14px; padding: .6rem .8rem; display: inline-block; margin-bottom: 1rem; transform: rotate(-3deg); box-shadow: 4px 4px 0 var(--teal); }
.footer-logo img { height: 78px; width: auto; }
.footer-bottom { border-top: 2px dashed rgba(255,255,255,.15); padding: 1.2rem 0; font-size: .92rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; }
.social { display: inline-flex; align-items: center; gap: .5rem; }
.social svg { width: 22px; height: 22px; }

/* ---------- Inner page header ---------- */
.page-head { padding: clamp(5rem, 9vw, 7rem) 0 clamp(2rem, 4vw, 3rem); position: relative; }
.page-head .container { position: relative; }
.label-tape {
  display: inline-block; font: 700 1rem var(--display); color: var(--navy-deep); padding: .35rem 1.2rem; margin-bottom: 1rem;
  background: color-mix(in srgb, var(--accent, var(--mustard)) 70%, white); transform: rotate(-2deg);
  clip-path: polygon(2% 0, 98% 6%, 100% 50%, 97% 100%, 1% 94%, 0 50%);
}
.page-head h1 { max-width: 15ch; }
.page-head p { font-size: 1.2rem; max-width: 40rem; color: var(--muted); }
.page-head .doodle { right: 2%; top: 10%; width: 150px; height: 150px; color: var(--accent, var(--teal)); opacity: .5; }
@media (max-width: 700px) { .page-head .doodle { display: none; } }

/* ---------- Programs: the Depot line (route map) ---------- */
.route { position: relative; max-width: 1000px; margin-inline: auto; }
.route::before { /* track */
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 22px; margin-left: -11px;
  background:
    linear-gradient(90deg, transparent 3px, var(--navy) 3px 6px, transparent 6px 16px, var(--navy) 16px 19px, transparent 19px),
    repeating-linear-gradient(transparent 0 10px, var(--wood) 10px 16px);
  border-radius: 6px;
}
.stop { display: grid; grid-template-columns: 1fr 110px 1fr; align-items: center; margin-bottom: 2.5rem; position: relative; }
.stop:last-child { margin-bottom: 0; }
.station {
  grid-column: 2; width: 110px; height: 110px; border-radius: 50%; background: var(--a); color: #fff; border: 6px solid #fff;
  box-shadow: 0 0 0 3px var(--navy), var(--soft); display: grid; place-items: center; text-align: center; padding: .5rem;
  font: 700 .98rem/1.1 var(--display); position: relative; z-index: 2;
}
.stop .sticky { grid-row: 1; }
.stop:nth-child(odd) .sticky { grid-column: 1; margin-right: 1.8rem; --r: -1.4deg; }
.stop:nth-child(even) .sticky { grid-column: 3; margin-left: 1.8rem; --r: 1.4deg; }
.stop .sticky::before { display: none; }
.stop .sticky .stop-label { font: 1.4rem/1 var(--hand); color: var(--coral); display: block; margin-bottom: .2rem; }
.stop .sticky { padding-top: 1.6rem; }
.free-flag { display: inline-block; font: 700 .85rem var(--display); background: var(--coral); color: #fff; padding: .2rem .7rem; border-radius: 6px; transform: rotate(-3deg); vertical-align: middle; margin-left: .3rem; }
@media (max-width: 800px) {
  .route::before { left: 55px; }
  .stop { grid-template-columns: 110px 1fr; gap: 1rem; align-items: start; }
  .station { grid-column: 1; grid-row: 1; }
  .stop:nth-child(n) .sticky { grid-column: 2; margin: 0; }
}
@media (max-width: 480px) {
  .route::before { left: 38px; }
  .stop { grid-template-columns: 76px 1fr; }
  .station { width: 76px; height: 76px; font-size: .78rem; border-width: 4px; }
}

/* ---------- Jobs: file folders ---------- */
details.job { --a: var(--teal); margin-bottom: 1.6rem; position: relative; padding-top: 22px; }
details.job::before {
  content: ""; position: absolute; top: 0; left: 0; width: 190px; height: 26px; background: var(--a); border-radius: 12px 12px 0 0;
}
details.job summary {
  cursor: pointer; list-style: none; background: color-mix(in srgb, var(--a) 22%, #fffdf6); border-top: 4px solid var(--a);
  padding: 1.3rem 1.6rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem;
  box-shadow: var(--soft); border-radius: 0 12px 12px 12px; position: relative;
}
details.job[open] summary { border-radius: 0 12px 0 0; }
details.job summary::-webkit-details-marker { display: none; }
details.job summary h3 { margin: 0; }
details.job summary .meta { display: flex; flex-wrap: wrap; gap: .4rem; }
details.job summary .meta span { font-size: .86rem; font-weight: 700; background: #fff; color: var(--navy); padding: .2rem .7rem; border-radius: 6px; border: 2px solid var(--navy); }
details.job summary::after { content: "open +"; font: 1.4rem/1 var(--hand); color: var(--navy); }
details.job[open] summary::after { content: "close –"; }
details.job .job-body { background: #fff; padding: 1.2rem 1.6rem 1.8rem; box-shadow: var(--soft); border-radius: 0 0 12px 12px; }
details.job h4 { font-size: 1.12rem; margin: 1rem 0 .3rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .4rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border: 2.5px solid var(--navy); border-radius: 4px; background: #fff; }
.check-list li::after { content: ""; position: absolute; left: .32rem; top: .22em; width: .5rem; height: .9rem; border: solid var(--a, var(--coral)); border-width: 0 3.5px 3.5px 0; transform: rotate(40deg); }

/* ---------- Forms on notebook paper ---------- */
.form-sheet { line-height: 1.6; }
.form-sheet h2 { line-height: 1.1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1.6rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font: 700 .98rem var(--display); color: var(--navy); margin-bottom: .2rem; }
input, select, textarea {
  width: 100%; font: 1.05rem var(--body); padding: .6rem .8rem; color: var(--ink);
  background: rgba(255,255,255,.85); border: 2.5px solid var(--navy); border-radius: 10px; box-shadow: 3px 3px 0 rgba(27,81,102,.18);
  transition: box-shadow .15s ease, transform .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--mustard); transform: translate(-1px, -1px); }
input:user-invalid, select:user-invalid { border-color: var(--coral); box-shadow: 3px 3px 0 rgba(236,106,94,.35); }
textarea { min-height: 140px; resize: vertical; }
input[type="file"] { padding: .5rem; }
.hint { font-size: .9rem; color: var(--muted); margin: .3rem 0 0 !important; line-height: 1.4; }
.form-sheet button[disabled] { opacity: .65; cursor: progress; }

/* ---------- Resources: bookmarks ---------- */
.shelf { display: grid; align-items: start; grid-template-columns: repeat(3, 1fr); gap: 2.2rem 2rem; }
.shelf > :nth-child(3n+2) { margin-top: 2rem; }
@media (max-width: 880px) { .shelf { grid-template-columns: 1fr 1fr; } .shelf > * { margin-top: 0 !important; } }
@media (max-width: 560px) { .shelf { grid-template-columns: 1fr; } }
.link-note { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.link-note:hover { color: var(--ink); }
.link-note .src { font: 1.35rem/1 var(--hand); color: var(--coral); }
.link-note .more { margin-top: auto; padding-top: .6rem; font: 700 1rem var(--display); color: var(--navy); }
.shelf > :nth-child(1) { --r: -1.8deg; } .shelf > :nth-child(2) { --r: 1.2deg; } .shelf > :nth-child(3) { --r: -.8deg; }
.shelf > :nth-child(4) { --r: 1.6deg; } .shelf > :nth-child(5) { --r: -1.2deg; } .shelf > :nth-child(6) { --r: 2deg; }

/* ---------- Motion ---------- */
.rise { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.js [data-reveal] { opacity: 0; transform: translateY(34px) rotate(var(--r, 0deg)); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: rotate(var(--r, 0deg)); }
.js [data-reveal].in:hover { transition-delay: 0s; }
.spin-slow { animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bob { animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scribble path { stroke-dashoffset: 0; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
