:root {
  color-scheme: light dark;

  --bg: #fafafa;
  --bg-secondary: #f4f4f5;
  --border: #d4d4d8;
  --text: #18181b;
  --text-secondary: #52525b;
  --accent: #d97706;
  --radius: 0.75rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --bg-secondary: #18181b;
    --border: #3f3f46;
    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --accent: #fbbf24;
  }
}

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

[hidden] {
  display: none !important;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  padding: 1rem;
}

main {
  max-width: 32rem;
  margin-inline: auto;
  padding-block: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.question {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
}

.answer {
  font-size: clamp(3rem, 14vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;

  & .yes { color: var(--accent); }
}

.now {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.card {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.relative {
  font-size: 1.75rem;
  font-weight: 700;
}

.date {
  color: var(--accent);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;

  & th, & td {
    padding: 0.35rem 0.25rem;
    border-bottom: 1px solid var(--border);
  }

  & th {
    color: var(--text-secondary);
    font-weight: 600;
  }

  & tr.current td { color: var(--accent); font-weight: 600; }
}

.note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: left;

  & a { color: inherit; }
}
