/*
 * Shared styling for the standalone static pages in public/ (privacy.html,
 * contact.html). These pages sit outside the SPA on purpose — Google's EEA
 * consent message must not appear on the path that hosts the privacy policy —
 * so Tailwind never processes them and they carry their own CSS here.
 *
 * Palette mirrors the app's emerald/teal theme. The `dark` class is set by a
 * tiny inline script on each page from the same localStorage key App.tsx uses.
 */

:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --border: rgba(226, 232, 240, 0.9);
  --text: #1f2937;
  --muted: #6b7280;
  --heading: #111827;
  --accent: #059669;
  --accent-strong: #047857;
  --accent-soft: rgba(5, 150, 105, 0.08);
  --field: #ffffff;
}
html.dark {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: #111827;
  --border: rgba(55, 65, 81, 0.8);
  --text: #d1d5db;
  --muted: #9ca3af;
  --heading: #f3f4f6;
  --accent: #34d399;
  --accent-strong: #6ee7b7;
  --accent-soft: rgba(52, 211, 153, 0.12);
  --field: #0f172a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--muted);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em;
}
.brand:hover { color: var(--accent); }
.mark {
  width: 1.6rem; height: 1.6rem; border-radius: 0.5rem; flex: none;
  background: linear-gradient(135deg, #10b981, #0d9488);
  display: inline-flex; align-items: center; justify-content: center;
}
.mark svg { width: 0.9rem; height: 0.9rem; color: #fff; }

.card {
  margin-top: 1.5rem; padding: 2rem 1.75rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

h1 {
  margin: 0 0 0.35rem; color: var(--heading);
  font-size: 1.85rem; line-height: 1.25; letter-spacing: -0.02em;
}
.updated { margin: 0 0 2rem; color: var(--muted); font-size: 0.8125rem; }
.lede { margin: 0 0 1.75rem; color: var(--muted); font-size: 1rem; }

h2 {
  margin: 2.25rem 0 0.75rem; color: var(--heading);
  font-size: 1.0625rem; letter-spacing: -0.01em;
  padding-left: 0.7rem; border-left: 3px solid var(--accent);
}
h2:first-of-type { margin-top: 0; }

p, li { margin: 0.75rem 0; }
ul { padding-left: 1.15rem; }
li::marker { color: var(--accent); }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

code {
  background: var(--accent-soft); color: var(--heading);
  padding: 0.1rem 0.4rem; border-radius: 0.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
}

.note {
  margin: 1.25rem 0; padding: 0.9rem 1.1rem;
  background: var(--accent-soft); border-radius: 0.7rem;
  font-size: 0.9375rem;
}

.table-scroll { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: 0.9375rem; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--heading); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }

footer {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  text-align: center; color: var(--muted); font-size: 0.8125rem;
}
footer a + a { margin-left: 0.85rem; }

/* --- Contact form ------------------------------------------------------- */

.address {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
  margin: 1.25rem 0; padding: 1rem 1.1rem;
  background: var(--accent-soft); border-radius: 0.7rem;
}
.address a {
  font-weight: 700; font-size: 1.0625rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.field { margin: 1.1rem 0; }
.field label {
  display: block; margin-bottom: 0.4rem;
  color: var(--heading); font-size: 0.8125rem; font-weight: 600;
}
.field .hint { color: var(--muted); font-weight: 400; }

input, select, textarea {
  width: 100%; padding: 0.6rem 0.75rem;
  background: var(--field); color: var(--text);
  border: 1px solid var(--border); border-radius: 0.6rem;
  font-family: inherit; font-size: 0.9375rem; line-height: 1.5;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.5rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.1rem; border-radius: 0.7rem;
  border: 1px solid transparent; cursor: pointer;
  font-family: inherit; font-size: 0.9375rem; font-weight: 600;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #10b981, #0d9488);
  color: #fff; box-shadow: 0 6px 16px rgba(5, 150, 105, 0.25);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost {
  background: transparent; color: var(--muted);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--heading); border-color: var(--accent); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.status { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.875rem; min-height: 1.3rem; }
