:root {
  --bg: #fbf3e8;
  --paper: #fbf3e8;
  --ink: #424242;
  --ink-light: #7a746b;
  --rule: #e2d6c6;
  --accent: #cf864b;
  --accent-soft: #e2b48c;
  --accent-deep: #9a5a2f;
  --accent-warm: #c9a27a;
  --teal: #8a9388;
  --surface: #f3ebe2;
  --panel-w: 380px;
  --map-tile-filter: grayscale(85%) brightness(1.05) contrast(0.9) sepia(12%);
}

/* ── Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
}
a { color: inherit; }

/* ── Masthead / Nav ── */
.masthead {
  background: var(--ink);
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.masthead-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.masthead-logo img {
  height: 35px;
}
.masthead-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.masthead-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 60px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(245, 243, 238, 0.55);
  text-decoration: none;
  letter-spacing: 0.5px;
  line-height: 1;
  transition: color 0.15s;
}
.masthead-nav a:visited {
  color: rgba(245, 243, 238, 0.55);
}
.masthead-nav a:hover {
  color: var(--bg);
}
.masthead-nav a.active {
  color: var(--bg);
}
.masthead-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 2px;
  background: var(--accent);
}

/* ── Footer ── */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
  padding: 0 64px 56px;
  border-top: 3px solid var(--accent);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 40px 72px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 52px;
}
.footer-left {
  max-width: 560px;
}
.footer .masthead-logo img {
  height: 44px;
  opacity: 0.95;
}
.footer-lede {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 400;
  line-height: 1.25;
  color: #fff;
  margin: 20px 0 14px;
  letter-spacing: -0.02em;
}
.footer-desc {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
  max-width: 42ch;
}
.footer-aside {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 28px 28px 26px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
.footer-aside-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 8px;
}
.footer-meta {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 18px;
}
.footer-team {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-team li {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-team li:last-child { border-bottom: none; padding-bottom: 0; }
.footer-team li:first-child { padding-top: 0; }

/* ── Responsive ── */
@media (max-width: 920px) {
  .masthead {
    padding-left: 24px;
    padding-right: 24px;
  }
  .masthead-nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .footer {
    padding: 0 28px 44px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 40px;
  }
  .footer-desc {
    max-width: none;
  }
}
