/* ─── Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500&display=swap');

/* ─── Variables ──────────────────────────────────────────── */
:root {
  --bg:        #f9f7f4;
  --surface:   #ffffff;
  --border:    #e8e4de;
  --text:      #1a1814;
  --muted:     #8a857d;
  --accent:    #c0622a;
  --accent-bg: #fdf0e8;
  --radius:    10px;
  --max-w:     760px;
  --nav-h:     64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
  min-height: 100vh;
}

/* ─── Nav ────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(249, 247, 244, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

/* ─── Layout ─────────────────────────────────────────────── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* ─── Typography ─────────────────────────────────────────── */
h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

p { color: #4a4540; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 3rem 0 4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 { margin-bottom: 1.2rem; }

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

.hero-bio {
  font-size: 1.05rem;
  max-width: 560px;
  color: #5a534b;
  margin-bottom: 2rem;
}

.hero-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover { background: #333; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--text); transform: translateY(-1px); }

.btn-accent {
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid #e8c8b0;
}
.btn-accent:hover { background: #f8e4d0; transform: translateY(-1px); }

/* ─── Section ────────────────────────────────────────────── */
.section { margin-bottom: 3.5rem; }

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* ─── Card ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

.card-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.card-desc {
  font-size: 0.9rem;
  color: #5a534b;
  margin-top: 0.4rem;
  margin-bottom: 1rem;
}

/* ─── Tag ────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid #e8c8b0;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}

/* ─── Grid ───────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* ─── Timeline (About) ───────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 1rem; }

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 0.1rem;
  text-align: right;
}

.timeline-body { border-left: 2px solid var(--border); padding-left: 1.5rem; padding-bottom: 1rem; }

/* ─── Contact Form ───────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 98, 42, 0.1);
}

.field textarea { resize: vertical; min-height: 130px; }

.form-notice {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: -0.4rem;
}

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ─── Fade-in animation ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

main > * {
  animation: fadeUp 0.5s ease both;
}

main > *:nth-child(2) { animation-delay: 0.08s; }
main > *:nth-child(3) { animation-delay: 0.14s; }
main > *:nth-child(4) { animation-delay: 0.20s; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  nav { padding: 0 1.2rem; }
  main { padding: 2.5rem 1.2rem 5rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.2rem; }
  .timeline-date { text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { gap: 1.2rem; }
}
