/* Quilt website: shared by the landing page, the privacy policy and the 404 page.
   Colours follow the app's default Ocean theme (core/designsystem/.../theme/Color.kt). */

:root {
  --bg: #EEF6FC;
  --surface: #DCEBF7;
  --card: #FFFFFF;
  --ink: #13233A;
  --muted: rgba(19, 35, 58, .64);
  --line: rgba(19, 35, 58, .10);
  --primary: #2D7FF9;
  --primary-deep: #1B4F9C;
  --on-primary: #FFFFFF;
  --ocean: #2D7FF9;
  --sunny: #F08A12;
  --berry: #C2408F;
  --forest: #2E9E5B;
  --shadow: 0 18px 50px rgba(19, 35, 58, .12);
  --radius: 28px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16191D;
    --surface: #22262B;
    --card: #1C2025;
    --ink: #EEF2F6;
    --muted: rgba(238, 242, 246, .66);
    --line: rgba(238, 242, 246, .10);
    --primary: #5A9BFF;
    --primary-deep: #A8C8FF;
    --on-primary: #16191D;
    --shadow: 0 18px 50px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

/* The app's Caprasimo, patched with ă, ș and ț (store/tools/patch_caprasimo_ro.py). Google
   Fonts' Caprasimo lacks them, so Romanian headings would fall back mid-word. */
@font-face {
  font-family: "Caprasimo Quilt";
  src: url("/fonts/caprasimo-quilt.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display { font-family: "Caprasimo Quilt", Georgia, serif; font-weight: 400; letter-spacing: -.01em; }

a { color: var(--primary-deep); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: var(--primary-deep); } }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.muted { color: var(--muted); }

/* Only the visitor's language shows. The inline script in <head> sets <html lang> before paint. */
html[lang="ro"] [data-lang="en"], html:not([lang="ro"]) [data-lang="ro"] { display: none !important; }

/* ---------- Top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand .word { font-family: "Caprasimo Quilt", Georgia, serif; font-size: 28px; line-height: 1; }

.dots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; width: 34px; height: 34px; }
.dots i { display: block; border-radius: 50%; }
.dots i:nth-child(1) { background: var(--ocean); }
.dots i:nth-child(2) { background: var(--sunny); }
.dots i:nth-child(3) { background: var(--berry); }
.dots i:nth-child(4) { background: var(--forest); }

.lang { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 4px; gap: 2px; }
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 700 14px/1 "Figtree", system-ui, sans-serif; padding: 8px 14px; border-radius: 999px;
}
.lang button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.lang button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Buttons / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 700; line-height: 1.2;
}
.pill small { display: block; font-weight: 500; font-size: 12px; opacity: .72; }
.pill svg { width: 22px; height: 22px; flex: none; }

/* ---------- Footer ---------- */
footer.site { padding-top: 40px; padding-bottom: 56px; color: var(--muted); font-size: 15px; }
footer.site .row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 28px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--ink); }
