:root,
:root[data-theme="dark"] {
  --bg: #14130f;
  --bg-elev: #1c1a15;
  --bg-card: #221f19;
  --ink: #ede5d3;
  --ink-muted: #9c948a;
  --ink-faint: #6e6759;
  --accent: #c5a572;
  --accent-deep: #a08658;
  --sage: #9aa37e;
  --sage-deep: #75805a;
  --olive: #9aa37e;
  --neutral: #b8a98a;
  --line: #2d2a23;
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:root[data-theme="light"] {
  --bg: #f5efe1;
  --bg-elev: #efe6d2;
  --bg-card: #ece2ca;
  --ink: #1f1c14;
  --ink-muted: #5e574b;
  --ink-faint: #8a8472;
  --accent: #a08658;
  --accent-deep: #7d6740;
  --sage: #75805a;
  --sage-deep: #5c6745;
  --olive: #75805a;
  --neutral: #8a7c5e;
  --line: #d8cdb4;
}

html { transition: background-color 0.3s ease; }
body { transition: background-color 0.3s ease, color 0.3s ease; }

.sage-accent { color: var(--sage) !important; }
.sage-border { border-left-color: var(--sage) !important; }

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.75rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--ink); }

p { color: var(--ink-muted); margin-bottom: 1.25rem; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--ink-muted);
  font-weight: 500;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  margin-left: 1rem;
  padding: 0;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-actions { display: flex; align-items: center; }

/* Hero */
.hero {
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

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

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

.hero-lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-style: italic;
  color: var(--ink);
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

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

.btn {
  display: inline-block;
  padding: 0.95rem 1.75rem;
  border-radius: 2px;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--ink);
  color: var(--bg);
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */
section { padding: 5rem 0; }

.section-title {
  margin-bottom: 3rem;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Bio */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.bio-photo {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-card);
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%) contrast(1.05);
  transition: filter 0.4s ease;
}

.bio-photo:hover img { filter: grayscale(0%) contrast(1); }

.bio-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  transform: translate(12px, 12px);
  pointer-events: none;
  z-index: -1;
}

.bio-photo-wrap {
  position: relative;
  padding: 0 12px 12px 0;
}

.bio-content h2 { margin-bottom: 1.5rem; }
.bio-content p { font-size: 1.05rem; }

.bio-pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
  border-left: 2px solid var(--sage);
  padding-left: 1.5rem;
  margin: 2rem 0;
  line-height: 1.4;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 2.25rem;
  transition: all 0.3s ease;
  position: relative;
}

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

.project-card .tag {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.project-card h3 {
  margin-bottom: 1rem;
  color: var(--ink);
}

.project-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.project-card .meta {
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1.5rem;
}

/* Current work */
.current-feature {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
}

.current-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.5rem;
}

.status-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.current-feature h2 { margin-bottom: 1.5rem; }
.current-feature p { font-size: 1.1rem; max-width: 640px; }

.progress-list {
  list-style: none;
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.progress-list li {
  padding: 1.25rem;
  background: var(--bg-card);
  border-left: 2px solid var(--accent);
}

.progress-list .label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

.progress-list .value {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
}

/* Booking */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.booking-info h3 { margin-bottom: 1rem; }
.booking-info p { margin-bottom: 2rem; }

.contact-list {
  list-style: none;
  margin-top: 2rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.contact-list .label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  min-width: 100px;
}

form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

input, textarea, select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

textarea { resize: vertical; min-height: 120px; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-inner p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.socials {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.socials a {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elev);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .bio-grid, .booking-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .current-feature { padding: 2rem; }
  .hero { padding: 5rem 0 4rem; }
  section { padding: 3.5rem 0; }
}
