/* ============================================================
   Caroline Werner Gannett Project — shared stylesheet
   Hand-written, no framework. Same approach as mlbroe.com:
   CSS variables for the design system, one file shared by
   every page so edits happen in one place.

   Palette: "Meadow" — sandstone + terracotta, soft rounded cards.
   ============================================================ */

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

:root {
  --bg:        #F3ECDE;
  --white:     #FFFFFF;
  --dark:      #332B21;
  --accent:    #C2704A;
  --accent-dk: #8A4324;
  --accent2:   #B08D54;
  --accent-soft:  rgba(194,112,74,.14);
  --accent2-soft: rgba(176,141,84,.18);
  --muted:     #6B5F52;
  --border:    #E7DCC7;
  --dark-bg:   #332B21;

  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans:  'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-w: 1120px;
  --pad-x: clamp(24px, 5vw, 80px);
  --card-pad-x: clamp(24px, 4vw, 48px);
  --border-strong: #8A7B6A;
  --nav-h: 76px;
  --subnav-h: 52px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
em, i, cite { font-style: italic; }
:focus-visible { outline: 2px solid var(--accent-dk); outline-offset: 2px; }

/* ---------- NAV ---------- */
#nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif); font-weight: 600; font-size: 24px;
  color: var(--dark); text-decoration: none; letter-spacing: -.01em;
  line-height: 1.2;
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 500; letter-spacing: .01em; color: var(--dark); text-decoration: none; opacity: .68; transition: opacity .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active { color: var(--accent-dk); }
.nav-hamburger {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
  width: 38px; height: 38px; background: var(--white); border: 1px solid var(--border-strong); border-radius: 50%;
}
.nav-hamburger span { display: block; width: 15px; height: 1.5px; background: var(--dark); transition: transform .25s, opacity .25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-mobile {
  display: none; position: fixed; top: calc(var(--nav-h) + 8px); right: var(--pad-x); left: auto;
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 12px 30px rgba(51,41,31,.12);
  padding: 16px 22px; flex-direction: column; gap: 15px; z-index: 899;
  min-width: 200px; max-width: calc(100vw - 2 * var(--pad-x));
  max-height: calc(100vh - var(--nav-h) - 24px); overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 16px; color: var(--dark); text-decoration: none; opacity: .8; }
.nav-mobile a.active { color: var(--accent-dk); opacity: 1; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* keep anchor-link targets clear of the fixed nav (and subnav, where present) */
section[id], .year-heading[id] {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
body:has(.subnav-bar) section[id],
body:has(.subnav-bar) .year-heading[id] {
  scroll-margin-top: calc(var(--nav-h) + var(--subnav-h) + 24px);
}

/* ---------- LAYOUT ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.s-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.s-eyebrow {
  display: block;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-dk);
  margin-bottom: 14px;
}
.s-headline { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4vw, 44px); line-height: 1.16; letter-spacing: -.01em; margin-bottom: 16px; }
.s-sub { font-size: 15.5px; color: var(--muted); max-width: 680px; margin-bottom: 44px; line-height: 1.7; }
.sub-head { font-family: var(--serif); font-weight: 600; font-size: clamp(19px, 2.4vw, 24px); letter-spacing: -.005em; margin: 44px 0 18px; }
.bg-white { background: transparent; border: none; padding: 8px var(--pad-x) clamp(40px, 6vw, 64px); }
.bg-white > .s-inner {
  max-width: calc(var(--max-w) - 2 * var(--pad-x));
  background: var(--white); border-radius: 24px; box-shadow: 0 12px 30px rgba(51,41,31,.06);
  padding: clamp(32px, 5vw, 52px) var(--card-pad-x);
}
.bg-dark { background: transparent; padding: 8px var(--pad-x) clamp(40px, 6vw, 64px); }
.bg-dark > .s-inner {
  max-width: calc(var(--max-w) - 2 * var(--pad-x));
  background: var(--dark-bg); border-radius: 28px; color: #F3F6F1;
  padding: clamp(32px, 5vw, 48px) var(--card-pad-x);
}
.bg-dark .s-headline, .bg-dark .sub-head { color: var(--white); }
.bg-dark .s-eyebrow { color: #E7D9C9; }
.bg-dark p, .bg-dark li { color: rgba(255,255,255,.7); }
.divider { height: 1px; background: var(--border); border: none; margin: 0; }

/* ---------- HERO ---------- */
#hero {
  position: relative; overflow: hidden;
  min-height: 92svh; display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 20px); padding-bottom: 60px;
  background:
    radial-gradient(circle at 12% 18%, rgba(194,112,74,.12), transparent 55%),
    radial-gradient(circle at 92% 78%, rgba(176,141,84,.16), transparent 50%),
    var(--bg);
}
.hero-inner {
  position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); width: 100%;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 10px 56px; align-items: center;
}
.hero-visual img {
  display: block; width: 100%; height: auto; max-width: 420px; margin: 0 auto;
}
.hero-visual-cap { margin-top: 12px; font-size: 12px; color: var(--muted); font-style: italic; text-align: center; }
.hero-carousel, .hero-actions, .hero-facts { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 320px; margin: 0 auto 28px; }
}
.hero-eyebrow {
  display: block;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-dk); margin-bottom: 22px;
}
.hero-quote {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: clamp(32px, 5vw, 54px); line-height: 1.2; letter-spacing: -.01em;
  max-width: 640px; margin-bottom: 24px;
}
.hero-sub { font-size: 16.5px; color: var(--muted); max-width: 560px; margin-bottom: 32px; line-height: 1.75; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .01em;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--accent-dk); color: #fff; border: 1px solid var(--accent-dk); }
.btn-primary:hover { background: #6E351C; border-color: #6E351C; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(194,112,74,.3); }
.btn-ghost { background: var(--white); color: var(--dark); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dk); }
.bg-dark .btn-ghost { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.45); }
.bg-dark .btn-ghost:hover { border-color: rgba(255,255,255,.5); }

