@font-face {
  font-family: "Anderson Cooper Black";
  src: url("../assets/fonts/cooper-black-std.otf") format("opentype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff4d7;
  --paper-light: #fffaf0;
  --ink: #202342;
  --body: #4c4545;
  --muted: #756c66;
  --green: #104b3e;
  --coral: #ec655b;
  --gold: #efb93f;
  --teal: #159c99;
  --teal-dark: #0d6868;
  --violet: #6d61b5;
  --line: rgba(32, 35, 66, 0.13);
  --shadow: 0 18px 50px rgba(91, 66, 38, 0.11);
  --display: "Anderson Cooper Black", "Cooper Black", "Bookman Old Style", Georgia, serif;
  --text: "Avenir Next", Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --map-text: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 300px;
  background: var(--paper);
}

body {
  min-width: 300px;
  margin: 0;
  background:
    radial-gradient(circle at 5% 6%, rgba(21, 156, 153, 0.08), transparent 23rem),
    radial-gradient(circle at 98% 18%, rgba(239, 185, 63, 0.12), transparent 27rem),
    var(--paper);
  color: var(--body);
  font-family: var(--text);
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 900;
}

h1 {
  max-width: 720px;
  margin-bottom: 8px;
  font-size: clamp(2.25rem, 4.5vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

h1 span {
  color: var(--coral);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

p {
  margin-bottom: 1em;
}

:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 4px;
}

.section-shell,
.site-header,
footer {
  width: min(1040px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 58px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.site-home {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-home::before {
  width: 27px;
  height: 3px;
  border-radius: 999px;
  background: var(--teal);
  content: "";
}

main {
  display: grid;
  gap: 48px;
  padding: 34px 0 58px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.venue-line {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.84rem, 1.6vw, 0.98rem);
  font-weight: 650;
}

.map-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 2px solid var(--green);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.button-primary {
  background: var(--green);
  color: var(--paper-light);
}

.button-secondary {
  background: rgba(255, 250, 240, 0.74);
  color: var(--green);
}

.section-heading {
  margin-bottom: 23px;
}

.map-heading {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
}

.map-note {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.74rem;
}

.map-frame {
  overflow: hidden;
  padding: clamp(6px, 1.5vw, 14px);
  border: 1px solid rgba(32, 35, 66, 0.09);
  border-radius: clamp(20px, 4vw, 30px);
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.parking-map {
  display: block;
  width: 100%;
  max-height: 820px;
}

.map-ground {
  fill: #f8edcf;
}

.search-wash {
  fill: #f4e7c4;
  opacity: 0.42;
}

.street {
  fill: none;
  stroke: #fffaf0;
  stroke-linecap: round;
  stroke-width: 34;
}

.street.church-street {
  stroke: #fbf5e8;
  stroke-width: 42;
}

.slow-street {
  fill: none;
  stroke: var(--coral);
  stroke-dasharray: 7 9;
  stroke-linecap: round;
  stroke-width: 4;
}

.rail {
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-width: 4;
}

.rail-tie {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.5;
}

.school-block {
  fill: #f5cf6b;
  stroke: #fffaf0;
  stroke-width: 5;
}

.school-roof {
  fill: #e4a73a;
  opacity: 0.4;
}

.place-label,
.place-sublabel,
.park-label,
.park-address,
.transit-label,
.transit-sublabel,
.street-labels text,
.slow-label,
.home-label,
.home-address,
.north-arrow text,
.curb-note {
  font-family: var(--map-text);
}

.place-label,
.place-sublabel {
  fill: var(--body);
  font-weight: 700;
}

.place-label {
  font-size: 22px;
}

.place-sublabel {
  font-size: 17px;
}

.park-block {
  fill: #8ac26c;
  stroke: #fffaf0;
  stroke-width: 7;
}

.park-dot {
  fill: #5f9f4b;
  opacity: 0.65;
}

.park-path {
  fill: none;
  stroke: #e9f0c8;
  stroke-linecap: round;
  stroke-width: 8;
}

.park-building {
  fill: #f4cb5e;
  stroke: #fff8e5;
  stroke-width: 3;
}

.park-label,
.park-address {
  fill: #173e32;
  font-weight: 700;
}

.park-label {
  font-size: 21px;
}

.park-address {
  font-size: 16px;
}

.parking-band {
  fill: url("#parking-hatch");
  stroke: #4b9450;
  stroke-width: 3;
}

.meter-band {
  fill: none;
  stroke: var(--violet);
  stroke-dasharray: 9 8;
  stroke-linecap: round;
  stroke-width: 13;
}

.nearby-band {
  fill: none;
  stroke: var(--teal);
  stroke-dasharray: 5 8;
  stroke-linecap: round;
  stroke-width: 8;
  opacity: 0.62;
}

.map-pin-link {
  cursor: pointer;
  outline: none;
}

.pin-hit-area {
  fill: transparent;
  stroke: none;
}

.map-marker .pin-face {
  fill: var(--coral);
  stroke: #fffaf0;
  stroke-width: 5;
  transition: fill 140ms ease, transform 140ms ease;
}

.map-marker text {
  fill: white;
  font-family: var(--map-text);
  font-size: 21px;
  font-weight: 800;
  pointer-events: none;
}

.map-pin-link:hover .pin-face,
.map-pin-link:focus .pin-face {
  fill: var(--green);
  transform: scale(1.08);
}

.map-pin-link:focus .pin-hit-area {
  fill: rgba(239, 185, 63, 0.24);
}

.transit-stop circle {
  fill: var(--teal);
  stroke: #fffaf0;
  stroke-width: 5;
}

.transit-stop text {
  fill: white;
  font-family: var(--map-text);
  font-size: 19px;
  font-weight: 800;
}

.transit-label,
.transit-sublabel {
  fill: var(--body);
}

.transit-label {
  font-size: 20px;
  font-weight: 700;
}

.transit-sublabel {
  font-size: 16px;
  font-weight: 500;
}

.street-labels text {
  fill: var(--muted);
  font-size: 24px;
  font-weight: 600;
  paint-order: stroke;
  stroke: #f8edcf;
  stroke-linejoin: round;
  stroke-width: 5px;
}

.slow-label {
  fill: var(--coral);
  font-size: 16px;
  font-weight: 600;
}

.home-face {
  fill: var(--green);
  stroke: #fffaf0;
  stroke-width: 5;
  transition: fill 140ms ease, transform 140ms ease;
}

.home-icon {
  fill: white;
  pointer-events: none;
}

.home-label {
  fill: var(--green);
  font-size: 20px;
  font-weight: 700;
}

.home-address {
  fill: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.home-link:hover .home-face,
.home-link:focus .home-face {
  fill: var(--coral);
  transform: scale(1.08);
}

.home-link:focus .pin-hit-area {
  fill: rgba(239, 185, 63, 0.24);
}

.north-arrow path {
  fill: var(--ink);
}

.north-arrow text {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.curb-note {
  fill: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 21px;
  padding: 15px 5px 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.map-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.legend-swatch {
  display: inline-grid;
  width: 21px;
  height: 14px;
  place-items: center;
  border-radius: 4px;
}

.parking-swatch {
  border: 2px solid #4b9450;
  background: #bfe7bb;
}

.meter-swatch {
  border-bottom: 5px dashed var(--violet);
}

.nearby-swatch {
  border-bottom: 5px dotted var(--teal);
}

.slow-swatch {
  border-bottom: 4px dashed var(--coral);
}

.transit-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

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

.parking-options article {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  min-height: 148px;
  padding: 20px;
  border: 1px solid rgba(32, 35, 66, 0.08);
  border-radius: 19px;
  background: rgba(255, 250, 240, 0.7);
}

.option-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: white;
  font-family: var(--display);
  font-size: 1.28rem;
  line-height: 1;
}

.parking-options p {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.87rem;
}

.area-link,
.text-link,
.transit-note a {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  text-underline-offset: 3px;
}

.backup {
  display: grid;
  gap: 14px;
}

.fallback-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 27px 30px;
  border-radius: 22px;
  background: var(--green);
  color: rgba(255, 250, 240, 0.82);
}

.fallback-card h2,
.fallback-card .eyebrow {
  color: var(--paper-light);
}

.fallback-card h2 {
  margin-bottom: 8px;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
}

.fallback-card p {
  margin: 0;
}

.fallback-card .eyebrow {
  margin-bottom: 5px;
  opacity: 0.72;
}

.fallback-card .card-actions {
  justify-content: flex-end;
}

.fallback-card .text-link {
  color: var(--paper-light);
}

.transit-note {
  margin: 0;
  padding-inline: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

footer {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px 0 max(30px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
}

footer p {
  margin: 0;
}

footer a {
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .section-shell,
  .site-header,
  footer {
    width: min(100% - 28px, 1040px);
  }

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

  .site-home {
    font-size: 0.65rem;
  }

  main {
    gap: 40px;
    padding-top: 24px;
  }

  .intro {
    display: block;
  }

  h1 {
    max-width: 345px;
    font-size: clamp(2.15rem, 9.5vw, 2.8rem);
  }

  .venue-line {
    margin-bottom: 18px;
  }

  .map-actions .button {
    flex: 1 1 135px;
  }

  .map-heading {
    display: block;
  }

  .map-note {
    margin-top: 8px;
  }

  .map-frame {
    margin-inline: -8px;
    padding: 3px;
    border-radius: 20px;
  }

  .map-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    font-size: 0.68rem;
  }

  .parking-options {
    grid-template-columns: 1fr;
  }

  .parking-options article {
    min-height: 0;
    padding: 17px;
  }

  .fallback-card {
    display: block;
    padding: 24px 22px;
  }

  .fallback-card .card-actions {
    justify-content: flex-start;
    margin-top: 15px;
  }

  footer {
    display: grid;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
