/* ---------------------------------------------------------
   Alexandra Lee-Capps — personal site
   Palette: warm cream / deep red
--------------------------------------------------------- */

:root {
  --cream: #f2e5db;
  --cream-deep: #ecd9c6;
  --paper: #fbf6ef;
  --red: #e64128;
  --red-deep: #b83a1c;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1180px;
  --edge: clamp(1.5rem, 5vw, 4rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--red);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--red) 55%, transparent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover, a:focus-visible {
  color: var(--red-deep);
  text-decoration-color: var(--red-deep);
}

.bio a, .timeline a {
  font-weight: 500;
  color: var(--red);
  text-decoration: underline;
}

.bio a:hover, .timeline a:hover {
  color: var(--red-deep);
  text-decoration-color: var(--red-deep);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
}

/* subtle paper grain for warmth */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--edge);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(6px);
}

.mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.mark:hover { transform: scale(1.06); }

.header-nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  font-size: 0.9rem;
  font-weight: 500;
}

.header-nav a { text-decoration: none; }
.header-nav a:hover { color: var(--red-deep); }

/* ---------------- hero ---------------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) var(--edge) 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 2rem;
}

.hero-name h1 {
  display: flex;
  flex-direction: column;
  font-size: clamp(5rem, 13vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--red);
}

.hero-name h1 span:last-child {
  font-weight: 400;
}

.hero-tagline {
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: clamp(1.2rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--red);
  max-width: 28ch;
}

.hero-photo {
  margin: 0;
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(36, 29, 24, 0.35);
  transform: translateY(0.5rem);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(36, 29, 24, 0.2));
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02);
}

/* ---------------- bio ---------------- */

.bio {
  max-width: var(--max);
  margin: clamp(3rem, 8vw, 6rem) auto 0;
  padding: 0 var(--edge);
}

.bio-lede {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.5;
  color: var(--red);
  max-width: 780px;
}

.bio p {
  font-size: 1.6rem;
  color: var(--red);
  max-width: 780px;
}

.bio p + p { margin-top: 1.25rem; }

/* ---------------- timeline ---------------- */

.timeline {
  max-width: var(--max);
  margin: clamp(3.5rem, 9vw, 7rem) auto 0;
  padding: clamp(2.5rem, 6vw, 4rem) var(--edge);
  background: var(--paper);
  border-top: 1px solid var(--cream-deep);
  border-bottom: 1px solid var(--cream-deep);
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 720px) {
  .timeline { grid-template-columns: 1fr 1.4fr; }
}

.timeline h2 {
  font-size: 1.5rem;
  color: var(--red);
  margin-bottom: 1.25rem;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cream-deep);
}

.timeline-list li:last-child { border-bottom: none; padding-bottom: 0; }

.timeline-role {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  flex-basis: 100%;
}

.timeline-list a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  border-bottom: 1.5px solid color-mix(in srgb, var(--red) 40%, transparent);
}

.timeline-list a:hover {
  border-color: var(--red-deep);
  color: var(--red-deep);
}

/* ---------------- footer ---------------- */

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--edge) 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col h3 {
  font-family: var(--sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 0.3rem;
}

.footer-col a {
  text-decoration: none;
  width: fit-content;
}

.footer-copy {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream-deep);
  font-size: 0.85rem;
  color: var(--red);
}

/* ---------------- reveal-on-scroll ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------- responsive ---------------- */

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-photo {
    order: -1;
    max-width: 260px;
    margin: 0 auto;
  }
  .header-nav { gap: 1.25rem; font-size: 0.85rem; }
}
