/* ============================================
   Kylie Gaines: Academic Site
   Bold / modern design system
   ============================================ */

:root {
  --maroon: #5c1a33;
  --maroon-dark: #3a0f20;
  --maroon-light: #7c2c48;
  --gold: #c9a34e;
  --cream: #faf5ef;
  --cream-dark: #f0e8dc;
  --ink: #1c1410;
  --ink-soft: #5a4f45;
  --white: #ffffff;
  --border: rgba(28, 20, 16, 0.1);
  --shadow: 0 20px 50px -20px rgba(58, 15, 32, 0.35);
  --radius: 18px;
  --max: 1140px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 14px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 239, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--maroon-dark);
}

.brand span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--maroon);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.25s ease;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--maroon);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover { transform: translateY(-2px); background: var(--maroon-dark); }

.btn-outline {
  border-color: var(--maroon);
  color: var(--maroon);
  background: transparent;
}

.btn-outline:hover { background: var(--maroon); color: var(--white); transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: var(--maroon-dark);
}
.btn-gold:hover { transform: translateY(-2px); }

/* ---------- Hero (home) ---------- */

.hero {
  padding: 92px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -180px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(201,163,78,0.25), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  color: var(--maroon-dark);
}

.hero h1 em {
  font-style: italic;
  color: var(--maroon);
}

.hero .name-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: -6px 0 18px;
}

.hero .role {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--maroon-dark);
  margin-bottom: 22px;
}

.hero .lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 32px;
}

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

.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-photo .frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid var(--white);
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

/* ---------- Sections ---------- */

section { padding: 76px 0; }

.section-alt { background: var(--cream-dark); }

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); color: var(--maroon-dark); }

/* ---------- Cards / grid ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card h3 { font-size: 1.15rem; color: var(--maroon-dark); }

.card .meta {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.card p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 0; }

/* ---------- Publication list ---------- */

.pub-list { list-style: none; margin: 0; padding: 0; }

.pub-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
}

.pub-item:first-child { padding-top: 0; }

.pub-year {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
}

.pub-item h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.pub-item .journal {
  font-style: italic;
  color: var(--maroon);
  font-weight: 600;
}

.pub-item .authors {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.tag-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--maroon);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.tag-pill.alt { background: var(--gold); color: var(--maroon-dark); }
.tag-pill.ghost { background: var(--cream-dark); color: var(--ink-soft); }

/* ---------- Timeline (talks / awards) ---------- */

.timeline { list-style: none; margin: 0; padding: 0; }

.timeline li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border);
}

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

.timeline .yr {
  font-weight: 700;
  color: var(--maroon);
}

.timeline .desc strong { color: var(--ink); }
.timeline .desc { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- CV summary blocks ---------- */

.cv-block { margin-bottom: 46px; }

.cv-block h2 {
  font-size: 1.5rem;
  color: var(--maroon-dark);
  border-bottom: 3px solid var(--gold);
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 22px;
}

.cv-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cv-row:last-child { border-bottom: none; }

.cv-row .title { font-weight: 700; color: var(--ink); }
.cv-row .sub { color: var(--ink-soft); font-size: 0.92rem; }
.cv-row .yr { color: var(--maroon); font-weight: 700; white-space: nowrap; }

/* ---------- Simple list ---------- */

.simple-list { list-style: none; margin: 0; padding: 0; }
.simple-list li {
  padding: 10px 0 10px 26px;
  position: relative;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border);
}
.simple-list li:last-child { border-bottom: none; }
.simple-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-card {
  background: var(--maroon);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-card h2 { color: var(--white); }
.contact-card a.email {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
  word-break: break-word;
}

.link-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-row a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-weight: 700;
  background: var(--white);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.link-row a:hover { transform: translateY(-2px); border-color: var(--maroon); color: var(--maroon); }

/* ---------- Pull quote / now-playing (About page) ---------- */

.pull-quote {
  border-left: 4px solid var(--gold);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
}

.pull-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--maroon-dark);
  line-height: 1.5;
  margin: 0;
}

.now-playing {
  display: inline-flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 20px;
  margin-top: 8px;
  max-width: 100%;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.now-playing .note { color: var(--gold); font-size: 1.05rem; }
.now-playing strong { color: var(--ink); }
.now-playing a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */

footer {
  background: var(--maroon-dark);
  color: rgba(255,255,255,0.75);
  padding: 46px 0;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

footer a { color: var(--gold); font-weight: 600; }
footer .fname { color: var(--white); font-family: var(--serif); font-size: 1.1rem; }

.footer-links { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }

/* ---------- Reveal animation ---------- */

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

/* ---------- Page header (non-home) ---------- */

.page-header {
  padding: 70px 0 50px;
  background: linear-gradient(180deg, var(--cream-dark), var(--cream));
}

.page-header h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); color: var(--maroon-dark); }
.page-header .lede { max-width: 60ch; color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 320px; margin: 0 auto; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    padding: 30px 32px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    height: calc(100vh - 68px);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 16px 20px; }
  .pub-item, .timeline li, .cv-row { grid-template-columns: 1fr; gap: 4px; }
  .cv-row { flex-direction: column; gap: 4px; }
}
