/* FACES theme: warm and landscape-led (direction B) */
:root {
  --forest: #18241C;
  --forest-2: #24342A;
  --cream: #F3F0E8;
  --sand: #E6E0D2;
  --wheat: #E2B84C;
  --clay: #7A4B12;
  --ink: #1E2620;
  --ink-2: #3E4740;
  --muted: #59635B;
  --line: #D8D2C3;
  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --body: 'Source Sans 3', system-ui, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--clay); text-underline-offset: 3px; }
a:hover { color: #4F300B; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } body { font-size: 17px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--wheat); color: var(--ink); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Display type */
h1, h2, h3, .display { font-family: var(--display); font-stretch: 80%; font-weight: 800; line-height: 1.05; letter-spacing: -0.005em; }
h3 { font-stretch: 85%; font-weight: 700; line-height: 1.15; }
.eyebrow { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); margin: 0 0 10px; }

/* Header */
.site-header { background: var(--forest); }
.site-header.over-hero { position: absolute; top: 0; left: 0; right: 0; background: transparent; z-index: 5; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 20px; }
.brand { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 26px; letter-spacing: 0.06em; color: #fff; text-decoration: none; }
.brand:hover { color: var(--wheat); }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.nav-links a { display: inline-block; padding: 10px 0; color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--wheat); color: #fff; }
@media (max-width: 640px) { .nav-links { gap: 0 16px; } .nav-links a { font-size: 15px; } }

/* Buttons */
.btn { display: inline-block; padding: 14px 24px; border-radius: 4px; font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.btn-wheat { background: var(--wheat); color: var(--ink); }
.btn-wheat:hover { background: #EDC867; color: var(--ink); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-dark { background: var(--forest); color: var(--cream); }
.btn-dark:hover { background: var(--forest-2); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero */
.hero { position: relative; min-height: 720px; display: flex; flex-direction: column; justify-content: flex-end; background-color: var(--forest); background-size: cover; background-position: center 60%; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(16, 24, 18, 0.58); }
.hero-inner { position: relative; width: 100%; padding-top: 140px; padding-bottom: 76px; }
.hero .acronym { font-family: var(--display); font-stretch: 80%; font-weight: 600; font-size: 17px; letter-spacing: 0.1em; text-transform: uppercase; color: #E8ECE6; margin: 0 0 18px; }
.hero .acronym b { color: var(--wheat); font-weight: 800; }
.hero h1 { font-size: clamp(44px, 7vw, 82px); font-stretch: 78%; line-height: 0.98; color: #fff; margin: 0 0 24px; max-width: 980px; }
.hero .lede { font-size: 21px; color: #ECEFEA; margin: 0 0 32px; max-width: 680px; }

/* Sections */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section h2 { font-size: clamp(36px, 5vw, 50px); margin: 0 0 16px; }
.section .intro { font-size: 20px; color: var(--ink-2); max-width: 760px; margin: 0 0 56px; }
.dark { background: var(--forest); color: var(--cream); }
.dark a { color: var(--wheat); }
.dark h2, .dark h3 { color: var(--cream); }
.sand { background: var(--sand); }

/* Research steps */
.steps { display: flex; flex-direction: column; gap: 72px; }
.step { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.step:nth-child(even) { flex-direction: row-reverse; }
.step-media, .step-text { flex: 1 1 440px; min-width: 0; }
.step-media img { width: 100%; height: 340px; object-fit: cover; border-radius: 4px; display: block; }
.step-text h3 { font-size: clamp(28px, 3.4vw, 36px); margin: 0 0 14px; }
.step-text p { color: var(--ink-2); margin: 0 0 18px; }
.step-text a { font-weight: 600; }
.timeline-panel { height: 340px; border-radius: 4px; background: var(--forest); padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 4px; font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 68px; line-height: 1.05; color: var(--cream); }
.timeline-panel span:nth-child(2) { color: var(--wheat); }

/* Field notes + papers */
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split-main { flex: 3 1 560px; min-width: 0; }
.split-side { flex: 2 1 360px; min-width: 0; }
.post-lead { display: block; text-decoration: none; color: var(--cream); border-top: 3px solid var(--wheat); padding-top: 24px; margin-bottom: 32px; }
.post-lead h3 { font-size: 34px; margin: 0 0 10px; }
.post-lead p { margin: 0; color: #CBD3CB; }
.post-meta { font-size: 15px; font-weight: 600; color: var(--wheat); margin: 0 0 8px; }
.post-row { display: flex; flex-wrap: wrap; gap: 32px; }
.post-small { flex: 1 1 240px; min-width: 0; text-decoration: none; color: var(--cream); border-top: 1px solid #3C4A40; padding-top: 18px; }
.post-small h3 { font-size: 23px; margin: 0; }
.post-small .post-meta { color: #AEB9AF; font-weight: 400; }
.dark .post-lead:hover h3, .dark .post-small:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.paper-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; font-size: 17px; line-height: 1.45; }
.paper-list em { font-style: italic; }
.dark .paper-list a { color: var(--cream); }
.dark .paper-list li { color: #CBD3CB; }

/* People */
.people { display: flex; flex-wrap: wrap; gap: 44px 28px; }
.person { flex: 1 1 180px; max-width: 240px; min-width: 0; text-align: center; text-decoration: none; color: var(--ink); }
.person img, .person .avatar-blank { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 16px; }
.avatar-blank { background: var(--sand); display: flex !important; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 44px; color: var(--clay); }
.person h3 { font-size: 21px; margin: 0; }
.person p { font-size: 16px; color: var(--muted); margin: 2px 0 0; }
.person:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.alumni { columns: 2 280px; column-gap: 40px; padding: 0; list-style: none; }
.alumni li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); }
.alumni span { color: var(--muted); }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 250px; min-width: 0; background: var(--sand); border-radius: 4px; padding: 28px; text-decoration: none; color: var(--ink); }
.card h3 { font-size: 23px; margin: 0 0 8px; }
.card p { margin: 0; font-size: 16px; color: var(--ink-2); }
.card:hover { background: #DDD5C3; color: var(--ink); }

/* Join band */
.join { background: var(--wheat); padding: 64px 0; }
.join .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.join h2 { font-size: clamp(32px, 4vw, 42px); margin: 0; color: var(--ink); }

/* Page header (inner pages) */
.page-head { background: var(--forest); color: var(--cream); padding: 64px 0 56px; }
.page-head h1 { font-size: clamp(38px, 6vw, 64px); margin: 0; color: #fff; }
.page-head .lede { font-size: 20px; color: #D9DED8; max-width: 760px; margin: 16px 0 0; }
.page-head .eyebrow { color: var(--wheat); }
.page-head.with-image { position: relative; background-size: cover; background-position: center; padding: 120px 0 64px; }
.page-head.with-image::before { content: ""; position: absolute; inset: 0; background: rgba(16, 24, 18, 0.6); }
.page-head.with-image .wrap { position: relative; }

/* Long-form prose */
.prose { max-width: 760px; padding: 56px 0 96px; }
.prose h2 { font-size: 34px; margin: 48px 0 16px; }
.prose h3 { font-size: 25px; margin: 36px 0 12px; }
.prose .card h3 { font-size: 23px; margin: 0 0 8px; }
.prose .card p { margin: 0; font-size: 16px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0 0 12px; }
.prose img { border-radius: 4px; }
.prose blockquote { margin: 24px 0; padding: 4px 24px; border-left: 4px solid var(--wheat); color: var(--ink-2); }
.prose pre { background: var(--forest); color: var(--cream); padding: 18px; border-radius: 4px; overflow-x: auto; font-size: 15px; }
.prose code { font-size: 0.9em; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose iframe { max-width: 100%; border: 0; }
.comic { display: flex; flex-direction: column; gap: 16px; margin: 32px 0 24px; }
.comic img { width: 100%; height: auto; display: block; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.comic-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; }
.comic-nav[hidden] { display: none; }
.comic-nav .btn { padding: 10px 18px; font-size: 16px; cursor: pointer; font-family: var(--body); }
.comic-nav .btn:disabled { opacity: 0.4; cursor: default; }
.comic-count { font-weight: 600; color: var(--ink-2); }
.comic-reader.paged .comic { margin: 0; }
.comic-reader.paged .comic img { display: none; cursor: pointer; }
.comic-reader.paged .comic img.on { display: block; width: auto; max-width: 100%; max-height: calc(100vh - 120px); margin: 0 auto; }
.artwork { margin: 48px 0 0; }
.artwork img { width: 100%; height: auto; display: block; }
.artwork figcaption { margin-top: 8px; font-size: 15px; color: var(--muted); }
.wide { max-width: var(--wrap); }

/* Publications page */
.pubs h2 { font-size: 34px; margin: 48px 0 12px; padding-top: 16px; border-top: 3px solid var(--forest); }
.pubs ul { list-style: none; padding: 0; }
.pubs li { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; line-height: 1.5; }
.featured-pubs { display: flex; flex-wrap: wrap; gap: 20px; margin: 0 0 24px; }
.feature { flex: 1 1 280px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.feature img { width: 100%; height: 170px; object-fit: cover; display: block; background: var(--sand); }
.feature div { padding: 18px 20px 22px; }
.feature h3 { font-size: 20px; margin: 4px 0 0; }
.feature .post-meta { color: var(--clay); }
.feature:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.meta-row a { background: var(--wheat); color: var(--ink); text-decoration: none; padding: 8px 16px; border-radius: 4px; font-weight: 600; font-size: 16px; }
.meta-row a:hover { background: #EDC867; }
.cite { background: #fff; border: 1px solid var(--line); padding: 16px; border-radius: 4px; font-size: 15px; white-space: pre-wrap; overflow-x: auto; }

/* Blog list */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-list h2 { font-size: 30px; margin: 0 0 8px; padding: 0; border: 0; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; }
.post-list p { margin: 0; color: var(--ink-2); }
.post-list .post-meta { color: var(--clay); }

/* Profile */
.profile { display: flex; flex-wrap: wrap; gap: 40px; padding: 56px 0 96px; }
.profile-side { flex: 0 1 240px; }
.profile-side img { width: 240px; height: 240px; border-radius: 50%; object-fit: cover; }
.profile-main { flex: 1 1 480px; min-width: 0; max-width: 760px; }

/* Footer */
.site-footer { background: var(--forest); color: #CBD3CB; font-size: 16px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; padding-top: 48px; padding-bottom: 48px; }
.footer-inner p { margin: 0 0 4px; }
.footer-title { font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 20px; color: var(--cream); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-links a { display: inline-block; padding: 10px 0; color: var(--cream); }

/* Phone and tablet: header sits above the hero instead of over it */
@media (max-width: 900px) {
  .site-header.over-hero { position: static; background: var(--forest); }
  .hero { min-height: 0; }
  .hero-inner { padding-top: 56px; padding-bottom: 56px; }
  .hero .acronym { font-size: 14px; }
  .step-media img, .timeline-panel { height: 240px; }
  .timeline-panel { font-size: 48px; }
  .section { padding: 64px 0; }
}

/* Alumni grouped by role: one compact row per group, names wrap inline */
.alumni-groups { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.alumni-group { display: flex; flex-wrap: wrap; gap: 6px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.alumni-group h3 { flex: 0 0 220px; font-size: 20px; margin: 0; }
.alumni-group .alumni { flex: 1 1 400px; min-width: 0; columns: auto; column-gap: 0; row-gap: 4px; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; }
.alumni-group .alumni li { border: 0; padding: 0; }
.alumni-group .alumni li:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--muted); }
/* Papers fill the band when there are no blog posts yet */
.split-side:only-child { flex-basis: 100%; }
.split-side:only-child .paper-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px 64px; }
