/* ══════════════════════════════════════════════
   Fatima Danash — shared stylesheet
   Font: EB Garamond (display) + Source Sans 3 (body)
   Hero: deep rose-carmine #9B2248, white text
   ══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #F8F0EC;
  --hero-bg:     #6B233C;   /* deep rose-carmine — bold, academic, feminine */
  --hero-text:   #F8F0EC;
  --accent:      #7a1a38;   /* darker carmine for links on white */
  --accent-lt:   #b05070;   /* lighter for tags, muted links */
  --text:        #1c1c1c;
  --muted:       #5a5a5a;
  --rule:        #6B233C;
  --tag-bg:      #9B2248;

  --serif:  'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans:   'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}

html { font-size: 17px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Lora", serif;
  font-weight: 450;
  line-height: 1.72;
}

.page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 0rem 0rem;
}

/* ══════════════════════════════
   HERO
   ══════════════════════════════ */
.site-hero {
  background: var(--hero-bg);
  padding: 4rem 0rem 5rem;
}

.site-hero__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.site-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 3.6rem;
  font-weight: 550;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--hero-text);
  margin-bottom: 0.9rem;
}

.site-hero .tagline {
  font-family: "Lora", serif;
  font-size: 1.1rem;
  font-weight: 0;
  color: #f8e3e8;
  line-height: 1.6;
  max-width: 100ch;
}

