:root {
  --cream: #fdf8f2;
  --cream-dark: #f3e9db;
  --ink: #3c4a31;
  --ink-soft: #5f6a52;
  --coral: #c96a3a;
  --coral-dark: #a5502d;
  --peach: #e6a580;
  --blush: #f4cab8;
  --green: #47612c;
  --green-mid: #485b38;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(43, 36, 29, 0.08);
  --placeholder-bg: #fff7e6;
  --placeholder-border: #e6a580;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.nav-logo {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--coral-dark); text-decoration: none; }

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

/* Hero */
.hero {
  padding: 90px 0 70px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--green);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 2.9rem;
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero h1 span { color: var(--coral-dark); }

.hero-lead {
  font-size: 1.15rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(201, 106, 58, 0.35);
}
.btn-primary:hover { background: var(--coral-dark); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { border-color: var(--coral-dark); color: var(--coral-dark); }

.hero-photo-wrap {
  position: relative;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--white);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
}

/* Sections */
section { padding: 70px 0; }

.section-head {
  margin-bottom: 40px;
  max-width: 60ch;
}

.section-head .eyebrow { margin-bottom: 12px; }

.section-alt { background: var(--white); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.about-card h3 {
  font-size: 1.05rem;
  color: var(--green);
}

/* Timeline / experience */
.timeline {
  border-left: 3px solid var(--cream-dark);
  margin-top: 30px;
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline-item { position: relative; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -41px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid var(--cream);
}

.timeline-item h3 { margin-bottom: 2px; font-size: 1.15rem; }
.timeline-meta {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 8px;
}

/* Cards grid (projects / involvement) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--coral-dark);
  background: var(--blush);
  padding: 4px 10px;
  border-radius: 999px;
}

.card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.card p { font-size: 0.93rem; margin-bottom: 0; }

/* Placeholder styling */
.placeholder {
  border: 1.5px dashed var(--placeholder-border);
  background: var(--placeholder-bg);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: #8a6a1f;
  margin-top: 10px;
}
.placeholder strong { color: #6e5217; }

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.skill-card {
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 22px;
}

.skill-card h3 {
  font-size: 1rem;
  color: var(--green);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  background: var(--white);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* Connect */
.connect {
  background: var(--green);
  color: var(--white);
  border-radius: 28px;
  padding: 56px;
  text-align: center;
  margin: 0 24px;
}

.connect h2 { color: var(--white); }
.connect p { color: #dbe5c8; max-width: 50ch; margin: 0 auto 28px; }

.connect .btn-primary { background: var(--coral); }
.connect .btn-secondary { border-color: var(--white); color: var(--white); }
.connect .btn-secondary:hover { border-color: var(--blush); color: var(--blush); }

.connect-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* Pull quote + stats (About) */
.pull-quote {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  border-left: 4px solid var(--coral);
  padding-left: 28px;
  margin: 36px 0;
  max-width: 68ch;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 8px 0 44px;
}

.stat-number {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--coral-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.4;
}

/* Project index (Projects) */
.project-index {
  margin-top: 36px;
  border-top: 1px solid var(--cream-dark);
}

.project-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 30px 16px;
  border-bottom: 1px solid var(--cream-dark);
  border-radius: 12px;
  transition: background 0.15s ease;
}

.project-row:hover {
  background: rgba(72, 91, 56, 0.07);
}

.project-num {
  font-family: 'Fraunces', serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--cream-dark);
  line-height: 1;
}

.project-row h3 {
  font-size: 1.2rem;
  margin: 8px 0 6px;
}

.project-row p {
  font-size: 0.94rem;
  margin-bottom: 12px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Involvement chips */
.involvement-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
}

.involvement-chip {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  border-radius: 16px;
  padding: 24px 28px;
  border-left: 5px solid var(--coral);
  box-shadow: var(--shadow);
}

.involvement-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cream-dark);
}

.involvement-icon svg {
  width: 22px;
  height: 22px;
}

.involvement-meta {
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.involvement-chip h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.involvement-chip p {
  font-size: 0.93rem;
  margin-bottom: 0;
}

/* Dark section (Skills) */
.section-dark {
  background: var(--ink);
}

.section-dark .eyebrow {
  background: rgba(253, 248, 242, 0.1);
  color: var(--blush);
}

.section-dark h2 {
  color: var(--cream);
}

.section-dark .section-head p {
  color: #c9c1b4;
}

.section-dark .skill-card {
  background: rgba(253, 248, 242, 0.06);
}

.section-dark .skill-card h3 {
  color: var(--blush);
}

.section-dark .pill {
  background: rgba(253, 248, 242, 0.1);
  color: var(--cream);
}

.section-dark > .container > p a,
.section-dark a {
  color: var(--blush);
}
.section-dark a:hover {
  color: var(--cream);
}

.strength-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.strength-badge {
  flex: 1 1 170px;
  text-align: center;
  background: rgba(253, 248, 242, 0.06);
  border: 1px solid rgba(253, 248, 242, 0.14);
  border-radius: 16px;
  padding: 28px 18px;
}

.strength-rank {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  margin: 0 auto 16px;
}

.strength-domain {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blush);
  font-weight: 700;
  margin-bottom: 10px;
}

.strength-badge h3 {
  color: var(--cream);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.strength-badge p {
  color: #c9c1b4;
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo-wrap { order: -1; max-width: 320px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .connect { padding: 40px 24px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .project-row { grid-template-columns: 40px 1fr; padding: 24px 12px; }
  .involvement-chip { padding: 20px; gap: 14px; }
}

@media (max-width: 700px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--cream-dark);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 2.2rem; }
}
