/* apps/web/public/style.css
   Tokens copied from art/tools/mockup-kit/kit.py (TOKENS, TYPE scale). Re-copy by hand if the kit changes. */
@font-face { font-family: Fredoka; font-weight: 600; font-display: swap; src: url(/fonts/Fredoka-SemiBold.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 600; font-display: swap; src: url(/fonts/Nunito-SemiBold.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(/fonts/Nunito-ExtraBold.woff2) format("woff2"); }

:root {
  --pen: #2F4A2F; --ground: #FFFFFF; --wall: #EEF2D8; --ink: #1E2230; --muted: #5A6455;
  --ctl: #778270; --hair: #E8EDE6; --accent: #26703D; --danger: #B3382C; --fill-off: #E3E9E0;
  --alex: #FFD15C; --sam: #FF9DB8;
  --font-display: Fredoka, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 600 1.0625rem/1.5 var(--font-body); /* ty-body-lg 17 */
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--pen); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 0.5rem; top: -4rem; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 12px; z-index: 10; }
.skip:focus { top: 0.5rem; }

.wrap { width: min(100% - 2.5rem, var(--measure)); margin-inline: auto; }
.site-head { padding: 1rem 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font: 800 1.375rem/1.2 var(--font-body); color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.brand:hover { color: var(--accent); }
.nav { display: flex; gap: 1.25rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem; color: var(--ink); }
.nav a:hover { color: var(--accent); }

/* hero sits on the wall tint, as in the app */
.hero { background: var(--wall); }
.hero .wrap { display: grid; gap: 1.5rem; padding-block: 2.5rem 3rem; justify-items: center; text-align: center; }
.hero img { width: min(70vw, 260px); }
.hero.is-invite img { width: min(60vw, 200px); }
h1, h2 { text-wrap: balance; margin: 0; }
h1 { font: 600 clamp(2rem, 7vw, 2.375rem)/1.1 var(--font-display); }   /* ty-display 38 */
h2 { font: 800 1.375rem/1.2 var(--font-body); margin-top: 2.5rem; }     /* ty-heading 22 */
h3 { font: 800 1.0625rem/1.3 var(--font-body); margin: 1.5rem 0 0; }
.lede { margin: 0; max-width: 32rem; color: var(--ink); }
.meta { font-size: 0.875rem; font-weight: 600; line-height: 1.3; color: var(--muted); }
.foot { font-size: 0.8125rem; line-height: 1.4; color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.5rem;
  border-radius: 26px; background: var(--accent); color: #fff; font: 800 1.0625rem/1 var(--font-body); text-decoration: none;
}
.btn:hover { background: var(--pen); color: #fff; }
.quiet { margin: 0; }

main { flex: 1; }
.page { padding-block: 2.5rem 3.5rem; }
.page h1 { font-size: 1.75rem; line-height: 1.15; } /* ty-title 28 */
.page p, .page li { max-width: 38rem; }
.page ul { padding-left: 1.25rem; margin: 0.75rem 0; }
.page li { margin: 0.4rem 0; }
.note { background: var(--wall); border-radius: 16px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.note p { margin: 0; }

.points { display: grid; gap: 2rem; padding-block: 3rem; }
.points h2 { margin-top: 0; font-size: 1.1875rem; }
.points p { margin: 0.35rem 0 0; font-weight: 500; }
@media (min-width: 44rem) { .points { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.site-foot { border-top: 1px solid var(--hair); padding: 1.5rem 0 2rem; }
.site-foot .wrap { display: grid; gap: 0.5rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-foot p { margin: 0; }

@media (prefers-reduced-motion: no-preference) { .btn { transition: background-color 0.15s; } }
.page h2.first { margin-top: 0; }
.stored { margin: 1rem 0; }
.stored > div { padding: 0.9rem 0; border-bottom: 1px solid var(--hair); max-width: 38rem; }
.stored dt { font-weight: 800; }
.stored dd { margin: 0.25rem 0 0; font-weight: 500; }
