/* The Happy Life — "sunlit scrapbook journal". Buttercup + soft violet (complementary), white pages, Karla + Caveat. */

@font-face { font-family: "Karla"; src: url("../fonts/karla.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --sun: #F7C948;          /* buttercup */
  --sun-soft: #FBE29A;
  --violet: #5B4B8A;       /* soft violet (complement) — 7.4:1 on white */
  --violet-ink: #4A3C75;   /* violet for text on buttercup — 6.1:1 */
  --violet-deep: #3B3058;
  --violet-tint: #F3F0F9;
  --grey: #6B6570;         /* warm grey — 5.6:1 on white */
  --ink: #2E2A33;
  --line: #E4DEEC;
  --white: #FFFFFF;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --body: "Karla", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(46, 42, 51, .10), 0 12px 26px -12px rgba(46, 42, 51, .38);
  --shadow-lift: 0 2px 4px rgba(46, 42, 51, .10), 0 18px 34px -14px rgba(46, 42, 51, .42);
  --torn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 24' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0 24V10l38 5 40-8 44 9 32-6 50 7 36-9 42 8 40-4 38 6 46-9 32 7 50-5 40 8 38-7 44 6 34-8 50 9 36-6 44 7 40-9 32 8 48-5 38 7 44-8 36 6 50-7 40 9 34-6 46 8 30-5V24z'/%3E%3C/svg%3E");
  --torn-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 24' preserveAspectRatio='none'%3E%3Cpath fill='%233B3058' d='M0 24V10l38 5 40-8 44 9 32-6 50 7 36-9 42 8 40-4 38 6 46-9 32 7 50-5 40 8 38-7 44 6 34-8 50 9 36-6 44 7 40-9 32 8 48-5 38 7 44-8 36 6 50-7 40 9 34-6 46 8 30-5V24z'/%3E%3C/svg%3E");
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath fill='none' stroke='%23F7C948' stroke-width='3' stroke-linecap='round' d='M2 7c10-5 18 4 28 0s18-5 28 0 18 4 28 0 18-5 30 0'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); overflow-x: clip; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--sun); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
code { font-size: .92em; background: var(--violet-tint); padding: 1px 5px; border-radius: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--violet); color: #fff; padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.muted { color: var(--grey); }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.wrap-narrow { max-width: 720px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.wrap-mid { max-width: 880px; }

/* ---------- doodles */
.doodle { color: var(--violet); --doodle-fill: rgba(247, 201, 72, .6); flex: none; }
.kicker-sun { width: 34px; height: 34px; }
.h-doodle { width: 42px; height: 42px; }
.li-doodle { width: 22px; height: 22px; vertical-align: -5px; margin-right: 8px; }
.arrow { width: 38px; height: 19px; vertical-align: middle; margin-left: 8px; transition: transform .2s; }
.big-doodle { width: 210px; height: 210px; transform: rotate(-6deg); }
.banner-doodle { width: 24px; height: 24px; vertical-align: -6px; margin-right: 8px; color: var(--violet-ink); --doodle-fill: #fff; }

/* ---------- header */
.site-head { background: var(--white); position: relative; z-index: 5; }
.site-head::before { content: ""; display: block; height: 8px; background: repeating-linear-gradient(-45deg, var(--sun) 0 10px, var(--sun-soft) 10px 20px); }
.head-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 700 2.2rem/1 var(--hand); color: var(--violet); text-decoration: none; padding: 4px 0; }
.brand-sun { width: 46px; height: 46px; --doodle-fill: var(--sun); transition: transform .6s ease; }
.brand:hover .brand-sun, .brand:focus-visible .brand-sun { transform: rotate(30deg); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 22px; }
.main-nav a { display: inline-block; padding: 8px 0 4px; color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 3px solid transparent; }
.main-nav a:hover { color: var(--violet); border-bottom-color: var(--sun-soft); }
.main-nav a[aria-current="page"] { color: var(--violet); border-bottom-color: var(--sun); }

