/*
 * The public site's one stylesheet (plan §16.6, P11-01).
 *
 * The Cuco palette, at rest: paper and ink in daylight, the same hues
 * inverted after dark. No web fonts — a policy page should render at once,
 * on any connection, and the system stack is what every reader already has.
 */

:root {
  color-scheme: light dark;

  --paper-0: #fcfbf7;
  --paper-50: #f7f5ee;
  --paper-200: #e6e3d9;
  --ink-950: #20231f;
  --ink-700: #5e625c;
  --lake-600: #446f92;
  --lake-700: #365e7c;
  --tangerine-500: #ff8c00;

  --canvas: var(--paper-0);
  --surface: var(--paper-50);
  --border: var(--paper-200);
  --text: var(--ink-950);
  --muted: var(--ink-700);
  --link: var(--lake-700);
  --accent: var(--tangerine-500);

  --measure: 34rem;
  --space: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #171916;
    --surface: #1f221e;
    --border: #33372f;
    --text: #f0eee6;
    --muted: #b7bab0;
    --link: #9ec2da;
  }
}

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

html {
  /* A reader who has asked for larger text gets it: no fixed root size. */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* Visible the moment it is focused, and out of the way until then. */
.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--space);
  top: var(--space);
  z-index: 1;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 2px solid var(--link);
  border-radius: 8px;
}

header,
main,
footer {
  max-width: calc(var(--measure) + 6rem);
  margin: 0 auto;
  padding: var(--space) 1.25rem;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand a {
  color: var(--text);
  text-decoration: none;
}

header nav {
  flex: 1 1 auto;
}

header ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang {
  margin: 0;
}

main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

p {
  max-width: var(--measure);
  margin: 0 0 0.75rem;
}

.lead {
  color: var(--muted);
  font-size: 1.15rem;
}

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

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.cta {
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.cta h2 {
  margin-top: 0;
}

.button {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  background: var(--accent);
  color: #20231f;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

footer {
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: color 120ms ease;
  }
}
