/* Round the Year: the home page and the grown-ups page. Warm cream paper, watercolour, hand lettering. */
@font-face { font-family: 'Hand'; src: url('/fonts/patrick-hand.ttf') format('truetype'); font-display: swap; }
html, body { margin: 0; padding: 0; background: #f3e9d4; color: #5a4030; }
body { font-family: 'Hand', 'Chalkboard SE', sans-serif; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
#grain { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 50; mix-blend-mode: multiply; opacity: 0.22; }

/* ---- home ---- */
body.home { height: 100%; overflow: hidden; position: fixed; inset: 0; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#pic { position: absolute; inset: 0; }
#pic .scene { position: absolute; left: 0; top: 0; display: block; }
#pic .thing { position: absolute; }
#pic .thing svg { display: block; width: 100%; height: 100%; }
.front { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 1.5vh); text-align: center; pointer-events: none; }
.name { margin: 0; font-weight: normal; line-height: 1; font-size: clamp(48px, min(11vw, 13vh), 132px); letter-spacing: 0.02em; }
.name .ch { display: inline-block; }
.name .c0 { color: #a4502e; } .name .c1 { color: #2c4a7e; } .name .c2 { color: #5f8a45; } .name .c3 { color: #b8901c; }
.name .w2 .ch { font-size: 0.72em; }
.tag { margin: 0.25em 0 0; font-size: clamp(20px, min(3.6vw, 4.4vh), 40px); color: #6a4a2e; }
a.play {
  position: absolute; z-index: 5; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #3f5e2c;
  --pb: 120px; font-size: calc(var(--pb) * 0.34); line-height: 1;
}
a.play #playpic { display: block; width: var(--pb); height: var(--pb); }
a.play .pp {
  display: block; width: 100%; height: 100%; box-sizing: border-box; padding: 16%;
  background: #eef4dc; border: 4px solid #8fae6a; border-radius: 50% 46% 52% 48% / 48% 52% 46% 54%;
}
a.play .pw { display: block; margin-top: 2px; padding: 0 0.4em; background: rgba(251, 246, 234, 0.85); border-radius: 0.5em; }
a.play:active .pp { transform: scale(0.95); }
a.grown {
  position: absolute; z-index: 5; right: calc(env(safe-area-inset-right, 0px) + 12px); bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  font-size: 20px; color: #5a4030; padding: 6px 12px; background: rgba(251, 246, 234, 0.85); border: 2px solid #c9b48e; border-radius: 1em; text-decoration: none;
}

/* ---- grown-ups ---- */
body.grown-page { min-height: 100%; }
.page {
  box-sizing: border-box; max-width: 760px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) calc(env(safe-area-inset-right, 0px) + 20px) calc(env(safe-area-inset-bottom, 0px) + 40px) calc(env(safe-area-inset-left, 0px) + 20px);
  font-size: 21px; line-height: 1.45;
}
.page h1 { font-weight: normal; font-size: clamp(38px, 7vw, 60px); line-height: 1.05; margin: 0.2em 0 0; text-align: center; }
.page h1 .ch { display: inline-block; }
.page h1 .c0 { color: #a4502e; } .page h1 .c1 { color: #2c4a7e; } .page h1 .c2 { color: #5f8a45; } .page h1 .c3 { color: #b8901c; }
.page .tag { text-align: center; margin-bottom: 0.8em; }
.page h2 { font-weight: normal; font-size: 30px; color: #6a4a2e; margin: 1.3em 0 0.2em; }
.page p { margin: 0.4em 0; }
.page ul { margin: 0.3em 0; padding-left: 1.2em; }
.card { background: rgba(251, 246, 234, 0.8); border: 2.5px solid #d2bc94; border-radius: 22px 26px 20px 24px / 24px 20px 26px 22px; padding: 6px 20px 12px; margin: 14px 0; }
.steps { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 12px 0 4px; padding: 0; list-style: none; }
.steps li { flex: 1 1 200px; max-width: 240px; text-align: center; }
.steps .ipad { display: block; width: 100%; height: auto; }
.steps .n { display: inline-block; width: 1.4em; height: 1.4em; line-height: 1.4em; border-radius: 50%; background: #eef4dc; border: 2px solid #8fae6a; margin-right: 0.3em; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; color: #3f5e2c; text-decoration: none; padding: 6px 14px; background: #eef4dc; border: 2.5px solid #8fae6a; border-radius: 1em; }
.backrow { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
