/* 炉边 Fireside. Rooms: hearth (hero), members, doorframe (big days), recipes (+ kitchen timer), album (table), growth (height marks), rules (chalkboard), footer.
	 Restyle from the tokens below; #RRGGBBAA colors end in their opacity. */

:root {
	--charcoal: #1A1614;       /* hearth, footer */
	--ivory: #F5EBDF;          /* text on dark */
	--ivory-soft: #D3C3B3;
	--plaster: #ECE3D7;        /* light rooms */
	--plaster-deep: #E2D6C7;
	--paper: #FBF7F1;
	--ink: #241D1A;            /* text on light */
	--ink-soft: #5C4F48;
	--terracotta: #B0502D;     /* the accent */
	--terracotta-ink: #943F20; /* accent for small text on light */
	--clay: #923F23;           /* tablecloth */
	--forest: #22372B;
	--forest-2: #2E4A3A;
	--forest-soft: #C5D0C3;
	--slate: #29312E;          /* chalkboard */
	--chalk: #F2EFE8;
	--wood: #7A5236;
	--ember: #EE8446;
	--flame: #FFC772;
	--gold: #E6B46C;           /* small labels on dark */

	--font-display: "Iowan Old Style", ui-serif, "Palatino Linotype", Georgia, "Songti SC", "Noto Serif SC", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", serif;
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
	--font-hand: "Iowan Old Style", ui-serif, Georgia, "Kaiti SC", "STKaiti", "KaiTi", "BiauKai", "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", serif;

	--text-hero: clamp(3.4rem, 1.2rem + 9vw, 8.75rem);
	--text-title: clamp(2.6rem, 1.4rem + 5vw, 5.5rem);
	--text-lede: clamp(1.05rem, .95rem + .45vw, 1.3rem);
	--gutter: clamp(1.25rem, 5vw, 4rem);
	--max-width: 1240px;
	--section-y: clamp(5rem, 3rem + 9vw, 10rem);
	--radius: 6px;
	--arch: 999px 999px var(--radius) var(--radius);
	--shadow: 0 1px 1px #241D1A0F, 0 8px 16px -6px #241D1A29, 0 28px 50px -18px #241D1A52;
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--ease-weight: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--plaster); color: var(--ink); font: 1rem/1.7 var(--font-sans); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
:lang(zh) :is(h1, h2, h3) { letter-spacing: .02em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus, var(--terracotta-ink)); outline-offset: 4px; border-radius: 2px; }
.container { width: min(100% - 2 * var(--gutter), var(--max-width)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--ivory); color: var(--ink); }
.skip-link:focus { top: 1rem; }

.btn { /* --fill (0-1): hover fill, and the stoke button's heat gauge */ position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: .6rem; min-height: 46px; padding: .75rem 1.3rem; border: 1px solid; border-radius: 2px; background: none; cursor: pointer; font: 600 .85rem/1 var(--font-sans); letter-spacing: .08em; transition: scale .2s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: .16; transform: scaleX(var(--fill, 0)); transform-origin: left; transition: transform .6s var(--ease-out); }
.btn:active { scale: .97; }

[data-reveal] { transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), clip-path 1.5s var(--ease-weight); transition-delay: calc(var(--d, 0) * 110ms); }
[data-reveal].is-pending { opacity: 0; transform: translate3d(0, 2.5rem, 0); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section-room, .member-role, .mark-when, .recipe-label, .contents-label, .guestbook__field > span { font: 600 .75rem/1.4 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; }
:lang(zh) :is(.section-room, .member-role, .mark-when, .recipe-label, .contents-label, .contents-room, .guestbook__field > span) { font-size: .875rem; letter-spacing: .1em; }
.section-room { display: flex; align-items: center; gap: .85rem; color: var(--terracotta-ink); }
.section-room::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; }
.section-title { font-size: var(--text-title); }
.section-lede { max-width: 32em; font-size: var(--text-lede); line-height: 1.65; color: var(--ink-soft); }
.section-hint { max-width: 40em; margin-top: clamp(2.5rem, 5vw, 4rem); padding-left: 1rem; border-left: 2px solid var(--terracotta); font-size: .9rem; color: var(--ink-soft); }
@media (min-width: 900px) {
	.section-head { grid-template-columns: 1.1fr 1fr; align-items: end; column-gap: 4rem; }
	.section-head .section-room { grid-column: 1 / -1; }
	.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
	.split .section-head { grid-template-columns: 1fr; position: sticky; top: 14vh; margin-bottom: 0; }
}

