:root {
  --bg: #F6F1E8;
  --surface: #FFFDF9;
  --fg: #3D4036;
  --muted: #7A7B6E;
  --rule: #E2D9C9;
  --accent: #A8842C;
  --accent-soft: #EFE6D2;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16170F;
    --surface: #1E1F16;
    --fg: #ECE7DA;
    --muted: #9C9C8B;
    --rule: #33352A;
    --accent: #D9B65A;
    --accent-soft: #2A2B1F;
  }
}
:root[data-theme="dark"] {
  --bg: #16170F;
  --surface: #1E1F16;
  --fg: #ECE7DA;
  --muted: #9C9C8B;
  --rule: #33352A;
  --accent: #D9B65A;
  --accent-soft: #2A2B1F;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 16px 5rem;
}

/* header */
header.site {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
header.site a.brand { display: block; line-height: 0; }
.logo { display: block; height: 40px; width: auto; border-radius: 4px; }

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.9rem;
}
nav a:hover { color: var(--accent); }

/* type */
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  font-weight: 400;
}
.tagline {
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1.75rem;
}
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
}
.lead { font-size: 1.1rem; }
.meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 2rem; }

a { color: var(--accent); }
ul { padding-left: 1.15rem; }
li { margin: 0.35rem 0; }

/* hero */
figure.hero { margin: 0 0 2.25rem; }
figure.hero img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

/* founders */
.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}
.founder {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
}
.founder .name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  display: block;
  margin-bottom: 0.2rem;
}
.founder a { text-decoration: none; font-size: 0.92rem; }
.founder a:hover { text-decoration: underline; }

/* pill links */
p.handles { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.25rem 0 0; }
p.handles a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
  font-size: 0.9rem;
}
p.handles a:hover { border-color: var(--accent); }

/* callout */
.callout {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin: 2rem 0 0;
}
.callout p { margin: 0.4rem 0; }
.callout p:first-child { margin-top: 0; }

/* policy pages */
.policy h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule);
  margin-top: 2.25rem;
}
.policy h2:first-of-type { border-top: 0; padding-top: 0; }
.policy h3 { font-size: 1rem; margin: 1.5rem 0 0.4rem; }
.policy table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.policy th, .policy td {
  border: 1px solid var(--rule);
  padding: 0.5rem 0.65rem;
  text-align: left;
}
.policy th { background: var(--accent-soft); font-weight: 600; }

footer.site {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--accent); }

@media (max-width: 600px) {
  .wrap { padding-top: 1.75rem; }
  h1 { font-size: 1.8rem; }
  .founders { grid-template-columns: 1fr; }
  nav a { margin-left: 0; margin-right: 1.1rem; }
  header.site { justify-content: flex-start; }
}
