@font-face {
  font-family: "Anybody";
  src: url("fonts/Anybody_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
:root {
  --linen: #faf7f2;
  --white: #ffffff;
  --sand: #f1eae1;
  --ink: #201b17;
  --secondary: #5f564d;
  --muted: #7d7367;
  --hairline: #e8e0d5;
  --burgundy: #722f37;
  --pine: #2f5244;
  --radius-chip: 12px;
  --radius-control: 14px;
  --radius-card: 20px;
  --content: 1120px;
  --display: "Anybody", "Avenir Next", ui-rounded, sans-serif;
  --body: "Manrope", "Avenir Next", ui-sans-serif, sans-serif;
  --focus: 2px solid var(--ink);
  --focus-offset: 3px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-chip);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
}

.wrap {
  width: min(100% - 40px, var(--content));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
}

.header-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--secondary);
}

.header-meta span {
  text-transform: uppercase;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 0 64px;
  overflow: visible;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-intro {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.display {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 9vw, 6.25rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.lede {
  margin: 16px 0 0;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--secondary);
}

.thesis {
  max-width: 28rem;
  margin: 20px 0 0;
  color: var(--secondary);
  font-size: 17px;
  line-height: 1.55;
}

.night-line {
  margin-top: 32px;
}

.night-line__caption,
.night-line__now {
  min-height: 1.4em;
  margin: 0 0 10px;
  color: var(--secondary);
}

.night-line__now {
  position: relative;
  height: 18px;
}

.night-line__time {
  position: absolute;
  top: 0;
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.night-line__labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  font-variant-numeric: tabular-nums;
}

.night-line__track {
  position: relative;
  height: 2px;
  border-radius: 1px;
  background: var(--hairline);
}

.night-line__fill {
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  width: 0%;
}

.night-line__fill.is-before {
  background: var(--muted);
}

.night-line__notch {
  position: absolute;
  top: -5px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border: 2px solid var(--linen);
  border-radius: 6px;
  background: var(--burgundy);
  box-shadow: 0 2px 6px rgba(114, 47, 55, 0.28);
}

.app-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  align-self: flex-start;
  min-height: 52px;
  padding: 0 18px 0 14px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
}

.app-store:focus-visible {
  outline-offset: 4px;
}

.app-store__logo {
  display: block;
  width: 22px;
  height: 26px;
  flex-shrink: 0;
}

.app-store__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}

.app-store__kicker {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.app-store__name {
  font-size: 18px;
  font-weight: 590;
  letter-spacing: -0.02em;
}

.night {
  padding: 24px 0 8px;
  border-top: 1px solid var(--hairline);
}

.night-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.beat {
  display: grid;
  gap: 14px;
  padding: 52px 0;
  border-bottom: 1px solid var(--hairline);
}

.beat:last-child {
  border-bottom: 0;
}

.beat__when {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.beat__when::before {
  content: "";
  width: 14px;
  height: 1px;
  flex-shrink: 0;
  background: var(--burgundy);
}

.beat__what {
  margin: 0;
  max-width: 26rem;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--ink);
}

.close {
  display: flex;
  flex-wrap: wrap;
  align-items: last baseline;
  justify-content: space-between;
  gap: 20px 28px;
  padding: 80px 0 28px;
}

.close p {
  margin: 0;
}

.close__title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 8vw, 5rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.close .app-store {
  margin-top: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding: 28px 0 40px;
  border-top: 1px solid var(--hairline);
  color: var(--secondary);
  font-size: 13px;
}

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

.site-footer a:focus-visible {
  outline-offset: 3px;
}

@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    align-items: stretch;
    gap: 72px;
    padding: 56px 0 96px;
  }

  .hero-copy {
    flex: 1 1 auto;
  }

  .night-line {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-copy > .app-store {
    margin-top: 4px;
  }

  .night {
    padding-top: 48px;
  }

  .beat {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 48px 64px;
    align-items: baseline;
    padding: 72px 0;
  }

  .close {
    padding: 120px 0 48px;
  }
}

