:root {
  --sand: #f3dfb3;
  --sand-deep: #d9a85a;
  --dune: #c98f45;
  --ink: #3a2414;
  --ink-soft: #6b4a30;
  --sky-top: #ffb86b;
  --sky-bot: #ffe4b0;
  --accent: #d1451b;
  --card: #fff8e8;
  --round: ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--round);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.5;
}
a { color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  padding: 6vh 5vw 250px;
  background: linear-gradient(var(--sky-top), var(--sky-bot) 70%);
  text-align: center;
}
.sun {
  position: absolute; top: 8%; right: 10%;
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(#fff6c9, #ffd75a 60%, #ffb52e);
  box-shadow: 0 0 80px 30px rgba(255, 220, 110, .6);
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(12px) scale(1.03); } }
.eagle {
  position: absolute; top: 14%; left: -80px;
  font-size: 56px; pointer-events: none; opacity: 0;
  filter: drop-shadow(0 30px 6px rgba(0,0,0,.15));
}
.eagle.fly { animation: fly 3.4s linear; }
@keyframes fly {
  0% { transform: translate(0, 0) scaleX(-1); opacity: 1; }
  50% { transform: translate(55vw, 9vh) scaleX(-1); opacity: 1; }
  100% { transform: translate(115vw, -4vh) scaleX(-1); opacity: 1; }
}
.hero-text { position: relative; z-index: 3; max-width: 900px; margin: 0 auto; }
.kicker {
  display: inline-block; margin: 0 0 1rem;
  padding: .3rem .9rem; border-radius: 99px;
  background: rgba(58, 36, 20, .85); color: #ffe9bd;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(2.3rem, 7vw, 5.2rem);
  line-height: 1.02; letter-spacing: -.02em;
  text-shadow: 0 3px 0 rgba(255,255,255,.45);
}
.tagline { font-size: clamp(1.05rem, 2.2vw, 1.4rem); max-width: 640px; margin: 1.2rem auto; color: var(--ink-soft); }
.stats { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 1.8rem 0; }
.stat {
  flex: 1 1 190px; max-width: 250px;
  background: rgba(255, 248, 232, .78); backdrop-filter: blur(4px);
  border: 2px solid rgba(58,36,20,.15); border-radius: 20px;
  padding: .9rem 1rem;
}
.stat b { display: block; font-size: 2.1rem; font-variant-numeric: tabular-nums; color: var(--accent); }
.stat span { font-size: .88rem; color: var(--ink-soft); }
.cta {
  display: inline-block; padding: .85rem 1.6rem; border-radius: 99px;
  background: var(--ink); color: #ffe9bd; text-decoration: none; font-weight: 700; font-size: 1.1rem;
  box-shadow: 0 6px 0 rgba(58,36,20,.3); transition: transform .15s;
}
.cta:hover { transform: translateY(-3px) rotate(-1.5deg); }

