/* =========================================================
   Alena Forbes, PhD — academic profile
   Human resilience · healthy aging · clinical nutrition
   ========================================================= */

:root {
  /* Palette — matched to the original forbesresilience.com (maroon + red) */
  --green-900: #5a0301;   /* deep maroon — headings, footer, dark */
  --green-700: #7d0501;   /* primary maroon — buttons, brand */
  --green-500: #a80a02;   /* mid red */
  --sage-300:  #cda09d;   /* dusty rose — borders, focus */
  --sage-100:  #f6e7e6;   /* pale rose — tag/chip fills */
  --paper:     #ffffff;   /* white background */
  --paper-2:   #f6f6f6;   /* light gray tinted sections */
  --accent:    #da1003;   /* bright red — eyebrows, links, accents */
  --ink:       #1b1b1b;
  --ink-soft:  #525252;
  --line:      #e2e2e2;
  --white:     #ffffff;
  --shadow:    0 10px 30px rgba(0, 0, 0, 0.08);
  --radius:    12px;
  --maxw:      1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--green-900);
  line-height: 1.18;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin: 0 0 .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin: 0 0 .5em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }
p { margin: 0 0 1.1em; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }
img { max-width: 100%; display: block; }
hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
.container--narrow { max-width: 800px; }
.section { padding: 4rem 0; }
.section--tint { background: var(--paper-2); }
.section--green { background: var(--green-700); color: var(--paper); }
.section--green h2, .section--green h3 { color: var(--white); }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 .7rem;
}
.section-head { margin-bottom: 2rem; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--green-700);
  color: var(--paper);
  padding: .78rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .98rem;
  border: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover { background: var(--green-900); color: var(--white); text-decoration: none; transform: translateY(-1px); }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: #a80a02; }
.btn--ghost { background: transparent; border: 1.5px solid var(--sage-300); color: var(--green-900); }
.btn--ghost:hover { background: var(--sage-100); color: var(--green-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 1.25rem;
  max-width: var(--maxw); margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: .6rem; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.1rem; color: var(--green-900); }
.brand:hover { text-decoration: none; }
.brand .brand-mark {
  width: 36px; height: 36px; background: var(--green-700); color: var(--paper);
  border-radius: 50%; display: grid; place-items: center; font-size: .9rem; letter-spacing: .3px;
}
.nav-links { display: flex; align-items: center; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-size: .94rem; font-weight: 500; padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--green-900); border-bottom-color: var(--accent); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--green-900); margin: 5px 0; transition: .3s; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1rem; max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 90vh; }
  .nav-links a { padding: .7rem 0; width: 100%; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero (two-column, faculty style) ---------- */
.hero { padding: 4.5rem 0 3.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: .25em; }
.hero .role { font-size: 1.25rem; color: var(--green-700); font-weight: 600; margin: 0 0 1.1rem; }
.hero .statement {
  font-family: "Fraunces", Georgia, serif; font-style: italic;
  font-size: 1.18rem; color: var(--ink-soft); border-left: 3px solid var(--sage-300);
  padding-left: 1.1rem; margin: 0 0 1.6rem; max-width: 52ch;
}
.hero-photo { justify-self: center; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-photo { order: -1; }
}

/* ---------- Photo frames / placeholders ---------- */
.photo-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: var(--sage-100); aspect-ratio: 4/5; width: 100%; max-width: 320px;
  display: grid; place-items: center; color: var(--green-700); text-align: center;
  font-size: .85rem; padding: 1rem; border: 1px solid var(--line);
}
.photo-frame--wide { aspect-ratio: 16/9; max-width: 100%; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Tags / research interests ---------- */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.tag {
  display: inline-block; background: var(--sage-100); color: var(--green-900);
  padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 500;
}
.section--green .tag { background: rgba(255,255,255,.14); color: var(--paper); }

/* ---------- Credentials strip ---------- */
.cred-strip {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: baseline;
  padding: 1.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cred-strip .cred { font-weight: 600; color: var(--green-900); }
.cred-strip .cred span { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-soft); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); transition: transform .15s ease;
}
.card:hover { transform: translateY(-3px); }
.card h3 { margin-top: 0; }
.card .more { font-weight: 600; font-size: .92rem; }

/* quick-links (homepage section row) */
.quicklink { display: block; }
.quicklink .eyebrow { margin-bottom: .4rem; }
.quicklink h3 { margin-bottom: .3rem; }

/* ---------- Featured research / dissertation ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.feature .feature-body { padding: 2rem 2.2rem; }
.feature .feature-media { background: var(--green-700); min-height: 100%; display: grid; place-items: center; color: var(--paper); padding: 2rem; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } }

/* ---------- Publication list ---------- */
.pub-list { list-style: none; padding: 0; margin: 0; }
.pub-list li { padding: 1.1rem 0 1.1rem 1.6rem; border-bottom: 1px solid var(--line); text-indent: -1.6rem; }
.pub-list li:last-child { border-bottom: none; }
.pub-list .pub-type {
  display: inline-block; text-indent: 0; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent); margin-right: .5rem;
}
.pub-list .pub-title { font-weight: 600; color: var(--green-900); }
.pub-list .pub-meta { color: var(--ink-soft); }

/* ---------- Generic stacked list ---------- */
.lead-list { list-style: none; padding: 0; margin: 0; }
.lead-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.lead-list li:last-child { border-bottom: none; }

/* ---------- Blog category chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.chips a {
  display: inline-block; border: 1px solid var(--sage-300); color: var(--green-900);
  padding: .4rem .9rem; border-radius: 999px; font-size: .88rem; font-weight: 500;
}
.chips a:hover { background: var(--sage-100); text-decoration: none; }

/* ---------- About / profile layout ---------- */
.profile { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } }
.def-list { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.4rem; margin: 0; }
.def-list dt { font-weight: 600; color: var(--green-900); }
.def-list dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 520px) { .def-list { grid-template-columns: 1fr; gap: .1rem 0; } .def-list dd { margin-bottom: .7rem; } }

/* ---------- Quote band ---------- */
.quote { text-align: center; max-width: 760px; margin-inline: auto; }
.quote blockquote { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.3rem, 3vw, 1.7rem); font-style: italic; color: var(--paper); margin: 0 0 .8rem; line-height: 1.4; }
.quote cite { color: var(--sage-100); font-style: normal; font-size: .95rem; }

/* ---------- Forms ---------- */
.form { max-width: 560px; display: grid; gap: 1rem; }
.form label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: .3rem; }
.form input, .form textarea { width: 100%; padding: .8rem 1rem; border: 1px solid var(--sage-300); border-radius: 8px; font: inherit; background: var(--white); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--sage-300); border-color: var(--green-500); }
.form-status { font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: var(--green-700); }
.form-status.err { color: #b3402d; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #e2cfce; padding: 3rem 0 2rem; font-size: .92rem; }
.site-footer a { color: var(--sage-100); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr; }
.footer-grid h4 { color: var(--white); font-family: inherit; font-size: 1rem; margin: 0 0 .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .45rem; }
.disclaimer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: #c2a6a5; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.muted { color: var(--ink-soft); }
.lead-text { font-size: 1.15rem; color: var(--ink-soft); }
.note { background: var(--paper-2); border-left: 4px solid var(--sage-300); padding: 1rem 1.2rem; border-radius: 8px; font-size: .92rem; color: var(--ink-soft); }
.skip-link { position: absolute; left: -999px; background: var(--green-900); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: .5rem; }
