:root {
  --paper: #faf9f6;
  --ink: #171512;
  --ink-soft: #4a463f;
  --line: #e3ddcf;
  --maxw: 44rem;
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  transition: opacity 120ms ease;
}

.button:hover { opacity: 0.82; }

/* Hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 3rem;
}

.logo {
  width: min(26rem, 82vw);
  height: auto;
}

.tagline {
  max-width: 30rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.site-footer p { margin: 0.35rem 0; }

.footer-nav { display: flex; justify-content: center; gap: 0.6rem; margin-bottom: 0.5rem; }

/* Legal pages */
.legal {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 4rem;
}

.legal h1 { font-size: 1.9rem; line-height: 1.25; margin: 1.5rem 0 0.5rem; }

.legal h2 { font-size: 1.2rem; margin: 2rem 0 0.4rem; }

.legal p, .legal ul { margin: 0.5rem 0; color: var(--ink-soft); }

.legal .updated { font-size: 0.85rem; }

.placeholder {
  background: #f1e9d8;
  border-radius: 4px;
  padding: 0 0.3rem;
  font-style: italic;
}

/* Utilities */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
