:root {
  --cream: #fdf8f0;
  --cream-alt: #f6ecd9;
  --paper: #fffdf9;
  --ink: #4a3f38;
  --ink-soft: #8a7c70;

  --pink: #edc7cd;
  --pink-deep: #c97c8b;
  --sage: #bcc9ad;
  --sage-deep: #7f9470;
  --lavender: #d9cbe8;
  --lavender-deep: #a892c4;
  --beige: #e7dac2;

  --border: #ecdfd0;
  --shadow: 0 12px 28px rgba(150, 110, 90, 0.14);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Caveat", cursive;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.8rem, 6vw, 4.4rem); line-height: 1.1; font-weight: 500; }
h2 {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
h3 { font-size: 1.3rem; font-weight: 600; }

.script-name {
  font-style: italic;
  color: var(--pink-deep);
}

.handwritten {
  font-family: var(--font-script);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pink-deep);
  margin: 0;
}

.kicker { margin-bottom: 2px; }

a { color: inherit; text-decoration: none; }

.timeline-content a,
.card-desc a,
.about-text a {
  color: var(--pink-deep);
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-underline-offset: 2px;
  font-weight: 600;
}

.timeline-content a:hover,
.card-desc a:hover,
.about-text a:hover {
  color: var(--sage-deep);
  text-decoration-color: var(--sage);
}

.doodle-inline svg {
  width: 0.75em;
  height: 0.75em;
  color: var(--pink-deep);
  vertical-align: middle;
}

.doodle {
  position: absolute;
  color: var(--sage);
  opacity: 0.55;
  pointer-events: none;
}
.doodle svg { width: 100%; height: 100%; display: block; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 240, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pink-deep);
}

.site-nav {
  display: flex;
  gap: 26px;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--pink-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* Hero */
.hero {
  padding: 90px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-sparkle-1 { top: 18%; left: 6%; width: 26px; height: 26px; color: var(--pink-deep); opacity: 0.7; }
.hero-sparkle-2 { top: 70%; left: 46%; width: 18px; height: 18px; color: var(--lavender-deep); opacity: 0.6; }
.hero-flower { top: 10%; right: 4%; width: 44px; height: 44px; color: var(--sage-deep); opacity: 0.4; }

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-text { flex: 1 1 420px; }

.hero-text .handwritten { display: block; margin-bottom: 10px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sage-deep);
  margin: 0 0 10px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 18px 0 32px;
}

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

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--pink-deep);
  color: #fff;
  box-shadow: 0 10px 22px rgba(201, 124, 139, 0.35);
}
.btn-primary:hover { background: #b56777; transform: translateY(-2px); }

.btn-outline {
  border: 1.5px solid var(--pink-deep);
  color: var(--pink-deep);
  background: transparent;
}
.btn-outline:hover { background: var(--pink-deep); color: #fff; transform: translateY(-2px); }

.hero-photo {
  flex: 0 0 auto;
  position: relative;
  width: 320px;
  text-align: center;
}

.photo-frame {
  width: 300px;
  height: 360px;
  margin: 0 auto;
  border-radius: 130px 130px 20px 20px / 160px 160px 20px 20px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, var(--pink), var(--lavender));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  border: 8px solid var(--paper);
  transform: rotate(-3deg);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  position: absolute;
  inset: 0;
}

.photo-frame .monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3rem;
  color: #fff;
  z-index: 1;
}

.photo-frame:not(.no-photo) .monogram { display: none; }

.hero-sprig {
  position: absolute;
  width: 108px;
  height: 108px;
  top: -22px;
  right: -6px;
  transform: rotate(12deg);
  z-index: 2;
}

.photo-caption {
  font-family: var(--font-script);
  font-size: 1.15rem;
  color: var(--sage-deep);
  margin: 14px 0 0;
}

.tape {
  position: absolute;
  z-index: 3;
  width: 74px;
  height: 28px;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-5deg);
  opacity: 0.75;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}
.tape-pink { background: repeating-linear-gradient(45deg, var(--pink) 0 6px, var(--pink-deep) 6px 10px); }
.tape-sage { background: repeating-linear-gradient(45deg, var(--sage) 0 6px, var(--sage-deep) 6px 10px); }
.tape-lavender { background: repeating-linear-gradient(45deg, var(--lavender) 0 6px, var(--lavender-deep) 6px 10px); }

