/* =========================================================
   PCRG — Paleoenvironmental Change Research Group, UNCW
   Design tokens grounded in the lab's own mark: a coring rod
   through banded water/sediment layers (teal over brown).
   ========================================================= */

:root {
  /* --- Color: pulled from the lab's own logo mark --- */
  --ink:        #241F1A;   /* near-black warm charcoal, body text */
  --ink-soft:   #4A4237;   /* secondary text */
  --parchment:  #EDE5D0;   /* page background — core-sample paper */
  --parchment-2:#E1D6B9;   /* card / section background */
  --parchment-3:#D8CAA6;   /* borders, dividers */
  --teal:       #163A4B;   /* deep water — primary */
  --teal-light: #2C6478;   /* hover / links on light bg */
  --brown:      #6B4426;   /* sediment — secondary */
  --rust:       #B5602C;   /* oxidized layer — accent */
  --moss:       #4C6740;   /* vegetation/pollen — tertiary */
  --gold:       #C9A227;   /* mineral fleck — sparingly */
  --paper:      #FAF6EC;   /* near-white card surface */
  --white:      #FFFFFF;

  /* --- Type --- */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --container: 1120px;
}

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

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); text-decoration-color: var(--parchment-3); text-underline-offset: 3px; }
a:hover { color: var(--rust); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--teal);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 500; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; max-width: 68ch; }
.center p { margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-block;
  margin-bottom: .6em;
}

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

/* ---------- Core-strip motif: banded sediment/water rule ---------- */
.core-rule {
  height: 10px;
  background: linear-gradient(
    90deg,
    var(--teal) 0%, var(--teal) 14%,
    var(--teal-light) 14%, var(--teal-light) 18%,
    var(--brown) 18%, var(--brown) 46%,
    var(--rust) 46%, var(--rust) 52%,
    var(--brown) 52%, var(--brown) 74%,
    var(--moss) 74%, var(--moss) 82%,
    var(--brown) 82%, var(--brown) 100%
  );
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--teal);
  color: var(--parchment);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--parchment);
  text-decoration: none;
}
.brand:hover { color: var(--gold); }
.brand-mark {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}
.brand-text { line-height: 1.15; }
.brand-text .full {
  font-family: var(--font-display);
  font-size: 1.12rem;
  display: block;
  font-weight: 600;
  letter-spacing: .01em;
}
.brand-text .sub {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--parchment-3);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.35);
  color: var(--parchment);
  width: 42px; height: 38px;
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--parchment);
  margin: 4px auto;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0; padding: 0;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
