/* Alfreya app policy site — no external assets, no fonts, no trackers. */

:root {
  --bg: #ffffff;
  --surface: #f7f7f5;
  --border: #e3e3df;
  --text: #16160f;
  --muted: #5f5f57;
  --accent: #7a5c2e;
  --accent-soft: #f3ece0;
  --max: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121210;
    --surface: #1b1b18;
    --border: #2e2e29;
    --text: #ececE4;
    --muted: #a3a399;
    --accent: #d7b478;
    --accent-soft: #241f16;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "kern", "liga";
}

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

header.site {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  margin-bottom: 3rem;
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

/* The app icon, corners already cut out of the PNG — so no border-radius here,
   which would only clip a shape that isn't a rectangle. */
.brand-mark {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
}

.brand span { font-weight: 400; color: var(--muted); }

nav.site { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.9375rem; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

h1 {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

h3 { font-size: 1rem; margin: 1.75rem 0 0.5rem; }

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

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

.meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1em 0.35em;
}

ul, ol { padding-left: 1.35rem; margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }

footer.site {
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}
footer.site p { color: var(--muted); margin-bottom: 0.5rem; }
