/* FreeDays site — shared stylesheet.
   Zero JavaScript, zero external requests: system fonts only, no CDNs.
   Emerald accent matches the app (#047857 family). */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #047857;        /* emerald-700 */
  --heading: #065f46;       /* emerald-800 */
  --rule: #d1fae5;          /* emerald-100 */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1211;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --accent: #34d399;      /* emerald-400 */
    --heading: #6ee7b7;     /* emerald-300 */
    --rule: #064e3b;        /* emerald-900 */
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

header .brand {
  margin: 0 0 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--rule);
  color: var(--accent);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 {
  margin: 0 0 0.5rem;
  color: var(--heading);
  font-size: 2rem;
  line-height: 1.2;
}

h2 {
  margin: 2.25rem 0 0.5rem;
  color: var(--heading);
  font-size: 1.375rem;
  line-height: 1.3;
}

h3 {
  margin: 1.5rem 0 0.25rem;
  color: var(--heading);
  font-size: 1.0625rem;
}

p {
  margin: 0.75rem 0;
}

.updated {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.375rem;
}

li {
  margin: 0.375rem 0;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus {
  color: var(--heading);
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 2px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

footer p {
  margin: 0;
}