/* ---------- shared bits */
.kicker { display: flex; align-items: center; gap: 10px; font: 700 1.75rem/1.1 var(--hand); color: var(--violet); margin: 0 0 8px; }
.hand-h { display: flex; align-items: center; gap: 12px; font: 700 clamp(2rem, 4.6vw, 2.75rem)/1.05 var(--hand); color: var(--violet); margin: 0 0 24px; }
.hand-h.small { font-size: 1.85rem; margin-bottom: 14px; }
.hand-h a { color: inherit; text-decoration: none; }
.hand-title { font: 700 clamp(2.9rem, 8vw, 4.6rem)/.95 var(--hand); color: var(--violet); margin: 0 0 12px; }
.hand-link { font: 700 1.75rem/1.2 var(--hand); color: var(--violet); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.hand-link:hover .arrow { transform: translateX(5px); }
.diary-date { font: 700 1.6rem/1.2 var(--hand); color: var(--violet); margin: 0 0 10px; }
.diary-date a { color: inherit; }
.label { margin: 0 0 10px; }
.label a { display: inline-block; padding: 3px 14px 2px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); text-decoration: none;
  background: repeating-linear-gradient(-45deg, rgba(247, 201, 72, .9) 0 6px, rgba(251, 226, 154, .95) 6px 12px); transform: rotate(-2deg);
  clip-path: polygon(3% 0, 97% 0, 100% 20%, 97% 45%, 100% 70%, 97% 100%, 3% 100%, 0 75%, 3% 50%, 0 25%); }
.label a:hover { background: var(--sun); }
.empty-note { font: 700 1.6rem/1.3 var(--hand); color: var(--grey); }
.band-intro { color: var(--grey); margin-top: -12px; margin-bottom: 30px; max-width: 60ch; }
.more-link { margin: 26px 0 0; font-weight: 700; }

/* ---------- polaroids + washi tape */
.polaroid { position: relative; margin: 0; background: var(--white); padding: 10px 10px 12px; box-shadow: var(--shadow); transform: rotate(var(--tilt, 0deg)); transition: transform .25s ease, box-shadow .25s ease; }
.polaroid .pol-photo { display: block; position: relative; background: var(--violet-tint); }
.polaroid img { display: block; width: 100%; height: auto; }
.polaroid.crop img { aspect-ratio: 1 / 1; object-fit: cover; }
.polaroid.crop-wide img { aspect-ratio: 4 / 3; object-fit: cover; }
.polaroid figcaption { padding: 9px 2px 0; text-align: center; line-height: 1.3; }
.pol-cap { display: block; font: 700 1.4rem/1.15 var(--hand); color: var(--ink); }
.pol-cap a { color: inherit; text-decoration-color: var(--sun); }
.pol-note, .pol-from { display: block; font-size: .8rem; color: var(--grey); margin-top: 3px; }
.pol-from a { color: var(--violet); }
.photo-credit { display: block; font-size: .72rem; line-height: 1.35; color: var(--grey); margin-top: 3px; opacity: 1; }
.photo-credit a { color: inherit; text-decoration-thickness: 1px; }
a.pol-photo:hover + figcaption .pol-cap, .polaroid:hover { --tilt: 0deg; }
.polaroid:hover { box-shadow: var(--shadow-lift); }
.tilt-0 { --tilt: -2deg; } .tilt-1 { --tilt: 1.6deg; } .tilt-2 { --tilt: -.8deg; } .tilt-3 { --tilt: 2.4deg; }
.tape { position: absolute; top: -13px; left: 50%; width: 104px; height: 27px; transform: translateX(-50%) rotate(-4deg); z-index: 2; pointer-events: none;
  box-shadow: 0 1px 1px rgba(46, 42, 51, .06);
  clip-path: polygon(2% 0, 98% 0, 100% 15%, 97% 32%, 100% 50%, 97% 68%, 100% 85%, 98% 100%, 2% 100%, 0 85%, 3% 68%, 0 50%, 3% 32%, 0 15%); }