nav.main-nav a {
  color: var(--parchment);
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 3px;
  display: block;
}
nav.main-nav a:hover { background: rgba(255,255,255,.1); color: var(--gold); }
nav.main-nav a.active { background: var(--rust); color: var(--white); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--teal);
    border-top: 1px solid rgba(255,255,255,.15);
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; padding: 10px 20px 18px; gap: 2px; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--teal);
  color: var(--parchment);
  position: relative;
  overflow: hidden;
}
.hero .wrap { padding-top: 64px; padding-bottom: 56px; }
.hero h1 { color: var(--white); }
.hero .lede {
  max-width: 62ch;
  font-size: 1.12rem;
  color: var(--parchment-3);
}
.hero-sub {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.page-hero { padding: 46px 0 40px; }
.page-hero .wrap { padding-top: 0; padding-bottom: 0; }

.hero-two-col { align-items: center; }
.hero-photo {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(237,229,208,.25);
}
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slideshow {
  position: relative;
  aspect-ratio: 4 / 3;
}
.hero-slideshow img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slideshow img.active {
  opacity: 1;
}
.top-align {
  object-position: top;
}
@media (max-width: 760px) {
  .hero-photo { margin-top: 24px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 3px;
  border: 1px solid currentColor;
}
.btn-light { color: var(--parchment); border-color: rgba(237,229,208,.55); }
.btn-light:hover { background: var(--rust); border-color: var(--rust); color: var(--white); }
.btn-dark { color: var(--teal); border-color: var(--teal); }
.btn-dark:hover { background: var(--teal); color: var(--white); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.tight { padding: 34px 0; }
.section-alt { background: var(--parchment-2); }

.section-head { max-width: 62ch; margin-bottom: 34px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.photo-mosaic img { width: 100%; height: 190px; object-fit: cover; border-radius: 2px; }
@media (max-width: 820px) { .photo-mosaic { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--paper);
  border: 1px solid var(--parchment-3);
  border-radius: 4px;
  padding: 26px;
}
.card h3 { margin-bottom: .35em; }

.instrument {
  background: var(--paper);
  border: 1px solid var(--parchment-3);
  border-radius: 4px;
  overflow: hidden;
}
.instrument { cursor: pointer; }
.instrument img { width: 100%; height: 200px; object-fit: cover; transition: opacity .15s ease; }
.instrument img:hover { opacity: .85; }
.instrument figcaption {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--ink-soft);
  padding: 10px 14px;
  border-top: 1px solid var(--parchment-3);
}
.instrument-model {
  display: block;
  margin-top: 3px;
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: normal;
  color: var(--ink-soft);
  opacity: .8;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(36,31,26,.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: var(--parchment);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
}
.lightbox-close:hover { color: var(--rust); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Career-outcome icons ---------- */
.now-icon { margin-right: 6px; }

/* ---------- Publication filter ---------- */
.pub-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 18px 0 8px;
}
.pub-filter input[type="text"] {
  flex: 1;
  min-width: 220px;
  padding: 9px 12px;
  border: 1px solid var(--parchment-3);
  border-radius: 4px;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--ink);
}
.pub-filter select {
  padding: 9px 12px;
  border: 1px solid var(--parchment-3);
  border-radius: 4px;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--ink);
}
.pub-filter input[type="text"]:focus,
.pub-filter select:focus {
  outline: 2px solid var(--teal-light);
  outline-offset: 1px;
}
.pub-count {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---------- Publications list ---------- */
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub-list li {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--parchment-3);
}
.pub-list li:last-child { border-bottom: 1px solid var(--parchment-3); }
.pub-year {
  font-family: var(--font-mono);
  color: var(--rust);
  font-size: .92rem;
  padding-top: .1em;
}
.pub-list p { margin: 0; max-width: 62ch; }
.pub-list a { font-weight: 600; }

.pub-list-plain { list-style: none; margin: 0; padding: 0; }
.pub-list-plain .pub-item {
  padding: 12px 0;
  border-top: 1px solid var(--parchment-3);
  max-width: 78ch;
}
.pub-list-plain .pub-item:last-child { border-bottom: 1px solid var(--parchment-3); }

/* ---------- Depth column (People page signature element) ---------- */
.core-column-page { position: relative; }
.core-column-page .wrap { display: flex; gap: 46px; align-items: flex-start; }

.depth-rail {
  flex: none;
  width: 74px;
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.depth-rail .rail-bar {
  width: 12px;
  flex: 1;
  min-height: 560px;
  border-radius: 6px;
  background: linear-gradient(
    180deg,
    var(--teal) 0%, var(--teal) 8%,
    var(--teal-light) 8%, var(--teal-light) 13%,
    var(--brown) 13%, var(--brown) 34%,
    var(--rust) 34%, var(--rust) 40%,
    var(--brown) 40%, var(--brown) 62%,
    var(--moss) 62%, var(--moss) 70%,
    var(--brown) 70%, var(--brown) 100%
  );
}
.depth-rail .rail-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.depth-rail .rail-label-top {
  color: var(--teal);
  margin-bottom: 8px;
}
.depth-rail .rail-label-bottom {
  margin-top: 8px;
}

.people-col { flex: 1; min-width: 0; }

.tier-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 6px;
}
.tier-heading .tier-depth {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--rust);
  white-space: nowrap;
}
.tier-note { color: var(--ink-soft); margin-bottom: 26px; max-width: 60ch; }
.ms-diagram { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.ms-feed { display: flex; gap: 10px; width: 100%; }
.ms-feed-item { flex: 1; display: flex; flex-direction: column; align-items: center; }
.ms-feed-item .instrument-sm { width: 100%; }
.ms-feed-item .instrument-sm img { height: 140px; }
.ms-feed-item .instrument-sm figcaption { padding: 6px 8px; font-size: .7rem; text-align: center; }
.ms-arrow {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--teal-light);
  margin: 4px 0;
}

.person-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 52px;
}
@media (max-width: 820px) { .person-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .person-grid { grid-template-columns: 1fr; } }

.person {
  background: var(--paper);
  border: 1px solid var(--parchment-3);
  border-radius: 4px;
  overflow: hidden;
}
.person .photo { width: 100%; height: 210px; object-fit: cover; background: var(--parchment-3); }
.person .body { padding: 16px 18px 18px; }
.person h3 { font-size: 1.04rem; margin-bottom: .15em; }
.person .role { font-size: .86rem; color: var(--ink-soft); margin-bottom: .5em; }
.person .fame {
  font-size: .88rem;
  font-style: italic;
  color: var(--teal-light);
  border-top: 1px dashed var(--parchment-3);
  margin-top: .6em;
  padding-top: .6em;
}
.person .fame::before { content: "“"; }
.person .fame::after { content: "”"; }

@media (max-width: 760px) {
  .core-column-page .wrap { flex-direction: row; gap: 18px; }
  .depth-rail { width: 40px; top: 78px; }
  .depth-rail .rail-label { display: none; }
}

/* ---------- Contact / footer ---------- */
.contact-block {
  font-family: var(--font-mono);
  font-size: .92rem;
  line-height: 1.9;
}
.contact-block a { color: inherit; }

.site-footer {
  background: var(--ink);
  color: var(--parchment-3);
  padding: 34px 0 26px;
  font-size: .88rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.site-footer a { color: var(--parchment); }
.site-footer .updated {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--parchment-3);
}

/* ---------- Misc content styling ---------- */
.lede-block { max-width: 68ch; }
.project-block { margin-bottom: 46px; }
.project-block img { border-radius: 4px; margin: 14px 0; width: 100%; height: 240px; object-fit: contain; background: var(--parchment-2); }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--teal);
  background: var(--parchment-2);
  border: 1px solid var(--parchment-3);
  padding: 3px 9px;
  border-radius: 100px;
  margin-bottom: 10px;
}

blockquote.callout {
  border-left: 3px solid var(--rust);
  margin: 0 0 1.4em;
  padding: 2px 0 2px 20px;
  color: var(--ink-soft);
  font-style: italic;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--rust); color: var(--white);
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
