@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  background: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Landing page */

.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  position: relative;
}

.landing::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 3px solid rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  pointer-events: none;
  animation: border-beat 1.4s ease-in-out infinite;
}

@keyframes border-beat {
  0%   { border-color: rgba(0, 0, 0, 0.12); inset: 12px; }
  14%  { border-color: rgba(0, 0, 0, 0.30); inset: 10px; }
  28%  { border-color: rgba(0, 0, 0, 0.12); inset: 12px; }
  42%  { border-color: rgba(0, 0, 0, 0.22); inset: 11px; }
  56%  { border-color: rgba(0, 0, 0, 0.12); inset: 12px; }
  100% { border-color: rgba(0, 0, 0, 0.12); inset: 12px; }
}

.dot-container {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.dot {
  width: 24px;
  height: 24px;
  background: #111;
  border-radius: 50%;
  position: relative;
  animation: heartbeat 1.4s ease-in-out infinite;
}

.dot-container:hover .dot {
  animation-play-state: paused;
  transform: scale(1.15);
  transition: transform 0.3s ease;
}

.dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  animation: pulse-ring 1.4s ease-in-out infinite;
}

@keyframes heartbeat {
  0%   { transform: scale(1); }
  14%  { transform: scale(1.18); }
  28%  { transform: scale(1); }
  42%  { transform: scale(1.12); }
  56%  { transform: scale(1); }
  100% { transform: scale(1); }
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
  14%  { box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.10); }
  28%  { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
  42%  { box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.06); }
  56%  { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

.wordmark {
  position: absolute;
  bottom: 48px;
  letter-spacing: 0.35em;
  font-size: 22px;
  font-weight: 400;
  color: #111;
  user-select: none;
}

/* Manifesto page */

.manifesto {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  opacity: 0;
  animation: fadeIn 1.2s ease-out 0.2s forwards;
}

.manifesto-text {
  font-size: clamp(18px, 3vw, 28px);
  color: #111;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0 24px;
}

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