/* Life in Polaroids, v09: City Hum. A street plan you walk away from until it is quiet. */
:root {
  --paper: #eceae6;
  --paper-2: #e5e2dc;
  --ink: #232323;
  --grey: #9a9a9a;
  --sun: #d8805a;
  --dusk: #7e8d96;
  --road: #dedad3;
  --pave: #e7e4de;
  --roof: #d9d5ce;
  --line: rgba(35, 35, 35, 0.5);
  --mono: "B612 Mono", ui-monospace, Menlo, monospace;
  --sans: Manrope, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
}
main { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

/* Fixed corners */
.home {
  position: fixed; top: 14px; left: 16px; z-index: 20;
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.02em;
  text-decoration: none; padding: 8px 12px; border-radius: 999px;
  background: rgba(236, 234, 230, 0.92); border: 1px solid var(--line);
}
.home:hover { background: var(--ink); color: var(--paper); }
.sound {
  position: fixed; top: 14px; right: 16px; z-index: 20;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 14px; cursor: pointer;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(236, 234, 230, 0.92); border: 1px solid var(--line);
}
.sound-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); }
.sound[aria-pressed="true"] .sound-dot { background: var(--sun); border-color: var(--sun); }
.sound-state { color: var(--grey); }
.sound[aria-pressed="true"] .sound-state { color: var(--ink); }

/* Walk */
.walk { position: relative; }
.plan-col { position: relative; }
.plan { position: relative; width: 100%; height: 100%; transition: opacity 0.6s; }
.map { display: block; width: 100%; height: 100%; }
.map .hit { cursor: pointer; }

.legend {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 8px;
}
.legend button {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; cursor: pointer;
  padding: 6px 10px 6px 8px; border-radius: 999px;
  background: rgba(236, 234, 230, 0.9); border: 1px solid var(--line);
  transition: background 0.2s, color 0.2s, opacity 0.3s;
}
.legend .lg-dot { position: relative; width: 14px; height: 14px; flex: none; }
.legend .lg-dot i {
  position: absolute; left: 50%; top: 50%; width: var(--d, 6px); height: var(--d, 6px);
  transform: translate(-50%, -50%); border-radius: 50%; background: var(--c, var(--dusk));
}
.legend button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.legend button.is-silent { opacity: 0.55; }

.text-col { position: relative; }
.intro { padding: 96px 24px 40px; }
.kicker, .mono-h, .hint, .stop-label, .cc {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.03em; font-weight: 400;
}
.kicker { margin: 0 0 18px; color: var(--grey); }
.title {
  margin: 0; font-weight: 800; letter-spacing: -0.035em; line-height: 0.95;
  font-size: clamp(44px, 7.4vw, 104px);
}
.tagline { margin: 22px 0 0; font-size: clamp(19px, 1.7vw, 24px); font-weight: 500; max-width: 26em; }
.lede { margin: 18px 0 0; font-size: clamp(22px, 2.2vw, 32px); font-weight: 600; line-height: 1.3; max-width: 20em; }
.intro-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 36px; }
.listen {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  font-size: 18px; font-weight: 700; padding: 14px 22px 14px 16px;
  border-radius: 999px; border: 0; background: var(--ink); color: var(--paper);
}
.listen:hover { background: var(--sun); }
.listen[aria-pressed="true"] { background: var(--sun); color: var(--ink); }
.listen-rings { position: relative; width: 26px; height: 26px; }
.listen-rings i {
  position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1.5px solid currentColor;
}
.listen-rings i:nth-child(1) { width: 6px; height: 6px; background: currentColor; }
.listen-rings i:nth-child(2) { width: 15px; height: 15px; opacity: 0.7; }
.listen-rings i:nth-child(3) { width: 25px; height: 25px; opacity: 0.4; }
.listen[aria-pressed="true"] .listen-rings i:nth-child(n+2) { animation: breathe 1.6s ease-in-out infinite; }
.listen[aria-pressed="true"] .listen-rings i:nth-child(3) { animation-delay: 0.3s; }
@keyframes breathe { 50% { transform: scale(1.18); opacity: 0.2; } }
.hint { margin: 0; color: var(--grey); }

