@import url("https://fonts.cdnfonts.com/css/geist-mono");

:root {
  --bg: #f6f4ee;
  --text: #171717;
  --link: #171717;
  --content-width: 70ch;
  --bg-columns: 24;
  --bg-row-height: 2.4rem;
}

::selection {
  color: #fff;
  background: #000;
}

::-moz-selection {
  color: #fff;
  background: #000;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 0, 0, 0.02), transparent 16%),
    radial-gradient(circle at 84% 18%, rgba(0, 0, 0, 0.018), transparent 15%),
    radial-gradient(circle at 35% 78%, rgba(0, 0, 0, 0.012), transparent 20%),
    linear-gradient(var(--bg), var(--bg));
  color: var(--text);
  font-family:
    "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.background-symbols {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(var(--bg-columns), 1fr);
  grid-auto-rows: var(--bg-row-height);
  align-content: stretch;
  padding: 0.65rem 0.8rem;
  overflow: hidden;
  user-select: none;
  transform: rotate(-0.25deg);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.background-symbols span {
  display: block;
  color: rgba(31, 31, 31, 0.055);
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  line-height: 2.2rem;
  text-align: center;
  transition-property: color, text-shadow, transform;
  transition-duration: 0.8s;
  transition-timing-function: ease;
}

.background-symbols span.is-active {
  color: rgba(0, 0, 0, 0.68);
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.55),
    0 0 12px rgba(0, 0, 0, 0.3);
  transform: scale(1.12);
  transition-duration: 0s;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 70ch;
  width: fit-content;
  padding: 3.9rem 5.6rem 4rem;
}

.hero {
  max-width: var(--content-width);
  margin-bottom: 5rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.12rem, 1.45vw, 1.45rem);
  font-weight: 400;
  letter-spacing: -0.06em;
}

.hero__location {
  margin: 0.15rem 0 0;
  font-size: clamp(1.12rem, 1.45vw, 1.45rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.visit-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  margin: 0.58rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  color: rgba(20, 20, 20, 0.84);
}

.visit-counter__status {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #2ca043;
  box-shadow:
    0 0 0.24rem rgba(44, 160, 67, 0.62),
    0 0 0.62rem rgba(44, 160, 67, 0.3);
  flex: 0 0 auto;
  animation: visit-status-pulse 2.2s ease-in-out infinite;
}

.visit-counter__value {
  display: inline-flex;
  align-items: center;
  min-height: 1.38rem;
  padding: 0.08rem 0.48rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: rgba(16, 16, 16, 0.92);
}

.availability {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 8px;

  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;

  background: rgba(255, 255, 255, 0.34);
  color: #222;

  font-size: clamp(0.8rem);
  font-weight: 500;
  line-height: 1.4;
}

@keyframes visit-status-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.88;
  }

  50% {
    transform: scale(1.14);
    opacity: 1;
  }
}

.section {
  max-width: var(--content-width);
  margin: 0 0 4.3rem;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.18rem, 1.55vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.06em;
}

.section p {
  margin: 0;
  font-size: clamp(0.98rem, 1.3vw, 1.16rem);
  line-height: 1.38;
  letter-spacing: -0.045em;
}

.stack {
  display: grid;
  gap: 0;
}

.dense {
  margin-top: 1.75rem;
}

a {
  color: var(--link);
  text-decoration-thickness: from-font;
  text-underline-offset: 0.12em;
}

a:hover {
  text-decoration-style: wavy;
}

.links {
  display: grid;
  gap: 0;
}

.links a {
  width: fit-content;
  font-size: clamp(0.98rem, 1.3vw, 1.16rem);
}

@media (max-width: 520px) {
  .page {
    padding: 2.2rem 2rem 3rem;
  }

  .hero {
    margin-bottom: 4rem;
  }

  .section {
    margin-bottom: 3.65rem;
  }

  .background-symbols {
    font-size: 0.9rem;
    padding: 0.65rem 0.45rem;
  }

  .background-symbols span {
    line-height: 2rem;
  }

  .hero h1,
  .hero__location {
    font-size: 0.98rem;
  }

  .hero__availability {
    margin-top: 0.34rem;
    font-size: 0.66rem;
    line-height: 1.4;
  }

  .visit-counter {
    margin-top: 0.48rem;
    font-size: 0.7rem;
  }

  .visit-counter__status {
    width: 0.34rem;
    height: 0.34rem;
  }

  .section h2 {
    font-size: 0.92rem;
  }

  .section p,
  .links a {
    font-size: 0.84rem;
    line-height: 1.42;
  }
}
