@font-face {
  font-family: "Fraunces Tempo";
  src: url("fonts/Fraunces-Italic.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f4efe6;
  --sheet: #fffcf8;
  --ink: #1d1b17;
  --muted: #6e685f;
  --line: #efeae2;
  --quiet: #5f7d6c;
  --building: #8a7344;
  --busy: #c98412;
  --packed: #e25b32;
  --map: #e7dfd2;
  --road: #d5ccbe;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.brand {
  margin: 0;
  font-family: "Fraunces Tempo", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.85;
}

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.stage {
  position: relative;
  height: clamp(16rem, 48vh, 34rem);
  background: var(--map);
  overflow: hidden;
}

.sky {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 252, 248, 0.42) 1px, transparent 1px) 0 0 / 5.25rem 5.25rem,
    linear-gradient(90deg, rgba(255, 252, 248, 0.42) 1px, transparent 1px) 0 0 / 5.25rem 5.25rem;
}

.road {
  position: absolute;
  height: 0.7rem;
  background: var(--road);
  border-radius: 999px;
}

.r1 { top: 24%; left: -8%; width: 78%; transform: rotate(-7deg); }
.r2 { top: 58%; left: 8%; width: 100%; transform: rotate(5deg); }
.r3 { top: -12%; left: 22%; width: 0.7rem; height: 78%; transform: rotate(16deg); }
.r4 { top: 8%; left: 70%; width: 0.7rem; height: 90%; transform: rotate(-12deg); }
.r5 { top: 42%; left: 38%; width: 55%; transform: rotate(18deg); }

.pin {
  position: absolute;
  width: 0.95rem;
  height: 0.95rem;
  border: 3px solid var(--sheet);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(29, 27, 23, 0.18);
}

.pin.quiet,
.dot.quiet { background: var(--quiet); }
.pin.building,
.dot.building { background: var(--building); }
.pin.busy,
.dot.busy { background: var(--busy); }
.pin.packed,
.dot.packed { background: var(--packed); }

.bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem 0;
}

.bar .brand { font-size: clamp(2.4rem, 5vw, 3.4rem); }

main {
  position: relative;
  z-index: 1;
  width: min(76rem, calc(100% - 1.5rem));
  margin: -2.4rem auto 0;
  padding: 1.6rem 1.4rem 2.2rem;
  background: var(--sheet);
  border-radius: 1.6rem 1.6rem 0 0;
  box-shadow: 0 -16px 40px rgba(29, 27, 23, 0.07);
}

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

h1 {
  max-width: 11em;
  margin: 0.35rem 0 0;
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.meter-block { margin-top: 2.4rem; }

.meter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.meter li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  min-width: 0;
  padding: 1rem 1rem 0.9rem;
  overflow: hidden;
  background: var(--bg);
  border-radius: 1.15rem;
}

.meter .quiet { color: var(--quiet); }
.meter .building { color: var(--building); }
.meter .busy { color: var(--busy); }
.meter .packed { color: var(--packed); }

.dots {
  display: flex;
  flex: none;
  gap: 0.42rem;
  align-items: center;
}

.dots i {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: currentColor;
  display: block;
}

.dots i.off {
  background: transparent;
  box-shadow: inset 0 0 0 2px currentColor;
}

.meter .name {
  font-family: "Fraunces Tempo", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.blank {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.75rem 0 0;
  padding: 1rem 1.1rem;
  background: var(--bg);
  border-radius: 1.15rem;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.4;
}

.blank .dots { color: var(--muted); gap: 0.32rem; }
.blank .dots i { width: 0.78rem; height: 0.78rem; }

.purpose-block { margin-top: 2.8rem; }

.purpose {
  max-width: 12em;
  margin: 0;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.purpose-note {
  max-width: 22rem;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.4;
}

.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem 1.15rem;
  margin-top: 1.8rem;
}

.flow h2 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.flow figure { margin: 0; }

.flow img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.35rem;
  background: var(--bg);
  border: 1px solid rgba(29, 27, 23, 0.08);
}

.flow figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
}

.flow .step {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.tap {
  max-width: 28rem;
  margin: 1.6rem 0 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.details {
  max-width: 36rem;
  margin-top: 1.8rem;
}

.details h2 {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.details p {
  margin: 0.55rem 0 0;
  font-size: 1.15rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.details ul {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.details li {
  margin-top: 0.4rem;
  font-size: 1.15rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.details strong { font-weight: 650; }

.cover {
  margin-top: 2rem;
}

.cover p {
  max-width: 46rem;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.cover .cover-places,
.cover .age {
  margin-top: 0.45rem;
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-top: 2.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

footer .brand { font-size: 3rem; }

.foot-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
}

.foot-links a {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-underline-offset: 0.18em;
}

.foot-links span { color: var(--muted); }

body.doc main {
  width: min(40rem, calc(100% - 1.5rem));
  margin: 0 auto;
  padding-top: 0.4rem;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

body.doc .bar {
  width: min(40rem, calc(100% - 1.5rem));
  margin: 0 auto;
  padding-inline: 0;
}

body.doc h1 { max-width: none; font-size: clamp(2.4rem, 6vw, 3.5rem); }

.doc h2 {
  margin: 1.55rem 0 0.3rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.doc p {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
  line-height: 1.5;
}

.doc .dated { color: var(--muted); margin-top: 0.7rem; }
.doc .strong { font-weight: 650; }

@media (max-width: 800px) {
  .stage { height: 15.5rem; }
  .bar { padding-inline: 1rem; }
  .bar .brand { font-size: 2.2rem; }
  main {
    width: calc(100% - 0.75rem);
    margin-top: -1.4rem;
    padding: 1.25rem 1rem 2rem;
  }
  h1 { font-size: 2.3rem; max-width: 9em; }
  .meter { grid-template-columns: 1fr 1fr; }
  .meter .name { font-size: 1.85rem; }
  .dots { gap: 0.32rem; }
  .dots i { width: 0.85rem; height: 0.85rem; }
  .flow { grid-template-columns: minmax(0, 22rem); }
  footer { flex-direction: column; }
  .foot-links { align-items: flex-start; text-align: left; }
}
