:root {
  --bg:       #F7F5F0;
  --text:     #111111;
  --muted:    #888888;
  --accent:   #111111;
  --border:   #E2E0DB;
  --max-w:    680px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(255, 228, 180, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(180, 200, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 15%, rgba(210, 230, 200, 0.16) 0%, transparent 45%),
    #F7F5F0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Film grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.038;
}

/* ── Layout ─────────────────────────────────── */

header, main, footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ─────────────────────────────────────── */

header {
  padding-top: 40px;
  padding-bottom: 40px;
}

nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.nav-name {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ── Hero ────────────────────────────────────── */

#hero {
  padding: 80px 0 100px;
  border-top: 1px solid var(--border);
}

#hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
}

#hero h1 em {
  font-style: italic;
  color: var(--muted);
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.65;
}

.hero-sub a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.hero-sub a:hover {
  color: var(--muted);
}

/* ── Sections ────────────────────────────────── */

section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 40px;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 4px;
}

.section-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-body p {
  font-size: 0.975rem;
  line-height: 1.75;
  color: var(--text);
}

.section-body p + p {
  color: #555;
}

/* ── Work list ───────────────────────────────── */

.work-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.work-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.work-meta {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.work-item p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* ── Contact ─────────────────────────────────── */

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.contact-list a {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: border-color 0.15s, color 0.15s;
}

.contact-list a:hover {
  color: var(--muted);
  border-color: transparent;
}

/* ── Footer ──────────────────────────────────── */

footer {
  padding-top: 48px;
  padding-bottom: 48px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Mobile ──────────────────────────────────── */

@media (max-width: 600px) {
  section {
    grid-template-columns: 1fr;
    gap: 20px 0;
  }

  #hero {
    padding: 56px 0 72px;
  }

  .nav-links {
    gap: 18px;
  }
}
