/* Palette, type and shape come from the app: sorella/src/ui/tokens.ts ("Yumuşak Bento"). */
@font-face { font-family: Fraunces; font-weight: 600; font-display: swap; src: url(/fonts/Fraunces_600SemiBold.ttf) format('truetype'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-display: swap; src: url(/fonts/PlusJakartaSans_400Regular.ttf) format('truetype'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url(/fonts/PlusJakartaSans_600SemiBold.ttf) format('truetype'); }

:root {
  color-scheme: light dark;
  --bg: #fff8f5; --surface: #ffffff; --surface-alt: #f7ede8; --border: #eedfd8;
  --text: #2a1f24; --muted: #6e5e66; --primary: #a63d62;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17121a; --surface: #221b26; --surface-alt: #2d2431; --border: #3a2f3f;
    --text: #f4ecef; --muted: #b3a3ab; --primary: #f08aaa;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto; max-width: 1040px; min-height: 100vh; padding: 0 24px;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 17px/1.6 'Plus Jakarta Sans', system-ui, sans-serif;
}
main { flex: 1; padding: 32px 0 64px; }
h1, h2, .brand, .ring strong { font-family: Fraunces, Georgia, serif; font-weight: 600; }
h1 { margin: 0 0 16px; font-size: clamp(36px, 6vw, 56px); line-height: 1.12; text-wrap: balance; }
h2 { margin: 0 0 8px; font-size: 24px; line-height: 32px; }
p, ul { margin: 0 0 16px; }
a { color: var(--primary); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 24px; top: 8px; padding: 8px 16px; background: var(--surface); }

header, footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; padding: 16px 0; }
header nav, footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
header a, footer a { display: inline-flex; align-items: center; min-height: 48px; }
nav a { color: var(--text); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--primary); text-decoration: underline; }
.brand { color: var(--primary); font-size: 28px; text-decoration: none; }
footer { border-top: 1px solid var(--border); font-size: 15px; }
footer p { margin: 0; }

.hero { display: grid; gap: 48px; align-items: center; padding: 16px 0 64px; }
.lead { font-size: 20px; max-width: 34em; }
.soon { margin: 0; font-weight: 600; }
.ring { position: relative; width: min(300px, 100%); aspect-ratio: 1; margin: 0 auto; }
.ring svg { display: block; width: 100%; }
.ring circle { fill: none; stroke-width: 16; }
.ring .track { stroke: var(--surface-alt); }
.ring .value { stroke: var(--primary); stroke-linecap: round; }
.ring-text { position: absolute; inset: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: 15px; color: var(--muted); }
.ring strong { color: var(--text); font-size: 40px; line-height: 1.2; }

.bento { display: grid; gap: 16px; }
.card { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; }
.card p { margin: 0; color: var(--muted); }
.card.wide { background: var(--surface-alt); }
.card.wide p { color: var(--text); }
.note { margin: 32px 0 0; color: var(--muted); font-size: 15px; }

.prose { max-width: 680px; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); }
.prose section, .prose > h2 { margin-top: 40px; }
.prose ul { padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose a { overflow-wrap: anywhere; }
details { border-bottom: 1px solid var(--border); }
summary { padding: 16px 0; font-weight: 600; cursor: pointer; }

@media (min-width: 760px) {
  .hero { grid-template-columns: 3fr 2fr; }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .card.wide { grid-column: span 2; }
}
