/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Tokens ─────────────────────────────────────── */
:root {
  --bg:          #F7F6F3;
  --ink:         #141414;
  --ink-muted:   #6B6B6B;
  --ink-faint:   #ADADAD;
  --rule:        #E2E0DA;
  --accent:      #141414;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-w:       640px;
  --side:        clamp(1.25rem, 5vw, 3rem);
}

/* ── Base ─────────────────────────────────────── */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
}

/* ── Page shell ─────────────────────────────────── */
.page {
  max-width: calc(var(--max-w) + var(--side) * 2);
  margin: 0 auto;
  padding: 0 var(--side);
}

/* ── Header ─────────────────────────────────────── */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0 0;
}

.site-mark {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--ink);
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  padding: 5rem 0 3.5rem;
}

.name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.25rem, 10vw, 6rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
}

.name em {
  font-style: italic;
  color: var(--ink-muted);
}

/* ── Prose ─────────────────────────────────────── */
.prose {
  max-width: var(--max-w);
  padding-bottom: 5rem;
}

.p-large {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.p-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.p-muted {
  color: var(--ink-muted);
}

.rule {
  width: 2rem;
  height: 1px;
  background: var(--rule);
  margin: 2.75rem 0;
}

/* ── Inline links ─────────────────────────────── */
.link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 0.15s;
}

.link:hover {
  text-decoration-color: var(--ink);
}

/* ── Callout aside ──────────────────────────────── */
.callout {
  border-left: 2px solid var(--rule);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.75rem 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-muted);
  font-style: italic;
}

/* ── Connect ─────────────────────────────────────── */
.connect {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.connect-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.connect-label {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  min-width: 4.5rem;
  flex-shrink: 0;
}

.connect-value {
  font-size: 0.9375rem;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}

.connect-item:hover .connect-value {
  border-color: var(--ink);
}

/* ── Footer ─────────────────────────────────────── */
.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* ── Scroll fade-in ─────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 520px) {
  .site-nav {
    gap: 1.1rem;
  }

  .hero {
    padding: 3.5rem 0 2.5rem;
  }

  .site-footer {
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* ── Reduced motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
