/* PastPeep — one stylesheet for the whole site. Dark theme, mobile first. */

@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/fonts/lato-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/fonts/lato-400italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/fonts/lato-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #121214;
  --surface: #1a1a1e;
  --line: #2c2a28;
  --text: #f2e6d0;
  --accent: #c9a26b;
  --muted: #8a8a93;
  --serif: "EB Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--accent);
  color: #121214;
  padding: 0.5em 1em;
  border-radius: 6px;
  font-weight: 700;
  z-index: 10;
}
.skip-link:focus { top: 16px; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}
.wrap--narrow { max-width: 720px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand svg { width: 40px; height: auto; }
.brand:hover { color: var(--text); }

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text);
}
.wordmark span { color: var(--accent); }

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

/* Hero */
.hero { text-align: center; padding: 56px 0 48px; }
.hero__logo { width: min(240px, 64vw); height: auto; margin: 0 auto 8px; display: block; }
.hero h1 { font-size: clamp(3rem, 12vw, 4.75rem); margin-bottom: 0.15em; }
.hero__promise {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 4.6vw, 1.75rem);
  font-style: italic;
  color: var(--text);
  margin: 0 auto 0.75em;
  max-width: 34ch;
}
.hero__lead { color: var(--muted); max-width: 52ch; margin: 0 auto 2em; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  background: var(--accent);
  color: #121214;
  font-weight: 700;
  text-decoration: none;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  transition: background-color 0.15s ease;
}
.btn:hover { background: #dcbb88; color: #121214; }
.btn svg { width: 1.2em; height: 1.2em; }

/* Section divider: a thin bronze rule with a faint parchment-toned band. */
.divider {
  height: 14px;
  margin: 0;
  border: 0;
  background:
    linear-gradient(90deg, transparent, rgba(201, 162, 107, 0.55) 20%, rgba(201, 162, 107, 0.55) 80%, transparent) center / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(242, 230, 208, 0.035) 0 2px, transparent 2px 5px),
    linear-gradient(90deg, transparent, rgba(201, 162, 107, 0.07), transparent);
}

.section { padding: 56px 0; }
.section h2 { font-size: clamp(1.9rem, 6vw, 2.4rem); }
.section__intro { color: var(--muted); max-width: 60ch; }

/* Cards */
.cards {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 10px;
  padding: 22px 22px 18px;
}
.card svg { width: 32px; height: 32px; color: var(--accent); margin-bottom: 10px; }
.card h3 { font-size: 1.5rem; }
.card p { margin: 0; color: #cfc4b0; }

.sources {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}
.sources li { padding-left: 1.6em; position: relative; }
.sources li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.7em;
  width: 0.55em;
  height: 0.55em;
  background: var(--accent);
  transform: rotate(45deg);
}

.contact-line { font-size: 1.2rem; margin: 0.5em 0 0; }

/* Legal pages */
.legal { padding: 48px 0 64px; }
.legal h1 { font-size: clamp(2.3rem, 9vw, 3.2rem); }
.legal h2 { font-size: 1.6rem; margin-top: 1.8em; }
.legal li { margin-bottom: 0.45em; }
.legal p, .legal li { overflow-wrap: anywhere; }
.legal .updated { color: var(--muted); margin-top: -0.3em; }

/* 404 */
.notfound { text-align: center; padding: 72px 0; }
.notfound svg { width: 140px; height: auto; }
.notfound h1 { font-size: clamp(2.4rem, 10vw, 3.4rem); }
.notfound p { color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer .wrap { display: grid; gap: 14px; }
.footer-links, .sister-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.footer-links a, .sister-links a { color: var(--text); }
.footer-links a:hover, .sister-links a:hover { color: var(--accent); }
.site-footer p { margin: 0; }
.credits { font-size: 0.85rem; }
.credits a { color: var(--muted); }

@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 80px 0 64px; }
  .section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
