:root {
  --bg: #fbf7f0;
  --card: #ffffff;
  --ink: #231c15;
  --muted: #65584b;
  --line: #e7ddcf;
  --accent: #b9501a;
  --accent-soft: #f6e3d6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130f;
    --card: #211b15;
    --ink: #f3ece3;
    --muted: #b9ab9b;
    --line: #3a3029;
    --accent: #f08447;
    --accent-soft: #3a2518;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.6;
}

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

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* 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: 76px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none;
}
.brand svg { width: 40px; height: 40px; flex: none; }
.brand span { font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: 0.01em; }
.site-nav { display: flex; gap: 22px; font-size: 17px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 56px; }
.kicker {
  display: inline-block; margin: 0 0 18px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 20px; max-width: 16ch;
  font-family: var(--serif); font-size: clamp(40px, 7vw, 68px); line-height: 1.05; font-weight: 700;
}
.hero p { margin: 0; max-width: 34em; font-size: 21px; color: var(--muted); }
.hero .note { margin-top: 26px; font-size: 18px; color: var(--ink); }

.foxes { display: flex; gap: 10px; margin: 0 0 28px; }
.foxes svg { width: 26px; height: 26px; }

/* Sections */
section { padding: 44px 0; border-top: 1px solid var(--line); }
section h2 { margin: 0 0 22px; font-family: var(--serif); font-size: 32px; line-height: 1.2; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 23px; }
.card p { margin: 0; color: var(--muted); }
.about p { max-width: 38em; margin: 0 0 14px; }

/* Privacy page */
.doc { padding: 56px 0 24px; max-width: 42em; }
.doc h1 { margin: 0 0 8px; font-family: var(--serif); font-size: clamp(36px, 6vw, 52px); line-height: 1.1; }
.doc .updated { margin: 0 0 32px; color: var(--muted); font-size: 17px; }
.doc h2 { margin: 40px 0 12px; font-family: var(--serif); font-size: 28px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 0 0 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 16px; }
.site-footer .wrap { display: flex; gap: 10px 24px; flex-wrap: wrap; justify-content: space-between; }
.site-footer a { color: var(--muted); }

@media (max-width: 760px) {
  body { font-size: 18px; }
  .hero { padding-top: 48px; padding-bottom: 40px; }
  .cards { grid-template-columns: 1fr; }
}
