:root {
  --cream: #FAF6EF;
  --cream-deep: #F3EDE0;
  --ink: #04342C;
  --green: #0F6E56;
  --green-soft: #E1F5EE;
  --blue: #185FA5;
  --blue-soft: #E6F1FB;
  --pink: #D4537E;
  --pink-deep: #993556;
  --pink-soft: #F4C0D1;
  --line: #E5DDCC;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Karla", -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- header ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(20px, 6vw, 72px);
  position: sticky;
  top: 0;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--green);
  text-decoration: none;
}

.site-header nav a {
  color: var(--blue);
  text-decoration: none;
  font-size: 15px;
  margin-left: 26px;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.site-header nav a:hover { border-bottom-color: var(--pink); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(48px, 9vw, 110px) clamp(20px, 6vw, 72px) clamp(40px, 6vw, 80px);
  max-width: 1160px;
  margin: 0 auto;
}

.kicker {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-deep);
  font-weight: 700;
  margin-bottom: 14px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 22px;
  color: var(--ink);
}

.lede {
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.55;
  margin-bottom: 16px;
  max-width: 34em;
}

.lede-sub {
  font-size: 17px;
  color: var(--blue);
  margin-bottom: 30px;
  max-width: 36em;
}

.hl {
  padding: 0 4px;
  border-radius: 4px;
  white-space: nowrap;
}

.hl-pink  { background: linear-gradient(104deg, transparent 2%, var(--pink-soft) 5%, var(--pink-soft) 96%, transparent 98%); color: #4B1528; }
.hl-blue  { background: linear-gradient(100deg, transparent 2%, #B5D4F4 6%, #B5D4F4 95%, transparent 97%); color: #042C53; }
.hl-green { background: linear-gradient(102deg, transparent 3%, #9FE1CB 6%, #9FE1CB 96%, transparent 98%); color: #04342C; font-weight: 700; }

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

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 15.5px;
  padding: 12px 26px;
  border-radius: 10px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-solid { background: var(--green); color: var(--green-soft); box-shadow: 0 2px 0 #085041; }
.btn-solid:hover { box-shadow: 0 4px 0 #085041; }
.btn-outline { border: 2px solid var(--pink); color: var(--pink-deep); }
.btn-outline:hover { background: #FBEAF0; }
.btn-lg { padding: 15px 34px; font-size: 17px; }

/* ---------- hero photo ---------- */
.hero-photo { text-align: center; }

.photo-frame {
  position: relative;
  width: min(300px, 80%);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  border-radius: 130px 130px 18px 18px;
  overflow: hidden;
  background: var(--green);
  outline: 3px solid var(--ink);
  outline-offset: 6px;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-frame img[data-missing] { display: none; }

.photo-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 84px;
  font-weight: 700;
  color: var(--pink-soft);
  background: var(--green);
}

.photo-frame img[data-missing] + .photo-fallback { display: flex; }

.photo-caption {
  margin-top: 18px;
  font-size: 14.5px;
  font-style: italic;
  color: var(--pink-deep);
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- now strip ---------- */
.now-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.now-item { background: #fff; padding: 26px clamp(20px, 4vw, 48px); }

.now-label {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--pink-deep);
  margin-bottom: 6px;
}

.now-value { font-weight: 700; font-size: 16.5px; color: var(--ink); }

/* ---------- sections ---------- */
.section {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 100px) clamp(20px, 6vw, 40px);
}

.section-alt {
  max-width: none;
  background: var(--green);
  color: var(--green-soft);
}

.section-alt .inner { max-width: 880px; margin: 0 auto; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 42px);
  font-weight: 700;
  margin-bottom: 14px;
}

.squiggle {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='9' viewBox='0 0 120 9'%3E%3Cpath d='M2 6 Q 12 1, 24 5 T 46 5 T 68 5 T 90 5 T 118 4' fill='none' stroke='%23D4537E' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") bottom left / auto 9px repeat-x;
  padding-bottom: 12px;
}

.squiggle-pink {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='9' viewBox='0 0 120 9'%3E%3Cpath d='M2 6 Q 12 1, 24 5 T 46 5 T 68 5 T 90 5 T 118 4' fill='none' stroke='%23F4C0D1' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.section-intro {
  font-size: 18.5px;
  max-width: 38em;
  margin-bottom: 48px;
  color: var(--blue);
}

.section-alt .section-intro { color: #9FE1CB; }

/* ---------- jobs ---------- */
.job {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.job:last-child { border-bottom: 1px solid var(--line); }

.job.featured {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 0 14px 14px 0;
  padding: 30px 34px;
  margin-bottom: 10px;
}

.job.origin h3 { color: var(--pink-deep); }

.job-dates {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.02em;
  padding-top: 4px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 8px;
}

.tag-green { background: var(--green-soft); color: var(--green); }

.job h3 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  margin-bottom: 2px;
}

.job-role {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--pink-deep);
  margin-bottom: 12px;
}

.role-note { font-weight: 400; font-style: italic; color: var(--blue); }

.job p { margin-bottom: 10px; }

.job ul { padding-left: 20px; margin-top: 4px; }
.job li { margin-bottom: 6px; }

/* ---------- community ---------- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: #0B5B47;
  border-radius: 16px;
  padding: 28px 26px;
}

.card-emoji { font-size: 30px; margin-bottom: 12px; }

.card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.card p { font-size: 15.5px; color: #C9EDDF; }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact .section-intro { margin-left: auto; margin-right: auto; margin-bottom: 36px; }
.contact-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer {
  text-align: center;
  padding: 30px 20px 40px;
  font-size: 14px;
  color: var(--blue);
  border-top: 1px solid var(--line);
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-photo { order: -1; }
  .photo-frame { width: min(230px, 70%); }
  .job { grid-template-columns: 1fr; gap: 4px; }
  .job-dates { padding-top: 0; }
  .tag { margin-top: 0; margin-left: 10px; }
  .job-when { display: flex; align-items: center; margin-bottom: 6px; }
  .site-header nav a { margin-left: 14px; font-size: 14px; }
}