.hero-facts { display: flex; gap: 16px; flex-wrap: wrap; border-top: none; padding-top: 0; }
.hero-fact { flex: 1 1 190px; padding: 22px 20px; }
.hero-fact strong { display: block; font-family: var(--serif); font-size: 28px; color: var(--accent-dk); margin-bottom: 2px; }
.hero-fact span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 620px) {
  .hero-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-fact { min-width: 0; }
}

/* ---------- HERO: SPEAKER COMMENT CAROUSEL ---------- */
.hero-carousel {
  max-width: var(--max-w); margin: 0 0 32px;
  background: var(--white); border-radius: 22px; padding: 40px var(--card-pad-x);
  box-shadow: 0 12px 30px rgba(51,41,31,.07);
}
.hero-carousel-track { position: relative; min-height: 120px; }
.hero-carousel-slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .5s ease;
}
.hero-carousel-slide.is-active {
  position: relative; opacity: 1; visibility: visible; pointer-events: auto;
}
.hero-carousel-slide p { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.65; color: var(--dark); margin-bottom: 10px; }
.hero-carousel-slide cite { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-dk); }
.hero-carousel-nav { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.hero-carousel-arrow {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--white); color: var(--dark);
  font-size: 15px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s;
}
.hero-carousel-arrow:hover { border-color: var(--accent); color: var(--accent-dk); }
.hero-carousel-dots { display: flex; gap: 8px; }
.hero-carousel-dot {
  width: 7px; height: 7px; padding: 0; border: none; border-radius: 50%;
  background: var(--border-strong); cursor: pointer; transition: background .2s, transform .2s;
}
.hero-carousel-dot.is-active { background: var(--accent); transform: scale(1.35); }
@media (max-width: 620px) {
  .hero-carousel { padding: 28px 24px; }
  .hero-carousel-track { min-height: 168px; }
}

/* ---------- PROSE ---------- */
.prose { max-width: 760px; }
.prose p { font-size: 16px; color: var(--muted); line-height: 1.85; margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--dark); font-weight: 600; }
.prose em { color: var(--dark); }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 22px; margin: 28px 0;
  font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--dark);
}

