/* Colors are the app's "stone" style (mobile/src/theme/palette.ts), radii its 10 / 16 / 24 scale. */
@font-face { font-family: Onest; font-weight: 400; font-display: swap; src: url(/assets/fonts/Onest_400Regular.ttf) format("truetype"); }
@font-face { font-family: Onest; font-weight: 600; font-display: swap; src: url(/assets/fonts/Onest_600SemiBold.ttf) format("truetype"); }
@font-face { font-family: Onest; font-weight: 800; font-display: swap; src: url(/assets/fonts/Onest_800ExtraBold.ttf) format("truetype"); }

:root {
  color-scheme: light dark;
  --bg: #F5F3EF; --surface: #FFFFFF; --ink: #18150F; --muted: #6E675F; --line: #E2DCD3; --link: #B33C0B; --accent: #C2410C;
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121010; --surface: #1C1917; --ink: #F4EFE8; --muted: #ADA59B; --line: #36312C; --link: #F59061; --accent: #F07A45; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 Onest, "Segoe UI", system-ui, sans-serif; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.2em; }
a:focus-visible, audio:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.25rem, 6vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-weight: 800; font-size: clamp(1.625rem, 3.5vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-weight: 600; font-size: 1.125rem; }
p { margin: 0 0 1rem; }
.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.note { color: var(--muted); }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--surface); padding: 0.5rem 1rem; border-radius: var(--r-sm); z-index: 1; }
.skip:focus { left: 1rem; }

.top { border-bottom: 1px solid var(--line); }
.top-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 0.75rem; }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; padding-block: 0.375rem; }
nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
nav a { color: var(--ink); text-decoration: none; padding-block: 0.625rem; }
nav a:hover { color: var(--link); text-decoration: underline; }

main > section { padding-block: 2.5rem; }
main > section + section { border-top: 1px solid var(--line); }
main h2 { margin-bottom: 1.25rem; }

.hero { display: grid; gap: 2.5rem; align-items: center; }
.lead { font-size: clamp(1.125rem, 2.2vw, 1.375rem); line-height: 1.5; margin: 1.25rem 0 1.5rem; max-width: 34ch; }
.status { border-left: 3px solid var(--accent); padding-left: 1rem; color: var(--muted); max-width: 44ch; margin: 0; }
.screen { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.hero .screen { width: min(17rem, 78%); margin-inline: auto; }

.appname { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; font-size: 1.25rem; margin-bottom: 1.25rem; }
.appname img, .app img { border-radius: var(--r-md); }
.app { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
.app img { width: clamp(4rem, 12vw, 6rem); }
.app + .app { margin-top: 2.5rem; }
.app h3 { font-weight: 800; font-size: 1.5rem; margin-bottom: 0.5rem; }
.app p { max-width: 60ch; margin-bottom: 0.75rem; }
.app p:last-child { margin: 0; }

.story { display: grid; gap: 2rem; }
.story > div { max-width: 62ch; }
.story h2 { margin-bottom: 0.25rem; }
figure { margin: 0; }
figure img { width: 100%; border-radius: var(--r-md); }
figcaption { color: var(--muted); font-size: 0.9375rem; margin-top: 0.5rem; }
audio { width: 100%; max-width: 28rem; display: block; }
#voice { margin-bottom: 0.5rem; }

.facts { margin: 0; }
.facts div { display: grid; gap: 0.125rem; padding-block: 0.875rem; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }

.screens { display: flex; gap: 1.5rem; overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x proximity; }
.screens .screen { width: 17rem; flex: none; scroll-snap-align: start; }

address { font-style: normal; }
.contact address p:last-child { margin: 0; }
.contact a { display: inline-block; padding-block: 0.25rem; }

.doc { max-width: 68ch; }
.doc h1 { font-size: clamp(1.5rem, 7vw, 2.75rem); margin-bottom: 0.75rem; }
.doc h2 { font-size: 1.375rem; margin: 2rem 0 0.75rem; }
.doc ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.doc li { margin-bottom: 0.5rem; }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; vertical-align: top; padding: 0.625rem 1rem 0.625rem 0; border-top: 1px solid var(--line); }

.bottom { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; padding-block: 1.5rem; }
.bottom p { margin: 0 0 0.25rem; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.bottom a { color: inherit; padding-block: 0.25rem; }

@media (min-width: 48rem) {
  main > section { padding-block: 4rem; }
  .hero { grid-template-columns: 1.25fr 1fr; }
  .story { grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: start; }
  .facts div { grid-template-columns: 12rem 1fr; }
  .contact address { display: grid; grid-template-columns: repeat(3, auto); gap: 2rem; justify-content: space-between; }
}