.tape-sun { background: repeating-linear-gradient(-45deg, rgba(247, 201, 72, .88) 0 7px, rgba(251, 226, 154, .9) 7px 14px); }
.tape-violet { background: repeating-linear-gradient(90deg, rgba(91, 75, 138, .5) 0 6px, rgba(91, 75, 138, .34) 6px 12px); transform: translateX(-50%) rotate(3deg); }
.tape-dots { background-color: rgba(255, 255, 255, .78); background-image: radial-gradient(rgba(91, 75, 138, .6) 2px, transparent 2.6px); background-size: 10px 10px; transform: translateX(-50%) rotate(-2deg); outline: 1px solid rgba(91, 75, 138, .12); }

/* ---------- home: hero */
.hero { position: relative; background: var(--sun); padding: 44px 0 72px; overflow: clip; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 24px; background: var(--torn) bottom / 100% 100% no-repeat; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 40px; align-items: center; }
.hero .kicker { color: var(--violet-ink); }
.kicker-sun { --doodle-fill: #fff; }
.hero .kicker-sun { color: var(--violet-ink); }
.hero h1 { font-weight: 800; font-size: clamp(2.5rem, 6.2vw, 4.3rem); line-height: 1.02; letter-spacing: -.02em; color: var(--ink); margin: 0 0 18px; max-width: 13ch; }
.hero-lead { font-size: 1.2rem; line-height: 1.6; max-width: 36ch; }
.hero .hand-link { color: var(--violet-ink); text-decoration-color: #fff; }
.hero .arrow { color: var(--violet-ink); }
.hero-latest { margin-top: 18px; font-size: .95rem; }
.hero-latest a { color: var(--violet-ink); font-weight: 700; text-decoration-color: rgba(74, 60, 117, .4); }
.hero-collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 5%; align-items: start; padding: 14px 2% 0; }
.hc1 { grid-column: 1; grid-row: 1; --tilt: -4deg; z-index: 2; }
.hc2 { grid-column: 2; grid-row: 1; margin-top: 54px; --tilt: 3.5deg; z-index: 3; }
.hc3 { grid-column: 1 / -1; grid-row: 2; width: 47%; justify-self: center; margin: -64px 0 0 6%; --tilt: -1.5deg; z-index: 1; }
.hc3 .tape { top: auto; left: auto; bottom: -4px; right: -30px; width: 86px; transform: rotate(-38deg); }
.hero-collage.n1 { grid-template-columns: minmax(0, 1fr); }
.hero-collage.n1 .hc1 { width: min(80%, 420px); justify-self: center; }
.hero-collage.n2 .hc2 { margin-top: 70px; }

/* ---------- home: latest */
.latest { padding-top: 56px; padding-bottom: 46px; }
.spread { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 52px; align-items: center; margin: 10px 0 36px; }
.spread.no-photo { grid-template-columns: 1fr; max-width: 760px; }
.spread-photo { --tilt: -2deg; }
.spread-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
.spread-title a, .entry-title a { color: var(--ink); text-decoration: none; background: linear-gradient(transparent 64%, rgba(247, 201, 72, .55) 64%) no-repeat 0 0 / 0 100%; transition: background-size .3s ease; }
.spread-title a:hover, .entry-title a:hover, .spread-title a:focus-visible, .entry-title a:focus-visible { background-size: 100% 100%; }

/* ---------- entries (diary listing) */
.entries { display: grid; gap: 0; }
.entry { display: grid; grid-template-columns: 70px 180px minmax(0, 1fr); grid-template-areas: "date photo text"; gap: 8px 26px; align-items: start; padding: 26px 0; border-bottom: 2px dotted var(--line); }
.entry:first-child { padding-top: 6px; }
.entry.no-photo { grid-template-columns: 70px minmax(0, 1fr); grid-template-areas: "date text"; }
.entry-date { grid-area: date; margin: 0; text-align: center; line-height: 1; }
.entry-date .d { display: block; font: 700 3rem/.9 var(--hand); color: var(--violet); }
.entry-date .my { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); margin-top: 4px; }
.entry-photo { grid-area: photo; padding: 7px 7px 9px; }
.entry-photo .photo-credit { font-size: .66rem; }
.entry-text { grid-area: text; }
.entry-title { font-size: 1.45rem; font-weight: 800; margin: 0 0 8px; letter-spacing: -.005em; }
.entry-excerpt { margin: 0 0 6px; }
.entry-meta { font-size: .85rem; color: var(--grey); margin: 0; }
.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 2px dotted var(--line); }
.two-up .entry, .two-up .entry.no-photo { grid-template-columns: 120px minmax(0, 1fr); grid-template-areas: "photo date" "photo text"; padding: 24px 0; }
.two-up .entry.no-photo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "date" "text"; }
.two-up .entry-date { text-align: left; display: flex; align-items: baseline; gap: 8px; }
.two-up .entry-date .d { display: inline; font-size: 2rem; }
.two-up .entry-title { font-size: 1.2rem; }
.two-up .entry-excerpt { font-size: .97rem; }

