:root {
  --ink: #142029;
  --muted: #5f6872;
  --paper: #fffaf2;
  --surface: #ffffff;
  --line: #ded8cc;
  --teal: #126c67;
  --teal-dark: #0b4946;
  --coral: #db6d4a;
  --sun: #f0bd56;
  --sage: #d7e0c4;
  --sky: #dbe9ee;
  --shadow: 0 18px 55px rgba(20, 32, 41, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(255, 250, 242, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  font-size: 0.84rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(720px, 92vh);
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(20, 32, 41, 0.16), rgba(20, 32, 41, 0.72)),
    url("https://commons.wikimedia.org/wiki/Special:Redirect/file/San%20Diego%20Skyline%20at%20Dawn.jpg");
  background-position: center;
  background-size: cover;
}

.hero-copy {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto clamp(52px, 9vh, 92px);
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd27a;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.3rem, 12vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 760;
  text-decoration: none;
}

.button.primary {
  background: var(--sun);
  color: var(--ink);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.64);
  color: white;
}

.container {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.band {
  padding: clamp(52px, 8vw, 86px) 0;
}

.intro-band {
  background: var(--surface);
}

.answer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: start;
}

.answer-grid p {
  max-width: 760px;
  color: var(--muted);
}

.snapshot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.snapshot div,
.result-panel,
.tool-panel,
.activity-card,
.map-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.snapshot div {
  padding: 18px;
  box-shadow: none;
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

dd {
  margin: 4px 0 0;
  font-weight: 720;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 24px;
  padding: clamp(52px, 8vw, 86px) 0;
}

.tool-panel,
.result-panel {
  padding: clamp(20px, 3vw, 32px);
}

.controls {
  display: grid;
  gap: 20px;
}

fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--muted);
  font-weight: 780;
}

label {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffdf8;
  font-weight: 670;
}

input {
  accent-color: var(--teal);
}

.score-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.score-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.score-list span {
  color: var(--muted);
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.area-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.table-row {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr 1.1fr 0.7fr;
  gap: 18px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.table-row:first-child {
  border-top: 0;
}

.table-head {
  background: var(--teal-dark);
  color: white;
  font-size: 0.86rem;
  font-weight: 800;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.chip {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 720;
  cursor: pointer;
}

.chip.active {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

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

.activity-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  padding: 20px;
}

.activity-card[hidden] {
  display: none;
}

.activity-card p {
  margin: 0;
  color: var(--muted);
}

.activity-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: auto 0 0;
  padding-top: 18px;
}

.activity-card dl div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.itinerary-band {
  background: var(--sage);
}

.itinerary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 24px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  border-left: 5px solid var(--coral);
  padding: 4px 0 4px 18px;
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline span {
  margin-top: 5px;
  color: #43515a;
}

.map-panel {
  padding: 20px;
}

.mini-map {
  position: relative;
  height: 330px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 108, 103, 0.12) 25%, transparent 25%) 0 0 / 38px 38px,
    linear-gradient(135deg, transparent 75%, rgba(219, 109, 74, 0.16) 75%) 0 0 / 38px 38px,
    var(--sky);
}

.pin {
  position: absolute;
  display: inline-flex;
  min-width: 70px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(20, 32, 41, 0.22);
}

.pin.zoo { left: 48%; top: 38%; }
.pin.bay { left: 22%; top: 50%; background: var(--coral); }
.pin.cove { left: 18%; top: 20%; }
.pin.cor { right: 14%; bottom: 18%; background: #7a5b1d; }

.site-footer {
  display: grid;
  gap: 6px;
  padding: 28px clamp(18px, 4vw, 48px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 680px;
  }

  .answer-grid,
  .tool-layout,
  .itinerary-layout {
    grid-template-columns: 1fr;
  }

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

  .table-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .table-head {
    display: none;
  }
}

@media (max-width: 560px) {
  .snapshot,
  fieldset {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    width: min(100% - 28px, 900px);
  }

  .button {
    width: 100%;
  }
}

