/* tilozi.app — the public site. Colours are the app's "Calm" tokens
   (lib/design/tokens/app_colors.dart); type is Atkinson Hyperlegible, as in the
   app. No trackers, no third-party scripts, no cookies. */
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --text: #2b2a28;
  --muted: #6b6862;
  --primary: #4c7a6b;
  --accent: #e2a03f;
  --border: #dad3c7;
  --radius: 20px;
  --measure: 44rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1f1e;
    --surface: #262927;
    --text: #ecebe7;
    --muted: #b3afa7;
    --primary: #8cc0ad;
    --border: #3a3e3b;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}
a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1rem; }
header.site {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.25rem 0;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.35rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
nav.site a { margin-left: 1rem; font-weight: 600; }
.hero { padding: 3rem 0 2rem; text-align: center; }
.hero img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 6px 24px rgb(0 0 0 / .08); }
h1 { font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.15; margin: 1.25rem 0 .5rem; }
.tagline { color: var(--muted); font-size: 1.3rem; margin: 0 auto; max-width: 34rem; }
.cta { display: inline-block; margin-top: 1.5rem; padding: .85rem 1.6rem; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 700; text-decoration: none; }
@media (prefers-color-scheme: dark) { .cta { color: #10201a; } }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 2rem 0 3rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.card h2 { font-size: 1.15rem; margin: 0 0 .35rem; }
.card p { margin: 0; color: var(--muted); }
.page { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.4rem 2rem; margin: 1rem 0 3rem; }
.page h1 { font-size: 2rem; margin-top: .25rem; }
.page h2 { font-size: 1.3rem; margin-top: 2rem; }
.page li { margin: .3rem 0; }
.meta { color: var(--muted); font-size: 1rem; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
footer.site { color: var(--muted); font-size: 1rem; padding: 1.5rem 0 3rem; border-top: 1px solid var(--border); }
footer.site a { margin-right: 1rem; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
