/* One stylesheet for both pages. No build step, no dependencies — the callback page has to work
   when the only thing running is the browser's own JavaScript engine. */

:root {
  --bg: #131211;
  --fg: #f2f0ee;
  --muted: #a09a94;
  --fill: #1e1c1a;
  --line: #302d2a;
  --accent: #a01d21; /* the app icon's background colour */
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  padding: 0 1.5rem;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 4rem 0 3rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h1 .dot {
  color: var(--accent);
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.lede {
  margin: 0 0 2rem;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--muted);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--fg);
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

a:hover {
  text-decoration-color: var(--accent);
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.9375rem;
}

pre {
  margin: 0 0 0.75rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.muted {
  color: var(--muted);
  font-size: 0.9375rem;
}

.card {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card p:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 1rem;
  margin: 0 0 1rem;
}

@media (min-width: 40rem) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

.grid h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

li {
  margin-bottom: 0.35rem;
}

footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

/* The callback page swaps between these; whichever is not the current outcome stays hidden. */
[hidden] {
  display: none !important;
}
