/* Dec 3, 2026: every size scaled by 0.9 (Will: "zoom one click out"); html font-size 90% scales the rem sizes. */
/* iceandclimate.org — same paper-and-ink look as data.iceandclimate.org (serif headings, navy masthead, sand accent). */
:root {
  color-scheme: light;
  --page: #f5f3ee; --surface: #fffefb; --surface-2: #eeebe4;
  --ink: #1b2228; --ink-2: #48525b; --muted: #5f676e;
  --rule: #dcd6ca; --navy: #0f2f4f; --navy-2: #173e66; --sand: #e9c46a;
  --link: #155e8a; --coast: #c98500; --glaciers: #2a78d6; --station: #1baf7a; --live: #3fb950;
  --r: 7.2px;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0f1317; --surface: #161b20; --surface-2: #1e252b; --ink: #e8e6e1; --ink-2: #b7bcc0; --muted: #8b9297;
    --rule: #2a3137; --navy: #0b2036; --navy-2: #12304d; --link: #8cc2ea; --coast: #e0a93a; --glaciers: #6fb0e0;
  }
}
* { box-sizing: border-box; }
html { font-size: 90%; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; font: 15.3px/1.6 var(--sans); color: var(--ink); background: var(--page); }
a { color: var(--link); text-underline-offset: 1.8px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); }
h2 { font-size: 1.45rem; margin-top: 1.4em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1062px; margin: 0 auto; padding: 0 19.8px; }
.small { font-size: .88rem; } .muted { color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 684px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 650; color: var(--muted); margin: 0 0 .4em; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 9px; top: 9px; z-index: 99; background: #fff; padding: 5.4px 9px; }
.block { margin-top: 50.4px; }
.plain { list-style: none; padding: 0; } .plain li { margin: 0 0 .7em; }

/* masthead */
.site-head { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 1000; }
.head-row { display: flex; align-items: center; gap: 16.2px; min-height: 68.4px; }
.logo-btn { flex: none; width: 61.2px; height: 61.2px; padding: 0; margin: 3.6px -5.4px 3.6px -3.6px; border: 0; background: none;
  cursor: pointer; border-radius: 10.8px; }
.logo-btn img, .logo-btn svg { display: block; width: 61.2px; height: 61.2px; }
.logo-btn:focus-visible { outline: 1.8px solid var(--sand); outline-offset: 1.8px; }
.brand { color: #fff; text-decoration: none; margin-right: auto; }
.brand b { display: block; font-family: var(--serif); font-size: 1.2rem; }
.brand small { display: block; color: rgba(255,255,255,.68); font-size: .78rem; }
.site-nav { display: flex; gap: 1.8px; align-items: center; }
.site-nav a { color: rgba(255,255,255,.82); text-decoration: none; padding: 7.2px 9.9px; border-radius: 5.4px; font-size: .98rem; }
.site-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.site-nav a[aria-current] { color: #fff; box-shadow: inset 0 -2.7px 0 var(--sand); border-radius: 0; }
.site-nav .live-link { margin-left: 7.2px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 5.4px 11.7px; color: #fff; }
.dot { display: inline-block; width: 7.2px; height: 7.2px; border-radius: 50%; background: var(--live); margin-right: 6.3px;
  box-shadow: 0 0 0 0 rgba(63,185,80,.6); animation: pulse 2s infinite; vertical-align: 1px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 6.3px rgba(63,185,80,0); } 100% { box-shadow: 0 0 0 0 rgba(63,185,80,0); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 5.4px; padding: 5.4px 10.8px; font: inherit; }
@media (max-width: 846px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68.4px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 7.2px 12.6px 14.4px; }
  .site-nav.open { display: flex; }
  .site-nav .live-link { margin: 7.2px 0 0; text-align: center; }
}

/* hero */
.hero { position: relative; color: #fff; min-height: 72vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--navy); }
.hero-img { position: absolute; inset: 0; background-size: cover; background-position: center 45%; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,25,40,.05) 30%, rgba(10,25,40,.78)); }
.hero-text { position: relative; padding-bottom: 14.4px; padding-top: 108px; width: 100%; }
.hero h1 { max-width: 738px; font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); color: #fff; text-shadow: 0 1px 10.8px rgba(0,0,0,.35); }
.hero .eyebrow { color: rgba(255,255,255,.8); }
.hero-cap { position: absolute; right: 0; bottom: 7.2px; left: 0; text-align: right; color: rgba(255,255,255,.7); margin: 0; }
@media (max-width: 540px) { .hero-text { padding-bottom: 32px; } }
.btn { display: inline-flex; align-items: center; gap: 3.6px; padding: 9px 16.2px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .98rem; margin: 0 5.4px 5.4px 0; }
.btn.primary { background: var(--sand); border-color: var(--sand); color: #1b2228; }
.btn.ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); color: #fff; backdrop-filter: blur(3.6px); }
.btn:hover { filter: brightness(1.05); }

/* live strip */
.live { background: var(--navy-2); color: #fff; padding: 19.8px 0 9px; }
.live-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10.8px; }
.live h2 { margin: 0 0 10.8px; font-size: 1.2rem; color: #fff; }
.live-more, .live a { color: #fff; }
.live-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); gap: 9px; }
.tile { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: 10.8px 12.6px;
  text-decoration: none; display: flex; flex-direction: column; gap: 1.8px; transition: background .15s; }
.tile:hover { background: rgba(255,255,255,.13); }
.t-l { font-size: .8rem; color: rgba(255,255,255,.75); }
.t-v { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; line-height: 1.15; }
.t-s { font-size: .8rem; color: rgba(255,255,255,.75); min-height: 1.2em; }
.live-foot { color: rgba(255,255,255,.7); margin: 9px 0 5.4px; }
@media (max-width: 468px) { .live-tiles { grid-template-columns: repeat(2, 1fr); } .tile:last-child { grid-column: span 2; } .t-v { font-size: 1.5rem; } }
.page-head + .live { margin-bottom: 7.2px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--surface); padding: 16.2px 16.2px 14.4px; }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }

