:root {
  --bg: #f6f3ec;
  --bg-soft: #efeadf;
  --fg: #1c1a17;
  --muted: #6b6457;
  --rule: #e2dccd;
  --accent: #b4471f;
  --accent-soft: rgba(180, 71, 31, 0.12);
  --max: 64rem;
  --measure: 38rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f;
    --bg-soft: #1c1a16;
    --fg: #ece8de;
    --muted: #9c9485;
    --rule: #2a2722;
    --accent: #e07c4f;
    --accent-soft: rgba(224, 124, 79, 0.16);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-image:
    radial-gradient(1200px 600px at 80% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, var(--accent-soft), transparent 55%);
  background-attachment: fixed;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}

a:hover { border-bottom-color: var(--accent); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ============ NAV ============ */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 0;
  font-size: 0.9rem;
}

.mark {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  border: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--muted);
  border: none;
}

.nav-links a:hover { color: var(--fg); }

/* ============ HERO ============ */
.hero {
  padding: 4rem 0 5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--muted);
}

h1.name {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

h1.name em {
  font-style: italic;
  color: var(--accent);
}

.subhead {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 36rem;
  margin: 0;
}

.subhead strong {
  color: var(--fg);
  font-weight: 500;
}

/* ============ SECTIONS ============ */
section {
  padding: 4rem 0;
  border-top: 1px solid var(--rule);
}

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2rem;
  font-weight: 500;
}

h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
  max-width: 40rem;
}

.prose {
  max-width: var(--measure);
  font-size: 1.05rem;
}

.prose p { margin: 0 0 1.15rem; }

/* ============ QUOTE ============ */
.pullquote {
  margin: 0;
  padding: 2.5rem 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 44rem;
}

.pullquote::before {
  content: "“";
  display: block;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: -0.5rem;
}

.pullquote cite {
  display: block;
  margin-top: 1rem;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ============ CARDS / GRID ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 200ms ease, border-color 200ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.card h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ============ LOGO / NAME WALL ============ */
.wall {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 1.5rem;
}

.chip {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--bg-soft);
}

/* ============ HIGHLIGHTS ============ */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.highlight {
  position: relative;
  padding-left: 1.25rem;
}

.highlight::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.highlight .num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--fg);
  display: block;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.highlight .label {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* ============ CONNECT ============ */
.connect-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--bg-soft);
  color: var(--fg);
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 150ms ease, transform 150ms ease;
}

.btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .btn.primary { color: #14130f; }
}

.btn.primary:hover { transform: translateY(-1px); }

.btn svg {
  width: 16px;
  height: 16px;
}

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
  border: none;
}

footer a:hover { color: var(--fg); }

footer .legal-links {
  display: flex;
  gap: 1.25rem;
}

/* ============ LEGAL PAGES ============ */
body.legal main { max-width: var(--measure); margin: 0 auto; padding: 4rem 1.75rem 2rem; }
body.legal h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 2.5rem; letter-spacing: -0.02em; margin-bottom: 0.25rem; }
body.legal h2 { font-size: 1.2rem; font-family: "Inter", sans-serif; font-weight: 600; letter-spacing: 0; margin: 2rem 0 0.5rem; max-width: none; }
body.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
body.legal .back { display: inline-block; margin-bottom: 2rem; font-size: 0.9rem; color: var(--muted); border: none; }
body.legal .back:hover { color: var(--fg); }
body.legal ul { padding-left: 1.25rem; }
body.legal li { margin-bottom: 0.35rem; }
body.legal footer { max-width: var(--measure); margin: 0 auto; padding: 2rem 1.75rem 3rem; }

/* ============ MOBILE ============ */
@media (max-width: 640px) {
  .nav { padding: 1.25rem 0; }
  .hero { padding: 2.5rem 0 3.5rem; }
  section { padding: 3rem 0; }
  footer { flex-direction: column; gap: 1rem; }
}

/* ============ SUBTLE ENTRY ANIMATION ============ */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero > * { animation: rise 600ms cubic-bezier(.2,.8,.2,1) both; }
.hero .eyebrow { animation-delay: 50ms; }
.hero h1.name { animation-delay: 150ms; }
.hero .subhead { animation-delay: 280ms; }
