@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Inter:wght@300;400;500;600&display=swap');

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

/* Sunset palette. Variable names kept from kristilyneaton.com so classes carry over:
   --forest = deep dusk plum (headings, buttons)
   --terra  = sunset terracotta (accents, links; passes AA on cream)
   --sage   = soft peach (decorative only, not for text) */
:root {
  --cream:    #FBF5EE;
  --shell:    #F4E6D7;
  --forest:   #4A2E3F;
  --forest-hover: #6A4258;
  --terra:    #B4513A;
  --terra-hover: #93412E;
  --sage:     #F0B48A;
  --dusk:     #C58FA6;
  --ink:      #2E2029;
  --mid:      #6B5560;
  --border:   #EADBCB;
  --sunset:   linear-gradient(160deg, #F7D2AE 0%, #EEA07F 45%, #C58FA6 100%);
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; overscroll-behavior: none; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-top: 5rem;
  overscroll-behavior: none;
}

img { max-width: 100%; }

/* skip link */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 300;
  background: var(--forest); color: var(--cream);
  padding: 0.6rem 1rem; text-decoration: none; border-radius: 2px;
  font-size: 0.85rem;
}
.skip-link:focus { top: 1rem; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(251,245,238,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: 0.01em;
}

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

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--terra); font-weight: 600; }

.nav-logo:hover,
.nav-logo.active { color: var(--terra); }

/* ── LAYOUT ── */
main { padding-top: 0; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 2.5rem; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 2.5rem; }
.container-medium { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5rem 0; }
section + section { border-top: 1px solid var(--border); }
.section-shell { background: var(--shell); }

/* ── TYPE ── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  color: var(--forest);
  margin-bottom: 1.25rem;
}

.section-body {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 580px;
  line-height: 1.8;
}

/* ── PHOTO PLACEHOLDERS ──
   Any .photo box shows the sunset gradient until its image loads.
   shared.js hides broken <img> tags so the gradient shows instead of a broken icon. */
.photo {
  background: var(--sunset);
  overflow: hidden;
  border-radius: 2px;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.photo img.img-missing { visibility: hidden; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--forest-hover); }

.btn-outline { border: 1px solid var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: var(--cream); }

.btn-terra { background: var(--terra); color: #fff; }
.btn-terra:hover { background: var(--terra-hover); }

/* ── CARDS ── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--sage); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card h3 { font-size: 1.55rem; color: var(--forest); margin-bottom: 0.75rem; }
.card p { font-size: 0.95rem; color: var(--mid); line-height: 1.75; }

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1rem;
}

/* ── IMPACT / STAT GRID ── */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.impact-stat {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}
.impact-stat-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 600;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.impact-stat-label { font-size: 0.85rem; color: var(--mid); line-height: 1.5; }

/* ── PAGE HERO (interior pages) ── */
.page-hero {
  padding: 5rem 2.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--forest);
  margin-bottom: 1rem;
  max-width: 720px;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--mid);
  max-width: 560px;
  line-height: 1.75;
}

/* banner photo under an interior page hero */
.page-banner {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 0 2.5rem;
}
.page-banner .photo { aspect-ratio: 21/8; }

/* ── EXPERIENCE TIMELINE ── */
.timeline { list-style: none; margin-top: 2.5rem; }
.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: 1px solid var(--border); }
.timeline-date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  padding-top: 0.45rem;
}
.timeline-item h3 { font-size: 1.6rem; color: var(--forest); margin-bottom: 0.25rem; }
.timeline-role { font-size: 0.9rem; font-weight: 500; color: var(--ink); margin-bottom: 0.6rem; }
.timeline-item p { font-size: 0.95rem; color: var(--mid); max-width: 62ch; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.tag {
  font-size: 0.7rem;
  background: var(--shell);
  color: var(--forest);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
}

/* ── PROJECT GRID ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
  margin-top: 3rem;
}
.project-card .photo { aspect-ratio: 4/3; margin-bottom: 1.1rem; }
.project-card h3 { font-size: 1.6rem; color: var(--forest); margin-bottom: 0.35rem; }
.project-card p { font-size: 0.92rem; color: var(--mid); line-height: 1.7; max-width: 46ch; }

/* ── SERVICES LIST ── */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 4rem;
  margin-top: 3rem;
  list-style: none;
}
.service-item { padding: 1.75rem 0; border-top: 1px solid var(--border); }
.service-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--terra);
  margin-bottom: 0.2rem;
}
.service-item h3 { font-size: 1.55rem; color: var(--forest); margin-bottom: 0.5rem; }
.service-item p { font-size: 0.95rem; color: var(--mid); }

/* ── FEATURE ROW ── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.feature-row.flip > *:first-child { order: 2; }
.feature-row .photo { aspect-ratio: 4/5; }

/* ── CTA BAND ── */
.cta-band {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  padding: 5rem 2.5rem;
}
.cta-band h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.cta-band p { color: rgba(251,245,238,0.8); max-width: 520px; margin: 0 auto 2rem; }
.cta-band .btn { background: var(--cream); color: var(--forest); }
.cta-band .btn:hover { background: var(--sage); }

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}
.about-portrait { width: 85%; aspect-ratio: 4/5; margin-bottom: 1.5rem; }

.sidebar-links { list-style: none; }
.sidebar-links li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.sidebar-links a {
  font-size: 0.85rem;
  color: var(--mid);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}
.sidebar-links a:hover { color: var(--terra); }

.about-content h2 {
  font-size: 2.2rem;
  color: var(--forest);
  margin-bottom: 1.25rem;
  margin-top: 2.5rem;
}
.about-content h2:first-child { margin-top: 0; }
.about-content p {
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
}
.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--forest);
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}
.form-group textarea { resize: vertical; min-height: 140px; }

.contact-info-block {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.contact-info-block h3 { font-size: 1.4rem; color: var(--forest); margin-bottom: 0.75rem; }
.contact-info-block p { font-size: 0.9rem; color: var(--mid); line-height: 1.7; }
.contact-info-block a { color: var(--terra); text-decoration: none; }
.contact-info-block a:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2.5rem;
  background: var(--shell);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
}
.footer-copy { font-size: 0.78rem; color: var(--mid); }
.footer-links { display: flex; gap: 1.75rem; list-style: none; }
.footer-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--terra); }

/* ── MOBILE ── */
.hamburger { display: none; }

@media (max-width: 900px) {
  nav { padding: 1.25rem 1.75rem; }
  .nav-links { gap: 1.4rem; }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: block; font-size: 1.4rem; background: none; border: none; cursor: pointer; color: var(--forest); width: 44px; height: 44px; }

  .container, .container-narrow { padding: 0 1.5rem; }
  section { padding: 3rem 0; }

  .about-grid, .contact-grid, .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row.flip > *:first-child { order: 0; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .project-grid, .service-list { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .about-portrait { width: 100%; }

  .page-hero { padding: 3rem 1.5rem 1.5rem; }
  .page-banner { padding: 0 1.5rem; margin-top: 2rem; }
  .page-banner .photo { aspect-ratio: 16/9; }
  .cta-band { padding: 3.5rem 1.5rem; }

  footer { padding: 2.5rem 1.5rem; }
  .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

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