/* sxm.sw7d.com shared styles */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #eef7f5;        /* shallows */
  --ink: #0b3340;       /* channel */
  --muted: #4d6b74;
  --sea: #0b7f8c;       /* lagoon */
  --hot: #d9412a;       /* flamboyant tree */
  --line: rgba(11, 51, 64, 0.16);
  --panel: rgba(255, 255, 255, 0.6);
  --contour: 11, 127, 140;
  --contour-alpha: 0.42;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06212b;
    --ink: #e4f1f0;
    --muted: #8fb0b5;
    --sea: #58c9d1;
    --hot: #ff7a5c;
    --line: rgba(228, 241, 240, 0.16);
    --panel: rgba(255, 255, 255, 0.04);
    --contour: 88, 201, 209;
    --contour-alpha: 0.30;
  }
}

@view-transition { navigation: auto; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.125rem/1.6 "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 4px; }

/* The sea chart behind the hero */
#chart {
  position: absolute; top: 0; left: 0; width: 100%; height: 36rem;
  z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
          mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

main { position: relative; z-index: 1; max-width: 47rem; margin: 0 auto; padding: 5.5rem 1.5rem 4rem; }

h1 {
  margin: 0 0 1.6rem;
  font-size: clamp(2.5rem, 8.2vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 750;
}
h1 .where { display: block; font-weight: 300; letter-spacing: -0.03em; }
.lead { font-size: 1.3rem; line-height: 1.45; max-width: 34rem; margin: 0; }

h2 {
  margin: 4.5rem 0 0.4rem;
  font-size: 1.65rem; line-height: 1.15; letter-spacing: -0.02em; font-weight: 650;
}
p { margin: 0 0 1rem; }

/* Services: a plain ledger, name on the left, what it means on the right */
.services { margin: 0.9rem 0 0; padding: 0; }
.services div {
  display: grid; grid-template-columns: 1fr; gap: 0.15rem;
  padding: 0.95rem 0; border-top: 1px solid var(--line);
}
.services div:last-child { border-bottom: 1px solid var(--line); }
.services dt { font-weight: 600; }
.services dd { margin: 0; color: var(--muted); }
@media (min-width: 40rem) {
  .services div { grid-template-columns: 15.5rem 1fr; gap: 1.5rem; }
}

/* Community services */
.map-card {
  display: block; margin-top: 1.1rem; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
  color: inherit; text-decoration: none;
}
.map-card img {
  display: block; width: 100%; height: auto;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.map-card:hover img { transform: scale(1.03); }
.map-card .txt { display: block; padding: 0.95rem 1.15rem 1.05rem; }
.map-card .txt strong { display: block; font-weight: 600; color: var(--sea); }
.map-card .txt span { display: block; color: var(--muted); }
.also { margin-top: 0.9rem; padding: 0.95rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.also a { font-weight: 600; }
.also span { color: var(--muted); display: block; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.btn {
  display: inline-block; padding: 0.72rem 1.3rem; border-radius: 999px;
  border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 600;
  transition: background-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.primary { background: var(--hot); border-color: var(--hot); color: #fff; }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
@media (prefers-color-scheme: dark) { .btn.primary { color: #06212b; } }

footer {
  margin-top: 4.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.95rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1.5rem;
}
footer time { font-variant-numeric: tabular-nums; }

/* Traffic page */
.page-traffic main { max-width: 62rem; padding-top: 2.5rem; }
.page-traffic .text { max-width: 44rem; }
.page-traffic h1 { font-size: clamp(2rem, 5.6vw, 3.1rem); margin: 0.9rem 0 0.9rem; line-height: 1.04; }
.back { font-size: 1rem; }
figure { margin: 1.6rem 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 0.55rem; }
.legend { padding-left: 1.3rem; margin: 0 0 1rem; }
.legend li { margin-bottom: 0.5rem; }
.r-green { color: #17824e; font-weight: 600; }
.r-blue { color: #1f5fd0; font-weight: 600; }
.r-red { color: #c8202f; font-weight: 600; }
@media (prefers-color-scheme: dark) {
  .r-green { color: #4cc38a; } .r-blue { color: #7aa7ff; } .r-red { color: #ff6b78; }
}
.note { border-left: 3px solid var(--sea); padding: 0.2rem 0 0.2rem 1rem; color: var(--muted); font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .map-card img, .btn { transition: none; }
  .map-card:hover img { transform: none; }
  @view-transition { navigation: none; }
}
