:root {
  color-scheme: light;
  --ink: #14211d;
  --muted: #64716c;
  --forest: #183c32;
  --forest-light: #245447;
  --lime: #d5e780;
  --paper: #f4f6f1;
  --white: #fff;
  --line: rgba(20, 33, 29, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.hero,
.maps-section,
.guides-callout,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  font-size: 1.04rem;
  font-weight: 730;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand strong {
  color: #557320;
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--forest);
  color: var(--lime);
}

.brand__mark svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.site-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #46544f;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a:hover {
  background: #fff;
  color: var(--forest);
}

.hero {
  position: relative;
  display: grid;
  min-height: 620px;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: clamp(42px, 7vw, 88px);
  align-items: center;
  padding-block: clamp(55px, 8vw, 96px);
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: -88px;
  right: -40px;
  width: 65%;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213, 231, 128, 0.2), rgba(213, 231, 128, 0) 68%);
  content: "";
}

.eyebrow {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 18px;
  color: #587326;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 25px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(3.3rem, 6.4vw, 6.4rem);
  letter-spacing: -0.073em;
  line-height: 0.91;
  text-wrap: balance;
}

.hero__lead {
  max-width: 660px;
  margin: 30px 0 0;
  color: #53615c;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 820;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button svg,
.map-card__cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--forest);
  box-shadow: 0 14px 34px rgba(24, 60, 50, 0.2);
  color: #fff;
}

.button--primary:hover {
  background: var(--forest-light);
  box-shadow: 0 18px 42px rgba(24, 60, 50, 0.24);
}

.button--secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--forest);
}

.button--secondary:hover {
  background: #fff;
}

.hero__facts {
  display: flex;
  gap: 0;
  margin: 50px 0 0;
  padding: 0;
  list-style: none;
}

.hero__facts li {
  display: grid;
  gap: 4px;
  padding: 0 clamp(16px, 2.5vw, 26px);
  border-left: 1px solid var(--line);
}

.hero__facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero__facts strong {
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

.hero__facts span {
  color: #74807b;
  font-size: 0.68rem;
  line-height: 1.35;
}

.hero-map {
  position: relative;
  width: 100%;
  max-width: 560px;
  justify-self: end;
  padding: 15px;
  border: 1px solid rgba(20, 33, 29, 0.11);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 36px 100px rgba(21, 35, 29, 0.19);
  transform: rotate(1.4deg);
}

.hero-map__canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 23px;
}

.hero-map__search,
.hero-map__score,
.hero-map__legend {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(21, 35, 29, 0.18);
  backdrop-filter: blur(12px);
}

.hero-map__search {
  top: 38px;
  right: 38px;
  left: 38px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 1px 11px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 13px;
  color: var(--forest);
}

.hero-map__search svg {
  width: 24px;
  height: 24px;
  grid-row: 1 / 3;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.hero-map__search span {
  color: #7c8782;
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-map__search b {
  font-size: 0.78rem;
}

.hero-map__score {
  right: -22px;
  bottom: 58px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  padding: 15px 18px;
  border-radius: 15px;
}

.hero-map__score span {
  grid-column: 1 / 3;
  margin-bottom: 3px;
  color: #74807b;
  font-size: 0.6rem;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-map__score strong {
  color: var(--forest);
  font-size: 2.1rem;
  letter-spacing: -0.06em;
  line-height: 1;
}

.hero-map__score small {
  margin: 0 0 3px 4px;
  color: #77837e;
}

.hero-map__legend {
  bottom: 32px;
  left: 32px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  color: #53615c;
  font-size: 0.65rem;
  font-weight: 740;
}

.hero-map__legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6f9434;
  box-shadow: 0 0 0 4px rgba(111, 148, 52, 0.14);
}

.maps-section {
  padding-block: 108px 118px;
  scroll-margin-top: 20px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 450px);
  gap: 52px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading .eyebrow {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.section-heading > p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.maps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.map-card {
  --accent: #718572;
  --tint: #eef1ed;
  display: flex;
  min-height: 295px;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(21, 35, 29, 0.035);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.map-card:hover {
  border-color: color-mix(in srgb, var(--accent) 44%, transparent);
  box-shadow: 0 22px 50px rgba(21, 35, 29, 0.11);
  transform: translateY(-5px);
}

.map-card:focus-visible,
.button:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid rgba(85, 115, 32, 0.5);
  outline-offset: 3px;
}

.map-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.map-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  background: var(--tint);
  color: var(--accent);
}

.map-card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.map-card__number {
  color: #a2aaa6;
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0.1em;
}

.map-card__body {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}

.map-card__body strong {
  font-size: 1.22rem;
  letter-spacing: -0.035em;
}

.map-card__body > span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.58;
}

.map-card__cta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 26px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 840;
}

