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

:root {
  --bg:        #382718;
  --surface:   #43301E;
  --tint:      #4E3A24;
  --text:      #EDE3CF;
  --muted:     #9A8A6E;
  --accent:    #7DBD6A;
  --accent-lt: #96CF82;
  --warm:      #C97B32;
  --border:    #5C4530;
  --r:         0.5rem;
  --sh-sm:     0 1px 3px rgba(0,0,0,.25), 0 2px 10px rgba(0,0,0,.15);
  --sh:        0 4px 12px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.2);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1rem;
}

/* ── Header ── */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.site-title:hover { color: var(--accent); }
nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.75rem;
  transition: color 0.15s;
  letter-spacing: 0.01em;
}
nav a:hover, nav a.active { color: var(--accent); }

/* ── Hero ── */

.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.5rem 4rem;
}
.hero-inner { max-width: 60rem; margin: 0 auto; }
.hero-greeting {
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 0.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-name {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 0.6rem;
  color: var(--text);
}
.hero-tagline {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--accent);
  margin: 0 0 1.75rem;
}
.hero-body {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.025rem;
  line-height: 1.8;
}
.hero-body p { margin: 0 0 0.8rem; }
.hero-links { display: flex; gap: 0.75rem; margin-top: 2rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.3rem;
  border-radius: var(--r);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--accent); color: #0e1a0a; }
.btn-primary:hover { background: var(--accent-lt); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ── Nav Cards ── */

.nav-cards {
  max-width: 60rem;
  margin: 3rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.nav-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem 1.6rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--sh-sm);
  transition: all 0.2s;
}
.nav-card:hover { border-color: var(--accent); box-shadow: var(--sh); transform: translateY(-2px); }
.nav-card-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.nav-card h3 {
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.45rem;
  color: var(--text);
}
.nav-card p { font-size: 0.875rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ── Content Pages ── */

.content-wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}
.page-header {
  margin-bottom: 2.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-family: 'Lora', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.4rem;
  color: var(--text);
}
.page-header .subtitle {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
}

/* ── Prose ── */

.prose { max-width: 44rem; }
.prose h2 {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
}
.prose h3 {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.6rem 0 0.4rem;
  color: var(--text);
}
.prose p { margin: 0 0 1rem; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.35rem; color: var(--text); }
.prose a { color: var(--accent); text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-lt); }
.prose strong { font-weight: 600; color: var(--text); }

/* ── Interests Grid ── */

