:root {
  --ink: #16130f;
  --paper: #f7f3ec;
  --paper-deep: #efe8dc;
  --accent: #2f5d50;      /* deep pine — calm, considered, not the terracotta default */
  --accent-soft: #3f7566;
  --muted: #6f675b;
  --line: #ddd3c4;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* subtle paper grain so the flat background has some tooth */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .site-head, .site-foot { position: relative; z-index: 1; }

/* ---------- header ---------- */
.site-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark .dot { color: var(--accent); }

.nav a {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.75rem;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 9rem) 2rem clamp(3rem, 8vh, 6rem);
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 34ch;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--accent-soft); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--paper-deep); }

/* ---------- what we do ---------- */
.work {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) 2rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  border-top: 1px solid var(--line);
}
.work-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  padding-top: 0.4rem;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2.5rem;
}
.work-card h3 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.work-card p { color: var(--muted); font-size: 1rem; max-width: 40ch; }

/* ---------- shared section frame ---------- */
.about, .contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) 2rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  border-top: 1px solid var(--line);
}

.about-label, .contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  padding-top: 0.4rem;
}

.about-body p { font-size: 1.15rem; max-width: 60ch; }
.about-body p + p { margin-top: 1.25rem; color: var(--muted); }

.contact-body p { color: var(--muted); margin-bottom: 0.75rem; }
.mail {
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  transition: color 0.2s ease;
}
.mail:hover { color: var(--accent); }

/* ---------- footer ---------- */
.site-foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 2rem 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 1rem;
}
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* ---------- legal / privacy ---------- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 6rem) 2rem 4rem;
}
.legal-title {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.5rem;
}
.legal-updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.5rem; }
.legal-body h2 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.35rem;
  margin: 2.25rem 0 0.6rem;
}
.legal-body p { margin-bottom: 1rem; color: #35302a; }
.legal-body a { color: var(--accent); }
.back { margin-top: 3rem; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 680px) {
  .about, .contact, .work { grid-template-columns: 1fr; gap: 0.75rem; }
  .work-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .nav a:first-child { margin-left: 0; }
  .nav a { margin-left: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
