/* ── Emily Kurth Designs — Design System ── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;1,9..144,300;1,9..144,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg:        #FAF9F7;
  --surface:   #FFFFFF;
  --ink:       #1C4755;
  --green:     #2A9470;
  --green-lt:  #E8F5F0;
  --green-dk:  #1E7055;
  --mint:      #5CE3B1;
  --sand:      #F0EFEB;
  --sand-mid:  #DDDBD4;
  --muted:     #3A5260;
  --hint:      #5A7A86;
  --faint:     #8A9FA8;
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --serif: 'Fraunces', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ── NAV — full viewport width, content constrained inside ── */
/* ── NAV — full viewport width background, constrained inner content ── */
.nav {
  width: 100%;
  background: var(--surface);
  border-bottom: 0.5px solid var(--sand-mid);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
}

.logo { text-decoration: none; display: block; }
.logo-top { font-family: var(--serif); font-size: 1.35rem; font-style: italic; font-weight: 400; color: var(--green); display: block; line-height: 1.1; }
.logo-bottom { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hint); display: block; margin-top: 2px; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

.nav-cta {
  font-size: 12px; font-weight: 600; color: var(--surface);
  background: var(--ink); padding: 10px 22px; border-radius: var(--r-sm);
  text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background .15s; white-space: nowrap;
}
.nav-cta:hover { background: var(--green); }

/* ── SITE WRAPPER — constrains all page content ── */
.site {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: 13px; color: var(--muted);
  padding: 0.85rem 2.5rem;
  border-bottom: 0.5px solid var(--sand-mid);
  background: var(--surface);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { margin: 0 0.5rem; }
.breadcrumb strong { color: var(--ink); font-weight: 500; }

/* ── EYEBROW ── */
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--green);
  display: block; margin-bottom: 1rem;
}

/* ── PROCESS BAR ── */
.process-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  padding: 1rem 2.5rem;
  border-bottom: 0.5px solid var(--sand-mid);
  background: var(--sand);
}
.ps { font-size: 12px; font-weight: 500; color: var(--muted); }
.ps-sep { font-size: 11px; color: var(--green); font-weight: 600; }

/* ── CALLOUT ── */
.callout {
  background: var(--green-lt); border-left: 3px solid var(--green);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1.1rem 1.5rem; margin: 1.5rem 0;
  font-size: 15px; font-style: italic; font-family: var(--serif);
  color: var(--ink); line-height: 1.65;
}
.callout-label {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  font-style: normal; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-dk); margin-bottom: 0.4rem;
}

/* ── PILLS / TAGS ── */
.pill, .tag {
  font-size: 12px; font-weight: 500; color: var(--green-dk);
  background: var(--green-lt); border-radius: 20px;
  padding: 4px 12px; display: inline-block;
}

/* ── CASE STUDY SHARED ── */
.cs-hero { padding: 4rem 2.5rem 3rem; border-bottom: 0.5px solid var(--sand-mid); }
.cs-title {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; line-height: 1.1; color: var(--ink);
  letter-spacing: -0.02em; max-width: 680px;
}
.cs-title em { font-style: italic; color: var(--green); }

.cs-meta-row { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.cs-meta-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
.cs-meta-val { font-size: 14px; color: var(--ink); font-weight: 400; }

.cs-section { padding: 3.5rem 2.5rem; border-bottom: 0.5px solid var(--sand-mid); }
.cs-section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green-dk); margin-bottom: 0.75rem;
}
.cs-section-title {
  font-family: var(--serif); font-size: 1.65rem; font-weight: 400;
  color: var(--ink); margin-bottom: 1rem; line-height: 1.2;
}
.cs-section-title em { font-style: italic; color: var(--green); }

.cs-body {
  font-size: 15px; font-weight: 400; color: var(--ink);
  line-height: 1.85; max-width: 680px;
}
.cs-body p { margin-bottom: 1rem; }
.cs-body p:last-child { margin-bottom: 0; }

.cs-img-caption {
  font-size: 13px; color: var(--muted); font-style: italic;
  margin-top: 0.6rem; font-family: var(--serif);
}

/* ── CARD TEXT — pain, finding, challenge, system, process cards ── */
.pain-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-top: 1.5rem; }
.pain-card { background: var(--surface); border: 0.5px solid var(--sand-mid); border-radius: var(--r-md); padding: 1.25rem 1.5rem; }
.pain-num { font-family: var(--serif); font-size: 1.1rem; font-weight: 300; font-style: italic; color: var(--green); margin-bottom: 0.4rem; }
.pain-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.pain-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

