/* Public site. Tokens: palette 206 (skill design-system, Theme.swift / Theme.kt), light and dark by the system
   setting. Onest, self-hosted (OFL, assets/fonts/Onest-OFL.txt). No external resources: CSP allows only 'self'. */

@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/Onest.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #FBF4EC;
  --surface: #FFFFFF;
  --surface-muted: #F4E7DA;
  --text: #2E2621;
  --text-body: #4A3F37;
  --text-secondary: #74675C;
  --border: #EADBCB;
  --divider: #F5ECE2;
  --warm-text: #46625F;
  --warm-bg: #E4EEED;
  --hard-text: #8A534B;
  --mixed: linear-gradient(135deg, #F3C7C6, #EFD5BE, #E5CD83);
  --on-mixed: #2E2621;
  --focus: #46625F;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15120F;
    --surface: #211C19;
    --surface-muted: #2C2622;
    --text: #F4EDE6;
    --text-body: #D9CFC5;
    --text-secondary: #B3A699;
    --border: #3A322C;
    --divider: #2A2420;
    --warm-text: #BFD6D5;
    --warm-bg: #22302F;
    --hard-text: #EDC0BA;
    --mixed: linear-gradient(135deg, #5A3B38, #5B4A36, #5C5030);
    --on-mixed: #F4EDE6;
    --focus: #BFD6D5;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

h1, h2, h3 { color: var(--text); line-height: 1.25; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.0625rem; font-weight: 700; margin: 1.5rem 0 0.25rem; }
p, ul { margin: 0 0 1rem; }
strong { color: var(--text); font-weight: 700; }

a {
  color: var(--warm-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--surface);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  z-index: 1;
}
.skip:focus { top: 8px; }

/* Header */
.top { border-bottom: 1px solid var(--border); padding: 12px 0 0; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.125rem;
  text-decoration: none;
  min-height: 44px;
}
.mark {
  width: 22px;
  height: 26px;
  border-radius: 6px;
  background: var(--mixed);
  box-shadow: inset 5px 0 0 -3px var(--on-mixed);
}
.lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.25rem;
  font-size: 0.9375rem;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--text);
}

main { padding-top: 1.75rem; padding-bottom: 2rem; }

/* Home */
.hero {
  background: var(--mixed);
  color: var(--on-mixed);
  border-radius: 26px;
  padding: 28px 22px;
  margin-top: 0.5rem;
}
.hero h1, .hero .eyebrow, .hero .lead { color: var(--on-mixed); }
.eyebrow { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.02em; margin: 0; opacity: 0.85; }
.lead { font-size: 1.125rem; margin: 0; }

.cards { list-style: none; padding: 0; display: grid; gap: 12px; }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
}
.card h3 { margin-top: 0; }
.card p { margin: 0; font-size: 0.9375rem; }

.panel {
  background: var(--surface-muted);
  border-radius: 22px;
  padding: 4px 18px 6px;
  margin-top: 2.5rem;
}
.panel h2 { margin-top: 1.25rem; }

.stores { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
}

.more { list-style: none; padding: 0; margin-top: 2.5rem; }
.more li { margin: 0.25rem 0; }

/* Support */
.lines { list-style: none; padding: 0; }
.line {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0 0.75rem;
  border-top: 1px solid var(--border);
}
.line:first-child { border-top: 0; }
.number {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
}

/* Legal */
.legal h2 { font-size: 1.1875rem; margin-top: 2rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin: 0.25rem 0; }

/* Footer */
.foot {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  padding-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.foot p { margin: 0 0 0.5rem; }
.foot a { color: var(--text-secondary); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

.danger { margin-top: 1.5rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
