/* Obsidian's default theme (light, "moonstone") with the vault's accent, #0062ff. */
:root {
  --bg: #ffffff;
  --text: #222222;
  --muted: #5c5c5c;
  --faint: #ababab;
  --accent: #0062ff;
  --accent-soft: rgba(0, 98, 255, 0.1);
  --refused: #e93147;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1e1e;
    --text: #dadada;
    --muted: #b3b3b3;
    --faint: #666666;
    --accent: #4d8fff;
    --accent-soft: rgba(77, 143, 255, 0.14);
    --refused: #fb464c;
  }
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-align: center;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 22rem;
}

.mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
}

.mark::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: breathe 1.6s ease-in-out infinite;
}

#status {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

#fallback {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

#fallback:hover { opacity: 0.88; }
#fallback:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.hint {
  margin: 0;
  color: var(--faint);
  font-size: 0.8125rem;
}

body.refused .mark { background: transparent; border: 1.5px solid var(--faint); }
body.refused .mark::after { background: var(--refused); animation: none; }
body.refused #status { color: var(--muted); font-weight: 400; }
body.refused .hint { display: none; }

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.6); opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  .mark::after { animation: none; }
}

[hidden] { display: none !important; }