.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}
.interest-item {
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.1rem 1.2rem;
}
.interest-item h4 {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.3rem;
}
.interest-item p { font-size: 0.85rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ── Resume / Timeline ── */

.resume-section { margin-bottom: 3rem; }
.resume-section h2 {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.timeline { position: relative; padding-left: 1.5rem; max-width: 44rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5rem; bottom: 0;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 2.25rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.625rem; top: 0.45rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-period {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.timeline-role {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
  color: var(--text);
}
.timeline-company { font-size: 0.9rem; font-weight: 500; color: var(--accent); margin-bottom: 0.6rem; }
.timeline-desc { font-size: 0.925rem; color: var(--muted); line-height: 1.65; }
.timeline-desc p { margin: 0 0 0.5rem; }
.timeline-desc ul { margin: 0.3rem 0 0; padding-left: 1.25rem; }
.timeline-desc li { margin-bottom: 0.25rem; }

.skills-section { max-width: 44rem; }
.skills-section h2 {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.skill-group { margin-bottom: 1.25rem; }
.skill-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.22rem 0.65rem;
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: 2rem;
  color: var(--text);
}

/* ── Projects Grid ── */

.projects-intro {
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.025rem;
  margin-bottom: 2rem;
  line-height: 1.75;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}
.project-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.project-card:hover { border-color: var(--accent); box-shadow: var(--sh); transform: translateY(-2px); }

.project-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2rem;
  background: var(--tint);
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 0.7rem;
  align-self: flex-start;
}
.project-card h3 {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.project-card p { font-size: 0.875rem; color: var(--muted); margin: 0 0 1rem; line-height: 1.6; flex: 1; }
.project-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  align-self: flex-start;
  transition: color 0.15s;
}
.project-link:hover { color: var(--accent-lt); }

/* Cover-link: makes the card title's ::after fill the entire card */
.card-cover-link {
  color: var(--text);
  text-decoration: none;
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 600;
}
.card-cover-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r);
}

/* ── Footer ── */

.site-footer { background: var(--surface); border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-inner a { color: var(--accent); text-decoration: none; }
.footer-inner a:hover { color: var(--accent-lt); }

/* ── Project Detail ── */

.back-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  opacity: 0.65;
  margin-bottom: 2rem;
  transition: opacity 0.15s, color 0.15s;
}
.back-link:hover { color: var(--accent); opacity: 1; }

.project-hero { margin-bottom: 1.75rem; }
.project-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.project-company { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.project-date { font-size: 0.85rem; color: var(--muted); }
.project-impact {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
}
.project-impact strong { color: var(--accent); font-style: normal; font-size: 1.2rem; }

.project-intro { margin-bottom: 2.75rem; }

.section-label {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

/* ── Journey Map ── */

.journey-section { margin-bottom: 3rem; }
.journey-map { display: flex; align-items: flex-start; }

.journey-stage {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem 0.85rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.journey-stage:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--sh); }

.stage-number {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #0e1a0a;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.6rem;
}
.stage-name { font-family: 'Lora', serif; font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.stage-desc { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.85rem; line-height: 1.4; }
.stage-tags { display: flex; flex-direction: column; gap: 0.35rem; align-items: center; }
.stage-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.18rem 0.5rem;
  border-radius: 2rem;
  background: var(--tint);
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}

.journey-arrow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.4rem 0.4rem 0;
  color: var(--accent);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ── Phase Tabs ── */

.playbook-section { margin-bottom: 3rem; }
.tabs input[type="radio"] { display: none; }

.tab-nav { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab-nav label {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border-radius: var(--r);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.tab-nav label:hover { color: var(--accent); border-color: var(--accent); }

.tabs input#phase-assess:checked ~ .tab-nav label[for="phase-assess"],
.tabs input#phase-onboard:checked ~ .tab-nav label[for="phase-onboard"],
.tabs input#phase-activate:checked ~ .tab-nav label[for="phase-activate"] {
  background: var(--accent);
  color: #0e1a0a;
  border-color: var(--accent);
}

.tab-panel { display: none; }
.tabs input#phase-assess:checked ~ .tab-panels .panel-assess,
.tabs input#phase-onboard:checked ~ .tab-panels .panel-onboard,
.tabs input#phase-activate:checked ~ .tab-panels .panel-activate { display: block; }

.phase-intro { font-size: 1rem; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.75; max-width: 44rem; }
.deliverables { display: flex; flex-direction: column; gap: 0.5rem; }

.deliverable {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.15s;
}
.deliverable[open] { border-color: var(--accent); }

.deliverable summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.15s;
}
.deliverable summary::-webkit-details-marker { display: none; }
.deliverable summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}
.deliverable[open] summary::after { transform: rotate(45deg); }
.deliverable summary:hover { color: var(--accent); }

.deliverable-content {
  padding: 0.75rem 1.1rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
}
.deliverable-content p { margin: 0; }

/* ── Project Outcome ── */

.project-outcome {
  background: var(--tint);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  margin-top: 1rem;
}
.project-outcome h2 {
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
  color: var(--text);
}
.project-outcome p { font-size: 0.95rem; color: var(--muted); margin: 0; line-height: 1.7; }

/* ── Responsive ── */

@media (max-width: 640px) {
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .nav-cards, .content-wrap { padding-left: 1.25rem; padding-right: 1.25rem; }
  .nav-cards { margin: 2rem auto; }
  nav a { margin-left: 1rem; font-size: 0.82rem; }
  .journey-map { flex-direction: column; gap: 0; }
  .journey-arrow { padding: 0.25rem 0; transform: rotate(90deg); font-size: 1rem; align-self: center; }
  .journey-stage { padding: 1rem; }
  .stage-tags { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}
