@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');

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

:root {
  --color-no: #2D6A4F;
  --color-unclear: #E9C46A;
  --color-yes: #E63946;
  --text-light: rgba(255, 255, 255, 0.92);
  --text-dark: rgba(0, 0, 0, 0.82);
  --transition: background-color 0.4s ease;
}

html, body {
  height: 100%;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-no);
  transition: var(--transition);
  padding: 2rem 1.5rem;
}

body.status-no {
  background-color: var(--color-no);
  color: var(--text-light);
}

body.status-unclear {
  background-color: var(--color-unclear);
  color: var(--text-dark);
}

body.status-yes {
  background-color: var(--color-yes);
  color: var(--text-light);
}

/* ── Main content ── */
.site-wrapper {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.site-title {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 1.5rem;
  text-align: center;
}

.status-answer {
  font-size: clamp(5rem, 22vw, 11rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 1rem;
}

.status-tagline {
  font-size: clamp(1rem, 3.5vw, 1.35rem);
  font-weight: 400;
  text-align: center;
  opacity: 0.85;
  max-width: 520px;
  line-height: 1.4;
  margin-bottom: 2.5rem;
}

/* ── Divider ── */
.divider {
  width: 100%;
  border: none;
  border-top: 1px solid currentColor;
  opacity: 0.25;
  margin-bottom: 2rem;
}

/* ── Headlines ── */
.headlines {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 3rem;
}

.headline-item {
  text-align: center;
}

.headline-item a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  line-height: 1.4;
}

.headline-item a:hover .headline-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.headline-source {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  white-space: nowrap;
  flex-shrink: 0;
}

.headline-title {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  font-weight: 400;
  opacity: 0.9;
}

/* ── Footer ── */
footer {
  width: 100%;
  max-width: 700px;
  padding-top: 1.25rem;
  border-top: 1px solid currentColor;
  opacity: 0.5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-updated {
  opacity: 1;
}

/* ── About page ── */
body.about-page {
  background-color: #111;
  color: rgba(255, 255, 255, 0.88);
  align-items: flex-start;
  justify-content: flex-start;
  padding: 3rem 1.5rem;
}

.about-wrapper {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.about-wrapper .back-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-bottom: 3rem;
}

.about-wrapper .back-link:hover {
  color: rgba(255,255,255,0.85);
}

.about-wrapper h1 {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.about-wrapper p {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
}

.about-wrapper p a {
  color: rgba(255, 255, 255, 0.9);
  text-underline-offset: 3px;
}

.about-wrapper h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.about-wrapper .status-legend {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.about-wrapper .legend-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.no { background-color: var(--color-no); }
.legend-dot.unclear { background-color: var(--color-unclear); }
.legend-dot.yes { background-color: var(--color-yes); }

/* ── Loading state ── */
.loading {
  opacity: 0;
  animation: fadeIn 0.4s ease 0.1s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ── Mobile tweaks ── */
@media (max-width: 480px) {
  body {
    padding: 1.5rem 1.25rem;
  }

  .status-answer {
    margin-bottom: 0.75rem;
  }

  .status-tagline {
    margin-bottom: 2rem;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