/* ---------- GRID / CARDS ---------- */
.grid { display: grid; gap: 28px; list-style: none; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: none; border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 10px 26px rgba(51,41,31,.07);
  transition: transform .18s, box-shadow .18s;
  text-decoration: none; color: inherit;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(51,41,31,.12); }
.card-photo {
  display: block; width: 120px; height: 120px; margin: 22px auto 0;
  border-radius: 50%; overflow: hidden;
  background: #EDE7D8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23EDE7D8'/%3E%3C/svg%3E") center/cover;
}
.card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; border: none; }
.card-body { padding: 20px 22px 24px; text-align: center; }
.card-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.card-name { font-family: var(--serif); font-weight: 600; font-size: 19px; margin-bottom: 4px; letter-spacing: -.01em; }
.card-role { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.card-talk { font-size: 14px; color: var(--accent-dk); font-family: var(--serif); font-style: italic; margin-bottom: 10px; }
.card-meta { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.card-links { margin-top: 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.card-links a { font-size: 12.5px; font-weight: 600; color: var(--accent-dk); text-decoration: none; border-bottom: 1px solid transparent; }
.card-links a:hover { border-color: var(--accent-dk); }

/* compact alumni row (for the 2006-11 archive, lighter weight than full cards) */
.alumni-list { display: flex; flex-direction: column; gap: 12px; list-style: none; }
.alumni-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 8px 20px;
  padding: 16px 20px; border: none; border-radius: 16px;
  align-items: center; background: var(--white);
  box-shadow: 0 6px 18px rgba(51,41,31,.05);
  transition: box-shadow .15s;
  text-decoration: none; color: inherit;
}
.alumni-row:hover { box-shadow: 0 10px 24px rgba(51,41,31,.1); }
.alumni-row:first-child { border-top: none; }
.alumni-photo-link { display: block; align-self: start; border-radius: 50%; }
.alumni-photo-link:hover .alumni-photo { opacity: .85; }
.alumni-photo {
  width: 56px; height: 56px; object-fit: cover; object-position: top center;
  border-radius: 50%; border: none; background: #EDE7D8;
  align-self: start;
}
.alumni-name { font-family: var(--serif); font-weight: 600; font-size: 16.5px; }
.alumni-role { font-size: 13px; color: var(--muted); margin-top: 2px; }
.alumni-talk { grid-column: 1 / -1; font-size: 14px; font-family: var(--serif); font-style: italic; color: var(--accent-dk); margin-top: 2px; }
.alumni-date { font-size: 12.5px; color: var(--muted); text-align: right; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.alumni-link { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.alumni-link:hover { border-bottom-color: var(--accent-dk); }

@media (max-width: 620px) {
  .alumni-row { grid-template-columns: 44px 1fr; gap: 6px 14px; padding: 14px 16px; }
  .alumni-photo { width: 44px; height: 44px; }
  .alumni-date { grid-column: 1 / -1; text-align: right; margin-top: 2px; }
}

/* speaker detail page: thumbnail beside name/subtitle, not a full hero photo */
.speaker-header { display: flex; align-items: stretch; gap: 18px; margin-top: 20px; }
.speaker-header .alumni-photo { width: 92px; height: auto; align-self: stretch; border-radius: 16px; }

.year-heading {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 52px 0 6px;
}
.year-heading:first-child { margin-top: 0; }
.year-heading h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: -.01em; white-space: nowrap; }
.year-heading span { font-size: 13px; color: var(--muted); font-style: italic; }

/* ---------- TIMELINE (About page history) ---------- */
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 36px 0; border-bottom: 1px solid var(--border); }
.timeline-item:first-child { border-top: none; padding-top: 0; }
.timeline-item:last-child { border-bottom: none; }
.timeline-year { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--accent-dk); }
.timeline-item h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; margin-bottom: 10px; }
.timeline-item p { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 14px; max-width: 760px; }
.timeline-item p:last-child { margin-bottom: 0; }
@media (max-width: 620px) { .timeline-item { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- SUB-NAV (fixed second-row nav, docked directly under the primary nav) ---------- */
.subnav-bar {
  position: fixed; top: var(--nav-h); inset-inline: 0; z-index: 850;
  height: var(--subnav-h);
  overflow-x: auto;
  background: #FBF9F5;
  border-bottom: 1px solid var(--border);
}
.subnav-inner {
  min-width: max-content; width: 100%; max-width: var(--max-w); height: 100%;
  margin: 0 auto; padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
}
.subnav-bar a {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; white-space: nowrap; flex: none;
  transition: color .15s;
}
.subnav-bar a:hover { color: var(--accent-dk); }

/* ---------- ADVISORY / BOARD LISTS ---------- */
.board-group h3 { font-family: var(--serif); font-size: 17px; margin: 0 0 14px; }
.board-group + .board-group h3 { margin-top: 36px; }
.board-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; list-style: none; }
@media (max-width: 620px) { .board-grid { grid-template-columns: 1fr; } }
.board-person { padding: 12px 16px; border: none; border-radius: 12px; background: rgba(255,255,255,.08); font-size: 14px; }
.board-person strong { font-weight: 600; }
.board-person span { display: block; color: rgba(255,255,255,.65); font-size: 12.5px; margin-top: 2px; }

/* ---------- TESTIMONIALS ---------- */
.testimonial { background: var(--white); border: none; border-radius: 18px; padding: 26px 30px; margin-bottom: 14px; box-shadow: 0 8px 20px rgba(51,41,31,.06); }
.testimonial:first-child { border-top: none; }
.testimonial:last-child { margin-bottom: 0; }
.testimonial p { font-family: var(--serif); font-style: italic; font-size: 16.5px; line-height: 1.7; color: var(--dark); margin-bottom: 10px; }
.testimonial cite { font-style: normal; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-dk); }

