/* Home · design 2 (picture book). Tokens only. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.9 "M PLUS Rounded 1c", var(--font); letter-spacing: .01em; }
h1, h2, h3 { font-weight: 800; line-height: 1.3; margin: 0; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 32px; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
section { padding: clamp(56px, 9vw, 104px) 0; }
section.tight { padding-top: 0; }

.label { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.label b { font-size: .85rem; font-weight: 800; color: var(--p-pea-ink); background: var(--p-pea); border-radius: 999px; padding: 2px 12px; }
.label span { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.dots { height: 10px; margin: 0 auto; max-width: 1040px; background: radial-gradient(circle, var(--border) 2.5px, transparent 3px) 0 50% / 18px 10px repeat-x; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; font-weight: 800; text-decoration: none; box-shadow: var(--shadow); }
.btn.pea { background: var(--p-pea); color: var(--p-pea-ink); }
.btn.line { background: var(--surface); border: 2px solid var(--border); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* hero: a picture-book page, words only */
.hero { padding-top: 24px; }
.page { position: relative; background: var(--p-butter); border-radius: 40px; padding: clamp(40px, 7vw, 88px); overflow: hidden; }
.page > * { position: relative; }
.page h1 { font-size: clamp(2rem, 5vw, 3.4rem); color: var(--p-butter-ink); max-width: 16ch; }
.page p.lead { margin-top: 18px; font-size: 1.08rem; max-width: 34rem; }
.sun { position: absolute; width: clamp(80px, 14vw, 150px); aspect-ratio: 1; border-radius: 50%; background: var(--p-peach); top: 32px; right: 40px; }
.cloud { position: absolute; width: 160px; height: 46px; border-radius: 999px; background: var(--surface); opacity: .7; bottom: 40px; right: 16%; }
.hill { position: absolute; width: 60%; height: 120px; border-radius: 50% 50% 0 0; background: var(--p-pea); opacity: .55; bottom: -60px; right: -8%; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; justify-content: center; }
.badges span { border: 2px dashed var(--border); border-radius: 999px; padding: 4px 16px; font-size: .88rem; font-weight: 700; color: var(--muted); }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pic { border-radius: 28px; padding: 28px; }
.pic .n { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.pic h3 { margin-top: 10px; }
.pic p { margin-top: 6px; font-size: .95rem; }
.c-pea { background: var(--p-pea); color: var(--p-pea-ink); }
.c-sky { background: var(--p-sky); color: var(--p-sky-ink); }
.c-peach { background: var(--p-peach); color: var(--p-peach-ink); }
.c-butter { background: var(--p-butter); color: var(--p-butter-ink); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.fmt { border: 2px solid var(--border); border-radius: 28px; padding: 30px; display: flex; gap: 22px; align-items: center; background: var(--surface); }
.fmt .peas { display: flex; gap: 4px; flex: none; }
.fmt .peas i { width: 34px; height: 34px; border-radius: 50%; background: var(--pea-2); }
.fmt p { color: var(--muted); font-size: .95rem; margin-top: 4px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { background: var(--surface); border: 2px solid var(--border); border-radius: 24px; padding: 22px; }
.tile .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 12px; }
.tile .ic svg { width: 28px; height: 28px; }
.tile p { color: var(--muted); font-size: .92rem; margin-top: 4px; line-height: 1.7; }
.hearts { margin-top: 28px; text-align: center; font-weight: 700; color: var(--p-pea-ink); }

.letter { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; background: var(--surface); border: 2px solid var(--border); border-radius: 40px; padding: clamp(28px, 5vw, 56px); }
.letter .face { background: var(--p-sky); border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; }
.letter .face img { width: 44%; }
.letter p { margin-top: 14px; }
.letter .sig { margin-top: 18px; font-weight: 800; color: var(--p-pea-ink); }
.creds { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 6px; font-size: .93rem; }
.creds li::before { content: "●"; color: var(--pea); margin-right: 10px; font-size: .7rem; vertical-align: 2px; }
.creds li.todo { color: var(--muted); }
.creds li.todo::before { color: var(--border); }

.bubbles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bubbles > div { display: flex; flex-direction: column; } /* every bubble as tall as the tallest */
.bubble { position: relative; border-radius: 26px; padding: 24px; flex: 1; }
.bubble::after { content: ""; position: absolute; left: 34px; bottom: -14px; border: 14px solid transparent; border-bottom: 0; }
.bubble.c-peach::after { border-top-color: var(--p-peach); }
.bubble.c-sky::after { border-top-color: var(--p-sky); }
.bubble.c-pea::after { border-top-color: var(--p-pea); }
.who { margin: 24px 0 0 20px; font-size: .88rem; font-weight: 700; color: var(--muted); }

table.tt { width: 100%; border-collapse: separate; border-spacing: 0; border: 2px solid var(--border); border-radius: 24px; overflow: hidden; background: var(--surface); }
.tt th, .tt td { padding: 16px 22px; text-align: left; border-bottom: 2px solid var(--border); vertical-align: top; }
.tt tr:last-child th, .tt tr:last-child td { border-bottom: 0; }
.tt th { width: 28%; background: var(--p-butter); color: var(--p-butter-ink); font-weight: 800; font-size: .92rem; }
.qa { margin-top: 40px; display: grid; gap: 14px; }
.qa div { background: var(--surface); border: 2px solid var(--border); border-radius: 22px; padding: 20px 24px; }
.qa h3::before { content: "Q"; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--p-pea); color: var(--p-pea-ink); margin-right: 10px; font-size: .9rem; }
.qa p { color: var(--muted); margin-top: 6px; padding-left: 38px; }

.contact .page { background: var(--p-pea); text-align: center; }
.contact .page h2 { color: var(--p-pea-ink); margin: 10px 0 6px; }
.contact .page img { width: 84px; }
.contact .actions { justify-content: center; }
.contact .btn.pea { background: var(--surface); }
footer.site { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px 0 100px; }

.bar { display: none; }
@media (max-width: 820px) {
  .letter { grid-template-columns: 1fr; }
  .cards3, .two, .bubbles { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .letter .face { max-width: 200px; }
  .tt th { width: 36%; }
  .bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9; }
}