/* themes */
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 16.2px; }
.theme { background: var(--surface); border: 1px solid var(--rule); border-top: 3.6px solid var(--coast); border-radius: var(--r); padding: 18px 19.8px; }
.theme-glaciers { border-top-color: var(--glaciers); }
.theme ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 684px) { .themes { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 774px) { .two-col { grid-template-columns: 1fr; gap: 9px; } }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 9px; }
.sec-head h2 { margin-top: 0; }

/* news */
.news-list, .talk-list { list-style: none; padding: 0; margin: 0 0 1em; }
.news-list li, .talk-list li { display: grid; grid-template-columns: 70.2px 1fr; column-gap: 10.8px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.when { color: var(--muted); font-size: .86rem; padding-top: 1.8px; }
.news .outlet { grid-column: 2; color: var(--muted); font-size: .88rem; }
.talk-list li { font-size: .92rem; }
.news-cols aside { border-left: 1px solid var(--rule); padding-left: 25.2px; }
@media (max-width: 774px) { .news-cols aside { border: 0; padding: 0; } }

/* publications */
.pub-list { list-style: none; padding: 0; margin: 0; }
.pub { padding: 12.6px 0; border-bottom: 1px solid var(--rule); }
.pub-title { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.pub-auth { font-size: .9rem; color: var(--ink-2); margin-top: 2.7px; }
.pub-meta { font-size: .9rem; margin-top: 1.8px; }
.pub-links { font-size: .86rem; margin-top: 3.6px; color: var(--muted); }
.stu { text-decoration: underline; text-decoration-color: var(--coast); text-decoration-thickness: 1.8px; text-underline-offset: 2.7px; }
.cites { color: var(--muted); }
.pill { display: inline-block; font-size: .74rem; padding: 1px 7.2px; border-radius: 999px; background: var(--surface-2); }
.linkish { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 1.8px; }
.pub-tools { position: sticky; top: 68.4px; z-index: 5; background: var(--page); padding: 10.8px 19.8px 3.6px; border-bottom: 1px solid var(--rule); }
.pub-tools input { width: 100%; padding: 9px 12.6px; font: inherit; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 5.4px; margin: 9px 0 3.6px; }
.chip { border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 3.6px 10.8px; font: inherit;
  font-size: .88rem; cursor: pointer; text-decoration: none; }
.chip span { color: var(--muted); margin-left: 1.8px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--page); } .chip.on span { color: var(--page); opacity: .7; }
h2.year { font-size: 1.15rem; color: var(--muted); margin: 1.6em 0 0; }
.pub.hide, h2.year.hide { display: none; }

/* research */
.page-head { padding-top: 39.6px; }
.map { height: 414px; border-radius: var(--r); border: 1px solid var(--rule); background: var(--surface-2); z-index: 1; }
.map-key { margin-top: 7.2px; color: var(--muted); }
.k { display: inline-block; width: 9.9px; height: 9.9px; border-radius: 50%; margin: 0 3.6px 0 10.8px; vertical-align: -1px; }
.k.coast { background: var(--coast); } .k.glaciers { background: var(--glaciers); } .k.station { background: var(--station); width: 7.2px; height: 7.2px; }
.project { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28.8px; padding: 43.2px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 73.8px; }
.project:nth-child(even) figure { order: 2; }
.project figure { margin: 0; }
.project figure img { border-radius: var(--r); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.project figcaption { font-size: .84rem; color: var(--muted); margin-top: 5.4px; }
.project h2 { margin-top: 0; }
.project.theme-coast .eyebrow { color: var(--coast); } .project.theme-glaciers .eyebrow { color: var(--glaciers); }
.project.flash { animation: flash 1.6s; }
@keyframes flash { 0% { background: rgba(233,196,106,.35); } 100% { background: transparent; } }
details summary { cursor: pointer; color: var(--link); font-weight: 600; margin: 7.2px 0; }
@media (max-width: 774px) { .project { grid-template-columns: 1fr; } .project:nth-child(even) figure { order: 0; } }

/* people */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 16.2px; }
.people-grid.lead { grid-template-columns: 1fr; }
.person { display: grid; grid-template-columns: 86.4px 1fr; gap: 14.4px; background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r); padding: 14.4px; scroll-margin-top: 82.8px; }
.person.big { grid-template-columns: 144px 1fr; }
.face { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--surface-2); }
.person h3 { margin: 3.6px 0 0; } .cls { color: var(--muted); font-weight: 400; font-family: var(--sans); font-size: .9rem; }
.role { color: var(--ink-2); font-size: .92rem; margin: 1.8px 0 3.6px; }
.person details p { font-size: .94rem; }
.alumni { columns: 2; padding-left: 1.1em; } .alumni li { break-inside: avoid; margin-bottom: 3.6px; }
/* students' papers: a pill-shaped button that opens their list (People page) */
.stu-pubs { margin-top: 7.2px; }
.stu-pubs > summary { display: inline-flex; list-style: none; padding: 4.5px 12.6px; border: 1px solid var(--rule); border-radius: 999px;
  font-size: .86rem; background: var(--page); margin: 3.6px 0; }
