:root {
  --bg: #f4f1ea;
  --ink: #2a2723;
  --muted: #5f584e;
  --contour: #c8bda6;
  --contour-index: #a3967b;
  --grid: #e6e0d3;
  --accent: #b8553a;
  --card: rgba(244, 241, 234, 0.88);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181b;
    --ink: #ece8e1;
    --muted: #a9a297;
    --contour: #343b42;
    --contour-index: #4f5964;
    --grid: #1e2226;
    --accent: #e07a5f;
    --card: rgba(21, 24, 27, 0.86);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow: hidden;
}

.map {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.map path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.grid path {
  stroke: var(--grid);
  stroke-width: 1;
}

.contours .c {
  stroke: var(--contour);
  stroke-width: 1;
}

.contours .ci {
  stroke: var(--contour-index);
  stroke-width: 1.6;
}

.plan .parcel {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 8 6;
}

.plan .route {
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
}

.plan .marks path {
  stroke: var(--accent);
  stroke-width: 2;
}

main {
  position: relative;
  z-index: 1;
  max-width: 30rem;
  padding: 2rem 2.25rem;
  background: var(--card);
  border-radius: 6px;
  text-align: center;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
