/*
  Isabella (Bella) Humphrey: portfolio styles

  1. Tokens
  2. Base
  3. Header
  4. Hero
  5. Proof points
  6. How I work
  7. Featured work
  8. Experience
  9. Footer
*/

/* 1. Tokens */
:root {
  --midnight: #1B1E3C;
  --azalea: #D6246E;
  --azalea-deep: #B01A5B;
  --blossom: #F7A8C4;
  --petal: #FCE8EF;
  --petal-line: #F3BCD0;
  --blush-ground: #FFF6F8;
  --mist: #F7F6FA;
  --line: #ECE8F0;
  --line-strong: #E4E0EA;
  --grey: #5C5A72;
  --on-dark-muted: #C9C6DA;
  --white: #FFFFFF;

  --font-display: 'Italiana', 'Bodoni Moda', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --radius-card: 20px;
  --radius-panel: 28px;
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--midnight);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--azalea-deep); }
a:hover { color: var(--midnight); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--midnight); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 104px; padding-bottom: 104px; }
.section--mist { background: var(--mist); }
section[id] { scroll-margin-top: 90px; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azalea-deep);
}
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 44px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background-color .15s, color .15s;
}
.btn--primary { background: var(--azalea); color: var(--white); padding: 15px 28px; border: 0; }
.btn--primary:hover { background: var(--azalea-deep); color: var(--white); }
.btn--outline { background: var(--white); color: var(--midnight); border-color: var(--midnight); }
.btn--outline:hover { background: var(--midnight); color: var(--white); }
.btn--ghost-dark { color: var(--white); border-color: #4A4970; }
.btn--ghost-dark:hover { border-color: var(--white); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.flower { position: absolute; pointer-events: none; user-select: none; }

/* 3. Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--petal-line);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(27,30,60,0.08); }
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--midnight); }
.brand:hover { color: var(--midnight); }
.brand__mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--azalea); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px;
}
.brand__name { font-family: var(--font-display); font-size: 24px; letter-spacing: 0.01em; }
.brand__name span { color: var(--azalea); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 14px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--midnight); padding: 10px 0; }
.nav a:hover { color: var(--azalea-deep); }
.nav .btn { background: var(--midnight); color: var(--white); padding: 12px 22px; font-size: 13px; }
.nav .btn:hover { background: var(--azalea); color: var(--white); }

/* 4. Hero */
.hero { position: relative; overflow: hidden; background: var(--blush-ground); }
.hero .flower--left { left: -70px; bottom: -60px; width: 425px; transform: rotate(12deg); }
.hero .flower--right { right: -60px; top: 20px; width: 375px; transform: rotate(-16deg); }
.hero__inner {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; gap: 64px;
  padding-top: 72px; padding-bottom: 96px;
}
.hero__copy { flex: 1 1 480px; display: flex; flex-direction: column; gap: 24px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 5.6vw, 80px);
  line-height: 1.02;
  letter-spacing: 0.01em;
}
.hero__title em { font-style: normal; color: var(--azalea); }
.hero__lede { font-size: 18px; line-height: 1.65; color: var(--grey); max-width: 560px; }
.hero__copy .btn-row { padding-top: 8px; }
.hero__photo {
  flex: 1 1 340px; max-width: 440px;
  padding: 24px; background: var(--petal); border-radius: 24px;
}
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; border-radius: 14px; }

/* 5. Proof points */
.stats { background: var(--midnight); color: var(--white); }
.stats__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px;
  padding-top: 52px; padding-bottom: 52px;
  margin: 0; list-style: none;
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__value { font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
.stat__label { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-muted); }

/* 6. How I work */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 32px 28px; display: flex; flex-direction: column; gap: 14px;
}
.card__icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--petal);
  display: flex; align-items: center; justify-content: center;
}
.card h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }
.card p { font-size: 15px; color: var(--grey); }

