/* ==========================================================================
   Jennie L. Thomas — personal research site
   Hand-built static CSS. No dependencies, no build step.
   Palette: deep arctic navy, ice blue, teal accent.
   ========================================================================== */

:root {
  --navy: #0c2d4d;
  --navy-deep: #08233d;
  --ink: #1f3446;
  --body: #405468;
  --muted: #64788d;
  --accent: #1583b0;
  --accent-dark: #10688c;
  --ice: #eef5fa;
  --ice-deep: #dcebf5;
  --border: #d9e4ee;
  --card: #ffffff;
  --gold: #d9a441;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(12, 45, 77, 0.08), 0 4px 14px rgba(12, 45, 77, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--body);
  background: var(--card);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.brand span { color: var(--muted); font-weight: 500; }

.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }

.site-nav a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover { background: var(--ice); text-decoration: none; color: var(--navy); }

.site-nav a.active {
  background: var(--navy);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */

.hero {
  background:
    linear-gradient(rgba(8, 35, 61, 0.78), rgba(8, 35, 61, 0.86)),
    url("../img/arctic-hero.jpg") center 35% / cover no-repeat,
    var(--navy-deep);
  color: #e8f1f8;
}

.hero-grid {
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero-kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9fd0e8;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  color: #fff;
}

.hero a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(217, 164, 65, 0.55);
  text-underline-offset: 3px;
}

.hero a:hover {
  color: #f0be62;
  text-decoration-color: #f0be62;
}

.hero-role { margin: 0 0 16px; color: #cfe3ef; font-size: 1.05rem; }

.hero-blurb { margin: 0 0 26px; max-width: 56ch; color: #e8f1f8; }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 48px 0 28px;
}

.page-hero h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 3.5vw, 2.3rem); }

/* --------------------------------------------------------------------------
   Sections & cards
   -------------------------------------------------------------------------- */

.section { padding: 54px 0; }

.section-alt { background: var(--ice); }

.section-head { margin-bottom: 28px; }

.section-head h2 { margin: 0 0 6px; font-size: 1.65rem; }

.section-head p { margin: 0; color: var(--muted); max-width: 68ch; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.card h3 { margin: 0 0 8px; font-size: 1.06rem; }

.card h3 .icon { margin-right: 8px; }

.card p { margin: 0; font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Timeline (short CV)
   -------------------------------------------------------------------------- */

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--ice-deep);
}

.timeline li {
  position: relative;
  padding: 0 0 22px 36px;
  margin: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--card);
  border: 4px solid var(--accent);
}

.timeline li:last-child { padding-bottom: 4px; }

.timeline li.now::before { background: var(--accent); }

.timeline .t-what { display: block; font-weight: 650; color: var(--ink); }

.timeline .t-where { display: block; color: var(--muted); font-size: 0.95rem; }

.timeline .t-note { display: block; color: var(--body); font-size: 0.92rem; }

.badge-now {
  display: inline-block;
  margin-left: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   Projects page
   -------------------------------------------------------------------------- */

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.project-card h3 { margin: 6px 0 4px; font-size: 1.25rem; }

.project-card h3 a { color: var(--navy); }

.project-card .p-sub { margin: 0 0 10px; color: var(--muted); font-size: 0.95rem; }

.project-logo {
  float: right;
  max-width: 250px;
  width: 100%;
  height: auto;
  margin: 2px 0 10px 20px;
}

.role-badge {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-ongoing, .badge-concluded {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 11px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-ongoing { background: #e3f4ec; color: #11684a; }

.badge-concluded { background: var(--ice-deep); color: var(--navy); }

.project-links { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }

.pill-link {
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.pill-link:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }

/* --------------------------------------------------------------------------
   Publications page
   -------------------------------------------------------------------------- */

.pub-scholar { margin: 0; font-size: 0.95rem; color: var(--body); }

.pub-filter { margin: 22px 0 4px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.pub-filter input {
  flex: 0 1 380px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}

.pub-filter input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.filter-count { color: var(--muted); font-size: 0.88rem; }

.pub-container { padding: 36px 24px 64px; }

.pub-year h2 {
  font-size: 1.35rem;
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ice-deep);
}

.pub-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }

.pub { padding: 14px 0 12px; border-bottom: 1px dashed var(--border); }

.pub:last-child { border-bottom: none; }

.pub-title { font-weight: 650; color: var(--navy); font-size: 1.02rem; line-height: 1.45; }

.pub-title a { color: var(--navy); }
.pub-title a:hover { color: var(--accent-dark); }

.pub-authors { margin-top: 3px; font-size: 0.92rem; color: var(--body); }

.pub-authors strong { color: var(--ink); font-weight: 700; }

.pub-venue { margin-top: 2px; font-size: 0.88rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 40px;
  background: var(--navy-deep);
  color: #b9cfde;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 30px;
  padding-top: 40px;
  padding-bottom: 26px;
}

.footer-name { font-weight: 700; color: #fff; font-size: 1.05rem; margin: 0 0 8px; }

.site-footer p { margin: 0 0 10px; }

.site-footer a { color: #9fd0e8; }

.footer-heading {
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
}

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

.email-at { color: var(--gold); font-weight: 700; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 16px; padding-bottom: 20px; }

.footer-bottom p { margin: 0; font-size: 0.85rem; color: #8db4ca; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .nav { justify-content: center; }
  .project-logo { float: none; max-width: 200px; margin: 10px 0 4px; }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .pub-filter { display: none; }
  body { color: #000; font-size: 11pt; }
  .pub { break-inside: avoid; }
}