/* ---------- album bands (masonry) */
.album-band, .post-album { position: relative; background-color: var(--violet-tint); background-image: radial-gradient(rgba(91, 75, 138, .13) 1.2px, transparent 1.6px); background-size: 20px 20px; padding: 64px 0 56px; overflow: clip; }
.album { columns: 3 260px; column-gap: 30px; }
.album .polaroid { break-inside: avoid; display: inline-block; vertical-align: top; width: 100%; margin: 14px 0 26px; }

/* ---------- home: categories */
.dip { padding-top: 60px; padding-bottom: 30px; }
.cat-board { list-style: none; margin: 0; padding: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 34px 30px; }
.cat-board li { transform: rotate(var(--tilt, 0deg)); }
.cat-board .polaroid { transform: none; }
.cat-board li:hover { --tilt: 0deg; }
.doodle-card .pol-photo { aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--violet-tint); }
.card-doodle { width: 58%; height: 58%; }

/* ---------- home: family note + months */
.home-foot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 44px; padding-top: 40px; padding-bottom: 76px; align-items: start; }
.note-card { position: relative; background-color: var(--white); padding: 30px 28px 18px 62px; box-shadow: var(--shadow); transform: rotate(-.8deg);
  background-image: linear-gradient(90deg, transparent 42px, rgba(247, 201, 72, .95) 42px, rgba(247, 201, 72, .95) 44px, transparent 44px), linear-gradient(transparent 31px, var(--line) 31px, var(--line) 32px);
  background-size: 100% 100%, 100% 32px; background-position: 0 0, 0 14px; }
.note-card p { line-height: 32px; margin-bottom: 0; }
.note-card p + p { margin-top: 8px; }
.note-card .hand-h { margin-bottom: 8px; }
.months-card { padding-top: 26px; }
.month-list { list-style: none; margin: 0 0 14px; padding: 0; columns: 2 150px; column-gap: 24px; }
.month-list li { padding: 3px 0; break-inside: avoid; }
.month-list a { font: 700 1.35rem/1.2 var(--hand); text-decoration-color: var(--sun); }
.month-list span { font-size: .8rem; color: var(--grey); }