/* 7. Featured work */
.feature {
  background: var(--petal); border-radius: var(--radius-panel);
  padding: clamp(16px, 2vw, 24px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; align-items: center;
}
.feature__copy { padding: clamp(12px, 3vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.feature__title { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { background: var(--white); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; }
.text-link { align-self: flex-start; font-weight: 700; font-size: 15px; padding: 10px 0; }
.feature__media { margin: 0; background: var(--midnight); border-radius: var(--radius-card); overflow: hidden; }
.feature__media img { width: 100%; min-height: 300px; object-fit: cover; }
.feature__media figcaption { padding: 14px 20px; font-size: 12px; color: var(--on-dark-muted); }

.spotlight {
  margin-top: 20px;
  background: var(--midnight); color: var(--white); border-radius: var(--radius-panel);
  padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px 48px; align-items: end;
}
.spotlight__copy { display: flex; flex-direction: column; gap: 16px; }
.spotlight .eyebrow { color: var(--white); }
.spotlight .feature__title { font-family: var(--font-sans); font-weight: 800; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; }
.spotlight p { color: var(--on-dark-muted); }
.spotlight .tags { align-self: end; }
.spotlight .tags li { background: var(--petal); color: var(--midnight); }

.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.project { border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; }
.project img { width: 100%; height: 260px; background: var(--mist); }
.project img.cover { object-fit: cover; }
.project img.contain { object-fit: contain; }
.project__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; }
.project__meta { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); }
.project h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
.project p { font-size: 15px; color: var(--grey); }

/* 8. Experience */
.experience { display: flex; flex-wrap: wrap; gap: 56px; }
.experience__intro { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; align-self: flex-start; }
.experience__intro .btn { align-self: flex-start; font-size: 14px; padding: 12px 24px; }
.experience__list { flex: 2 1 520px; }
.timeline { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line-strong); }
.role {
  padding: 24px 0; border-top: 1px solid var(--line-strong);
  display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr); gap: 8px 24px;
}
.role__date { font-size: 13px; font-weight: 500; color: var(--grey); display: flex; align-items: flex-start; gap: 10px; }
.role__date::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--petal-line); margin-top: 6px; flex-shrink: 0;
}
.role--current .role__date::before { background: var(--azalea); }
.role__body { display: flex; flex-direction: column; gap: 4px; }
.role h3 { font-size: 18px; font-weight: 700; }
.role__org { font-size: 14px; font-weight: 600; color: var(--azalea-deep); }
.role p { margin-top: 4px; font-size: 15px; color: var(--grey); }
.credentials { padding-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.credential { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.credential strong { font-size: 15px; }
.credential span { font-size: 13px; color: var(--grey); }
.credential strong + span { margin-top: -4px; }
.credential span + strong { padding-top: 8px; }

.pubs { margin: 0 0 16px; padding: 0; list-style: none; border-bottom: 1px solid var(--line-strong); }
.pub {
  padding: 22px 0; border-top: 1px solid var(--line-strong);
  display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr); gap: 8px 24px;
}
.pub__venue { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--azalea-deep); padding-top: 3px; }
.pub__title { font-size: 17px; font-weight: 600; line-height: 1.45; }
.pub__note { font-weight: 400; color: var(--grey); }

/* 9. Footer */
.site-footer { position: relative; overflow: hidden; background: var(--midnight); color: var(--white); }
.site-footer .flower { right: 4%; bottom: -120px; width: 450px; transform: rotate(-10deg); }
.site-footer__inner { position: relative; display: flex; flex-direction: column; gap: 28px; padding-top: 96px; padding-bottom: 40px; }
.site-footer .eyebrow { color: var(--white); }
.site-footer__title { max-width: 840px; font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; letter-spacing: -0.02em; }
.site-footer__title em {
  font-style: normal;
  text-decoration: underline; text-decoration-color: var(--azalea);
  text-decoration-thickness: 4px; text-underline-offset: 10px;
}
.site-footer__meta {
  margin-top: 40px; padding-top: 28px; border-top: 1px solid #34365A;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--on-dark-muted);
}

@media (max-width: 900px) {
  .site-header { position: static; }
}

@media (max-width: 640px) {
  .section { padding-top: 72px; padding-bottom: 72px; }
  .hero__inner { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .hero .flower--right { width: 240px; right: -90px; opacity: .7; }
  .brand__name { font-size: 20px; }
  .role, .pub { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