.site-hero .tagline a {
  color: rgba(255,255,255,0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ══════════════════════════════
   NAVIGATION
   ══════════════════════════════ */
.site-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 0rem;
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.site-nav a {
  display: block;
  padding: 0.8rem 1rem 0.7rem;
  font-family: "Lora", serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover { color: var(--accent); }
.site-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ══════════════════════════════
   SECTIONS
   ══════════════════════════════ */
section { margin-top: 3rem; }

section h2 {
  font-family: "Lora", serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--rule);
}

section p {
  font-size: 1.1rem;
  line-height: 1.78;
  max-width: 65ch;
  margin-bottom: 0.85rem;
}
section p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ══════════════════════════════
   ABOUT + photo
   ══════════════════════════════ */
.about-wrap {
  display: flex;
  gap: 2.2rem;
  align-items: flex-start;
}
.about-text { flex: 1; min-width: 0; }
.about-photo { flex-shrink: 0; width: 350px; }

.about-photo img {
  width: 100%;
  display: block;
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(155,34,72,0.15);
}

/* ══════════════════════════════
   TAGS
   ══════════════════════════════ */
.tag {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: white;
  padding: 0.12rem 0.42rem;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.tag-paper    { background: #9B2248; }   /* rose-carmine — matches hero */
.tag-thesis   { background: #6B3A7A; }   /* dusty plum */
.tag-award    { background: #3D5FA0; }   /* slate blue */
.tag-event    { background: #2A6B5A; }   /* forest teal */
.tag-talk     { background: #8B4A1A; }   /* warm umber */
.tag-preprint { background: #5A6B2A; }   /* olive */

/* ══════════════════════════════
   NEWS
   ══════════════════════════════ */
.news-list { list-style: none; }
.news-list li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f2e8ec;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.55;
}
.news-list li:first-child { border-top: 1px solid #f2e8ec; }
.news-year {
  font-variant-numeric: tabular-nums;
  font-size: 1.1rem;
  color: var(--accent-lt);
  flex-shrink: 0;
  width: 3rem;
}

/* ══════════════════════════════
   PROJECTS
   ══════════════════════════════ */
.project-list { list-style: none; }
.project-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #f2e8ec;
  font-size: 1.1rem;
}
.project-list li:first-child { border-top: 1px solid #f2e8ec; }
.proj-name { font-weight: 600; color: var(--accent); }
.proj-desc { color: var(--muted); font-size: 1rem; margin-top: 0.15rem; }

/* ══════════════════════════════
   CONTACT
   ══════════════════════════════ */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.3rem;
  margin-top: 1rem;
}
.contact-links a {
  font-size: 1rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.1rem;
}
.contact-links a:hover { border-color: var(--accent); }

/* ══════════════════════════════
   PUBLICATIONS PAGE
   ══════════════════════════════ */
.profiles-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}
.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--accent);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.35rem 0.8rem;
  text-decoration: none;
  background: var(--bg);
}
.profile-badge:hover { background: #fdf4f7; text-decoration: none; }

.pub-year-group { margin-bottom: 2rem; }
.pub-year-label {
  font-family: "Lora", serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--accent-lt);
  margin-bottom: 0.5rem;
}

.pub-list { list-style: none; }
.pub-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid #f2e8ec;
  font-size: 1rem;
}
.pub-item:first-child { border-top: 1px solid #f2e8ec; }
.pub-title { font-weight: 500; margin-bottom: 0.2rem; }
.pub-title a { color: var(--text); }
.pub-title a:hover { color: var(--accent); text-decoration: none; }
.pub-authors { font-size: 1rem; color: var(--muted); margin-bottom: 0.2rem; }
.pub-venue { font-size: 1rem; color: var(--muted); font-style: italic; }
.pub-links {
  margin-top: 0.4rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.pub-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--rule);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  text-decoration: none;
}
.pub-link:hover { background: #fdf4f7; text-decoration: none; }

.talk-list { list-style: none; }
.talk-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid #f2e8ec;
  font-size: 1.1rem;
}
.talk-item:first-child { border-top: 1px solid #f2e8ec; }
.talk-title { font-weight: 500; margin-bottom: 0.15rem; }
.talk-meta { font-size: 0.86rem; color: var(--muted); }

/* ══════════════════════════════
   PHD PAGE
   ══════════════════════════════ */
.thesis-meta {
  background: #fdf4f7;
  border-left: 3px solid var(--hero-bg);
  padding: 1.2rem 1.4rem;
  border-radius: 0 4px 4px 0;
  margin-bottom: 2rem;
  font-size: 1rem;
}
.thesis-meta strong { color: var(--accent); font-family: "Lora", serif; font-size: 1.1rem; font-weight: 400; }
.thesis-meta dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.3rem 1rem;
  margin-top: 0.8rem;
}
.thesis-meta dt { font-weight: 600; color: var(--muted); font-size: 1rem; }
.thesis-meta dd { color: var(--text); font-size: 1.1rem; }

.chapter-list { list-style: none; }
.chapter-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid #f2e8ec;
  font-size: 1.1rem;
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.chapter-list li:first-child { border-top: 1px solid #f2e8ec; }
.chapter-num {
  font-family: "Lora", serif;
  font-size: 1.05rem;
  color: var(--accent-lt);
  flex-shrink: 0;
  width: 1.6rem;
  font-style: italic;
}
.chapter-title { font-weight: 500; }
.chapter-desc { font-size: 1rem; color: var(--muted); margin-top: 0.15rem; }

/* ══════════════════════════════
   NOTES PAGE
   ══════════════════════════════ */
.post-list { list-style: none; }
.post-item {
  padding: 1rem 0;
  border-bottom: 1px solid #f2e8ec;
}
.post-item:first-child { border-top: 1px solid #f2e8ec; }
.post-date { font-size: 0.8rem; color: var(--accent-lt); margin-bottom: 0.2rem; }
.post-title {
  font-family: "Lora", serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.post-title a { color: inherit; }
.post-title a:hover { text-decoration: none; opacity: 0.8; }
.post-summary { font-size: 0.88rem; color: var(--muted); max-width: 58ch; line-height: 1.6; }

/* ══════════════════════════════
   FOOTER
   ══════════════════════════════ */
footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  color: #aaa;
}

/* ══════════════════════════════
   RESPONSIVE
   ══════════════════════════════ */
@media (max-width: 520px) {
  html { font-size: 16px; }
  .site-hero h1 { font-size: 2.2rem; }
  .site-hero .tagline { font-size: 1rem; }
  .about-wrap { flex-direction: column-reverse; }
  .about-photo { width: 100%; }
  .thesis-meta dl { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