/* the mob */
.mob {
  position: absolute; left: 0; right: 0; bottom: 60px; height: 190px; z-index: 1;
  display: flex; justify-content: space-around; align-items: flex-end;
  padding: 0 4vw;
}
.kat { width: clamp(54px, 8vw, 92px); height: 190px; overflow: hidden; display: flex; align-items: flex-end; cursor: pointer; }
.kat svg {
  width: 100%; height: auto; display: block;
  transform: translateY(102%);
  transition: transform .55s cubic-bezier(.3, 1.5, .5, 1);
}
.kat.up svg { transform: translateY(18%); }
.kat.peek svg { transform: translateY(66%); }
.kat.look svg { transform: translateY(18%) rotate(4deg); }
.mob.panic .kat svg { transform: translateY(102%) !important; transition: transform .12s ease-in; }
.dune {
  position: absolute; left: -10%; right: -10%; bottom: -70px; height: 190px; z-index: 2;
  background: radial-gradient(ellipse at 30% 0, #e2b266, var(--dune) 70%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  box-shadow: inset 0 14px 0 rgba(255,255,255,.18);
}

/* ---------- map ---------- */
#map-section { padding: 2.5rem 3vw 1rem; background: var(--dune); }
.map-wrap {
  position: relative; max-width: 1400px; margin: 0 auto;
  border: 5px solid var(--ink); border-radius: 26px; overflow: hidden;
  box-shadow: 0 12px 0 rgba(58,36,20,.35);
  background: var(--card);
}
#map { height: min(78vh, 760px); min-height: 420px; background: #a9d8e6; font-family: var(--round); }
.panel {
  position: absolute; z-index: 500; top: 14px; right: 14px; width: 300px;
  background: rgba(255, 248, 232, .95); border: 3px solid var(--ink); border-radius: 20px;
  padding: 1rem;
}
.panel h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.readout .big { font-size: 2.3rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.1; }
.readout .big small { font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.readout p { margin: .35rem 0; font-size: .95rem; }
.readout .dist { font-size: .82rem; color: var(--ink-soft); min-height: 1.2em; }
.buttons { display: grid; gap: .45rem; margin: .7rem 0; }
button {
  font: inherit; font-weight: 700; color: var(--ink);
  padding: .55rem .8rem; border-radius: 14px; border: 2.5px solid var(--ink);
  background: #ffe2a6; cursor: pointer; text-align: left;
  box-shadow: 0 4px 0 var(--ink); transition: transform .08s, box-shadow .08s;
}
button:hover { background: #ffd47d; }
button:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
button.danger { background: #ffb39c; }
button.danger:hover { background: #ff9577; }
button:focus-visible, .cta:focus-visible, summary:focus-visible { outline: 3px solid #1b6fd1; outline-offset: 2px; }
.legend .bar { height: 14px; border-radius: 99px; border: 2px solid var(--ink);
  background: linear-gradient(90deg, #fff8e8, #ffe08a 25%, #ffa53d 55%, #e2501c 80%, #7a1d0a); }
.legend .ticks { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-soft); margin-top: .2rem; }

.pin { font-size: 26px; line-height: 1; text-align: center; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); transition: transform .15s; }
.pin:hover { transform: scale(1.35) rotate(-8deg); }
.leaflet-popup-content-wrapper { border-radius: 16px; border: 3px solid var(--ink); background: var(--card); color: var(--ink); box-shadow: 0 5px 0 rgba(58,36,20,.4); }
.leaflet-popup-content { font-family: var(--round); font-size: .95rem; margin: .7rem .9rem; }
.leaflet-popup-content b.t { display: block; font-size: 1.05rem; margin-bottom: .15rem; }
.leaflet-popup-content .d { color: var(--accent); font-weight: 800; }
.leaflet-popup-tip { background: var(--ink); }

/* ---------- cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1.5rem;
  max-width: 1400px; margin: 0 auto; padding: 2.5rem 3vw 3rem;
}
.cards, #map-section { position: relative; }
main { overflow-x: clip; background: linear-gradient(var(--dune) 0, var(--dune) 40%, var(--sand) 40%); }
.card {
  background: var(--card); border: 4px solid var(--ink); border-radius: 24px; padding: 1.3rem 1.4rem;
  box-shadow: 0 8px 0 rgba(58,36,20,.3);
}
.card:nth-child(odd) { transform: rotate(-.5deg); }
.card:nth-child(even) { transform: rotate(.6deg); }
.card h2 { margin: 0 0 .8rem; font-size: 1.35rem; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
th, td { padding: .45rem .4rem; border-bottom: 2px dotted rgba(58,36,20,.2); vertical-align: top; }
td:nth-child(2) { font-weight: 800; color: var(--accent); }
td:nth-child(3) { color: var(--ink-soft); }
ol { padding-left: 1.2rem; margin: 0; }
li { margin-bottom: .5rem; }
.fine { font-size: .85rem; color: var(--ink-soft); font-style: italic; }
details { border-bottom: 2px dotted rgba(58,36,20,.2); padding: .5rem 0; }
summary { cursor: pointer; font-weight: 700; padding: .2rem 0; }
details p { margin: .4rem 0 .2rem; color: var(--ink-soft); }

footer { background: var(--ink); color: #e9cf9d; text-align: center; padding: 2rem 6vw; font-size: .85rem; }
footer a { color: #ffd47d; }

.toast {
  position: fixed; left: 50%; top: 18px; transform: translate(-50%, -150%); z-index: 9999;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 1.15rem;
  padding: .7rem 1.4rem; border-radius: 99px; border: 3px solid var(--ink);
  transition: transform .3s cubic-bezier(.3, 1.5, .5, 1); max-width: 92vw; text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* stacked layout: tablets and phones */
@media (max-width: 1000px) {
  .panel { position: static; width: auto; border: 0; border-top: 4px solid var(--ink); border-radius: 0; }
  #map { height: min(62vh, 620px); min-height: 300px; }
  .buttons { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .sun { width: 90px; height: 90px; top: -22px; right: -22px; }
  .card { transform: none !important; }
}
@media (max-width: 600px) {
  .hero { min-height: 0; padding: 4vh 5vw 215px; }
  .kicker { font-size: .68rem; }
  .tagline { margin: .9rem auto; }
  .stats { flex-direction: column; gap: .5rem; margin: 1.1rem 0 1.3rem; }
  .stat { flex: none; max-width: none; display: flex; align-items: center; gap: .8rem; text-align: left; padding: .5rem .9rem; border-radius: 16px; }
  .stat b { font-size: 1.45rem; min-width: 5.2rem; text-align: center; }
  .stat span { font-size: .82rem; line-height: 1.3; }
  #map-section { padding: 1.5rem 3vw 1rem; }
  .map-wrap { border-width: 4px; border-radius: 20px; }
  .cards { grid-template-columns: minmax(0, 1fr); padding: 2rem 3vw; }
  .card { padding: 1rem; min-width: 0; }
  table { font-size: .85rem; }
  td { overflow-wrap: anywhere; }
}
/* short landscape phones */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: 0; padding-top: 3vh; }
  h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
  #map { height: 78vh; min-height: 260px; }
}
/* comfortable tap targets */
@media (pointer: coarse) {
  .leaflet-touch .leaflet-bar a { width: 42px; height: 42px; line-height: 42px; font-size: 24px; }
  summary { padding: .55rem 0; }
  details { padding: 0; }
  button { padding: .7rem .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