/* ---------- page heads + listings */
.page-head { padding-top: 46px; padding-bottom: 20px; }
.page-lead { font-size: 1.2rem; max-width: 50ch; }
.cat-head.has-photo { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; align-items: center; }
.head-pol { --tilt: 3deg; }
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 60px; padding-bottom: 70px; align-items: start; }
.listing > .wrap:last-child { padding-bottom: 70px; }
.side { padding-top: 6px; }
.side-box { margin-bottom: 34px; }
.side-cats { list-style: none; margin: 0; padding: 0; }
.side-cats li { padding: 5px 0; border-bottom: 1px dotted var(--line); display: flex; justify-content: space-between; align-items: center; }
.side-cats a { color: var(--ink); text-decoration: none; font-weight: 700; }
.side-cats a:hover, .side-cats a[aria-current] { color: var(--violet); text-decoration: underline; text-decoration-color: var(--sun); }
.side-cats .n { font-size: .82rem; color: var(--grey); }
.search-form { display: flex; gap: 8px; max-width: 560px; margin: 16px 0 6px; }
.search-form input { flex: 1; min-width: 0; font: inherit; padding: 11px 14px; border: 2px solid var(--violet); border-radius: 3px; background: var(--white); color: var(--ink); }
.search-form button, .btn-sun { font: 700 1rem var(--body); padding: 11px 18px; border: 0; border-radius: 3px; background: var(--violet); color: #fff; cursor: pointer; }
.search-form button:hover { background: var(--violet-deep); }
.search-form.small { margin: 0; }
.search-form.small input { padding: 9px 10px; }
.search-form.small button { padding: 9px 12px; }
.result-count { font-weight: 700; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; }
.pager a { font: 700 1.6rem var(--hand); }
.pager-older::before { content: "← "; }
.pager-newer::after { content: " →"; }
.pager-now { color: var(--grey); font-size: .9rem; }
.month-group { margin-bottom: 30px; }

/* ---------- archive calendar */
.year { margin: 10px 0 46px; }
.year-h { font: 700 3.2rem/1 var(--hand); color: var(--violet); display: flex; align-items: baseline; gap: 16px; }
.year-h a { color: inherit; text-decoration: none; }
.year-h span { font: 700 .95rem var(--body); color: var(--grey); }
.calendar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px; }
.calendar li { position: relative; background: var(--white); box-shadow: var(--shadow); border-top: 12px solid var(--violet); min-height: 96px; }
.calendar li::before { content: ""; position: absolute; top: -18px; left: 22%; right: 22%; height: 12px; background: radial-gradient(circle, var(--white) 3px, transparent 3.5px) 0 50% / 33.3% 100% repeat-x; }
.calendar a, .calendar li.none { display: block; padding: 12px 14px; height: 100%; text-decoration: none; }
.calendar .cal-m { display: block; font: 700 1.5rem/1.1 var(--hand); color: var(--ink); }
.calendar .cal-n { display: block; font-size: .85rem; color: var(--grey); margin-top: 4px; }
.calendar li.has { border-top-color: var(--sun); }
.calendar li.has:hover { transform: rotate(-1.5deg); box-shadow: var(--shadow-lift); }
.calendar li.has .cal-m { color: var(--violet); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; }
.calendar li.none { background: #FBFAFC; box-shadow: none; outline: 1px solid var(--line); border-top-color: var(--line); }
.calendar li.none .cal-m { color: var(--grey); }

/* ---------- post */
.mode-banner { margin: 0; background: var(--sun); color: var(--ink); text-align: center; padding: 11px 16px; font-weight: 600; }
.mode-banner a { color: var(--violet-ink); }
.post-head { padding-top: 48px; }
.post-head h1 { font-weight: 800; font-size: clamp(2.1rem, 5.4vw, 3.3rem); letter-spacing: -.02em; line-height: 1.06; margin-bottom: 14px; }
.photo-count { font-size: 1.3rem; }
.post-cover { max-width: 980px; margin: 30px auto 46px; padding: 0 16px; display: flex; justify-content: center; }
.cover-pol { --tilt: -1deg; padding: 12px 12px 14px; max-width: 100%; }
.cover-pol img { width: auto; max-width: 100%; max-height: 74vh; }
.prose { font-size: 1.13rem; line-height: 1.75; padding-bottom: 20px; }
.prose h2 { font-size: 1.6rem; font-weight: 800; margin: 1.9em 0 .7em; }
.prose h2, .prose h3 { letter-spacing: -.01em; }
.prose h2::after { content: ""; display: block; width: 110px; height: 11px; margin-top: 6px; background: var(--squiggle) left center / contain no-repeat; }
.prose h3 { font-size: 1.3rem; font-weight: 800; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin: .3em 0; padding-left: .2em; }
.prose li::marker { color: var(--violet); font-weight: 800; }
.prose blockquote { position: relative; margin: 2em 0; padding: 20px 24px 6px 28px; background: var(--violet-tint); border-left: 5px solid var(--sun); font-style: italic; }
.prose hr { border: 0; height: 14px; margin: 2.4em auto; background: var(--squiggle) center / 120px 12px no-repeat; }
.prose .inline-photo { max-width: 560px; margin: 2.2em auto; }
.prose strong { font-weight: 800; }
.post-album { margin-top: 30px; }
.post-foot { padding-top: 34px; padding-bottom: 70px; }
.post-foot > p { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.foot-sun { width: 26px; height: 26px; }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 26px; }
.pn { display: block; background: var(--white); box-shadow: var(--shadow); padding: 16px 20px; text-decoration: none; color: var(--ink); transform: rotate(-1deg); }
.pn-newer { grid-column: 2; text-align: right; transform: rotate(1deg); }
.pn:hover { box-shadow: var(--shadow-lift); transform: none; }
.pn-k { display: block; font: 700 1.4rem var(--hand); color: var(--violet); }
.pn-t { display: block; font-weight: 800; }

/* ---------- simple pages */
.page-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "head photo" "body photo"; gap: 0 56px; padding-bottom: 70px; align-items: start; }
.page-wrap > .page-head { grid-area: head; }
.page-wrap > .page-photo { grid-area: photo; padding-top: 60px; }
.page-wrap > .prose { grid-area: body; max-width: 680px; }
.page-photo.doodle-only { display: flex; justify-content: center; }
.big-doodle { --doodle-fill: rgba(247, 201, 72, .7); }
.contact-email { margin: 6px 0 22px; }
.contact-email .hand-link { font-size: 2.1rem; word-break: break-word; }
.credit-board { list-style: none; padding: 20px 0 70px; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 40px 34px; }

