/* prism.logs 2.0 — sketchbook styles for the custom pages.
   The garden (Quartz) mirrors these tokens in garden/quartz/styles/custom.scss. */

@font-face { font-family: 'September Spirit'; src: url('/fonts/september-spirit/SeptemberSpirit.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'September Spirit Alt'; src: url('/fonts/september-spirit/SeptemberSpiritAlt.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'September Spirit Caps'; src: url('/fonts/september-spirit/SeptemberSpiritAllCaps.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'September Spirit Extras'; src: url('/fonts/september-spirit/SeptemberSpiritExtras.woff2') format('woff2'); font-display: block; }

:root {
  --paper: #FCFBF8;
  --grid: #F1EEE8;
  --ink: #2B1F3A;
  --ink-soft: #4A3D5C;
  --ink-mute: #5B4F6B;
  --magenta: #C2187A;
  --violet: #6B33B8;
  --pink: #FFB8D9;
  --lavender: #C9B6FF;
  --butter: #FFE58A;
  --mint: #A8E6CF;
  --sky: #9ED8F5;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-hand: 'September Spirit', 'Comic Sans MS', cursive;
  --font-hand-alt: 'September Spirit Alt', 'September Spirit', cursive;
  --font-caps: 'September Spirit Caps', 'September Spirit', cursive;
  --wobbly: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --shadow: 0 14px 28px -18px rgba(43, 31, 58, 0.5);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 16px 16px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
main { overflow-x: clip; }
a { color: var(--ink); }
a:hover { color: var(--magenta); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

.serif { font-family: var(--font-serif); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.mono { font-family: var(--font-mono); }
.hand { font-family: var(--font-hand); font-weight: 400; }
.hand-alt { font-family: var(--font-hand-alt); font-weight: 400; }
.caps { font-family: var(--font-caps); font-weight: 400; }
.doodle { font-family: 'September Spirit Extras'; line-height: 1; white-space: nowrap; pointer-events: none; font-weight: 400; font-style: normal; position: absolute; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; position: relative; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ── washi tape, torn paper, blobs ── */
.washi { position: absolute; height: 26px; width: 110px; opacity: 0.88; z-index: 2; }
.washi-stripe { background: repeating-linear-gradient(45deg, #FF9CC9 0 8px, #FFE3F0 8px 16px); }
.washi-dot { background-color: #B9E4F7; background-image: radial-gradient(#FFFFFF 2.5px, transparent 3px); background-size: 12px 12px; }
.washi-check { background-color: #FFF0A8; background-image: linear-gradient(45deg, #FFD95C 25%, transparent 25%, transparent 75%, #FFD95C 75%), linear-gradient(45deg, #FFD95C 25%, transparent 25%, transparent 75%, #FFD95C 75%); background-size: 14px 14px; background-position: 0 0, 7px 7px; }
.torn { clip-path: polygon(0 0, 100% 0, 100% 92%, 96% 96%, 91% 92%, 86% 97%, 80% 93%, 74% 98%, 68% 93%, 61% 97%, 55% 92%, 49% 97%, 42% 93%, 36% 98%, 30% 92%, 24% 97%, 18% 93%, 12% 98%, 6% 93%, 0 97%); }
.blob { position: absolute; border-radius: 58% 42% 63% 37% / 45% 55% 45% 55%; filter: blur(1.5px); pointer-events: none; }

/* ── header ── */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding: 26px 0 8px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo svg { width: 58px; height: 58px; flex: none; }
.logo-word { font-family: var(--font-serif); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-size: 44px; font-weight: 600; line-height: 1; }
.logo-word em { font-weight: 400; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-family: var(--font-hand); font-size: 30px; line-height: 1.2; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--magenta); }
.menu { display: none; }
@media (max-width: 760px) {
  .site-header { padding-top: 14px; }
  .logo svg { width: 38px; height: 38px; }
  .logo-word { font-size: 28px; }
  .site-nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; background: #FFFFFF; border: 2px solid var(--ink); border-radius: var(--wobbly); cursor: pointer; font-family: var(--font-hand); font-size: 24px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu nav { position: absolute; right: 0; top: 54px; z-index: 30; display: flex; flex-direction: column; gap: 4px; min-width: 200px; padding: 16px 20px; background: #FFFFFF; box-shadow: var(--shadow); transform: rotate(1deg); font-family: var(--font-hand); font-size: 28px; }
  .menu nav a { text-decoration: none; }
}

/* ── hero ── */
.hero { position: relative; display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: flex-start; padding: 56px 0 40px; }
.hero-text { position: relative; flex: 1 1 540px; max-width: 640px; min-width: 0; }
.greeting { margin: 0; font-size: clamp(64px, 9vw, 104px); line-height: 0.95; transform: rotate(-2.5deg); transform-origin: left; }
.intro { margin: 30px 0 0; max-width: 620px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; }
.intro em { color: var(--magenta); }
.circled { position: relative; display: inline-block; isolation: isolate; white-space: nowrap; margin: 0 0.42em 0 0.38em; }
.circled em { position: relative; z-index: 1; }
.circled .loop-anchor { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 0; transform: scale(0.92, 0.6); pointer-events: none; }
.circled .loop-doodle { position: absolute; font-family: 'September Spirit Extras'; font-size: 2.6em; line-height: 1; left: -1.579em; top: -0.524em; color: var(--magenta); white-space: nowrap; font-style: normal; font-weight: 400; }
.bio { margin: 18px 0 0; max-width: 540px; color: var(--ink-soft); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; background: var(--ink); color: var(--paper); font-weight: 800; font-family: var(--font-body); font-size: 17px; text-decoration: none; border: 0; border-radius: var(--wobbly); cursor: pointer; }
.btn:hover { color: var(--paper); background: var(--violet); }
.cta-row .doodle { position: static; font-size: 56px; color: var(--magenta); transform: rotate(180deg) translateY(10px); }
.scribble { font-size: 34px; color: var(--magenta); transform: rotate(-3deg); line-height: 1.1; }
.polaroid-wrap { position: relative; flex: 1 1 300px; min-width: 0; padding-top: 10px; }
.polaroid { position: relative; background: #FFFFFF; padding: 14px 14px 52px; box-shadow: var(--shadow); transform: rotate(4deg); max-width: 300px; margin: 0 auto; }
.polaroid img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 32% 50%; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-family: var(--font-hand); font-size: 30px; line-height: 1; }
.polaroid-wrap .doodle { left: -10px; top: 330px; font-size: 70px; color: var(--ink); transform: rotate(-20deg); }
@media (max-width: 760px) {
  .hero { padding-top: 30px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .doodle { display: none; }
  .scribble { text-align: center; font-size: 28px; }
  .polaroid { margin: 0 auto; max-width: 240px; transform: rotate(3deg); }
  .polaroid-wrap .doodle { display: none; }
}

/* ── today's page ── */
.today { position: relative; container: today / inline-size; display: flex; flex-wrap: wrap; gap: 30px 40px; align-items: flex-start; padding: 10px 0 30px; }
.today-card { position: relative; flex: 2 1 420px; min-width: 0; transform: rotate(-1.2deg); filter: drop-shadow(0 8px 10px rgba(43,31,58,0.14)); }
.today-page { position: relative; background: #FFF7E0; padding: 30px 32px 64px; }
.today-head { display: flex; align-items: flex-start; gap: 22px; }
.date-circle { flex: none; width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; transform: rotate(-8deg); font-family: var(--font-mono); }
.date-circle span:first-child { font-size: 12px; letter-spacing: 1px; }
.date-circle span:last-child { font-size: 28px; font-weight: 600; }
.today-page h2 { margin: 0; font-family: var(--font-hand); font-weight: 400; font-size: 44px; line-height: 1; }
.quote { margin: 12px 0 0; font-family: var(--font-serif); font-size: 20px; font-style: italic; line-height: 1.45; }
.meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); }
.stamp { position: absolute; right: 26px; bottom: 30px; padding: 2px 14px 0; border: 3px solid var(--magenta); color: var(--magenta); border-radius: 6px; font-family: var(--font-caps); font-size: 30px; letter-spacing: 2px; transform: rotate(-9deg); opacity: 0.85; }
.side-cards { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
/* when the side cards stack under today's page, the record card stays journal-sized instead of stretching edge to edge */
@container today (max-width: 719px) {
  .record { width: fit-content; max-width: 100%; padding: 18px 28px 20px; margin-left: 6%; }
  .record .top-songs ol { width: 0; min-width: 100%; }
}
.record { position: relative; background: #DFF3FC; padding: 18px 20px; border-radius: 4px; transform: rotate(2deg); }
.record h2, .learning h2 { margin: 0; font-family: var(--font-hand); font-weight: 400; font-size: 34px; line-height: 1.1; }
.now-playing { display: flex; align-items: center; gap: 12px; margin-top: 8px; text-decoration: none; }
.now-playing img { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; }
.np-title { display: block; font-weight: 800; line-height: 1.3; }
.np-artist { display: block; font-size: 14px; color: var(--ink-soft); }
.np-status { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); }
.top-songs { margin-top: 10px; }
.top-songs summary { cursor: pointer; font-family: var(--font-hand); font-size: 24px; color: var(--violet); }
.top-songs ol { margin: 8px 0 0; padding-left: 22px; font-size: 14px; line-height: 1.5; }
.learning { background: #FFFFFF; padding: 18px 20px; transform: rotate(-1.5deg); box-shadow: 0 10px 20px -14px rgba(43,31,58,0.4); background-image: repeating-linear-gradient(#FFFFFF 0 31px, #DCE8F5 31px 32px); }
.learning ul { list-style: none; margin: 4px 0 0; padding: 0; font-family: var(--font-hand-alt); font-size: 26px; line-height: 32px; }
.learning .someday { margin: 6px 0 0; font-family: var(--font-hand-alt); font-size: 21px; line-height: 1.2; color: var(--ink-mute); }
@media (max-width: 640px) {
  .today-page { padding: 24px 20px 78px; }
  .today-card { transform: rotate(-1deg); }
  .today-head { align-items: center; gap: 14px; }
  .date-circle { width: 58px; height: 58px; }
  .date-circle span:last-child { font-size: 22px; }
  .today-page h2 { font-size: 38px; }
  .stamp { font-size: 22px; right: 18px; bottom: 24px; }
}

/* ── section headings ── */
.section { position: relative; padding: 56px 0 10px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 28px; }
.section-head h2 { position: relative; margin: 0; font-family: var(--font-hand); font-weight: 400; font-size: clamp(56px, 7vw, 80px); line-height: 1; }
.underlined .doodle { left: -0.133em; top: 0.053em; font-size: 1.41em; color: #3E9C6E; }
.section-head .meta { padding-bottom: 12px; font-size: 13px; }
.more { display: inline-block; margin-top: 18px; font-family: var(--font-hand); font-size: 30px; }

/* ── garden note cards ── */
.notes { display: flex; flex-wrap: wrap; gap: 34px 30px; align-items: flex-start; margin-top: 36px; }
.note-card { position: relative; flex: 1 1 260px; min-width: 0; display: block; text-decoration: none; color: var(--ink); padding: 22px 22px 20px; }
.note-card:hover { color: var(--ink); }
.note-card:hover .note-title { color: var(--magenta); }
.note-stage { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.stage-sprout { color: #2E7D5B; }
.stage-sapling { color: #9C3F86; }
.stage-old-growth { color: var(--violet); }
.note-title { display: block; margin-top: 6px; font-family: var(--font-serif); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-size: 24px; line-height: 1.15; font-weight: 600; }
.note-desc { display: block; margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
.note-tended { display: block; margin-top: 10px; font-family: var(--font-hand-alt); font-size: 24px; line-height: 1; color: var(--ink-mute); }
.note-card.v0 { flex-basis: 330px; background: #FFFFFF; box-shadow: var(--shadow); transform: rotate(-2deg); }
.note-card.v0 .note-title { font-size: 30px; }
.note-card.v1 { background: #FFE3EF; border-radius: 50% 50% 46% 54% / 12% 14% 10% 12%; margin-top: 28px; transform: rotate(2.5deg); }
.note-card.v2 { background: #E9E0FF; padding-bottom: 40px; transform: rotate(-1deg); }
.note-card.v3 { background: #FFFFFF; border: 2.5px solid var(--ink); border-radius: var(--wobbly); transform: rotate(1.5deg); }
.note-card.v4 { background: #E6F7EE; margin-top: 10px; transform: rotate(-2.5deg); box-shadow: 0 10px 20px -16px rgba(43,31,58,0.5); }
@media (max-width: 640px) {
  .notes { flex-direction: column; align-items: stretch; gap: 24px; }
  .note-card { flex-basis: auto !important; margin-top: 0 !important; transform: rotate(-1deg); }
  .note-card:nth-child(even) { transform: rotate(1deg); }
  /* the pink blob runs off both edges of the screen so its curves never look clipped short */
  .note-card.v1 { margin-left: -56px; margin-right: -56px; padding-left: 78px; padding-right: 78px; }
}

/* ── coloring gallery ── */
.gallery { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px 34px; margin-top: 32px; }
.gallery-intro { flex: 1 1 220px; min-width: 0; }
.color-card { position: relative; flex: 1 1 170px; min-width: 0; max-width: 260px; background: #FFFFFF; padding: 10px 10px 12px; box-shadow: 0 12px 22px -14px rgba(43,31,58,0.5); border: 0; cursor: zoom-in; font: inherit; color: inherit; text-align: center; }
.color-card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.color-card .cap { display: block; margin-top: 6px; font-family: var(--font-hand); font-size: 24px; line-height: 1; }
.color-card .credit { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); }
.color-card:nth-child(4n+1) { transform: rotate(-4deg); }
.color-card:nth-child(4n+2) { transform: rotate(3deg); margin-bottom: 20px; }
.color-card:nth-child(4n+3) { transform: rotate(-2deg); }
.color-card:nth-child(4n) { transform: rotate(2deg); margin-bottom: 10px; }
.gallery.full { align-items: flex-start; justify-content: center; }
.gallery.full .color-card { flex-basis: 240px; max-width: 320px; }
@media (max-width: 640px) {
  .gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
  .gallery-intro { grid-column: 1 / -1; }
  .color-card { max-width: none; margin-bottom: 0 !important; }
}
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(43, 31, 58, 0.72); }
.lightbox figure { margin: 0; max-width: min(92vw, 900px); background: #FFFFFF; padding: 14px 14px 18px; transform: rotate(-1deg); }
.lightbox img { max-height: 76vh; margin: 0 auto; }
.lightbox figcaption { margin-top: 10px; text-align: center; font-family: var(--font-hand); font-size: 30px; }
.lb-btn { position: absolute; min-width: 48px; min-height: 48px; border: 2px solid var(--ink); border-radius: var(--wobbly); background: #FFFFFF; font-family: var(--font-hand); font-size: 26px; cursor: pointer; color: var(--ink); }
.lb-close { top: 18px; right: 18px; padding: 0 14px; }
.lb-prev { left: 12px; top: 50%; }
.lb-next { right: 12px; top: 50%; }
.lb-btn:disabled { opacity: 0.35; }

/* ── made / shelf / changelog row ── */
.scraps { display: flex; flex-wrap: wrap; gap: 36px 40px; align-items: flex-start; padding: 64px 0 0; }
.scrap { position: relative; flex: 1 1 280px; min-width: 0; padding: 22px 24px; }
.scrap h2 { margin: 0 0 8px; font-family: var(--font-hand); font-weight: 400; font-size: 36px; line-height: 1; }
.scrap p { margin: 0 0 10px; font-size: 16px; }
.scrap a { font-weight: 800; }
.scrap-made { background: #FFFFFF; box-shadow: var(--shadow); transform: rotate(-1.2deg); }
.scrap-shelf { background: #FFE3EF; transform: rotate(1.4deg); }
.scrap-log { border-left: 2px dotted #CBBBDD; transform: none; padding-top: 6px; }
.scrap-log p { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); margin-bottom: 4px; }

/* ── page heads for inner pages ── */
.page-head { padding: 48px 0 8px; }
.page-head h1 { margin: 0; font-family: var(--font-hand); font-weight: 400; font-size: clamp(60px, 8vw, 92px); line-height: 1; transform: rotate(-2deg); transform-origin: left; }
.page-head p { margin: 18px 0 0; max-width: 600px; font-family: var(--font-serif); font-size: 22px; line-height: 1.4; }

/* ── forms (contact, guestbook) ── */
.paper-form { position: relative; max-width: 680px; margin: 36px 0 0; background: #FFFFFF; padding: 34px 32px 30px; box-shadow: var(--shadow); transform: rotate(-0.6deg); border-top: 10px solid var(--pink); }
.paper-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 800; margin-bottom: 16px; }
.paper-form input, .paper-form textarea { font: inherit; font-weight: 400; font-size: 16px; min-height: 48px; padding: 10px 14px; border: 2px solid #E4DAEE; border-radius: 12px; background: #FBF8FD; color: var(--ink); }
.paper-form textarea { min-height: 140px; resize: vertical; }
.paper-form input.error, .paper-form textarea.error { border-color: var(--magenta); }
.form-row { display: flex; flex-wrap: wrap; gap: 0 18px; }
.form-row label { flex: 1 1 220px; }
.pot { position: absolute; left: -9999px; }
.form-error { display: block; min-height: 1.4em; margin-top: 10px; color: var(--magenta); font-weight: 700; }
.success { font-family: var(--font-hand); font-size: 34px; line-height: 1.2; }
.gb-log { list-style: none; margin: 30px 0 0; padding: 0; max-width: 680px; display: flex; flex-direction: column; gap: 18px; }
.gb-log li { background: #FFF7E0; padding: 16px 20px; transform: rotate(-0.8deg); }
.gb-log li:nth-child(even) { background: #E6F7EE; transform: rotate(0.8deg); }
.gb-name { font-family: var(--font-hand); font-size: 28px; line-height: 1; }

/* ── footer ── */
.site-footer { margin-top: 80px; padding-bottom: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.site-footer .left { display: flex; align-items: center; gap: 16px; }
.sticker { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; flex: none; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--ink); box-shadow: 2px 3px 0 var(--pink); transform: rotate(-8deg); }
.site-footer .hand { font-size: 32px; }
@media (max-width: 640px) {
  .site-footer { flex-direction: column; text-align: center; }
  .site-footer .left { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* stage tooltip next to "the garden" */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stage-tip { position: relative; display: inline-block; padding-bottom: 12px; }
.stage-tip-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 13px; color: var(--ink-mute); text-align: left; }
.tip-q { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1.5px solid var(--violet); border-radius: 52% 48% 55% 45% / 48% 55% 45% 52%; color: var(--violet); font-family: var(--font-hand); font-size: 18px; line-height: 1; transform: rotate(-6deg); }
.tip-card { display: none; position: absolute; z-index: 20; left: 0; top: calc(100% - 4px); width: min(300px, calc(100vw - 40px)); padding: 16px 18px 14px; background: #FFFDF6; box-shadow: var(--shadow); transform: rotate(-1deg); font-size: 14px; line-height: 1.35; color: var(--ink); }
.tip-card::before { content: ''; position: absolute; top: -10px; left: 50%; width: 70px; height: 20px; margin-left: -35px; background: rgba(201,182,255,0.75); transform: rotate(3deg); }
.section-head .stage-tip-btn { padding-bottom: 0; }
.stage-tip.open .tip-card, .stage-tip:has(:focus-visible) .tip-card { display: block; }
@media (hover: hover) { .stage-tip:hover .tip-card { display: block; } }
.tip-head { display: block; margin-bottom: 8px; font-family: var(--font-hand); font-size: 26px; line-height: 1; }
.tip-row { display: block; margin-top: 6px; }
.tip-row b { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.tip-more { display: inline-block; margin-top: 10px; font-family: var(--font-hand); font-size: 22px; color: var(--violet); }

/* ── paper kit ──
   Real paper scraps, tape and painted stickers (files in /kit).
   Rules: every piece keeps its own shape (width + aspect-ratio, never stretched);
   paper tucks behind or across a card's edge, never fills it; tape is centered on
   what it holds and turns with it; one painted sticker per page. */
.tape { position: absolute; z-index: 2; left: 50%; pointer-events: none; background: center / 100% 100% no-repeat; }
.tape-a { background-image: url('/kit/tape/tape-01.webp'); aspect-ratio: 800 / 179; }
.tape-b { background-image: url('/kit/tape/tape-02.webp'); aspect-ratio: 800 / 184; }
.polaroid > .tape { width: 124px; margin-left: -62px; top: -14px; transform: rotate(-3deg); }
.color-card > .tape { width: 92px; margin-left: -46px; top: -11px; transform: rotate(2deg); }
.color-card > .tape-b { transform: rotate(-2deg); }

/* hero: a painted sky-blue blob behind "hi!", layered above the glow blobs and below the text */
.hero { isolation: isolate; }
.hero > .blob { z-index: -2; }
.hero::after { content: ''; position: absolute; z-index: -1; left: -58px; top: 6px; width: 150px; aspect-ratio: 800 / 712; background: url('/kit/shapes/blob-sky.webp') center / 100% 100% no-repeat; opacity: 0.85; transform: rotate(-12deg); pointer-events: none; }
@media (max-width: 640px) { .hero::after { width: 112px; } }

/* rainbow stack peeking out from behind the right edge of the photo */
.paper-stack { position: absolute; left: calc(50% + 66px); top: 78px; width: 168px; aspect-ratio: 467 / 607; background: url('/kit/stacks/stack-rainbow.webp') center / 100% 100% no-repeat; transform: rotate(9deg); pointer-events: none; }
/* on wide screens, the photo sits closer to the intro */
@media (min-width: 1000px) { .polaroid-wrap { transform: translateX(-56px); } }

/* scraps tucked behind today's page and the record player */
.side-cards { position: relative; }
.side-cards::before { content: ''; position: absolute; z-index: -1; left: -26px; top: -30px; width: 74px; aspect-ratio: 455 / 747; background: url('/kit/scraps/scrap-blue.webp') center / 100% 100% no-repeat; transform: rotate(-14deg); }
.today-card::before { content: ''; position: absolute; z-index: -1; left: -28px; bottom: -34px; width: 82px; aspect-ratio: 508 / 835; background: url('/kit/scraps/scrap-yellow.webp') center / 100% 100% no-repeat; transform: rotate(18deg); }

/* garden cards: a pink scrap under the first, a sage scrap under the last */
.notes { position: relative; }
.note-card { z-index: 1; }
.notes::before, .notes::after { content: ''; position: absolute; z-index: 0; background: center / 100% 100% no-repeat; }
.notes::before { left: -30px; top: 118px; width: 104px; aspect-ratio: 478 / 484; background-image: url('/kit/scraps/scrap-pink.webp'); transform: rotate(-10deg); }
.notes::after { right: -24px; bottom: -26px; width: 96px; aspect-ratio: 460 / 453; background-image: url('/kit/scraps/scrap-sage.webp'); transform: rotate(11deg); }

/* painted squiggle under "fresh off the coloring table" */
#coloring-h::after { content: ''; display: block; width: 150px; max-width: 60%; aspect-ratio: 800 / 174; margin-top: 12px; opacity: 0.9; background: url('/kit/shapes/squiggle-blue.webp') center / 100% 100% no-repeat; }

/* bottom row: a torn strip as the section break, mint across the shelf, the heart sticker */
/* more breathing room above the bottom row, with the strip centered in the gap */
.scraps { position: relative; padding-top: 132px; }
.scraps::before { content: ''; position: absolute; left: 50%; top: 48px; width: 190px; margin-left: -95px; aspect-ratio: 682 / 170; background: url('/kit/dividers/divider-pink-yellow.webp') center / 100% 100% no-repeat; transform: rotate(-2deg); }
.scrap-shelf::after { content: ''; position: absolute; right: -18px; bottom: -14px; width: 116px; aspect-ratio: 432 / 205; background: url('/kit/dividers/divider-mint.webp') center / 100% 100% no-repeat; transform: rotate(-7deg); pointer-events: none; }
.scrap-made::after { content: ''; position: absolute; right: -26px; bottom: -30px; width: 80px; aspect-ratio: 714 / 800; background: url('/kit/stickers/heart-pink.webp') center / 100% 100% no-repeat; transform: rotate(12deg); pointer-events: none; }

@media (max-width: 640px) {
  .paper-stack { left: calc(50% + 46px); top: 50px; width: 116px; }
  .notes::before, .notes::after, .today-card::before { display: none; }
  .side-cards::before { left: -8px; width: 56px; }
  .scrap-made::after { right: -4px; bottom: -24px; width: 60px; }
  .scraps { padding-top: 104px; }
  .scraps::before { top: 36px; }
}

/* inner pages: a torn strip under each title (color per page) and one sticker each */
.page-head { position: relative; }
.page-head h1::after { content: ''; display: block; width: 170px; margin-top: 14px; background: center / 100% 100% no-repeat; }
[data-page="coloring"] .page-head h1::after { aspect-ratio: 1007 / 275; background-image: url('/kit/dividers/divider-blue.webp'); }
[data-page="contact"] .page-head h1::after { aspect-ratio: 1045 / 238; background-image: url('/kit/dividers/divider-pink.webp'); }
[data-page="guestbook"] .page-head h1::after { aspect-ratio: 682 / 170; background-image: url('/kit/dividers/divider-pink-yellow.webp'); }
[data-page="notfound"] .page-head h1::after { aspect-ratio: 831 / 253; background-image: url('/kit/dividers/divider-blue-double.webp'); }

/* coloring: the painted spiral beside the title */
[data-page="coloring"] .page-head::after { content: ''; position: absolute; right: 6%; top: 46px; width: 92px; aspect-ratio: 800 / 759; background: url('/kit/stickers/spiral-yellow.webp') center / 100% 100% no-repeat; transform: rotate(10deg); }

/* say hi: a glassine envelope behind the form's right edge, the red heart on its corner */
[data-page="contact"] .page-head::after { content: ''; position: absolute; z-index: -1; left: 610px; bottom: -330px; width: 160px; aspect-ratio: 1179 / 1600; background: url('/kit/paper/envelope-glassine.webp') center / 100% 100% no-repeat; transform: rotate(9deg); }
[data-page="contact"] .paper-form::after { content: ''; position: absolute; right: -28px; bottom: -30px; width: 76px; aspect-ratio: 800 / 778; background: url('/kit/stickers/heart-red.webp') center / 100% 100% no-repeat; transform: rotate(10deg); pointer-events: none; }

/* guestbook: a coral scrap behind the form, the yellow ring, tape on every entry */
[data-page="guestbook"] .page-head::after { content: ''; position: absolute; z-index: -1; left: 600px; bottom: -170px; width: 96px; aspect-ratio: 490 / 831; background: url('/kit/scraps/scrap-coral.webp') center / 100% 100% no-repeat; transform: rotate(12deg); }
[data-page="guestbook"] .paper-form::after { content: ''; position: absolute; right: -26px; bottom: -28px; width: 72px; aspect-ratio: 800 / 772; background: url('/kit/stickers/ring-yellow.webp') center / 100% 100% no-repeat; transform: rotate(-8deg); pointer-events: none; }
.gb-log li { position: relative; }
.gb-log li::before { content: ''; position: absolute; left: 50%; top: -10px; width: 80px; margin-left: -40px; aspect-ratio: 800 / 179; background: url('/kit/tape/tape-01.webp') center / 100% 100% no-repeat; transform: rotate(-2deg); }
.gb-log li:nth-child(even)::before { background-image: url('/kit/tape/tape-02.webp'); aspect-ratio: 800 / 184; transform: rotate(2deg); }
.gb-log li.empty::before { display: none; }

/* 404: a painted sky blob behind the start of the title */
[data-page="notfound"] .page-head::before { content: ''; position: absolute; z-index: -1; left: -46px; top: 10px; width: 170px; aspect-ratio: 800 / 712; background: url('/kit/shapes/blob-sky.webp') center / 100% 100% no-repeat; opacity: 0.7; transform: rotate(-6deg); }

@media (max-width: 760px) {
  [data-page="contact"] .page-head::after, [data-page="guestbook"] .page-head::after { display: none; }
  [data-page="coloring"] .page-head::after { width: 64px; top: 0; right: 0; }
  .paper-form::after { right: -6px !important; width: 58px !important; }
}

/* ── on my nightstand (books, from pages/books.md) ── */
.scrap-books { background: #E9E0FF; transform: rotate(-0.8deg); }
.book-list-label { margin: 14px 0 2px; font-family: var(--font-hand-alt); font-weight: 400; font-size: 27px; line-height: 1; color: var(--violet); }
.book-list-label:first-of-type { margin-top: 4px; }
.book-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.book-list li { font-size: 16px; line-height: 1.35; }
.book-list cite { font-family: var(--font-serif); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-style: italic; font-weight: 600; }
.book-by { color: var(--ink-soft); font-size: 14px; }
.book-note { display: block; font-size: 13px; color: var(--ink-mute); }
/* a painted pink strip sticking out of the top, like a bookmark */
.bookmark { position: absolute; right: 30px; top: -30px; width: 30px; aspect-ratio: 296 / 800; background: url('/kit/shapes/strip-pink.webp') center / 100% 100% no-repeat; transform: rotate(4deg); pointer-events: none; }
/* four cards in the bottom row: two by two on wide screens */
@media (min-width: 900px) {
  .scraps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 48px; align-items: start; }
}

/* ── queued up (videos, from pages/queued-up.md) ── */
.scrap-videos { background: #E6F7EE; transform: rotate(1deg); }
@media (min-width: 900px) {
  /* five cards: the changelog runs along the bottom */
  .scraps > .scrap-log { grid-column: 1 / -1; }
}