.stop { padding: 48px 24px; display: flex; flex-direction: column; justify-content: center; }
.stop-label { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--ink); }
.stop-label .n { color: var(--grey); }
.stop-label .ring {
  width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--sun); position: relative;
}
.stop-label .ring::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--sun);
}
.stop.is-past .stop-label .ring { border-color: var(--grey); }
.stop.is-past .stop-label .ring::after { background: var(--grey); inset: 4px; }
.stop h2 {
  margin: 0 0 12px; font-weight: 700; letter-spacing: -0.01em;
  font-size: clamp(22px, 1.9vw, 28px); line-height: 1.2;
}
.stop .body {
  margin: 0; font-weight: 500; letter-spacing: -0.012em;
  font-size: clamp(24px, 2.6vw, 38px); line-height: 1.22; max-width: 18em;
}
.stop blockquote { margin: 0; }
.stop blockquote p {
  margin: 0; font-weight: 500; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.28; max-width: 19em;
}
.stop cite { display: block; margin-top: 14px; font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--grey); }
.cc {
  margin: 22px 0 0; display: inline-block; align-self: flex-start;
  padding: 6px 10px; background: var(--ink); color: var(--paper); border-radius: 3px; font-size: 14px;
}
.stop.quiet { align-items: flex-start; }
.stop.quiet .quiet-word {
  margin: 0; font-weight: 300; font-size: clamp(56px, 9vw, 132px); letter-spacing: -0.04em; color: var(--grey);
  line-height: 1;
}

/* Print */
.print { padding: 0 0 8vh; }
.print-fig { margin: 0; }
.print-fig img { width: 100%; height: auto; }

/* Details and buy */
.keep { padding: 64px 24px 72px; border-top: 1px solid var(--line); }
.keep-inner { max-width: 1180px; margin: 0 auto; display: grid; gap: 40px; }
.mono-h { margin: 0 0 16px; color: var(--grey); }
.details-list { list-style: none; margin: 0; padding: 0; }
.details-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid rgba(35, 35, 35, 0.18); font-size: 18px; font-weight: 600;
}
.details-list li::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--dusk); flex: none;
}
.buy { align-self: end; }
.price { margin: 0; font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.edition { margin: 8px 0 20px; font-family: var(--mono); font-size: 14px; color: var(--grey); }
.buy-btn {
  cursor: pointer; font-size: 17px; font-weight: 700; padding: 13px 22px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: transparent;
}
.buy-btn:hover { background: var(--ink); color: var(--paper); }
.buy-btn.is-in { background: var(--sun); border-color: var(--sun); }
.basket-note { margin: 12px 0 0; min-height: 1.5em; font-family: var(--mono); font-size: 14px; }

/* Next */
.next { padding: 56px 24px 64px; background: var(--ink); color: var(--paper); }
.next .mono-h { color: var(--grey); }
.next-link {
  display: inline-block; text-decoration: none; font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(36px, 6vw, 84px); line-height: 1;
}
.next-link:hover { color: var(--sun); }
.foot-home { display: inline-block; margin-top: 40px; font-family: var(--mono); font-size: 14px; color: var(--paper); }

/* Phone and narrow screens */
@media (max-width: 899px) {
  .plan-col {
    position: sticky; top: 0; z-index: 5; height: 46vh; height: 46svh;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .legend {
    position: absolute; left: 10px; right: 10px; bottom: 8px; justify-content: flex-start;
  }
  .legend button { font-size: 12px; padding: 5px 9px 5px 7px; }
  .intro { padding: 28px 20px 24px; }
  .stop { min-height: 62vh; min-height: 62svh; padding: 36px 20px; }
  .stop .body { font-size: 24px; }
  .stop blockquote p { font-size: 21px; }
  .cc { font-size: 16px; }
  .stop.quiet { min-height: 46vh; min-height: 46svh; }
  .keep-inner { grid-template-columns: 1fr; }
  .price { font-size: 38px; }
}

@media (min-width: 900px) {
  .walk { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
  .plan-col {
    position: sticky; top: 0; height: 100vh; align-self: start;
    display: flex; flex-direction: column; padding: 70px 0 22px 22px;
  }
  .plan { flex: 1; min-height: 0; }
  .legend { padding: 14px 0 0 8px; }
  .intro { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 100px 6vw 60px 3vw; }
  .stop { min-height: 96vh; padding: 60px 6vw 60px 3vw; }
  .stop.quiet { min-height: 80vh; }
  .keep { padding: 96px 6vw 110px; }
  .keep-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8vw; }
  .next { padding: 80px 6vw 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .plan { transition: none; }
  .listen[aria-pressed="true"] .listen-rings i { animation: none; }
}
