/* File: docs/assets/site.css
   Purpose: Styles for the public ListenLock site (GitHub Pages). System fonts only, no external requests;
   colours follow the app's paper theme and switch with the reader's light or dark setting. */

:root {
  --paper: #f8f2e8;
  --surface: #fffaf3;
  --ink: #24190f;
  --muted: #5e4f41;
  --accent: #a8520e;
  --accent-ink: #ffffff;
  --line: #e4d8c6;
  --focus: #1a5fb4;
  --radius: 14px;
  --measure: 68rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17120d;
    --surface: #221b14;
    --ink: #f3ebe0;
    --muted: #c9b9a6;
    --accent: #f0a35e;
    --accent-ink: #1b1209;
    --line: #3a2f24;
    --focus: #8ab4f8;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari",
    "Noto Sans Bengali", "Nirmala UI", sans-serif;
}

:lang(hi), :lang(bn) { line-height: 1.75; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

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

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1rem; }

/* Header and language switch */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.langs { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.langs a {
  display: inline-block; min-width: 44px; min-height: 44px; padding: 0.55rem 0.75rem; text-align: center;
  border-radius: 999px; color: var(--ink); text-decoration: none; border: 1px solid transparent;
}
.langs a[aria-current="true"] { border-color: var(--line); background: var(--surface); font-weight: 700; }

/* Hero */
.hero { display: grid; gap: 2rem; align-items: center; padding: 2rem 0 3rem; }
@media (min-width: 760px) { .hero { grid-template-columns: 1.4fr 1fr; padding: 3rem 0 4rem; } }
.hero h1 { font-family: Georgia, "Noto Serif", "DejaVu Serif", serif; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.1; margin: 0 0 0.5rem; }
.tagline { font-size: clamp(1.2rem, 2.6vw, 1.5rem); color: var(--muted); margin: 0 0 1rem; }
.lead { margin: 0 0 1.5rem; max-width: 36rem; }
.scripts { color: var(--accent); font-weight: 600; margin: 0 0 1.5rem; }
.logo-card {
  justify-self: center; background: #ffffff; border-radius: 28px; padding: 1.5rem 2rem;
  box-shadow: 0 1px 0 var(--line), 0 12px 32px rgba(36, 25, 15, 0.12);
}
.logo-card img { display: block; width: 220px; height: auto; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0.7rem 1.25rem;
  border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--accent);
}
.button.primary { background: var(--accent); color: var(--accent-ink); }
.button.secondary { color: var(--accent); background: transparent; }
span.button { cursor: default; }
.note { font-size: 0.92rem; color: var(--muted); margin: 0.75rem 0 0; }

/* Sections */
section { padding: 2.5rem 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 0.5rem; }
.section-lead { color: var(--muted); margin: 0 0 1.5rem; max-width: 44rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); list-style: none; margin: 0; padding: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; border-top: 4px solid var(--accent); }
.card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }

.steps { margin: 0; padding-left: 1.4rem; max-width: 44rem; }
.steps li { margin-bottom: 0.6rem; }

.facts { display: grid; gap: 0.5rem; list-style: none; margin: 0 0 1.25rem; padding: 0; max-width: 44rem; }
.facts li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.95rem; }
footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 1rem; padding: 0; }
footer p { margin: 0.4rem 0; }

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