/* Shared styles for the four waarp.us pages. Inlined into each page at build
   time is unnecessary — these are static files served from the same origin, so
   one cached stylesheet is fine. No external fonts: a webfont request is one
   more thing to 404 in front of an App Review reviewer. */

:root {
  --bg: #ffffff;
  --card: #faf9f7;
  --ink: #14110f;
  --muted: #6b6560;
  --line: #e7e3de;
  --brand: #e8562a;
  --maxw: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110f;
    --card: #1c1917;
    --ink: #f5f2ef;
    --muted: #a09892;
    --line: #2c2724;
    --brand: #ff6b3d;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

.wrap { max-width: var(--maxw); margin: 0 auto; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--brand); }

nav.site a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 1.25rem;
}
nav.site a:hover { color: var(--ink); }

h1 {
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
h2:first-of-type { border-top: 0; padding-top: 0; }

h3 { font-size: 1.02rem; margin: 1.5rem 0 0.4rem; }

p, li { color: var(--ink); }
p { margin: 0 0 1rem; }

ul { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--brand); }

.lede { font-size: 1.1rem; color: var(--muted); margin-bottom: 2rem; }
.meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.5rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { font-weight: 600; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }

.scroll { overflow-x: auto; }

footer.site {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site a { color: var(--muted); }
