/* =========================================================
   Microclimate India — site stylesheet
   Palette kept from the original Wix site:
   earth brown #645844, tan #A69376 / #826F52, beige #D8D1C6,
   slate-blue accent #2B5672, olive #717806
   ========================================================= */

:root {
  --brown: #645844;
  --brown-dark: #3d3528;
  --brown-deep: #2a241b;
  --tan: #a69376;
  --tan-dark: #826f52;
  --beige: #d8d1c6;
  --sand: #f4f0e9;
  --paper: #fbf9f5;
  --slate: #2b5672;
  --slate-dark: #1d3d52;
  --olive: #717806;
  --olive-light: #a9b709;
  --ink: #2a241b;
  --muted: #6b6253;
  --line: #e4ddd1;
  --white: #ffffff;

  --font-logo: "Fredericka the Great", Georgia, serif;
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(42, 36, 27, 0.10);
  --shadow-sm: 0 4px 14px rgba(42, 36, 27, 0.08);
  --max: 1180px;
  --header-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brown); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--brown-dark); line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.bg-sand { background: var(--sand); }
.bg-beige { background: var(--beige); }
.bg-brown { background: var(--brown); color: #f1ece3; }
.bg-brown h2, .bg-brown h3, .bg-brown h4 { color: #fff; }
.bg-slate { background: var(--slate); color: #e7eff5; }
.bg-slate h2, .bg-slate h3 { color: #fff; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.2rem; color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: .8em;
}
.bg-brown .eyebrow, .bg-slate .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: #d9e27a; }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.5em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brown); color: #fff; }
.btn-primary:hover { background: var(--brown-dark); color: #fff; }
.btn-accent { background: var(--slate); color: #fff; }
.btn-accent:hover { background: var(--slate-dark); color: #fff; }
.btn-donate { background: #c9a227; color: var(--brown-deep); }
.btn-donate:hover { background: #ddb63a; color: var(--brown-deep); }
.btn-ghost { border-color: currentColor; color: var(--brown); background: transparent; }
.btn-ghost:hover { background: var(--brown); color: #fff; border-color: var(--brown); }
.btn-light { border-color: rgba(255,255,255,.8); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--brown-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(251, 249, 245, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brown-dark); }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { font-family: var(--font-logo); font-size: 1.45rem; line-height: 1; letter-spacing: .02em; color: var(--brown-dark); }
.brand-text small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--tan-dark); margin-top: 5px; font-weight: 700; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  color: var(--brown-dark); text-decoration: none; font-weight: 700; font-size: .9rem;
  padding: .5em .65em; border-radius: 999px; transition: background .2s, color .2s; white-space: nowrap;
}
.nav a:hover { background: var(--sand); color: var(--brown); }
.nav a.active { color: var(--slate); background: #e8eef2; }
.nav .btn-donate { margin-left: 8px; padding: .55em 1.2em; }
.nav .btn-donate:hover, .nav .btn-donate.active { background: #ddb63a; color: var(--brown-deep); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--brown-dark);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px 16px 20px; box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .3s ease; z-index: -1;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: .8em 1em; border-radius: var(--radius-sm); }
  .nav .btn-donate { margin: 10px 0 0; justify-content: center; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: min(88vh, 820px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,36,27,.15) 0%, rgba(42,36,27,.35) 45%, rgba(42,36,27,.85) 100%);
}
.hero .container { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 80px; }
.hero h1 { color: #fff; max-width: 900px; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero .lead { color: #efe9df; max-width: 680px; font-size: 1.25rem; }
.hero-logo { font-family: var(--font-logo); font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: .06em; color: #f1ece3; margin-bottom: .6em; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: #fff; padding: 140px 0 70px; overflow: hidden;
  background: var(--brown-dark);
}
.page-hero .hero-bg { opacity: .55; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,36,27,.2), rgba(42,36,27,.8)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #ece5d9; max-width: 720px; font-size: 1.15rem; margin: 0; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 34px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,.15); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--font-head); font-size: 2.4rem; font-weight: 600; color: #fff; line-height: 1.1; }
.stat-label { font-size: .9rem; color: #ddd3c3; margin-top: 6px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding: 26px 12px; }
  .stat-num { font-size: 1.65rem; white-space: nowrap; }
}

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.wide-left { grid-template-columns: 1.2fr 1fr; }
.split.wide-right { grid-template-columns: 1fr 1.2fr; }
.split .media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split.reverse .media { order: 2; }
@media (max-width: 900px) {
  .split, .split.wide-left, .split.wide-right { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .media { order: 0; }
}

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--beige); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .4em; }
.card-body p { color: var(--muted); font-size: .97rem; }
.card-link { margin-top: auto; font-weight: 800; color: var(--slate); font-size: .93rem; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--olive); background: #f1f3d9; padding: .3em .75em; border-radius: 999px; margin-bottom: .9em;
}
.tag.slate { color: var(--slate); background: #e3ecf2; }
.tag.brown { color: var(--brown); background: #efe8dc; }

.icon-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.icon-card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--sand); color: var(--brown); margin-bottom: 18px; }
.icon-card .ic svg { width: 28px; height: 28px; }
.icon-card h3 { font-size: 1.2rem; }
.icon-card p { color: var(--muted); font-size: .97rem; margin: 0; }
.bg-sand .icon-card .ic { background: var(--beige); }

/* ---------- News list ---------- */
.news { display: grid; gap: 16px; }
.news-item { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 20px 22px; background: #fff; border-radius: var(--radius-sm); border-left: 4px solid var(--tan); }
.news-item .when { font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tan-dark); }
.news-item p { margin: 0; }
@media (max-width: 560px) { .news-item { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Donate CTA band ---------- */
.cta-band { position: relative; overflow: hidden; color: #fff; }
.cta-band .hero-bg { opacity: .35; }
.cta-band { background: var(--slate-dark); }
.cta-band .hero-bg { z-index: 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29,61,82,.96) 0%, rgba(29,61,82,.88) 55%, rgba(29,61,82,.78) 100%); z-index: 1; }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dfe9f0; max-width: 640px; }

/* ---------- Team ---------- */
.lead-member { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; background: #fff; border-radius: var(--radius); padding: 36px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.lead-member img { border-radius: 50%; width: 100%; aspect-ratio: 1; object-fit: cover; border: 6px solid var(--sand); }
@media (max-width: 760px) { .lead-member { grid-template-columns: 1fr; text-align: center; } .lead-member img { max-width: 220px; margin: 0 auto; } }

.member { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 30px 26px; text-align: center; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.member img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; border: 5px solid var(--sand); }
.member h3 { font-size: 1.2rem; margin-bottom: .15em; }
.member .role { font-size: .88rem; font-weight: 700; color: var(--slate); line-height: 1.45; margin-bottom: 4px; }
.member .theme { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); margin-bottom: 12px; }
.member p { font-size: .94rem; color: var(--muted); text-align: left; margin: 12px 0 0; }
.member .todo { font-size: .85rem; color: #9a6b12; background: #fbf3dd; border-radius: 6px; padding: .4em .7em; margin-top: 10px; }

/* ---------- Project page ---------- */
.project { padding: 88px 0; border-bottom: 1px solid var(--line); }
.project:nth-of-type(even) { background: var(--sand); }
.project-num { font-family: var(--font-logo); font-size: 4rem; line-height: 1; color: var(--tan); margin-bottom: 10px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 26px 0; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.fact b { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tan-dark); margin-bottom: 2px; }
.fact span { font-weight: 700; color: var(--brown-dark); font-size: .97rem; }
.qlist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.qlist li { position: relative; padding-left: 30px; margin-bottom: .7em; }
.qlist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 14px; border-radius: 50%; background: var(--olive-light); box-shadow: inset 0 0 0 4px #f1f3d9; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.gallery img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; width: 100%; cursor: zoom-in; }
.gallery.tall img { aspect-ratio: 3/4; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }
.subnav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.subnav a { padding: .55em 1.2em; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; text-decoration: none; color: var(--brown-dark); font-size: .93rem; }
.subnav a:hover { border-color: var(--brown); }

/* ---------- Callout / notices ---------- */
.callout { border-radius: var(--radius); padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--slate); }
.callout.warn { border-left-color: #c9a227; background: #fffaf0; }
.callout h4 { margin-bottom: .3em; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Probe map ---------- */
.map-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
#probe-map { height: 640px; width: 100%; background: var(--beige); }
.map-side { border-left: 1px solid var(--line); display: flex; flex-direction: column; max-height: 640px; }
.map-filters { padding: 18px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: .35em .9em; font-size: .82rem; font-weight: 700; cursor: pointer; color: var(--brown-dark); display: inline-flex; align-items: center; gap: 6px; font-family: inherit; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; }
.chip[aria-pressed="false"] { opacity: .45; }
.probe-list { overflow-y: auto; flex: 1; margin: 0; padding: 0; list-style: none; }
.probe-list li { margin: 0; }
.probe-list button { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 18px; cursor: pointer; font-family: inherit; display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: start; }
.probe-list button:hover, .probe-list button.active { background: var(--sand); }
.probe-list .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; }
.probe-list strong { display: block; color: var(--brown-dark); font-size: .95rem; }
.probe-list span { font-size: .82rem; color: var(--muted); }
.leaflet-popup-content { font-family: var(--font-body); font-size: .9rem; line-height: 1.5; margin: 14px 16px; min-width: 230px; }
.leaflet-popup-content h4 { font-family: var(--font-head); margin: 0 0 6px; font-size: 1.05rem; }
.popup-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.popup-table td { padding: 3px 0; vertical-align: top; border-bottom: 1px dashed var(--line); }
.popup-table td:first-child { color: var(--muted); padding-right: 10px; white-space: nowrap; }
.legend-dot { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
@media (max-width: 900px) {
  .map-wrap { grid-template-columns: 1fr; }
  #probe-map { height: 460px; }
  .map-side { border-left: 0; border-top: 1px solid var(--line); max-height: 420px; }
}

.sensor-diagram { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.sensor-diagram table { width: 100%; border-collapse: collapse; }
.sensor-diagram td, .sensor-diagram th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.sensor-diagram th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tan-dark); }
@media (max-width: 700px) { .sensor-diagram { grid-template-columns: 1fr; } .sensor-diagram img { max-width: 200px; margin: 0 auto; } }

/* ---------- Donate ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; display: flex; flex-direction: column; position: relative; }
.tier.featured { border: 2px solid var(--slate); box-shadow: var(--shadow); }
.tier.featured::before { content: "Most impact"; position: absolute; top: -13px; left: 24px; background: var(--slate); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .3em .9em; border-radius: 999px; }
.tier .amt { font-family: var(--font-head); font-size: 2rem; font-weight: 600; color: var(--brown-dark); line-height: 1.1; }
.tier .amt small { font-size: .9rem; color: var(--muted); font-family: var(--font-body); font-weight: 600; }
.tier h3 { font-size: 1.1rem; margin: 12px 0 8px; }
.tier p { font-size: .94rem; color: var(--muted); }
.tier .btn { margin-top: auto; justify-content: center; }

.pay-box { background: #fff; border-radius: var(--radius); border: 1px dashed var(--tan); padding: 28px; }
.pay-box dl { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; margin: 0; }
.pay-box dt { color: var(--muted); font-weight: 700; font-size: .9rem; }
.pay-box dd { margin: 0; font-weight: 700; color: var(--brown-dark); }
@media (max-width: 560px) { .pay-box dl { grid-template-columns: 1fr; } .pay-box dd { margin-bottom: 8px; } }

.progress { height: 14px; background: rgba(255,255,255,.18); border-radius: 999px; overflow: hidden; margin: 14px 0 8px; }
.progress span { display: block; height: 100%; background: #c9a227; border-radius: 999px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label { font-weight: 700; font-size: .9rem; color: var(--brown-dark); display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .75em .9em; border: 1px solid #d5ccbe; border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--slate); outline-offset: 1px; border-color: var(--slate); }
.form textarea { min-height: 150px; resize: vertical; }

.contact-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 32px; }
.contact-line { display: flex; gap: 14px; margin-bottom: 18px; }
.contact-line svg { width: 22px; height: 22px; flex: none; color: var(--tan-dark); margin-top: 3px; }

/* ---------- Blog ---------- */
.post-card .meta, .post-meta { font-size: .85rem; color: var(--muted); font-weight: 600; }
.post-header { padding: 140px 0 40px; background: var(--sand); }
.post-header h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 860px; }
.post-body { padding: 56px 0 90px; }
.post-body h2 { font-size: 1.6rem; margin-top: 1.8em; }
.post-body figure { margin: 2em 0; }
.post-body figure img { border-radius: var(--radius-sm); width: 100%; }
.post-body figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; font-style: italic; }
.post-body blockquote { margin: 1.6em 0; padding: 1em 1.4em; border-left: 4px solid var(--tan); background: var(--sand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.refs { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.5em; margin-top: 2.5em; }
.refs ol { padding-left: 0; list-style: none; }
.refs li { margin-bottom: .8em; word-break: break-word; }
.back-link { display: inline-block; margin-bottom: 18px; font-weight: 700; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown-deep); color: #cfc5b4; padding: 70px 0 30px; font-size: .95rem; }
.site-footer a { color: #e9e1d3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5em; }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text small { color: var(--tan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #a69a86; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(20,17,12,.92); display: none; align-items: center; justify-content: center; z-index: 3000; padding: 30px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 92vw; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #e9e1d3; font-size: .95rem; padding: 0 20px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.photo-credit { font-size: .75rem; color: var(--muted); margin-top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brown); color: #fff; padding: .5em 1em; border-radius: 6px; z-index: 5000; }
.skip-link:focus { left: 8px; }

/* Publications */
.pub-list{display:grid;gap:22px}
.pub{display:grid;grid-template-columns:88px 1fr;gap:24px;background:#fff;border:1px solid var(--beige);border-left:4px solid var(--slate);border-radius:10px;padding:26px 28px}
.pub-year{font-family:'Lora',serif;font-size:1.6rem;font-weight:700;color:var(--slate);line-height:1}
.pub h3{margin:0 0 .5em;font-size:1.2rem;line-height:1.35}
.pub h3 a{color:var(--brown-dark);text-decoration:none}
.pub h3 a:hover{color:var(--slate);text-decoration:underline}
.pub-authors{font-weight:600;margin:0 0 .25em}
.pub-journal{color:var(--brown);margin:0 0 .9em}
.pub-links{display:flex;flex-wrap:wrap;gap:8px 22px;align-items:center;margin-top:.6em}
.pub-doi{font-size:.85rem;color:var(--brown)}
.pub-note{margin-top:22px;font-size:.95rem}
@media (max-width:640px){.pub{grid-template-columns:1fr;gap:8px;padding:22px 20px}}
