@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=Inter:wght@300;400&display=swap');

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

:root {
  --bg: #0d0d0d;
  --bg-soft: #141414;
  --text: #e8e0d5;
  --text-muted: #9a9189;
  --accent: #c9a96e;
  --red: #e05252;
  --red-glow: rgba(224, 82, 82, 0.6);
  --green: #52b788;
  --green-glow: rgba(82, 183, 136, 0.5);
}

html, body {
  height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Home page ─── */

.home-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  padding: 2rem;
  text-align: center;
}

.photo-container {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(201, 169, 110, 0.15),
    0 8px 48px rgba(0, 0, 0, 0.6),
    0 2px 12px rgba(201, 169, 110, 0.08);
  background-color: var(--bg-soft);
  flex-shrink: 0;
}

.photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.photo-container img.loaded {
  opacity: 1;
}

.photo-container.hidden {
  display: none;
}

.name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text);
  line-height: 1.1;
}

.name em {
  font-style: italic;
  color: var(--accent);
}

/* ─── Status page ─── */

.status-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.8rem;
  padding: 2rem;
  text-align: center;
  max-width: 560px;
  width: 100%;
}

.status-question {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.status-answer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.indicator {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
}

.indicator.red {
  background-color: var(--red);
  box-shadow: 0 0 8px 2px var(--red-glow);
  animation: pulse-red 1.8s ease-in-out infinite;
}

.indicator.green {
  background-color: var(--green);
  box-shadow:
    0 0 10px 3px var(--green-glow),
    0 0 24px 6px rgba(82, 183, 136, 0.2);
}

@keyframes pulse-red {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px 2px var(--red-glow);
  }
  50% {
    opacity: 0.35;
    box-shadow: 0 0 2px 0px rgba(224, 82, 82, 0.15);
  }
}

.answer-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}

.answer-text.is-yes {
  color: var(--green);
}

.answer-text.is-no {
  color: var(--text-muted);
}

/* ─── Back link ─── */

.back-link {
  position: fixed;
  top: 1.5rem;
  left: 1.8rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.back-link:hover {
  opacity: 1;
  color: var(--text);
}

/* ─── Responsive ─── */

@media (max-width: 480px) {
  .photo-container {
    width: 220px;
    height: 220px;
  }

  .name {
    font-size: 1.8rem;
  }

  .status-question {
    font-size: 1.25rem;
  }

  .answer-text {
    font-size: 1.5rem;
  }
}