.map-card__cta svg {
  width: 16px;
  transition: transform 160ms ease;
}

.map-card:hover .map-card__cta svg {
  transform: translateX(4px);
}

.map-card--noise { --accent: #b06b1d; --tint: #faecd9; }
.map-card--apartments { --accent: #56751d; --tint: #e9f0d8; }
.map-card--houses { --accent: #8b592a; --tint: #f3e8da; }
.map-card--flood { --accent: #2c6f91; --tint: #deedf4; }
.map-card--green { --accent: #287746; --tint: #dff0e5; }
.map-card--emissions { --accent: #606a72; --tint: #e8ebed; }
.map-card--transport { --accent: #6650a4; --tint: #ebe6f6; }
.map-card--health { --accent: #ae424b; --tint: #f6e2e4; }
.map-card--shelter { --accent: #345c6f; --tint: #e0eaf0; }
.map-card--planning { --accent: #b64e38; --tint: #f7e4df; }

.guides-callout {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 112px;
  padding: clamp(30px, 5vw, 54px);
  overflow: hidden;
  border-radius: 24px;
  background: var(--forest);
  box-shadow: 0 26px 70px rgba(24, 60, 50, 0.2);
  color: #fff;
}

.guides-callout::after {
  position: absolute;
  top: -140px;
  right: 14%;
  width: 360px;
  height: 360px;
  border: 80px solid rgba(213, 231, 128, 0.06);
  border-radius: 50%;
  content: "";
}

.guides-callout__icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--lime);
}

.guides-callout__icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.guides-callout > div {
  position: relative;
  z-index: 1;
}

.guides-callout .eyebrow {
  margin-bottom: 10px;
  color: var(--lime);
}

.guides-callout h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.guides-callout p:last-child {
  max-width: 680px;
  margin: 14px 0 0;
  color: #c8d3ce;
  font-size: 0.88rem;
  line-height: 1.65;
}

.button--light {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  background: var(--lime);
  color: var(--ink);
}

.button--light:hover {
  background: #e2ef9f;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding-block: 28px 38px;
  border-top: 1px solid var(--line);
}

.brand--footer .brand__mark {
  width: 30px;
  height: 30px;
}

.site-footer > p {
  margin: 0;
  color: #7a8580;
  font-size: 0.72rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.site-footer nav a {
  color: #63706b;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--forest);
}

@media (max-width: 1000px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr 0.78fr;
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 7.7vw, 5.2rem);
  }

  .hero-map__score {
    right: -12px;
  }

  .maps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guides-callout {
    grid-template-columns: 64px 1fr;
  }

  .guides-callout__icon {
    width: 64px;
    height: 64px;
  }

  .guides-callout .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .site-header,
  .hero,
  .maps-section,
  .guides-callout,
  .site-footer {
    width: min(100% - 32px, 580px);
  }

  .site-header {
    min-height: 74px;
  }

  .site-nav a {
    padding: 9px 8px;
    font-size: 0.76rem;
  }

  .site-nav a:first-child {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-block: 54px 70px;
  }

  .hero::before {
    top: -40px;
    right: 0;
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 16.5vw, 5rem);
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero__facts {
    margin-top: 38px;
  }

  .hero-map {
    width: calc(100% - 8px);
    max-width: 520px;
    justify-self: center;
    margin-top: 18px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .maps-section {
    padding-block: 80px 84px;
  }

  .maps-grid {
    grid-template-columns: 1fr;
  }

  .map-card {
    min-height: 260px;
  }

  .guides-callout {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 78px;
  }

  .guides-callout .button {
    grid-column: 1;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .site-footer nav {
    justify-content: flex-start;
    gap: 12px 18px;
  }
}

@media (max-width: 440px) {
  .brand {
    font-size: 0.94rem;
  }

  .brand__mark {
    width: 31px;
    height: 31px;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero__facts li {
    padding-inline: 10px;
  }

  .hero__facts li:first-child {
    padding-left: 0;
  }

  .hero-map__search {
    top: 27px;
    right: 27px;
    left: 27px;
  }

  .hero-map__legend {
    bottom: 23px;
    left: 23px;
  }

  .hero-map__score {
    right: -8px;
    bottom: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
