/* Maps Advisory: a street-plan sheet. Chiffon ground under a faint grid of
   square city blocks, ink type and borders, one violet accent. Every symbol is
   a square; nothing on the site is rounded. */

:root {
  --chiffon: #FAF6E1;
  --straw: #F0E8C4;
  --ink: #19161F;
  --violet: #5B2BD6;
  --violet-deep: #4520AE;
  --line: #CFC6A0;
  --muted: #5E5968;
  --display: "Syne", "Public Sans", system-ui, sans-serif;
  --text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 72rem;
  --gut: clamp(1rem, 4vw, 2.5rem);
  --block: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--chiffon);
  /* The street plan: one square block per tile, streets are the gaps. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect x='6.5' y='6.5' width='43' height='43' fill='none' stroke='%23CFC6A0' stroke-opacity='.55'/%3E%3C/svg%3E");
  background-size: var(--block) var(--block);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--violet-deep); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--ink); color: var(--chiffon); padding: 0.6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.8rem, 5.2vw, 3.7rem); max-width: 18ch; overflow-wrap: break-word; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); overflow-wrap: break-word; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; max-width: 40rem; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.45rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--chiffon);
  border-bottom: 2px solid var(--ink);
}
.top-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em;
  min-height: 44px;
}
.brand .mark { width: 28px; height: 28px; }
.brand:hover { color: var(--ink); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.8rem;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem;
  border: 2px solid transparent;
}
.nav a:hover { border-color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--chiffon); }
.menu {
  display: none;
  font: 600 1rem var(--text); color: var(--ink); background: var(--chiffon);
  border: 2px solid var(--ink); min-height: 44px; min-width: 44px; padding: 0 1rem; cursor: pointer;
}

@media (max-width: 760px) {
  .menu { display: inline-flex; align-items: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--chiffon); border-bottom: 2px solid var(--ink);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 0.5rem var(--gut) 1rem; gap: 0.25rem; }
  .nav a { width: 100%; }
}

/* ---------- sections ---------- */
.sec { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.sec + .sec { border-top: 2px solid var(--ink); }
.band { background: var(--straw); }
.hero { padding-top: clamp(2.5rem, 7vw, 4.5rem); }

.head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; }
.head h1, .head h2 { margin: 0; }
.ref {
  flex: none;
  display: inline-grid; place-items: center;
  width: 2.6rem; height: 2.6rem;
  border: 2px solid var(--ink); background: var(--chiffon);
  font: 700 0.95rem/1 var(--text); letter-spacing: 0.02em; color: var(--ink);
  margin-top: 0.15rem;
}
.head:hover .ref, .ref.on { background: var(--violet); border-color: var(--violet); color: #fff; }
.kicker {
  display: block; font: 700 0.8rem/1.3 var(--text); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.9rem;
}

.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 900px) {
  .cols { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .cols.even { grid-template-columns: 1fr 1fr; }
}

/* ---------- legend box ---------- */
.legend {
  border: 2px solid var(--ink); background: var(--straw);
  padding: 1.1rem 1.25rem 1.2rem;
}
.band .legend { background: var(--chiffon); }
.legend-h {
  font: 700 0.8rem/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 0.9rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--ink);
}
.legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.legend li { display: grid; grid-template-columns: 1rem 1fr; gap: 0.75rem; line-height: 1.45; }
.legend li::before {
  content: ""; width: 0.9rem; height: 0.9rem; margin-top: 0.28rem;
  border: 2px solid var(--ink); background: transparent;
}
.legend li.k-fill::before { background: var(--violet); border-color: var(--violet); }
.legend li.k-ink::before { background: var(--ink); }
.legend address { font-style: normal; }

