/* ============================================================
   Dr. Nicole A. Bishop — academic site
   Design system + layout. One stylesheet for all pages.
   ============================================================ */

:root {
  /* Palette — warm paper, deep ink, one scholarly clay accent */
  --paper:        #FAF7F1;
  --paper-2:      #F3EEE4;   /* alt section background */
  --ink:          #1C1B19;
  --ink-soft:     #34322E;
  --muted:        #6B655B;
  --line:         #E3DBCC;
  --accent:       #8C3B2B;   /* deep clay / oxblood */
  --accent-dark:  #6E2C1F;
  --accent-soft:  #F0E2DB;

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing / layout */
  --container: 1120px;
  --measure: 68ch;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(28,27,25,.04), 0 12px 32px rgba(28,27,25,.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ---------- Headings ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1.1em; max-width: var(--measure); }
.lead { font-size: 1.25rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-size: .95rem; font-weight: 600;
  padding: .8rem 1.4rem; border-radius: var(--radius);
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
  cursor: pointer; transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,241,.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 24px; max-width: var(--container); margin-inline: auto; }
.brand { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; color: var(--ink); }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; color: var(--ink-soft); font-size: .92rem; font-weight: 500;
  padding: .5rem .7rem; border-radius: var(--radius);
}
.nav-links a:hover { background: var(--accent-soft); color: var(--accent-dark); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-cta { margin-left: .35rem; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .45rem .6rem; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: .3em; }
.hero .roles { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; letter-spacing: .02em; color: var(--accent); margin: 0 0 1.4rem; }
.hero .roles span { color: var(--line); margin: 0 .35rem; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); }
.hero-photo::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border: 1px solid var(--accent); border-radius: 6px; opacity: .45;
}

/* placeholder monogram if no photo is supplied */
.photo-fallback {
  width: 100%; aspect-ratio: 4/5; border-radius: 6px; box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: grid; place-items: center; color: #fff; font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5rem); letter-spacing: .04em;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 1.6rem 1.6rem 1.8rem; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 0; }
.card .kicker { font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }

/* feature list with rule lines */
.featured-list { border-top: 1px solid var(--line); }
.featured-item { display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.featured-item .meta { color: var(--accent); font-weight: 600; font-size: .9rem; }
.featured-item h3 { margin-bottom: .35rem; }
.featured-item p { color: var(--muted); margin-bottom: 0; }

/* tags */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.tags li { font-size: .82rem; font-weight: 500; color: var(--ink-soft); background: var(--accent-soft); border: 1px solid var(--line); padding: .3rem .7rem; border-radius: 100px; }

/* prose blocks */
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 1.2rem; max-width: var(--measure); color: var(--ink-soft); }
.prose li { margin-bottom: .5rem; }
.prose blockquote {
  margin: 1.6rem 0; padding: .4rem 0 .4rem 1.4rem; border-left: 3px solid var(--accent);
  font-family: var(--display); font-size: 1.3rem; font-style: italic; color: var(--ink-soft); max-width: var(--measure);
}

/* download list */
.downloads { list-style: none; padding: 0; margin: 1.4rem 0 0; max-width: 640px; }
.downloads li { border-bottom: 1px solid var(--line); }
.downloads a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem .2rem; color: var(--ink); font-weight: 500; }
.downloads a:hover { color: var(--accent); text-decoration: none; }
.downloads .dl-tag { font-size: .8rem; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* highlight band */
.band { background: var(--ink); color: var(--paper); }
.band h2, .band h3 { color: #fff; }
.band p { color: #cfc8bb; }
.band .eyebrow { color: #d99b8b; }
.band a { color: #e6b3a4; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc8bb; padding: clamp(48px, 7vw, 80px) 0 40px; }
.site-footer h3 { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid a { color: #e6b3a4; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #3a3833; font-size: .85rem; color: #8c867b; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 360px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .featured-item { grid-template-columns: 1fr; gap: .4rem; }
  .footer-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 24px 18px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem .5rem; }
  .nav-cta { margin: .4rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

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

/* ============================================================
   Résumé page
   ============================================================ */
.resume { max-width: 880px; }
.resume-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-bottom: 1.4rem; border-bottom: 2px solid var(--ink); margin-bottom: .4rem; }
.resume-top h1 { margin: 0; }
.resume-top .roles { font-family: var(--sans); font-weight: 600; color: var(--accent); margin: .5rem 0 0; letter-spacing: .01em; }
.resume-top .contact { font-size: .9rem; color: var(--muted); text-align: right; line-height: 1.7; }
.resume-top .contact a { color: var(--muted); }
.resume-stats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 0; list-style: none; padding: 0; }
.resume-stats li { font-family: var(--sans); font-size: .82rem; font-weight: 600; color: var(--accent-dark); background: var(--accent-soft); border: 1px solid var(--line); padding: .35rem .8rem; border-radius: 100px; }

.res-section { margin-top: 2.4rem; }
.res-section > h2 { font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase; font-family: var(--sans); font-weight: 600; color: var(--ink); padding-bottom: .5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.1rem; }
.res-section.highlight > h2 { color: var(--accent); border-color: var(--accent); }

.res-item { margin-bottom: 1.2rem; }
.res-item:last-child { margin-bottom: 0; }
.res-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; align-items: baseline; }
.res-head .title { font-weight: 600; color: var(--ink); }
.res-head .org { color: var(--ink-soft); }
.res-head .dates { font-size: .85rem; color: var(--muted); font-family: var(--sans); white-space: nowrap; }
.res-item ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.res-item li { margin-bottom: .3rem; color: var(--ink-soft); font-size: .97rem; }
.res-note { font-size: .85rem; color: var(--accent); font-weight: 600; }

.res-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 2rem; }
.res-twocol .res-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.res-twocol .res-row .k { color: var(--ink-soft); font-weight: 500; }
.res-twocol .res-row .v { color: var(--muted); font-size: .92rem; text-align: right; }

@media (max-width: 720px) {
  .res-twocol { grid-template-columns: 1fr; }
  .resume-top .contact { text-align: left; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .btn-row, .resume-actions { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.4; }
  .section { padding: 0 !important; }
  .container { max-width: 100%; padding: 0; }
  a { color: #000; text-decoration: none; }
  .res-section { margin-top: 18pt; page-break-inside: avoid; }
  .resume-stats li, .tags li { background: #fff; }
  h1 { font-size: 22pt; }
}