/* ---------- footer */
.site-foot { position: relative; background: var(--violet-deep); color: #EEEAF6; margin-top: 30px; padding: 56px 0 24px; }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: -23px; height: 24px; background: var(--torn-up) top / 100% 100% no-repeat; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 34px 48px; }
.site-foot a { color: #fff; text-decoration-color: var(--sun); }
.site-foot a:hover { color: var(--sun); }
.site-foot :focus-visible { outline-color: var(--sun); }
.foot-house { width: 64px; height: 64px; color: var(--sun); --doodle-fill: rgba(247, 201, 72, .22); }
.foot-name { font: 700 2.3rem/1 var(--hand); color: var(--sun); margin: 6px 0 8px; }
.foot-h { font: 700 1.6rem/1 var(--hand); color: var(--sun); margin: 0 0 12px; }
.site-foot ul { list-style: none; margin: 0 0 16px; padding: 0; }
.site-foot li { padding: 3px 0; }
.foot-note { font-size: .88rem; color: #D9D3E6; }
.copyright { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .88rem; color: #D9D3E6; }

/* ---------- lightbox */
.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: transparent; color: #fff; }
.lb::backdrop { background: rgba(31, 25, 44, .92); }
.lb-stage { height: 100%; display: flex; align-items: center; justify-content: center; padding: 64px 76px 28px; }
.lb figure { margin: 0; background: var(--white); color: var(--ink); padding: 12px 12px 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); max-width: 100%; transform: rotate(-.6deg); }
.lb img { display: block; width: auto; height: auto; max-width: calc(100vw - 180px); max-height: calc(100vh - 190px); margin: 0 auto; }
.lb figcaption { text-align: center; padding-top: 9px; max-width: 70ch; margin: 0 auto; }
.lb button { position: absolute; width: 50px; height: 50px; border: 0; border-radius: 50%; background: var(--white); color: var(--violet); font: 700 1.7rem/1 var(--body); cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.lb button:hover { background: var(--sun); color: var(--ink); }
.lb button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.lb-close { top: 12px; right: 14px; }
.lb-prev { left: 14px; top: 50%; margin-top: -25px; }
.lb-next { right: 14px; top: 50%; margin-top: -25px; }
.lb-count { position: absolute; top: 18px; left: 20px; margin: 0; font: 700 1.5rem var(--hand); color: var(--sun); }
.lb[data-single] .lb-prev, .lb[data-single] .lb-next, .lb[data-single] .lb-count { display: none; }

/* ---------- responsive */
@media (max-width: 1000px) {
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .with-side { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .side { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 34px; border-top: 2px dotted var(--line); padding-top: 26px; }
}
@media (max-width: 880px) {
  .hero { padding-top: 30px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-collage { max-width: 560px; width: 100%; margin: 0 auto; }
  .spread { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .two-up { grid-template-columns: minmax(0, 1fr); }
  .home-foot { grid-template-columns: minmax(0, 1fr); }
  .page-wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "photo" "body"; }
  .page-wrap > .page-photo { padding: 6px 0 26px; max-width: 360px; }
  .page-photo.doodle-only { display: none; }
  .cat-head.has-photo { grid-template-columns: minmax(0, 1fr) 150px; gap: 20px; }
}
@media (max-width: 620px) {
  body { font-size: 1.03rem; }
  .head-in { justify-content: flex-start; }
  .brand { font-size: 2rem; }
  .main-nav ul { gap: 0 13px; }
  .main-nav a { padding: 6px 0 3px; font-size: .93rem; }
  .entry, .two-up .entry { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "photo date" "photo text"; gap: 4px 18px; }
  .entry.no-photo, .two-up .entry.no-photo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "date" "text"; }
  .entry-date { text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .entry-date .d { display: inline; font-size: 1.9rem; }
  .entry-photo { padding: 5px 5px 7px; }
  .entry-title { font-size: 1.2rem; }
  .entry-excerpt { font-size: .97rem; }
  .album { columns: 2 140px; column-gap: 16px; }
  .album .polaroid { padding: 6px 6px 8px; margin-bottom: 22px; }
  .album .pol-cap { font-size: 1.15rem; }
  .cat-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .cat-board .polaroid { padding: 7px 7px 9px; }
  .note-card { padding: 26px 18px 14px 50px; background-image: linear-gradient(90deg, transparent 32px, rgba(247, 201, 72, .95) 32px, rgba(247, 201, 72, .95) 34px, transparent 34px), linear-gradient(transparent 31px, var(--line) 31px, var(--line) 32px); }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .pn-newer { grid-column: 1; }
  .cat-head.has-photo { grid-template-columns: minmax(0, 1fr); }
  .head-pol { max-width: 200px; }
  .lb-stage { padding: 60px 12px 86px; }
  .lb img { max-width: calc(100vw - 48px); max-height: calc(100vh - 230px); }
  .lb-prev, .lb-next { top: auto; bottom: 18px; margin-top: 0; }
  .lb-prev { left: calc(50% - 62px); }
  .lb-next { right: calc(50% - 62px); }
  .calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .search-form { flex-wrap: wrap; }
  .search-form input { flex-basis: 100%; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 2.3rem; }
  .cat-board { gap: 22px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-head::before, .main-nav, .site-foot::before, .lb, .tape { display: none; }
  .polaroid { box-shadow: none; transform: none; border: 1px solid #ccc; }
}