@media (max-width: 399px) {
  .wrap {
    width: min(100% - 32px, var(--content));
  }

  .display {
    font-size: clamp(2.8rem, 14vw, 3.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy {
    animation: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: rise 0.7s ease both;
  }

}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wordmark, .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

.phone-stage {
  position: relative;
  width: 100%;
  max-width: 390px;
  min-width: 0;
  margin: 0 auto;
}

.phone-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  inset: -72px -48px -56px -48px;
  background: radial-gradient(
    ellipse 340px 380px at 52% 58%,
    rgba(114, 47, 55, 0.16) 0%,
    rgba(114, 47, 55, 0.07) 34%,
    rgba(114, 47, 55, 0.025) 58%,
    rgba(114, 47, 55, 0) 76%
  );
}

.phone {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  padding: 22px 0 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--linen);
  box-shadow: 0 8px 20px rgba(32, 27, 23, 0.1), inset 0 1px 0 #fff;
  overflow: hidden;
}

.phone-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 20px;
}

.phone-title {
  margin: 0;
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: -0.05em;
  line-height: 1;
}

.phone-clock {
  margin: 0;
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  font-variant-numeric: tabular-nums;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 20px 12px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 64px;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-chip);
  background: var(--white);
  color: var(--secondary);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--ink);
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.chip:focus-visible {
  outline-offset: 3px;
}

.result-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 20px 10px;
  border-bottom: 1px solid var(--hairline);
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.heatmap-frame {
  position: relative;
  isolation: isolate;
  aspect-ratio: 5 / 6;
  background: var(--linen);
  overflow: hidden;
}

.heatmap-map {
  position: absolute;
  inset: 0;
}

.heatmap-map .maplibregl-canvas-container,
.heatmap-map .maplibregl-canvas {
  width: 100% !important;
  height: 100% !important;
}

.heatmap-map .maplibregl-ctrl,
.heatmap-map .maplibregl-ctrl-logo,
.heatmap-map .maplibregl-ctrl-attrib {
  display: none;
}

.heatmap__label {
  position: absolute;
  z-index: 2;
  margin: 0;
  color: var(--secondary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.1px;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
  transform: translate(-50%, -50%);
  text-shadow:
    -2px -2px 0 var(--linen),
    2px -2px 0 var(--linen),
    -2px 2px 0 var(--linen),
    2px 2px 0 var(--linen),
    0 0 8px var(--linen);
}

.heatmap__venue {
  color: var(--secondary);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transform: translate(-50%, 0);
}

.heatmap-zoom {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-chip);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(31, 27, 22, 0.08);
}

.heatmap-zoom__button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.heatmap-zoom__button + .heatmap-zoom__button {
  border-top: 1px solid var(--hairline);
}

.heatmap-zoom__button:hover { background: var(--linen); }
.heatmap-zoom__button:focus-visible { outline: var(--focus); outline-offset: -3px; }
.heatmap-frame:not(.is-ready) .heatmap-zoom { visibility: hidden; }

.heatmap-map .maplibregl-cooperative-gesture-screen {
  font-family: inherit;
  font-size: 14px;
}

.heatmap-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.heatmap-fallback {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.heatmap-fallback__spot {
  position: absolute;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(114, 47, 55, 0.48) 0%,
    rgba(114, 47, 55, 0.2) 36%,
    rgba(114, 47, 55, 0) 74%
  );
  mix-blend-mode: multiply;
}

.heatmap-fallback__spot[data-place="tiffani"] {
  left: 40%;
  top: 36%;
}

.heatmap-fallback__spot[data-place="skaugum"] {
  left: 63%;
  top: 64%;
}

.heatmap-fallback__spot[data-place="ivy"] {
  left: 74%;
  top: 48%;
}

.heatmap-frame.is-ready .heatmap-fallback {
  display: none;
}

.heatmap__attribution {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 2;
  margin: 0;
  color: var(--secondary);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 6px;
  border-radius: 8px;
  background: var(--linen);
  text-underline-offset: 2px;
}


.phone { margin: 0; }
.heatmap-example { color: var(--burgundy); }
.heatmap-frame:not(.is-ready) .heatmap__label { visibility: hidden; }
.heatmap-status, .heatmap-empty {
  position: absolute;
  z-index: 3;
  left: 20px;
  right: 20px;
  top: 45%;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-chip);
  background: var(--linen);
  color: var(--secondary);
  font-size: 12px;
  text-align: center;
}
@media (min-width: 900px) {
  .phone-stage {
    flex: 0 0 390px;
    width: 390px;
    margin: 0;
  }
}