/* ---------- CONTACT ---------- */
.contact-card { background: var(--white); border: none; border-radius: 16px; padding: 28px; box-shadow: 0 10px 26px rgba(51,41,31,.06); }
.contact-card h4 { font-family: var(--serif); font-size: 18px; margin-bottom: 4px; }
.contact-card .role { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.contact-card a { color: var(--accent-dk); text-decoration: none; font-size: 14px; }
.contact-card a:hover { text-decoration: underline; }
.contact-card .line { font-size: 14px; color: var(--muted); margin-bottom: 6px; }

/* ---------- BUTTONS / MISC ---------- */
.note-box { background: var(--accent2-soft); border: none; border-radius: 14px; padding: 20px 24px; font-size: 14px; color: var(--dark); line-height: 1.7; }
.note-box strong { color: var(--dark); }

/* ---------- SPEAKER PAGE: BOOK COVERS / EXTRA PHOTOS ---------- */
.book-covers { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.book-covers img { height: 130px; width: auto; border: none; border-radius: 8px; background: var(--white); box-shadow: 0 6px 16px rgba(51,41,31,.14); }
.speaker-figure { margin-top: 28px; max-width: 640px; }
.speaker-figure img { width: 100%; height: auto; border: none; border-radius: 12px; box-shadow: 0 10px 24px rgba(51,41,31,.12); display: block; }
.speaker-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

/* ---------- COURSES ---------- */
.course-block { padding: 30px 0; border-bottom: 1px solid var(--border); }
.course-block:first-child { padding-top: 0; }
.course-block:last-child { border-bottom: none; padding-bottom: 0; }

/* ---------- FOOTER ---------- */
footer { background: var(--dark-bg); color: rgba(255,255,255,.6); padding: 52px 0 36px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-brand { font-family: var(--serif); color: var(--white); font-size: 17px; margin-bottom: 8px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.6); text-decoration: none; margin-bottom: 8px; }
.footer-col a:hover { color: var(--white); }
.footer-nav { columns: 2; column-gap: 28px; }
.footer-legal { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 32px; text-align: center; }