.stu-pubs > summary::-webkit-details-marker { display: none; }
.stu-pubs[open] > summary { background: var(--surface); }
.stu-pubs .pub-list { text-align: left; }
.alumni .stu-pubs { margin-top: 0; }
@media (max-width: 630px) { .alumni { columns: 1; } .person.big { grid-template-columns: 86.4px 1fr; } }
.people-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 27px; align-items: center; }
.faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
@media (max-width: 684px) { .people-teaser { grid-template-columns: 1fr; } }
.funders { padding-bottom: 36px; color: var(--ink-2); } .small-h { font-size: 1rem; font-family: var(--sans); color: var(--muted); }

/* data */
.deep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 10.8px; }
.deep { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 12.6px 14.4px; text-decoration: none; color: var(--ink); }
.deep b { display: block; font-family: var(--serif); font-size: 1.08rem; color: var(--link); }
.deep span { font-size: .9rem; color: var(--ink-2); }
.deep:hover { border-color: var(--link); }

/* cv + about */
.cv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.cv-toc { position: sticky; top: 68.4px; background: var(--page); padding: 9px 19.8px; border-bottom: 1px solid var(--rule); z-index: 4; }
.cv { padding-bottom: 45px; } .cv h2 { scroll-margin-top: 118.8px; }
.cv-pubs li { margin-bottom: .6em; font-size: .94rem; }
.cv-t { border-collapse: collapse; width: 100%; font-size: .94rem; }
.cv-t td { padding: 5.4px 9px 5.4px 0; vertical-align: top; border-bottom: 1px solid var(--rule); }
.cv-t td:first-child { white-space: nowrap; color: var(--muted); width: 81px; }
.about-head { display: grid; grid-template-columns: 162px 1fr; gap: 25.2px; align-items: center; }
.face.big { width: 162px; }
.prose { max-width: 702px; padding-bottom: 45px; }
@media (max-width: 576px) { .about-head { grid-template-columns: 1fr; } }

/* footer */
.site-foot { background: var(--surface-2); border-top: 1px solid var(--rule); color: var(--ink-2); font-size: .9rem; padding: 25.2px 0 32.4px; margin-top: 36px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21.6px; }
@media (max-width: 630px) { .foot-grid { grid-template-columns: 1fr; } }
.leaflet-popup-content { font: 12.6px/1.4 var(--sans); }
@media (max-width: 378px) { .brand small { display: none; } .logo-btn, .logo-btn img, .logo-btn svg { width: 48.6px; height: 48.6px; } }

