/* ── Tokens ─────────────────────────────────── */
:root {
  --bg:        #ffffff;
  --bg-off:    #f7f7f5;
  --fg:        #1e1e1e;
  --fg-muted:  #555550;
  --accent:    #90dfa0;
  --accent-bg: #c6f0cf;
  --toggle-bg: #d8d8d4;
  --toggle-dot:#ffffff;
  --card-bg:   #ffffff;
  --card-border: #e8e8e4;
  --link:      #2a7a40;

  --font-head: 'Lora', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --max-w: 640px;
  --section-gap: 5rem;
}

[data-theme="dark"] {
  --bg:        #111110;
  --bg-off:    #181817;
  --fg:        #e8e4d8;
  --fg-muted:  #9a9690;
  --accent:    #5cba76;
  --accent-bg: #1a3323;
  --toggle-bg: #3a3a36;
  --toggle-dot:#e8e4d8;
  --card-bg:   #1c1c1a;
  --card-border: #2e2e2a;
  --link:      #7adea0;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Layout ─────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Dark-mode toggle ───────────────────────── */
.toggle-wrap {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--toggle-bg);
  border: none;
  border-radius: 999px;
  padding: 0.3rem 0.55rem 0.3rem 0.35rem;
  cursor: pointer;
  transition: background 0.3s;
  outline: none;
}
.toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.toggle-icon {
  font-size: 0.85rem;
  line-height: 1;
  transition: opacity 0.2s;
}

.toggle-pill {
  width: 2rem;
  height: 1.05rem;
  background: var(--bg-off);
  border-radius: 999px;
  position: relative;
  transition: background 0.3s;
}

.toggle-pill::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0.15rem;
  transform: translateY(-50%);
  width: 0.75rem;
  height: 0.75rem;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), background 0.3s;
}

[data-theme="dark"] .toggle-pill::after {
  transform: translateY(-50%) translateX(0.9rem);
}

/* ── Hero ───────────────────────────────────── */
.hero {
  padding: 6rem 0 3.5rem;
  text-align: center;
  animation: fadeUp 0.7s ease both;
}

.hero-photo {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto 2.5rem;
  display: block;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  /* Replace src with your actual photo */
  background: var(--accent-bg);
}

/* placeholder silhouette when no src */
.hero-photo-placeholder {
  width: 180px;
  height: 220px;
  border-radius: 12px;
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: var(--accent-bg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.hero-photo-placeholder svg {
  width: 130px;
  opacity: 0.45;
  fill: var(--accent);
  display: block;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 7vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--fg-muted);
  max-width: 460px;
  margin: 0 auto;
  font-size: 1.0625rem;
}

/* ── Green band sections ────────────────────── */
.band {
  background: var(--accent-bg);
  padding: 3rem 1.5rem;
  margin: var(--section-gap) calc(-50vw + 50%);      /* bleed to edges */
  transition: background 0.3s;
}

.band .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.band .section-title {
  margin-bottom: 1.5rem;
}

.band p {
  color: var(--fg);
  font-size: 1rem;
}

.band-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
  line-height: 1;
}

/* ── Section titles ─────────────────────────── */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ── Projects ───────────────────────────────── */
.projects-section {
  padding: var(--section-gap) 0;
  animation: fadeUp 0.7s 0.15s ease both;
}

.projects-section > .section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
  border-color: var(--accent);
}

.project-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.project-card p {
  color: var(--fg-muted);
  font-size: 0.975rem;
  line-height: 1.65;
}

.project-card a {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.project-card a:hover { border-color: var(--link); }

.project-tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--link);
  background: var(--accent-bg);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.more-soon {
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin-top: 2rem;
  letter-spacing: 0.03em;
}

/* ── Footer ─────────────────────────────────── */
footer {
  padding: 2rem 0 3rem;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--card-border);
}

/* ── Animations ─────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile ─────────────────────────────────── */
@media (max-width: 480px) {
  .hero { padding-top: 4.5rem; }
  .hero-photo-placeholder { width: 150px; height: 185px; }
  .band { padding: 2.5rem 1.25rem; }
}