/* ---------- Hero: the hearth. script.js sets --heat (0-2.5) when the fire is stoked ---------- */
.hero { --focus: var(--gold); --fx: 50%; --fy: 26%; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 100svh; padding-top: clamp(1rem, 2.5vw, 1.75rem); color: var(--ivory); background: radial-gradient(90% 70% at var(--fx) var(--fy), #3B241A, #241B17 45%, var(--charcoal) 80%); }
.hero-glow { position: absolute; z-index: -1; left: var(--fx); top: var(--fy); width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; background: radial-gradient(closest-side, #EE84464D, #EE844614 40%, transparent 70%); animation: glow-in 2.6s ease-out backwards, breathe 4.5s ease-in-out 2.6s infinite alternate; pointer-events: none; }
.hero-bar { position: relative; z-index: 2; display: flex; }
.nameplate { padding: .45rem .85rem; border-radius: 3px; background: var(--terracotta); color: #FFF5EC; box-shadow: inset 0 0 0 2px var(--terracotta), inset 0 0 0 3px #FFF0E18C, 0 6px 18px -6px #0009; font: 600 .82rem/1.2 var(--font-display); letter-spacing: .14em; }
.hero-grid { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: clamp(1.5rem, 4vw, 3rem); padding-block: clamp(1.25rem, 4vw, 3rem); }
.hero-title { font-size: var(--text-hero); line-height: .95; letter-spacing: -.03em; color: #FBF1E5; text-shadow: 0 0 60px #EE844640; -webkit-hyphens: auto; hyphens: auto; }
:lang(zh) .hero-title { letter-spacing: .02em; line-height: 1.08; }
.hero-intro { max-width: 30em; margin-top: clamp(1.25rem, 3vw, 2rem); font-size: var(--text-lede); line-height: 1.65; color: var(--ivory-soft); }
.hero-since { position: relative; display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: 1.5rem; padding-left: 1.4rem; font-size: .9rem; }
.hero-since::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 12px 2px #EE8446B3; }
.since-days { color: var(--gold); font-variant-numeric: tabular-nums; }
.stoke { --fill: min(1, var(--heat, 0) / 2.4); margin-top: 2rem; color: var(--flame); }
.stoke::before { transition-duration: .15s; }
.stoke svg { width: .75rem; height: 1rem; fill: currentColor; }
.hero-bar, .hearth, .hero-title, .hero-intro, .hero-since, .stoke, .contents { animation: rise 1.2s var(--ease-out) var(--a, 0s) backwards; }
.hearth { --a: .2s; } .hero-title { --a: .35s; animation-name: rise-focus; animation-duration: 1.6s; } .hero-intro { --a: .7s; } .hero-since { --a: .85s; } .stoke { --a: 1s; } .contents { --a: 1.1s; }

.hearth { position: relative; width: min(56vw, 280px); margin-inline: auto; }
.hearth::before { content: ""; position: absolute; z-index: -1; left: -100%; right: -100%; top: -40%; bottom: -40%; background: radial-gradient(closest-side, #FF7A3366, #FF7A331F 50%, transparent); opacity: min(1, var(--heat, 0) * .7); scale: calc(.85 + min(1, var(--heat, 0)) * .2); pointer-events: none; }
.hearth-arch { position: relative; aspect-ratio: 4 / 5; padding: 14% 14% 0; border-radius: 999px 999px 0 0; background: repeating-linear-gradient(transparent 0 17px, #0003 17px 18px), radial-gradient(75% 60% at 50% 100%, #EE844699, transparent 70%), linear-gradient(#2C2420, #3A2A22 55%, #62381F); box-shadow: 0 40px 80px -30px #EE844680; }
.hearth-arch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(60% 45% at 50% 100%, #FFAA5A66, transparent 70%); mix-blend-mode: screen; animation: flicker-light 2.3s steps(1) infinite; pointer-events: none; }
.hearth-opening { position: relative; height: 100%; overflow: hidden; border-radius: 999px 999px 0 0; background: radial-gradient(95% 60% at 50% 100%, #FFB56A, #E2612D 20%, #7C2614 45%, #1E0F0B 75%, #0E0908); box-shadow: inset 0 24px 40px #000A, 0 0 0 2px #FF96501F; }
.hearth-opening::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 55% at 50% 100%, #FFD58A, #FF7A33 35%, transparent 75%); opacity: min(.9, var(--heat, 0) * .45); }
.hearth-fire { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 -4px 14px #FF7A3399); }
.hearth-embers { position: absolute; left: -40%; bottom: 0; width: 180%; height: 185%; pointer-events: none; }
.flames, .flame, .footer-flame { transform-box: fill-box; transform-origin: 50% 100%; }
.flames { transform: scale(calc(1 + var(--heat, 0) * .14), calc(1 + var(--heat, 0) * .3)); }
.flame { fill: url(#lb-flame); animation: flicker 1.6s ease-in-out infinite alternate; }
.flame-2 { animation-duration: 1.25s; animation-delay: -.4s; }
.flame-3 { animation-duration: 1.45s; animation-delay: -.9s; }
.flame-core { fill: url(#lb-core); animation-duration: .9s; }
.log { fill: #2A1A13; stroke: #FF8A3D8C; stroke-width: 1.2; }
.log-front { fill: #3A231A; }
.coal { fill: #FFB15A; animation: coal 2.8s ease-in-out infinite alternate; }
.coal-2 { animation-delay: -1.3s; }
.hearth-stone { height: 14px; margin: 0 -9%; border-radius: 2px; background: linear-gradient(#5A4639, #2E2420); box-shadow: 0 -6px 24px #EE844659, 0 18px 30px -10px #000B; }
.is-asleep *, .is-asleep *::after { animation-play-state: paused !important; }

.contents { position: relative; z-index: 2; border-top: 1px solid #F5EBDF24; }
.contents-label { padding-top: 1.25rem; color: var(--ivory-soft); }
.contents ul { list-style: none; margin: 0; padding: .25rem 0 1.25rem; display: grid; }
.contents a { position: relative; display: flex; align-items: baseline; gap: .75rem; padding: .95rem 0; border-bottom: 1px solid #F5EBDF1A; text-decoration: none; }
.contents-name { font: 1.4rem/1.2 var(--font-display); transition: color .3s; }
.contents a::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted #F5EBDF4D; }
.contents-room { order: 2; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
@media (min-width: 900px) {
	.hero { --fx: 74%; --fy: 64%; }
	.hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
	.hearth { order: 2; width: min(100%, 400px); margin: 0 0 0 auto; }
	.since-days { padding-left: 1rem; border-left: 1px solid #F5EBDF40; }
	.contents-label { display: none; }
	.contents ul { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 0; }
	.contents li + li { border-left: 1px solid #F5EBDF1F; }
	.contents a { flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1.6rem 1.25rem 1.9rem; border: 0; }
	.contents li:first-child a { padding-left: 0; }
	.contents-room { order: -1; }
	.contents a::after { position: absolute; inset: -1px 0 auto; height: 2px; border: 0; background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
	.contents a:focus-visible::after { transform: none; }
}

/* ---------- Members ---------- */
.member--1 { --tone-a: #C9683F; --tone-b: #7F3519; }
.member--2 { --tone-a: #4F7560; --tone-b: #1F3A2C; }
.member--3 { --tone-a: #D49A4E; --tone-b: #87521F; }
.member--4 { --tone-a: #6E6560; --tone-b: #2B2421; }
.members-grid { list-style: none; display: flex; gap: 1.25rem; margin: 0 calc(-1 * var(--gutter)); padding: .5rem var(--gutter) 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.member { position: relative; flex: 0 0 min(78%, 320px); scroll-snap-align: start; }
@media (min-width: 600px) {
	.members-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 23rem)); gap: clamp(1.25rem, 2.4vw, 2.5rem); margin: 0; padding: 0; overflow: visible; }
	.member:nth-child(even) { margin-top: 5rem; }
}
@media (min-width: 1100px) { .members-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--arch); background: var(--tone-b); box-shadow: var(--shadow); }
.portrait-art, .portrait-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.portrait-art { display: grid; place-items: center; background: radial-gradient(70% 50% at 28% 18%, #FFECD666, transparent 70%), radial-gradient(90% 60% at 80% 110%, #0005, transparent 70%), linear-gradient(165deg, var(--tone-a), var(--tone-b)); }
.portrait-art::before { content: ""; position: absolute; inset: 7%; border: 1px solid #FFF0E14D; border-radius: 999px 999px 3px 3px; }
.portrait-mark { font: clamp(5.5rem, 20vw, 8rem)/1 var(--font-display); color: #FFF4E8EB; text-shadow: 0 10px 30px #0004; }
.photo-hint { position: absolute; left: 50%; bottom: .6rem; transform: translateX(-50%); padding: .3rem .6rem; border-radius: 2px; background: #1A16149E; color: var(--ivory); font-size: .7rem; letter-spacing: .06em; white-space: nowrap; }
.portrait .photo-hint { bottom: calc(7% + .6rem); }
.member-role { margin-top: 1.4rem; color: var(--terracotta-ink); }
.member-name { margin: .35rem 0 .6rem; font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem); }
.member-line { font-size: .95rem; color: var(--ink-soft); }
/* script.js adds the button; ::after makes the portrait tappable */
.member-more, .recipe-flip { display: inline-flex; align-items: center; gap: .7rem; padding: .4rem 0; border: 0; background: none; cursor: pointer; font-size: .82rem; font-weight: 600; letter-spacing: .06em; }
.member-more { margin-top: 1.1rem; border-bottom: 1px solid; }
.member-more::after { content: ""; position: absolute; z-index: 1; left: 0; top: 0; width: 100%; aspect-ratio: 4 / 5; }
.plus { position: relative; width: .7rem; height: .7rem; transition: transform .5s var(--ease-out); }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; margin-top: -.75px; background: currentColor; }
.plus::after { transform: rotate(90deg); }
[aria-expanded="true"] > .plus { transform: rotate(135deg); }
/* with JS the story is a panel over the portrait */
.member-story { margin-top: 1rem; padding: 1.25rem; border-radius: var(--radius); background: var(--paper); }
.story-says { margin-bottom: .8rem; font: 1.3rem/1.3 var(--font-display); }
.story-text { font-size: .9rem; line-height: 1.65; }
.js .member-story { position: absolute; top: 0; left: 0; z-index: 2; width: 100%; aspect-ratio: 4 / 5; overflow: auto; margin: 0; display: flex; flex-direction: column; padding: 2.5rem 1.4rem 1.6rem; border-radius: var(--arch); background: var(--tone-b); color: var(--ivory); clip-path: inset(100% 0 0); visibility: hidden; transition: clip-path .8s var(--ease-weight), visibility 0s .8s; scrollbar-width: none; }
.js .member-story > :first-child { margin-top: auto; }
.js .member-story > * { opacity: 0; transform: translateY(1rem); transition: opacity .5s, transform .7s var(--ease-out); }
.js .is-open .member-story { clip-path: inset(0); visibility: visible; transition-delay: 0s; }
.js .is-open .member-story > * { opacity: 1; transform: none; transition-delay: .25s; }

/* ---------- Milestones: a doorframe ---------- */
.milestones { --focus: var(--gold); color: var(--ivory); background: radial-gradient(60% 50% at 85% 10%, #E6B46C1F, transparent 70%), var(--forest); }
.milestones .section-room, .mark-when { color: var(--gold); }
.milestones .section-lede, .mark-text { color: var(--forest-soft); }
.doorframe { --jamb: clamp(2.25rem, 7vw, 3.25rem); --gap: clamp(1.5rem, 5vw, 3rem); position: relative; padding-left: calc(var(--jamb) + var(--gap)); }
.doorframe-jamb { position: absolute; left: 0; top: -1.5rem; bottom: 0; width: var(--jamb); box-shadow: 10px 0 30px #0000004D; background: repeating-linear-gradient(#281C1C80 0 1px, transparent 1px 14px) right / 9px 100% no-repeat, repeating-linear-gradient(#281C1C99 0 1px, transparent 1px 70px) right / 16px 100% no-repeat, linear-gradient(90deg, #CDBFAC, #EEE5D7 28%, #E7DCCB 72%, #C6B6A1); }
.doorframe-fill { position: absolute; left: 32%; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: linear-gradient(var(--terracotta), var(--ember)); transform-origin: top; }
.marks { list-style: none; margin: 0; padding: 0; }
.mark { position: relative; padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.mark:last-child { padding-bottom: 0; }
.mark::before { content: ""; position: absolute; top: 1.6rem; left: calc(-1 * (var(--jamb) + var(--gap))); width: calc(var(--jamb) + var(--gap) - .75rem); height: 2px; background: linear-gradient(90deg, #3A2F29 var(--jamb), var(--gold) 0); transform-origin: left; transition: transform .8s var(--ease-out); }
.is-live .mark:not(.is-marked)::before { transform: scaleX(0); }
.mark--next::before { background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 10px); }
.mark-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; }
.mark-year { font: clamp(2.8rem, 2rem + 3.5vw, 4.75rem)/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.is-live .mark.is-marked .mark-year { animation: pencil .9s var(--ease-out); }
.mark--next .mark-year { color: transparent; -webkit-text-stroke: 1px var(--ivory); }
.mark-title { margin: .9rem 0 .5rem; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.85rem); }
.mark-text { max-width: 32em; }

/* ---------- Recipes ---------- */
.recipes { background: var(--plaster-deep); }
.recipe--1 { --card: var(--terracotta); --card-deep: #7E3418; }
.recipe--2 { --card: var(--forest-2); --card-deep: var(--forest); }
.recipe--3 { --card: #3B322E; --card-deep: var(--charcoal); }
.recipes-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 720px) and (max-width: 1099px) {
	.recipes-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.recipe { grid-column: span 2; }
	.recipe:last-child:nth-child(odd) { grid-column: 2 / span 2; }
}
@media (min-width: 1100px) { .recipes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.recipe { display: grid; perspective: 1800px; }
.recipe-face { position: relative; display: flex; flex-direction: column; padding: 2rem 1.6rem 1.6rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.recipe-front { border-top: 6px solid var(--card); background: var(--paper); }
.recipe-back { --focus: var(--flame); margin-top: .75rem; color: var(--ivory); background: radial-gradient(120% 70% at 100% 0%, #FFFFFF14, transparent 60%), var(--card-deep); }
.recipe-from { font-family: var(--font-hand); font-size: .95rem; color: var(--terracotta-ink); }
:lang(en) :is(.recipe-from, .recipe-tip, figcaption, .rules-list, .board-title, .board-sign-name, .guestbook__name) { font-style: italic; }
.recipe-name { margin: .5rem 0; font-size: clamp(1.6rem, 1.3rem + .9vw, 2rem); }
.recipe-meta { font-size: .82rem; letter-spacing: .04em; color: var(--ink-soft); }
.recipe-label { margin: 1.6rem 0 .4rem; color: var(--terracotta-ink); }
.recipe-back .recipe-label { margin-top: 0; color: var(--flame); }
.ingredients, .steps { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.ingredients li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .45rem 0 .3rem; border-bottom: 1px solid #4262782E; line-height: 1.5; }
.qty { white-space: nowrap; color: var(--ink-soft); }
.steps { counter-reset: step; display: grid; gap: 1rem; margin-top: .4rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: .4rem; font-size: .95rem; line-height: 1.6; }
.steps li::before { content: counter(step); font: 1.75rem/1 var(--font-display); color: var(--flame); }
.recipe-tip { margin: 0 0 1.5rem; padding: .2rem 0 .2rem 1rem; border-left: 2px solid var(--flame); font: 1.05rem/1.55 var(--font-hand); color: #FBE9D4; }
/* script.js adds the button; ::after makes the face tappable */
.recipe-flip { align-self: flex-start; margin-top: auto; color: var(--terracotta-ink); }
.recipe-flip::after { content: ""; position: absolute; inset: 0; }
.recipe-back .recipe-flip { color: var(--flame); }
.arrow { position: relative; width: 1.6rem; height: 1px; background: currentColor; transition: width .5s var(--ease-out); }
.arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border: solid; border-width: 1px 1px 0 0; transform: rotate(45deg); }
.is-flippable .recipe-card { display: grid; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.3, .7, .2, 1), translate .6s var(--ease-out); }
.is-flippable .recipe-face { grid-area: 1 / 1; margin: 0; backface-visibility: hidden; }
.is-flippable .recipe-back, .is-flipped .recipe-card { transform: rotateY(180deg); }

/* kitchen timer: script.js adds .recipe-timer to every recipe with data-minutes and shows the .timer bar */
.recipe-timer { position: relative; z-index: 1; align-self: flex-start; display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; margin-top: 1rem; padding: .4rem .85rem .4rem .7rem; border: 1px solid #943F2066; border-radius: 2px; background: none; color: var(--terracotta-ink); cursor: pointer; font: 600 .8rem/1.2 var(--font-sans); letter-spacing: .05em; transition: background-color .3s, box-shadow .3s; }
.dial { position: relative; flex: none; width: 1rem; height: 1rem; border: 1.5px solid; border-radius: 50%; }
.dial::before { content: ""; position: absolute; left: 50%; bottom: 50%; width: 1.5px; height: 34%; margin-left: -.75px; background: currentColor; transform-origin: bottom; }
.dial::after { content: ""; position: absolute; left: 50%; top: -4px; width: 5px; height: 2px; margin-left: -2.5px; background: currentColor; }
.is-timing .recipe-timer { border-color: var(--ember); box-shadow: 0 0 0 3px #EE844633; }
.is-timing .dial::before { animation: tick 4s steps(8) infinite; }
.timer { --focus: var(--flame); position: fixed; z-index: 90; left: 0; right: 0; bottom: max(.75rem, env(safe-area-inset-bottom)); width: min(100% - 1.5rem, 30rem); margin-inline: auto; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .15rem 1rem; padding: .95rem .9rem .8rem 1.15rem; overflow: hidden; border-radius: var(--radius); color: var(--ivory); background: radial-gradient(70% 160% at 0% 100%, #EE844638, transparent 70%), var(--charcoal); box-shadow: 0 0 0 1px #F5EBDF1F, 0 20px 40px -14px #000000B3; animation: rise .6s var(--ease-out); }
.timer-fuse { /* burns down as the time runs out */ position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--terracotta), var(--ember) 85%, var(--flame)); transition: width .25s linear; }
.timer-fuse::after { content: ""; position: absolute; right: -3px; top: -2px; width: 7px; height: 7px; border-radius: 50%; background: #FFF2CD; box-shadow: 0 0 8px 3px #FFC772B3; }
.timer-dish { grid-column: 1 / -1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 .72rem/1.5 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.timer-time { font: 2.1rem/1 var(--font-display); font-variant-numeric: tabular-nums lining-nums; }
.timer-buttons { display: flex; justify-content: flex-end; gap: .4rem; }
.timer-buttons button { min-width: 44px; min-height: 44px; padding: .35rem .7rem; border: 1px solid #F5EBDF47; border-radius: 2px; background: none; cursor: pointer; font: 600 .78rem/1.15 var(--font-sans); letter-spacing: .04em; white-space: nowrap; }
.timer-stop { color: var(--flame); }
.timer-bell { grid-column: 1 / -1; padding-top: .45rem; border-top: 1px dashed #F5EBDF33; font-size: .8rem; line-height: 1.4; color: var(--ivory-soft); }
.timer.is-paused :is(.timer-time, .timer-fuse) { opacity: .55; }
.timer.is-done { box-shadow: 0 0 0 2px var(--flame), 0 0 46px 8px #EE844699, 0 20px 40px -14px #000000B3; animation: rise .6s var(--ease-out), glow 1.3s ease-in-out infinite alternate; }
.timer.is-done .timer-time { color: var(--flame); }
.timer.is-done .timer-dish { color: var(--ivory); }
.has-timer body { padding-bottom: 7.5rem; }

/* ---------- Album ---------- */
.album { --focus: var(--flame); overflow: hidden; color: var(--ivory); background: repeating-linear-gradient(#FFFFFF09 0 2px, transparent 2px 6px), repeating-linear-gradient(90deg, #0000000D 0 2px, transparent 2px 6px), radial-gradient(80% 60% at 50% 40%, #9C4527, var(--clay) 60%, #7A321D); }
.album .section-room { color: #FFD5B5; }
.album .section-lede, .album-help { color: #F7DDCB; }
.album-table { --pw: 100%; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1.5rem 1rem; }
.polaroid { width: var(--pw); transform: rotate(var(--r, -2deg)); }
.polaroid:nth-child(3n + 2) { --r: 2.5deg; }
.polaroid:nth-child(3n) { --r: -1deg; }
.polaroid figure { margin: 0; padding: .55rem .55rem 0; border-radius: 2px; background: #FFFCF7; box-shadow: 0 1px 2px #0003, 0 14px 28px -10px #280C048C; transition: box-shadow .4s, transform .4s var(--ease-out); }
figcaption { min-height: 3.4em; padding: .55rem .2rem .8rem; text-align: center; font: .95rem/1.35 var(--font-hand); color: #3B302B; }
.photo { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; object-fit: cover; background: #CDBBA6; -webkit-user-drag: none; }
.photo--sea { background: radial-gradient(circle at 72% 30%, #FFE6A8 0 8%, #FFE6A866 9%, transparent 22%), linear-gradient(#F4D9BF 0 50%, #6E9894 50% 61%, #93B6AF 61% 66%, #E7CEA4 66%); }
.photo--cake { background: radial-gradient(circle at 50% 33%, #FFF2C8 0 2.5%, #FFC46B 4%, #FFAA504D 10%, transparent 28%), linear-gradient(#F3E6D6 0 0) 50% 46% / 3% 12% no-repeat, linear-gradient(#F6E3CC 0 0) 50% 53% / 62% 5% no-repeat, linear-gradient(#B4532F, #8E3B1E) 50% 70% / 62% 26% no-repeat, linear-gradient(transparent 82%, #4A2F24 0), #2B1E1A; }
.photo--bike { background: radial-gradient(circle at 26% 30%, #FFF1C8 0 7%, transparent 7.5%), radial-gradient(120% 50% at 20% 100%, #4F7560 60%, transparent 61%), radial-gradient(110% 45% at 90% 100%, #2E4A3A 60%, transparent 61%), linear-gradient(#F5D3A8, #EDB98A); }
.photo--dumplings { --dough: #FFF6E8 80%, transparent 86%; background: radial-gradient(13% 8% at 36% 44%, var(--dough)), radial-gradient(13% 8% at 58% 40%, var(--dough)), radial-gradient(13% 8% at 46% 56%, var(--dough)), radial-gradient(13% 8% at 68% 54%, var(--dough)), radial-gradient(13% 8% at 40% 68%, var(--dough)), radial-gradient(13% 8% at 62% 68%, var(--dough)), radial-gradient(circle at 52% 55%, #2E4A3A 33%, #24392D 34% 36%, transparent 37%), radial-gradient(circle at 85% 16%, #5A2A1A 5%, #F3E6D6 5.5% 7%, transparent 7.5%), #A93A22; }
.photo--tent { background: repeating-linear-gradient(100deg, transparent 0 13px, #FFFFFF21 13px 14px), conic-gradient(from 150deg at 50% 42%, #D9783F 0 30deg, #B4532F 0 60deg, transparent 0), linear-gradient(transparent 80%, #16241C 0), radial-gradient(circle at 78% 20%, #F4EBD0 3%, transparent 3.5%), linear-gradient(#1F3529, #2E4A3A); }
.photo--sunday { background: linear-gradient(115deg, transparent 28%, #FFE4A899 28% 40%, transparent 40% 47%, #FFE4A880 47% 57%, transparent 57%), radial-gradient(circle at 74% 78%, #4F7560 9%, transparent 9.5%), linear-gradient(transparent 82%, #A9876A 0), #CDB9A2; }
.album-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 2.5rem; }
.album-help { flex: 1 1 16rem; font-size: .88rem; }
/* script.js: a table (sets --x --y --r) or a pile */
.album-table:is(.is-table, .is-pile) { display: block; position: relative; isolation: isolate; } /* the photos' z-index stays inside the album */
.album-table.is-table { --pw: clamp(210px, 19vw, 270px); height: clamp(620px, 52vw, 720px); }
.album-table.is-pile { --pw: min(72vw, 300px); height: calc(var(--pw) * 1.2 + 2rem); }
:is(.is-table, .is-pile) .polaroid { position: absolute; left: 0; top: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) rotate(var(--r, 0deg)); transition: transform .9s cubic-bezier(.2, 1.2, .4, 1); cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.is-pile .polaroid { left: 50%; top: 1rem; margin-left: calc(var(--pw) / -2); cursor: pointer; touch-action: manipulation; }
.is-pile ~ * .for-table, .is-table ~ * :is(.for-pile, .album-next) { display: none; }
.polaroid:focus-visible figure, .is-table .polaroid:hover figure { box-shadow: 0 2px 3px #0003, 0 26px 40px -14px #280C0499; }
.polaroid.is-dragging { transition: none; cursor: grabbing; }
.polaroid.is-dragging figure { transform: scale(1.05); box-shadow: 0 4px 6px #0000002E, 0 40px 60px -20px #280C04B3; }
.polaroid.is-tossed { transform: translate3d(calc(var(--x, 0px) + 80vw), calc(var(--y, 0px) - 2rem), 0) rotate(18deg); transition: transform .45s cubic-bezier(.5, 0, .75, 0); }

/* ---------- Growth: height marks penciled on the hallway doorframe ----------
	 script.js draws .frame from the .growers list: --top = cm at the top edge, each mark sets --cm and --lane (of --lanes). */
.growth { --graphite: #5A504B; background: repeating-linear-gradient(90deg, #FFFFFF26 0 2px, transparent 2px 2.4rem), var(--plaster-deep); }
.growth [data-tone="1"] { --tone: #943F20; }
.growth [data-tone="2"] { --tone: #2E4A3A; }
.growth [data-tone="3"] { --tone: #85501D; }
.growth [data-tone="4"] { --tone: #3B322E; }
.growth-chart { display: grid; gap: 1.5rem; }
.growth-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.75rem; }
.growth-who { display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.growth-who button, .growth-units button { min-height: 44px; border: 0; background: none; cursor: pointer; font: 600 .85rem/1.2 var(--font-sans); letter-spacing: .04em; color: var(--ink-soft); }
.growth-who button { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.growth-who button::before { /* a pencil stub in their colour */ content: ""; width: 1.15rem; height: .34rem; background: var(--tone, var(--ink)); clip-path: polygon(0 0, 72% 0, 100% 50%, 72% 100%, 0 100%); }
.growth-who [aria-pressed="true"] { border-color: var(--tone, var(--ink)); color: var(--ink); }
.growth-units { display: flex; border: 1px solid #5C4F4866; border-radius: 2px; }
.growth-units button { padding: .3rem .85rem; }
.growth-units [aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.growth-help { flex-basis: 100%; max-width: 30em; font-size: .88rem; color: var(--ink-soft); }
/* without script.js: a little ledger */
.growth-ledger-note { margin-bottom: 1.25rem; font-size: .85rem; color: var(--ink-soft); }
.growers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 2rem 2.5rem; }
.grower-name { padding-bottom: .5rem; border-bottom: 2px solid var(--tone); font-size: 1.4rem; }
.grower-marks { list-style: none; margin: .4rem 0 0; padding: 0; font: 1rem/1.4 var(--font-hand); }
.grower-marks li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid #5C4F4826; }
.grower-marks li::before { content: attr(data-date); color: var(--ink-soft); }
.grower-marks li::after { content: attr(data-cm); }
/* the doorframe: a dark doorway, the painted casing the marks are drawn on, then the wall */
.frame { --door: 1.75rem; --rule: 3rem; --floor: 1rem; --head: 1.25rem; position: relative; display: grid; grid-template-columns: var(--door) minmax(0, 3fr) minmax(8.75rem, 2fr); height: clamp(30rem, 76svh, 44rem); padding-bottom: var(--floor); overflow: hidden; border-radius: var(--radius); background: repeating-linear-gradient(90deg, #FFFFFF2E 0 2px, transparent 2px 1.1rem), #C9D2C2; box-shadow: var(--shadow); }
.frame::after { /* floorboards */ content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--floor); background: repeating-linear-gradient(90deg, transparent 0 4.5rem, #0000004D 4.5rem calc(4.5rem + 1px)), linear-gradient(#8A5E3E, #5E3D27); }
.frame-door { /* the head casing, its shadow, the jamb, then the room beyond with the fire's glow */ background: linear-gradient(#F3EBDE, #E4D8C6) top / 100% var(--head) no-repeat, linear-gradient(#00000066, transparent) 0 var(--head) / 100% 12px no-repeat, linear-gradient(270deg, #A8967D, #D9CCB8 5px, transparent 6px) right / 6px 100% no-repeat, radial-gradient(160% 45% at 0% 100%, #EE844666, transparent 70%), linear-gradient(90deg, #120D0B, #2A1E19 80%, #47332B); }
.frame-board { /* the casing: seam under the head, jamb edge and bead, grain, back band */ position: relative; z-index: 1; container-type: inline-size; background: linear-gradient(transparent calc(var(--head) - 1px), #241D1A33 0 var(--head), #FFFFFFA6 0 calc(var(--head) + 1px), transparent 0), linear-gradient(90deg, #241D1A4D, transparent 5px 10px, #241D1A29 10px 11px, #FFFFFFB3 11px 12px, transparent 12px), linear-gradient(270deg, #241D1A33 0 1px, #F8F2E8 1px 3px, #EAE0D0 3px 13px, #241D1A2E 13px 14px, transparent 14px), repeating-linear-gradient(90deg, transparent 0 11px, #7A52360F 11px 12px, transparent 12px 27px), linear-gradient(90deg, #E6DBC9, #F4ECDF 8%, #F1E8DA 92%, #E4D8C6); box-shadow: 8px 0 16px -8px #241D1A66; }
.frame-ruler { position: absolute; inset: 0 auto 0 .8rem; width: calc(var(--rule) - .8rem); }
.tick { position: absolute; left: 0; bottom: calc(var(--cm) / var(--top) * 100%); height: 1em; margin-bottom: -.5em; padding-left: .95rem; background: linear-gradient(var(--graphite) 0 0) 0 50% / .45rem 1px no-repeat; font: .62rem/1em var(--font-sans); letter-spacing: .02em; color: var(--graphite); white-space: nowrap; }
.tick--major { z-index: 2; padding-right: 3px; background-color: #F2E9DB; background-size: .75rem 1px; }
.pencil { --col: calc((100cqw - var(--rule)) / var(--lanes, 1)); --x: calc(var(--rule) + var(--col) * var(--lane, 0)); position: absolute; left: 0; bottom: calc(var(--cm) / var(--top) * 100%); display: flex; align-items: center; width: calc(var(--x) + var(--col)); height: 1.5rem; margin-bottom: -.75rem; padding: 0; border: 0; background: none; color: var(--tone); cursor: pointer; pointer-events: none; text-align: left; }
.pencil-line { flex: none; width: calc(var(--x) - .4rem); height: 2px; margin-right: .4rem; border-radius: 2px; background: currentColor; opacity: .75; transform: rotate(var(--tilt, 0deg)); transform-origin: left; transition: transform .8s var(--ease-out), opacity .3s; }
.pencil::before { /* the tap area: its lane, 24px tall, moves with the label */ content: ""; position: absolute; left: var(--x); top: 0; width: var(--col); height: 100%; pointer-events: auto; translate: 0 var(--nudge, 0px); }
.pencil-label { display: flex; align-items: center; gap: .3em; min-width: 0; height: 1.5rem; padding-right: .3rem; white-space: nowrap; font: 1.05rem/1 var(--font-hand); translate: 0 var(--nudge, 0px); transition: opacity .6s; }
.pencil-year { font-size: .8em; }
.pencil-size { display: none; font: 600 .72rem/1 var(--font-sans); letter-spacing: .04em; color: var(--ink-soft); }
.is-solo .pencil { --x: calc(var(--rule) + 2.5rem); --col: calc(100cqw - var(--x)); }
.is-solo .pencil-size { display: inline; }
.is-tight .pencil-year, .is-cramped .pencil-size { display: none; }
.pencil.is-picked .pencil-line { height: 3px; opacity: 1; box-shadow: 0 0 10px #EE8446A6; }
.pencil.is-picked .pencil-label { font-weight: 700; }
.pencil:focus-visible { outline: 0; }
.pencil:focus-visible .pencil-label { outline: 2px solid var(--terracotta-ink); outline-offset: 1px; border-radius: 2px; }
.frame-wall { position: relative; background: linear-gradient(transparent calc(100% - 1.5rem), #F0E7D9 0 calc(100% - 3px), #0000001F 0); }
.frame-leader { position: absolute; left: 0; width: 1.1rem; bottom: calc(var(--cm, -10) / var(--top) * 100%); border-top: 2px dotted var(--tone); transition: bottom .5s var(--ease-out), opacity .4s; }
.frame-note { position: absolute; left: .85rem; right: .5rem; max-width: 14rem; padding: 1rem .75rem .8rem; border-radius: 2px; background: var(--paper); box-shadow: 0 1px 2px #241D1A26, 0 12px 24px -10px #241D1A66; rotate: -1.5deg; transition: top .5s var(--ease-out), opacity .4s; }
.frame-note::before { /* tape */ content: ""; position: absolute; left: 50%; top: -.6rem; width: 3.4rem; height: 1.2rem; margin-left: -1.7rem; background: #EFE3CCD9; box-shadow: 0 1px 2px #241D1A1F; rotate: 4deg; }
.note-who { font: 600 .7rem/1.35 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--tone); }
.note-size { margin: .3rem 0 .15rem; font: clamp(1.45rem, 1.2rem + 1vw, 2rem)/1.05 var(--font-display); }
.note-when { font: .95rem/1.3 var(--font-hand); color: var(--ink-soft); }
.note-grew { margin-top: .55rem; padding-top: .45rem; border-top: 1px dashed #5C4F4866; font-size: .8rem; line-height: 1.4; }
/* script.js: .is-waiting until the frame scrolls into view, .is-fresh while the marks are penciled in, .is-redraw on a new filter */
:is(.is-waiting, .is-redraw) .pencil-line { transform: rotate(var(--tilt, 0deg)) scaleX(0); transition: none; }
.is-waiting :is(.pencil-label, .frame-note, .frame-leader) { opacity: 0; transition: none; }
.is-fresh :is(.pencil-line, .pencil-label) { transition-delay: calc(var(--i, 0) * 70ms); }
.is-fresh :is(.frame-note, .frame-leader) { transition-delay: .9s; }
@media (min-width: 600px) { .frame { --door: 16%; } .frame-note { left: 1.1rem; padding-inline: .95rem; } }
@media (min-width: 900px) {
	.growth-chart { grid-template-columns: minmax(0, 46rem) minmax(14rem, 1fr); align-items: start; column-gap: clamp(3rem, 6vw, 6rem); }
	.growth-controls { grid-column: 2; grid-row: 1; flex-direction: column; align-items: flex-start; gap: 1.5rem; position: sticky; top: 14vh; }
	.growth-who { flex-direction: column; }
	.frame { grid-column: 1; grid-row: 1; }
}

/* ---------- Rules ---------- */
.board { --focus: var(--flame); --frame: clamp(10px, 1.6vw, 16px); position: relative; padding: clamp(1.75rem, 5vw, 3.25rem); color: var(--chalk); border: var(--frame) solid var(--wood); border-image: linear-gradient(135deg, #95694A, #5E3D27 35%, #8A5E3E 60%, #4E321F) 1; background: radial-gradient(40% 30% at 20% 25%, #FFFFFF0F, transparent 70%), radial-gradient(50% 35% at 80% 70%, #FFFFFF0D, transparent 70%), var(--slate); box-shadow: inset 0 0 50px #00000073, 0 40px 60px -30px #241D1A8C; text-shadow: 0 0 1px #F2EFE866; }
.board::after { /* ledge */ content: ""; position: absolute; left: calc(-1 * var(--frame) - 8px); right: calc(-1 * var(--frame) - 8px); bottom: calc(-1 * var(--frame) - 12px); height: 12px; border-radius: 2px; background: linear-gradient(#8A5E3E, #4E321F); box-shadow: 0 10px 18px -6px #00000073; }
.board-title { width: fit-content; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); padding: 0 .3em .35em 0; font: clamp(2.2rem, 1.4rem + 3.2vw, 4.4rem)/1.1 var(--font-hand); background: linear-gradient(100deg, #F2EFE8B3, #F2EFE84D 80%, transparent) left bottom / 100% 2px no-repeat; rotate: -1deg; }
.rules-list { list-style: none; display: grid; gap: 1.35rem; margin: 0; padding: 0; font: clamp(1.15rem, 1rem + .6vw, 1.45rem)/1.5 var(--font-hand); }
:lang(zh) :is(.rules-list, .board-title) { font-weight: 300; letter-spacing: .04em; }
@media (min-width: 900px) { .rules-list { grid-template-columns: 1fr 1fr; gap: 1.6rem 4rem; } }
.rules-list li { position: relative; padding-left: 2.2rem; }
.rules-list li::before { content: ""; position: absolute; left: .2rem; top: .25em; width: .5em; height: .85em; border: solid var(--flame); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }
[data-reveal="chalk"] { clip-path: inset(0 -1rem); transition-delay: calc(var(--d, 0) * 200ms); }
[data-reveal="chalk"].is-pending { opacity: 1; transform: none; clip-path: inset(0 100% 0 -1rem); }
.board-sign { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; margin-top: 2.5rem; font-family: var(--font-hand); }
.board-sign-label { font-size: .9rem; color: #C9CFCB; }
.board-sign-name { padding: 0 .25rem .1rem; border-bottom: 2px solid #F2EFE880; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }

/* ---------- Guestbook: the visitors' book by the front door. A card to write on, and the book itself
	in its green cloth cover. The platform script fills .guestbook__list (__item, __head, __name, __meta, __body) ---------- */
.guestbook { background: var(--plaster-deep); }
.guestbook__desk { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 900px) { .guestbook__desk { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); } }
.guestbook__form { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.25rem 1rem; padding: 1.75rem clamp(1.25rem, 4vw, 1.75rem) 1.6rem; border-top: 6px solid var(--terracotta); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.guestbook__field, .guestbook__note { grid-column: 1 / -1; }
.guestbook__field { display: grid; gap: .55rem; }
.guestbook__field > span { color: var(--terracotta-ink); }
.guestbook__field :is(input, textarea) { width: 100%; min-height: 46px; margin: 0; padding: .55rem .8rem; border: 1px solid #5C4F48A6; border-radius: 2px; background: var(--paper); color: var(--ink); font: 1.0625rem/1.7rem var(--font-hand); transition: border-color .3s; }
/* ruled like the book's pages; the lines scroll with the writing */
.guestbook__field textarea { min-height: calc(5.1rem + 1.1rem + 2px); resize: vertical; background: repeating-linear-gradient(transparent 0 calc(1.7rem - 1px), #4262782E 0 1.7rem) 0 .55rem local, var(--paper); }
.guestbook__field :is(input, textarea):focus { border-color: var(--terracotta-ink); }
/* the send button is the brass-and-enamel nameplate from the hearth */
.guestbook__send { color: #FFF5EC; border-color: var(--terracotta); background: var(--terracotta); box-shadow: inset 0 0 0 2px var(--terracotta), inset 0 0 0 3px #FFF0E18C, 0 6px 14px -8px #241D1A80; }
.guestbook__send:disabled { cursor: progress; opacity: .7; }
.guestbook__status { font-size: .88rem; color: var(--ink-soft); }
.guestbook__status[data-state="ok"] { color: var(--forest-2); font-weight: 600; }
.guestbook__status[data-state="error"] { color: var(--terracotta-ink); font-weight: 600; }
.guestbook__note { font-size: .8rem; line-height: 1.6; color: var(--ink-soft); }
.guestbook__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.guestbook__book { padding: .5rem clamp(1.25rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2rem); border-radius: 3px; background: linear-gradient(90deg, #241D1A1F, transparent 1.25rem) var(--paper); box-shadow: 0 0 0 7px var(--forest-2), 0 0 0 8px #22372B, var(--shadow); }
.guestbook__list { list-style: none; margin: 0; padding: 0; }
.guestbook__item, .guestbook__empty { padding: 1.35rem 0 1.4rem; border-bottom: 1px solid #4262782E; }
.guestbook__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; }
.guestbook__name { font: clamp(1.3rem, 1.2rem + .4vw, 1.55rem)/1.3 var(--font-hand); color: var(--terracotta-ink); }
.guestbook__meta { font-size: .78rem; letter-spacing: .02em; color: var(--ink-soft); }
.guestbook__time { white-space: nowrap; }
.guestbook__body { margin-top: .5rem; font: 1.1rem/1.65 var(--font-hand); white-space: pre-line; overflow-wrap: anywhere; }
.guestbook__empty { font-family: var(--font-hand); font-size: 1.1rem; color: var(--ink-soft); }
.guestbook__more { margin-top: 1.5rem; color: var(--forest-2); }

/* ---------- Footer ---------- */
.site-footer { --focus: var(--gold); padding: clamp(4.5rem, 10vw, 7rem) 0 2.5rem; text-align: center; color: var(--ivory-soft); background: radial-gradient(60% 80% at 50% 120%, #EE84464D, transparent 70%), var(--charcoal); }
.footer-inner { display: grid; justify-items: center; gap: 1.1rem; }
.footer-mark { width: 3rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.footer-flame { fill: var(--ember); stroke: none; animation: flicker 1.4s ease-in-out infinite alternate; }
.footer-line { max-width: 20em; font: clamp(1.5rem, 1.2rem + 1.5vw, 2.4rem)/1.3 var(--font-display); color: var(--ivory); }
:lang(zh) .footer-line { max-width: 11.5em; }
.footer-meta { font-size: .88rem; }
.footer-credit { margin-top: 1.5rem; font-size: .78rem; }

/* ---------- Hover (not on touch screens) ---------- */
@media (hover: hover) {
	.btn:not(.stoke):hover { --fill: 1; }
	.stoke:hover { background: #FFC77214; }
	.contents a:hover .contents-name { color: var(--flame); }
	.contents a:hover::after { transform: none; }
	.member:hover :is(.portrait-art, .portrait-img) { transform: scale(1.06); }
	.recipe-face:hover .arrow { width: 2.4rem; }
	.is-flippable:hover .recipe-card { translate: 0 -6px; }
	.recipe-timer:hover { background: #943F2012; }
	.timer-buttons button:hover { background: #F5EBDF1A; }
	.growth-who button:hover { color: var(--ink); }
	.pencil:hover .pencil-label { text-decoration: underline; text-underline-offset: .2em; }
}

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 1.5rem, 0); } }
@keyframes rise-focus { from { opacity: 0; transform: translate3d(0, 2.5rem, 0); filter: blur(10px); } }
@keyframes glow-in { from { opacity: 0; transform: scale(.7); } }
@keyframes breathe { to { scale: 1.08; } }
@keyframes flicker { 30% { transform: scale(.95, 1.07) skewX(2deg); } 60% { transform: scale(1.04, .94) skewX(-2deg); } to { transform: scale(.98, 1.05) skewX(1deg); opacity: .86; } }
@keyframes flicker-light { 0% { opacity: .8; } 23% { opacity: 1; } 41% { opacity: .65; } 58% { opacity: .95; } 77% { opacity: .75; } }
@keyframes coal { to { opacity: .6; } }
@keyframes pencil { from { color: var(--flame); } }
@keyframes tick { to { transform: rotate(1turn); } }
@keyframes glow { from { box-shadow: 0 0 0 1px #FFC77266, 0 0 18px 0 #EE844659, 0 20px 40px -14px #000000B3; } }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	[data-reveal].is-pending { opacity: 1; transform: none; clip-path: none; }
}

/* flowers and photo games under the photos (platform cheer.js / play.js) */
.cheer-row { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; margin-top: 2.5rem; }
.cheer-row__lede { margin: 0; }
.cheer-row .mc-cheer { margin: 0; }
.play { max-width: 34rem; margin: 3.5rem auto 0; text-align: center; }
.play__title { margin: 0 0 .35rem; font-size: 1.3rem; }
.play__lede { margin: 0 0 1.25rem; opacity: .8; }
.play .mc-play { text-align: left; }

/* quiz and visitor footprints (platform quiz.js / footprints.js) */
.quiz, .footprints { max-width: 36rem; margin: 3.5rem auto 0; }
.quiz__title, .footprints__title { margin: 0 0 1rem; font-size: 1.3rem; text-align: center; }
