:root {
  --bg: #faf7f2;
  --bg-alt: #f2ece3;
  --surface: #ffffff;
  --text: #1f1a17;
  --muted: #5f5650;
  --border: #e6ddd2;
  --accent: #b4441c;
  --accent-hover: #963615;
  --accent-text: #ffffff;
  --radius: 14px;
  --max: 1080px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110f;
    --bg-alt: #1c1815;
    --surface: #221d1a;
    --text: #f3ede6;
    --muted: #b5aaa0;
    --border: #352e29;
    --accent: #e0703f;
    --accent-hover: #ea8a5e;
    --accent-text: #14110f;
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip-link:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand span { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.01em; }
.nav-links { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.nav-links a.nav-cta { color: var(--accent-text); background: var(--accent); }
.nav-links a.nav-cta:hover { background: var(--accent-hover); color: var(--accent-text); }
@media (max-width: 560px) {
  .nav-links li:not(:last-child) { display: none; }
}

/* Hero */
.hero { padding: clamp(72px, 14vw, 150px) 0 clamp(64px, 10vw, 110px); }
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
  background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--accent); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); max-width: 14ch; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 46ch; margin: 22px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-text); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.section-lead { color: var(--muted); max-width: 52ch; margin: 14px 0 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 40px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); margin: 10px 0 0; }

.founders { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 40px; max-width: 640px; }
.founder { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.founder h3 { font-size: 1.35rem; }
.founder p { color: var(--muted); margin: 4px 0 0; }
.avatar {
  flex: none; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #d0602f, #963615); color: #fff;
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700;
}

.contact { text-align: center; }
.contact .section-lead { margin-left: auto; margin-right: auto; }
.contact-email {
  display: inline-block; margin-top: 28px;
  font-family: var(--serif); font-size: clamp(1.4rem, 4.5vw, 2.2rem); font-weight: 700;
  text-decoration: none; border-bottom: 2px solid currentColor; overflow-wrap: anywhere;
}

/* Footer */
.site-footer { padding: 28px 0; color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; }
.footer-links { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* Simple content pages (privacy, 404) */
.page { padding: clamp(56px, 9vw, 96px) 0; }
.page .container { max-width: 760px; }
.page h1 { font-size: clamp(2.1rem, 5vw, 3rem); max-width: none; }
.page h2 { font-size: 1.4rem; margin-top: 40px; }
.page p, .page li { color: var(--muted); }
.page .updated { margin-top: 10px; font-size: 0.95rem; }

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