/* Paperlight — shared site shell.
   Tokens, reset, base body/wrap, nav base, footer, keyboard focus, and motion.
   Loaded by every page. Page-specific CSS lives inline (index.html) or in legal.css. */

:root {
  --paper: #FAFAF8;
  --ink: #1A1A17;
  --ink-soft: #6E6E66;
  --hairline: #E7E7E1;
  --card: #F1F1EC;
  --accent: #1E6B4F;
  --accent-press: #15523C;
  --charcoal: #1C1C1A;
  --charcoal-card: #262623;
  --paper-on-dark: #EDEDE8;
  --radius-card: 14px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav (base; index.html adds the sticky frosted variant) ── */
nav {
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.nav-logo .app-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo .name {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", ui-rounded, sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 0 28px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}

.footer-logo .app-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo .name {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", ui-rounded, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.015em;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--ink); }

.footer-copy { font-size: 13px; color: var(--ink-soft); }

/* ── Accessibility: visible keyboard focus ── */
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Motion ── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
