/* Top navigation, banner, single content column */
:root {
  --text: #2b2f33;
  --muted: #667079;
  --accent: #2b6a99;
  --accent-dark: #1d4d73;
  --rule: #e2e6e9;
  --bg: #ffffff;
  --bg-soft: #eef3f7;
  --banner-img: none;
  --measure: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 20px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
a:focus-visible, .btn:focus-visible { outline: 3px solid #8cb8d9; outline-offset: 2px; border-radius: 2px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--bg); }
.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 1.1rem clamp(1.25rem, 4vw, 3.5rem) 0.9rem;
}
.site-title { font-size: 1.4rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; font-family: "Nunito", "Helvetica Neue", sans-serif; color: var(--text); }
.site-title:hover { color: var(--accent); text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a { color: var(--muted); font-size: 0.92rem; letter-spacing: 0.03em; text-transform: uppercase; padding: 0.15rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* Banner (home page): full-bleed photo, nav overlaid directly on it, no white bar above */
.banner {
  position: relative;
  color: #fff;
  background-color: #23384a;
  background-image: linear-gradient(rgba(10, 22, 34, 0.42), rgba(10, 22, 34, 0.58)), var(--banner-img);
  background-size: cover;
  background-position: center;
  min-height: 30rem;
}
.banner-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 1.9rem clamp(1.25rem, 4vw, 3.5rem) 0;
}
.banner-nav .brand { font-family: "Nunito", "Helvetica Neue", sans-serif; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 1.15rem; color: #fff; }
.banner-nav .brand:hover { color: #fff; text-decoration: none; opacity: 0.85; }
.banner-nav .links { display: flex; gap: clamp(1rem, 2.5vw, 2.2rem); flex-wrap: wrap; }
.banner-nav .links a { color: #fff; text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.95rem; opacity: 0.92; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.banner-nav .links a:hover { opacity: 1; text-decoration: none; border-bottom-color: rgba(255,255,255,0.7); }
.banner-nav .links a[aria-current="page"] { opacity: 1; border-bottom-color: #fff; }
.banner a:focus-visible { outline-color: #fff; }

.banner-hero { text-align: center; padding: 5.5rem 1.5rem 6.5rem; max-width: 900px; margin: 0 auto; }
.banner-hero h1 { font-family: "Nunito", "Helvetica Neue", sans-serif; font-size: clamp(2.3rem, 5.5vw, 3.7rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0.015em; margin: 0 0 1.1rem; }
.banner-hero .sub { font-size: clamp(0.95rem, 1.8vw, 1.15rem); text-transform: uppercase; letter-spacing: 0.04em; color: #d7e2ea; line-height: 1.7; margin: 0; }

.social-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin-top: 1.4rem; }
.social-row a { display: inline-flex; align-items: center; gap: 0.45rem; color: #e7eef3; font-size: 0.92rem; letter-spacing: 0.01em; opacity: 0.92; }
.social-row a:hover { opacity: 1; color: #fff; text-decoration: none; }
.social-row svg { flex: none; opacity: 0.95; }

.content--narrow { max-width: 860px; }

/* Content */
.content { padding-top: 2.4rem; padding-bottom: 3.5rem; min-height: 50vh; }
.page-title { font-size: 1.9rem; line-height: 1.25; margin: 0 0 1.3rem; }
h1, h2, h3, h4 { line-height: 1.2; font-family: "Nunito", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; }
.content h1 { font-size: 1.5rem; margin: 2.4rem 0 0.8rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--rule); }
.content h2 { font-size: 1.45rem; margin: 2.2rem 0 0.8rem; }
.content h3 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; }
.content > h2:first-child { margin-top: 0; }
p { margin: 0 0 1rem; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.2rem 0; }

/* Lists */
.content ul, .content ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.content li { margin-bottom: 0.55rem; }
.content ol { padding-left: 1.8rem; }
.content ol > li { padding-left: 0.3rem; margin-bottom: 0.95rem; font-size: 0.97rem; line-height: 1.5; }
.content ol > li::marker { color: var(--muted); }
.content li ul { margin: 0.3rem 0 0; }
.content li ul li { font-size: 0.93rem; color: var(--muted); margin-bottom: 0.2rem; }

/* News */
.news { list-style: none; padding: 0; margin: 0 0 1rem; }
.news li { margin: 0; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
.news li:last-child { border-bottom: 0; }
.news b { color: var(--accent-dark); font-weight: 700; }

/* Data and code list */
.resources { list-style: none; padding: 0; margin: 0; }
.resources li { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); margin: 0; font-size: 1rem; }
.resources li:last-child { border-bottom: 0; }
.resources span { color: var(--muted); display: block; font-size: 0.93rem; }

/* Publications: year-grouped citation list (McKinnon-style), text only, our own font */
.pub-year { margin: 2.2rem 0 0.7rem; font-size: 1.15rem; color: var(--accent-dark); border-bottom: 2px solid var(--rule); padding-bottom: 0.35rem; }
.pub-year:first-of-type { margin-top: 0; }
.pub-note { color: var(--muted); font-size: 0.92rem; line-height: 1.6; margin: 0 0 0.5rem; }
.content ul.pub-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.pub-item { padding: 0.9rem 1rem; margin: 0 -1rem; border-radius: 4px; font-size: 0.98rem; line-height: 1.6; }
.pub-item:nth-child(odd) { background: var(--bg-soft); }
.pub-item .self { font-weight: 700; }
.pub-item .venue { font-style: italic; }
.pub-item .pub-links a { margin-left: 0.15rem; }

/* News-style index list: date/label, title, dek, byline, thumbnail */
.news-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.news-item { display: flex; gap: 1.6rem; align-items: flex-start; padding: 1.7rem 0; border-bottom: 1px solid var(--rule); }
.news-item:first-child { padding-top: 0.2rem; }
.news-text { flex: 1; min-width: 0; }
.news-label { display: block; color: var(--accent-dark); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 0.4rem; }
.news-title { font-size: 1.28rem; line-height: 1.35; margin: 0 0 0.5rem; }
.news-title a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--rule); }
.news-title a:hover { color: var(--accent-dark); text-decoration-color: currentColor; }
.news-dek { margin: 0 0 0.55rem; font-size: 0.98rem; color: var(--text); line-height: 1.55; }
.news-byline { margin: 0; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.02em; text-transform: uppercase; }
.news-thumb { flex: none; width: 150px; height: 112px; object-fit: cover; border-radius: 4px; background: var(--bg-soft); }
@media (max-width: 600px) {
  .news-item { gap: 1rem; padding: 1.3rem 0; }
  .news-thumb { width: 92px; height: 78px; }
  .news-title { font-size: 1.1rem; }
  .news-dek { font-size: 0.92rem; }
}

/* Buttons */
.btn { display: inline-block; padding: 0.45rem 1rem; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: #fff; font-size: 0.95rem; margin-bottom: 0.5rem; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; text-decoration: none; }

/* Figures, tables, code */
figure { margin: 1.5rem 0; }
figure img { max-width: 100%; height: auto; border-radius: 4px; }
figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; }
th, td { padding: 0.4rem 0.8rem; border-bottom: 1px solid var(--rule); text-align: left; }
pre { overflow-x: auto; background: var(--bg-soft); padding: 0.8rem; border-radius: 4px; font-size: 0.85rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1rem; padding-top: 1.1rem; padding-bottom: 1.4rem; }
.footer-links a { margin-left: 1rem; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

/* Small screens */
@media (max-width: 680px) {
  html { font-size: 18px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .banner-nav { justify-content: center; text-align: center; padding-top: 1.5rem; }
  .banner-nav .links { justify-content: center; }
  .banner-hero { padding: 3.2rem 1.25rem 4rem; }
}