/* Sections */
.section { padding: 84px 0; position: relative; }
.section-alt { background: var(--cream-alt); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: none; }

/* Note cards (paper / scrapbook blocks) */
.note-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 26px 10px 26px 10px;
  padding: 30px;
  box-shadow: var(--shadow);
}

/* About */
.about-grid {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.about-text {
  flex: 1 1 380px;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.education-card {
  flex: 0 1 320px;
  transform: rotate(2.5deg);
  transition: transform 0.2s ease;
}
.education-card:hover { transform: translateY(-6px) rotate(0deg); }

.edu-school { font-weight: 700; margin: 0 0 4px; color: var(--ink); }
.edu-degree { color: var(--ink-soft); margin: 0 0 4px; }
.edu-meta { font-size: 0.9rem; color: var(--pink-deep); font-weight: 700; margin: 0 0 16px; }

.edu-honors {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.94rem;
}

.edu-honors li::before {
  content: "✿ ";
  color: var(--pink-deep);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.timeline-item {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  border-left: 2.5px dashed var(--pink);
  padding-left: 28px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pink-deep);
  box-shadow: 0 0 0 4px var(--cream-alt);
}

.timeline-item:nth-child(2n)::before { background: var(--sage-deep); box-shadow: 0 0 0 4px var(--cream-alt); }
.timeline-item:nth-child(3n)::before { background: var(--lavender-deep); }

.timeline-date {
  flex: 0 0 160px;
  font-weight: 700;
  color: var(--pink-deep);
  font-size: 0.92rem;
}

.timeline-content { flex: 1 1 480px; }

.timeline-org {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 10px;
  font-weight: 600;
}

.timeline-content ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.timeline-content li { margin-bottom: 6px; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.leadership-grid {
  grid-template-columns: 1fr 1.4fr;
}

@media (max-width: 760px) {
  .leadership-grid { grid-template-columns: 1fr; }
}

.card { transition: transform 0.2s ease; }
.card:hover { transform: translateY(-4px) rotate(0deg) !important; }
.card-grid .card:nth-child(2n) { transform: rotate(-1.2deg); }
.card-grid .card:nth-child(2n+1) { transform: rotate(1deg); }

.card-tag {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  color: var(--pink-deep);
  font-weight: 800;
  margin: 0 0 10px;
}

.card-badge {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 600;
  margin: 0 0 14px;
}

.card p:last-child,
.card-desc {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin: 0;
}

.card-desc + .card-desc {
  margin-top: 12px;
}

/* Pills (used for project tech tags) */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.pill {
  background: var(--paper);
  border: 1.5px solid var(--border);
  color: var(--ink);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.pill:nth-child(3n+1) { border-color: var(--pink); }
.pill:nth-child(3n+2) { border-color: var(--sage); }
.pill:nth-child(3n) { border-color: var(--lavender); }

/* Project cards */
.project-photo {
  margin: -30px -30px 18px;
  border-radius: 26px 10px 0 0;
  overflow: hidden;
}

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

.project-ribbon {
  display: inline-block;
  background: var(--pink);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 12px;
}

.project-card:nth-child(2n) .project-ribbon { background: var(--lavender); }

.project-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
}

.project-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  color: var(--pink-deep);
}

.project-link-row .project-link { margin-top: 0; }
.project-link:hover { color: var(--sage-deep); }

/* Outreach photos */
.outreach-photos {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.outreach-photos img {
  flex: 1 1 0;
  width: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px 4px 14px 4px;
  border: 4px solid var(--paper);
  box-shadow: var(--shadow);
}

/* Contact */
.contact-section { text-align: center; }
.contact-heart { top: 24px; right: 8%; width: 34px; height: 34px; color: var(--pink-deep); opacity: 0.5; }

.contact-section h2 { justify-content: center; margin-bottom: 32px; }

.contact-emails {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.contact-email-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-email-row .handwritten { font-size: 1.3rem; }

.contact-section .hero-links { justify-content: center; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 36px 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-links { justify-content: center; }
  .timeline-item { flex-direction: column; gap: 6px; }
  .timeline-date { flex: none; }
  .education-card { transform: none; }
  .card-grid .card { transform: none !important; }
  .hero-photo { width: 240px; }
  .photo-frame { width: 220px; height: 270px; }
  .hero-sprig { width: 80px; height: 80px; top: -16px; right: 2px; }
}