.findings-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1.5rem; }
.finding-card { background: var(--surface); border: 0.5px solid var(--sand-mid); border-radius: var(--r-md); padding: 1.25rem; }
.finding-num { font-family: var(--serif); font-size: 1.1rem; font-weight: 300; font-style: italic; color: var(--green); margin-bottom: 0.4rem; }
.finding-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.finding-prob { font-size: 13px; color: var(--ink); line-height: 1.6; margin-bottom: 8px; }
.finding-arrow { font-size: 11px; color: var(--green-dk); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.finding-sol { font-size: 13px; color: var(--muted); line-height: 1.6; }

.challenge-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-top: 1.5rem; }
.challenge-card { background: var(--surface); border: 0.5px solid var(--sand-mid); border-radius: var(--r-md); padding: 1.25rem 1.5rem; }
.challenge-num { font-family: var(--serif); font-size: 1.1rem; font-weight: 300; font-style: italic; color: var(--green); margin-bottom: 0.4rem; }
.challenge-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.challenge-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

.system-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1.5rem; }
.system-card { background: var(--surface); border: 0.5px solid var(--sand-mid); border-radius: var(--r-md); padding: 1.25rem; }
.system-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--green-lt); display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.system-icon svg { width: 16px; height: 16px; stroke: var(--green-dk); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.system-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.system-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

.process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-top: 1.5rem; }
.process-step { background: var(--surface); border: 0.5px solid var(--sand-mid); border-radius: var(--r-md); padding: 1.25rem; }
.process-num { font-family: var(--serif); font-size: 1.4rem; font-weight: 300; font-style: italic; color: var(--green); margin-bottom: 0.4rem; }
.process-step-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.process-step-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin: 1.5rem 0; }
.stat-card { background: var(--sand); border-radius: var(--r-md); padding: 1.5rem; text-align: center; }
.stat-num { font-family: var(--serif); font-size: 2rem; font-weight: 300; color: var(--green); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 13px; color: var(--muted); line-height: 1.5; }

.screen-label { font-size: 13px; color: var(--muted); text-align: center; padding: 0.5rem; background: var(--surface); border-top: 0.5px solid var(--sand-mid); }

/* ── REFLECTION ── */
.reflection { background: var(--sand); border-radius: var(--r-lg); padding: 2.5rem; margin: 1.5rem 0; }
.ref-label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-dk); margin-bottom: 0.75rem; }
.ref-text { font-family: var(--serif); font-size: 1.1rem; font-weight: 300; font-style: italic; color: var(--ink); line-height: 1.65; }

/* ── NDA NOTE ── */
.nda-note {
  background: var(--surface); border: 0.5px solid var(--sand-mid);
  border-left: 3px solid var(--green); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 0.85rem 1.25rem; margin: 1.5rem 0;
  display: flex; align-items: center; gap: 0.75rem;
}
.nda-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-dk); flex-shrink: 0; }
.nda-text { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── TOOLS ROW ── */
.tools-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 1rem; }

/* ── FIGMA BUTTON ── */
.figma-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--surface);
  background: var(--green); padding: 11px 22px; border-radius: var(--r-sm);
  text-decoration: none; margin-top: 1rem; transition: background .15s;
}
.figma-btn:hover { background: var(--green-dk); }

/* ── CS NAV (bottom prev/next) ── */
.cs-nav {
  padding: 2.5rem; border-top: 0.5px solid var(--sand-mid);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.cs-nav-label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.cs-nav-title { font-family: var(--serif); font-size: 1rem; font-weight: 400; color: var(--ink); }
.cs-nav-link { font-size: 13px; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.cs-nav-right { text-align: right; }

/* ── FOOTER — full width background, constrained content ── */
.footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  padding: 1.5rem calc(50% - 420px);
  border-top: 0.5px solid var(--sand-mid);
  background: var(--sand);
  width: 100%;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 12px; color: var(--hint); }

/* ── SCREEN GRIDS (food truck case study) ── */
.hero-screens { display: grid; gap: 1rem; margin-top: 2.5rem; }
.hero-screen { border-radius: var(--r-md); overflow: hidden; border: 0.5px solid var(--sand-mid); background: #2a2a2a; }
.hero-screen img { width: 100%; display: block; }
.screen-flow { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin: 1.5rem 0; }
.screen-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin: 1.5rem 0; }
.screen-item { border-radius: var(--r-md); overflow: hidden; border: 0.5px solid var(--sand-mid); background: #1a1a1a; }
.screen-item img { width: 100%; display: block; }
.cs-img-full { width: 100%; border-radius: var(--r-md); overflow: hidden; border: 0.5px solid var(--sand-mid); }
.cs-img-full img { width: 100%; display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .nav-inner { padding: 1.25rem 2rem; }
  .footer { padding: 1.5rem 2rem; }
}
@media (max-width: 640px) {
  .nav-inner { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .footer { padding: 1.25rem; }
  .breadcrumb { padding: 0.75rem 1.25rem; }
  .process-bar { padding: 0.75rem 1.25rem; }
  .cs-hero { padding: 2.5rem 1.5rem; }
  .cs-section { padding: 2.5rem 1.5rem; }
  .pain-grid, .challenge-grid { grid-template-columns: 1fr; }
  .findings-grid, .system-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .screen-flow { grid-template-columns: 1fr 1fr; }
  .screen-3 { grid-template-columns: 1fr 1fr; }
  .cs-nav { padding: 2rem 1.5rem; }
}