/* ---------- hero plan ---------- */
.plan-row { display: grid; gap: 1.5rem; margin: 2rem 0 1.5rem; }
@media (min-width: 900px) { .plan-row { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; } }
.plan { width: 100%; height: auto; }
.plan .b { fill: var(--chiffon); stroke: var(--ink); stroke-width: 1.5; }
.plan .b.faint { stroke: var(--line); }
.plan .b.park { fill: var(--straw); stroke: var(--line); }
.plan .you { fill: var(--violet); }
.plan .lead-line { stroke: var(--violet); stroke-width: 2; }
.plan .street { font: 600 10px var(--text); letter-spacing: 0.14em; fill: var(--muted); text-transform: uppercase; }
.addr {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  font-size: 6.4cqi;
  margin: 0; padding-left: calc(20.83% - 0.04em);
  white-space: nowrap;
}
.addr .dot { color: var(--violet); }
.addr-cap { padding-left: 20.83%; color: var(--muted); margin: 0.6rem 0 0; font-size: 0.98rem; }
@media (max-width: 560px) {
  .addr { padding-left: 0; font-size: 8cqi; }
  h2 { font-size: 1.3rem; }
  .addr-cap { padding-left: 0; }
  .brand { font-size: 1.05rem; }
  .brand span { white-space: nowrap; }
}
.plan-wrap { min-width: 0; container-type: inline-size; }
.where {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 2rem 0 0; padding: 0; list-style: none;
  font-weight: 600; font-size: 0.95rem;
}
.where li { display: inline-flex; align-items: center; gap: 0.5rem; }
.where li::before { content: ""; width: 0.6rem; height: 0.6rem; background: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .plan .you { animation: mark 900ms 300ms both cubic-bezier(.2,.7,.2,1); transform-box: fill-box; transform-origin: center; }
  .plan .lead-line { animation: draw 500ms 1100ms both ease-out; stroke-dasharray: 60; }
  @keyframes mark { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
  @keyframes draw { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
}

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0 1.4rem;
  background: var(--ink); color: var(--chiffon); border: 2px solid var(--ink);
  font: 700 1rem var(--text); text-decoration: none; cursor: pointer;
}
.btn::after { content: ""; width: 0.55rem; height: 0.55rem; background: var(--violet); }
.btn:hover { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn:hover::after { background: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--chiffon); border-color: var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- blocks of text laid on the plan ---------- */
.lots { display: grid; gap: 0; border: 2px solid var(--ink); margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .lots { grid-template-columns: 1fr 1fr; } }
.lot { padding: 1.4rem 1.4rem 1.2rem; background: var(--chiffon); border-bottom: 2px solid var(--ink); }
.lot:last-child { border-bottom: 0; }
@media (min-width: 700px) {
  .lot { border-right: 2px solid var(--ink); }
  .lot:nth-child(2n) { border-right: 0; }
  .lot:nth-last-child(-n+2):nth-child(2n+1), .lot:nth-last-child(-n+2):nth-child(2n+1) ~ .lot { border-bottom: 0; }
}
.lot .ref { width: 2.2rem; height: 2.2rem; font-size: 0.85rem; margin-bottom: 0.9rem; }
.lot p:last-child { margin-bottom: 0; }
.pattern { font-weight: 700; color: var(--violet); }

/* ---------- route ---------- */
.route { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.route li {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: 1.1rem;
  padding: 1.4rem 0; border-top: 1px solid var(--ink);
}
.route li:last-child { border-bottom: 1px solid var(--ink); }
.route li .ref { margin: 0; }
.route li:last-child .ref { background: var(--violet); border-color: var(--violet); color: #fff; }
.route h3 { margin-bottom: 0.3rem; }
.route p { margin: 0; }
.route .when { display: block; font-size: 0.9rem; color: var(--muted); margin-top: 0.4rem; }

/* ---------- questions ---------- */
.qa { margin: 0; }
.qa dt { font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.3; margin-top: 1.6rem; display: flex; gap: 0.75rem; }
.qa dt::before { content: ""; flex: none; width: 0.8rem; height: 0.8rem; margin-top: 0.35rem; background: var(--violet); }
.qa dd { margin: 0.45rem 0 0 1.55rem; max-width: 42rem; }

/* ---------- portrait ---------- */
.portrait { margin: 0; max-width: 26rem; }
.portrait .frame { position: relative; border: 2px solid var(--ink); background: var(--straw); padding: 10px; }
.portrait .frame::after {
  content: ""; position: absolute; right: -2px; bottom: -2px; width: 2.2rem; height: 2.2rem; background: var(--violet);
}
.portrait img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.portrait figcaption { margin-top: 0.8rem; font-size: 0.95rem; font-weight: 600; }
.portrait figcaption span { color: var(--muted); font-weight: 400; }

/* ---------- form ---------- */
.fields { display: grid; gap: 1.1rem; }
.pair { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .pair { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.35rem; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: 400 1rem var(--text); color: var(--ink);
  background: #FFFDF3; border: 2px solid var(--ink); border-radius: 0;
  min-height: 48px; padding: 0.6rem 0.75rem;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--violet); outline-offset: 1px; }
.hint { font-size: 0.9rem; color: var(--muted); margin: 0.35rem 0 0; }
.status { margin: 0; padding: 0.8rem 1rem; border: 2px solid var(--ink); background: var(--straw); font-weight: 600; }
.status.bad { border-color: var(--violet); }
.cf-turnstile { min-height: 65px; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #EDE9DA; margin-top: 0; }
.foot a { color: #fff; }
.foot a:hover { color: #D9CCFA; }
.foot-in {
  max-width: var(--wrap); margin: 0 auto; padding: 3rem var(--gut) 2rem;
  display: grid; gap: 2rem;
}
@media (min-width: 800px) { .foot-in { grid-template-columns: 2fr 1fr 1fr; } }
.foot-name { display: flex; align-items: center; gap: 0.6rem; font: 800 1.2rem var(--display); color: #fff; }
.foot-name .mark { width: 26px; height: 26px; }
.foot-name .mark rect[fill="none"] { stroke: #EDE9DA; }
.foot-h { font: 700 0.8rem var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: #C9C3B0; margin: 0 0 0.8rem; }
.foot address { font-style: normal; line-height: 1.8; }
.foot-links { list-style: none; margin: 0; padding: 0; line-height: 2.2; }
.foot-base {
  max-width: var(--wrap); margin: 0 auto; padding: 1rem var(--gut) 1.6rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  border-top: 1px solid #3A3542; font-size: 0.9rem; color: #C9C3B0;
}
