/* ── Variables ── */
:root {
  --purple:      #8E6FA3;
  --purple-dark: #5C3F74;
  --purple-mid:  #7A5A90;
  --taupe:       #7B6148;
  --amber:       #D4962A;
  --white:       #FFFFFF;

  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;

  --amber-rgb:    212, 150, 42; /* decomposed --amber for rgba() usage */
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
ul    { list-style: none; }
a     { color: inherit; text-decoration: none; }

/* ── Base ── */
body {
  font-family: var(--font-body);
  background: var(--purple);
  color: var(--white);
  min-height: 100dvh;
}

/* ── Hero — full-bleed artwork ── */
.hero {
  position: relative;
  height: min(80vw, 420px); /* mobile: tall enough to showcase the artwork */
  background: var(--purple-dark); /* fallback while image loads */
  overflow: hidden;
}

/* Artwork fills the hero completely */
.hero__artwork {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__artwork img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Name + subtitle live in .content, not in the hero */
.hero__content {
  /* no special positioning needed — flows normally inside .content */
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1;
  color: var(--white);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-top: .4rem;
}

/* Wave transition to body */
.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 32px;
  background: var(--purple);
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* ── Content ── */
.content {
  padding: 1.5rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bio {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,.75);
}

/* ── Links section ── */
.links { display: flex; flex-direction: column; gap: .5rem; } /* gap between label, list, and "more links" */

.links__label {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: .25rem;
}

.links__list { display: flex; flex-direction: column; gap: .5rem; } /* gap between individual link buttons */

.link-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--taupe);
  border-radius: 9999px;
  padding: .75rem 1.1rem;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  color: var(--white);
  transition: transform .15s ease, filter .15s ease;
}

.link-btn:hover,
.link-btn:focus-visible {
  transform: scale(1.02);
  filter: brightness(1.12);
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.link-btn__icon { font-size: 1rem; }


/* ── Portfolio CTA ── */
.portfolio-cta {
  display: block;
  text-align: center;
  border: none;
  border-radius: 9999px;
  padding: .75rem 1.1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  background: #C8D42A;
  color: var(--purple-dark);
  transition: filter .15s ease;
}

.portfolio-cta:hover,
.portfolio-cta:focus-visible {
  filter: brightness(1.1);
  outline: 2px solid #C8D42A;
  outline-offset: 3px;
}

/* ── Footer ── */
.footer {
  padding: 1rem 1.25rem;
  font-size: .7rem;
  color: rgba(255,255,255,.2);
  text-align: center;
}

/* ── Desktop (≥ 768px) — two-column layout ── */
@media (min-width: 768px) {
  body {
    display: flex;
    min-height: 100dvh;
  }

  .hero {
    position: sticky;
    top: 0;
    width: 55%;
    height: 100dvh;
    min-height: unset;
    flex-shrink: 0;
  }

  /* Wave is mobile-only */
  .hero__wave { display: none; }

  /* Wrapper keeps content + footer in a single right column */
  .main-col {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .content {
    flex: 1;
    padding: 3rem 2.5rem;
  }

  .footer { text-align: left; padding: 1rem 2.5rem 1.5rem; }
}

/* ── Keyframes ── */
@keyframes fade-slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes portfolio-pulse {
  0%, 100% { box-shadow: 0 0 0   0   rgba(200,212,42,0); }
  50%       { box-shadow: 0 0 14px 4px rgba(200,212,42,.45); }
}

/* ── Entry animations ── */
.hero__name {
  animation: fade-slide-up .6s ease-out both;
}
.hero__subtitle {
  animation: fade-slide-up .6s .1s ease-out both;
}
.bio {
  animation: fade-in .6s .2s ease-out both;
}

/* Staggered link buttons */
.links__list li:nth-child(1) .link-btn { animation: fade-slide-up .5s .30s ease-out both; }
.links__list li:nth-child(2) .link-btn { animation: fade-slide-up .5s .40s ease-out both; }
.links__list li:nth-child(3) .link-btn { animation: fade-slide-up .5s .50s ease-out both; }

.links__more {
  animation: fade-in .5s .6s ease-out both;
}

/* Portfolio CTA: entry then pulse. Pulse starts after entry finishes (0.65 + 0.5 = 1.15s).
   Pulse is scoped to non-hover/focus so it cancels cleanly without specificity tricks. */
.portfolio-cta {
  animation: fade-slide-up .5s .65s ease-out both;
}

.portfolio-cta:not(:hover):not(:focus-visible) {
  animation:
    fade-slide-up   .5s   .65s ease-out    both,
    portfolio-pulse 2s   1.15s ease-in-out infinite;
}

/* ── Reduced motion: disable all animations and transitions ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:       .01ms !important;
    animation-iteration-count: 1    !important;
    transition-duration:      .01ms !important;
  }
}