/* photos */
.ph { margin: 0; }
.ph img { width: 100%; border-radius: var(--r); object-fit: cover; }
.ph figcaption { font-size: .82rem; color: var(--muted); margin-top: 5.4px; }
.project .ph img { aspect-ratio: 4/3; }
.project.no-img { grid-template-columns: 1fr; max-width: 738px; }

/* home: students */
.students-home .lede { margin-bottom: 16.2px; }
.stu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 12.6px; }
.stu-card { display: grid; grid-template-columns: 57.6px 1fr; column-gap: 10.8px; row-gap: 1.8px; align-items: start;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 12.6px; text-decoration: none; color: var(--ink); }
.stu-card:hover { border-color: var(--link); }
.stu-card .face { grid-row: span 3; width: 57.6px; }
.stu-name { font-family: var(--serif); font-weight: 700; }
.stu-major { font-size: .84rem; color: var(--muted); }
.stu-bio { grid-column: 1 / -1; font-size: .9rem; color: var(--ink-2); margin-top: 7.2px; line-height: 1.5; }

/* home: themes with photos */
.theme { padding: 0; overflow: hidden; }
.theme-ph img { border-radius: 0; aspect-ratio: 16/7; }
.theme-ph figcaption { padding: 0 19.8px; }
.theme-body { padding: 12.6px 19.8px 18px; }

/* home: photo strip */
.strip { display: flex; gap: 10.8px; overflow-x: auto; padding: 3.6px 19.8px 12.6px; scroll-snap-type: x mandatory; }
.strip-ph { flex: 0 0 min(78vw, 342px); scroll-snap-align: start; }
.strip-ph img { aspect-ratio: 3/2; }
@media (min-width: 1116px) { .strip { padding-left: calc((100vw - 1062px) / 2 + 19.8px); } }

/* people */
.page-band .band-ph img { border-radius: 0; height: clamp(162px, 30vw, 324px); width: 100%; object-position: center 72%; }
.page-band .band-ph figcaption { max-width: 1062px; margin: 5.4px auto 0; padding: 0 19.8px; }
.person .bio p { font-size: .95rem; }
.people-grid { grid-template-columns: repeat(auto-fill, minmax(324px, 1fr)); }
@media (max-width: 378px) { .people-grid { grid-template-columns: 1fr; } .person { grid-template-columns: 64.8px 1fr; } }

/* data */
.data-intro { display: grid; grid-template-columns: 1fr 1.6fr; gap: 21.6px; align-items: start; }
@media (max-width: 774px) { .data-intro { grid-template-columns: 1fr; } }

/* people: bigger photo centred above the text (Will, Dec 2) */
.person, .person.big { display: flex; flex-direction: column; align-items: center; gap: 10.8px; }
.person > div { width: 100%; }
.person h3, .person .role { text-align: center; }
.person .face { width: 162px; flex: none; }
.people-grid.lead .person > div { max-width: 684px; }
@media (max-width: 378px) { .person .face { width: 135px; } }

/* (i) explanation buttons in project text (content/info.yaml) */
.info { position: relative; display: inline-block; }
.info-btn { width: 1.25em; height: 1.25em; border-radius: 50%; border: 1px solid var(--link); background: transparent;
  color: var(--link); font: italic 700 .78rem/1 Georgia, serif; padding: 0; cursor: pointer; vertical-align: .15em; }
.info-btn[aria-expanded="true"] { background: var(--link); color: var(--page); }
.info-pop { position: absolute; z-index: 20; left: 50%; top: 1.7em; transform: translateX(-50%); width: min(288px, 80vw);
  background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--r); padding: 9px 10.8px;
  font-size: .9rem; line-height: 1.45; box-shadow: 0 5.4px 21.6px rgba(0,0,0,.18); }
@media (max-width: 540px) { .info { position: static; } .info-pop { left: 14.4px; right: 14.4px; width: auto; transform: none; top: auto; margin-top: 5.4px; } }

/* long words and links in news and talks must wrap on a phone */
.two-col > *, .news-list li > *, .talk-list li > * { min-width: 0; }
.news-list, .talk-list, .cv { overflow-wrap: anywhere; }
.cv-review { padding-left: 1.2em; } .cv-review li { margin-bottom: 7.2px; }

/* About: headshot, title and a field photo side by side (Dec 3) */
.about-head { grid-template-columns: 162px 1fr minmax(234px, 342px); }
.about-ph { margin: 0; } .about-ph img { aspect-ratio: 4/3; }
@media (max-width: 810px) { .about-head { grid-template-columns: 162px 1fr; } .about-ph { grid-column: 1 / -1; } }
@media (max-width: 576px) { .about-head { grid-template-columns: 1fr; } }
.info-pop { width: min(342px, 84vw); }
.news-only { max-width: 774px; }
