:root {
  --bg: #fafafa;
  --card: #fff;
  --line: #e4e4e7;
  --strong: #d4d4d8;
  --text: #09090b;
  --muted: #52525b;
  --dim: #71717a;
  --press: #27272a;
  --shadow: rgb(9 9 11 / 0.06);
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: 200ms ease-out;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'SF Pro Text', Inter, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --card: #131316;
    --line: #27272a;
    --strong: #3f3f46;
    --text: #fafafa;
    --muted: #a1a1aa;
    --press: #e4e4e7;
    --shadow: rgb(0 0 0 / 0.4);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main {
  max-width: 34rem;
  margin: 0 auto;
  padding: 14vh 1.5rem 4rem;
}

[hidden] {
  display: none !important;
}

.brand img {
  display: block;
  height: 40px;
  width: auto;
  margin-bottom: 3rem;
}

h1 {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.lead {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.note {
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: 0.9375rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding: 0 1rem;
  border-radius: 8px;
  border: 1px solid var(--strong);
  background: var(--card);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--ease), border-color var(--ease);
}

.button:hover {
  border-color: var(--dim);
}

.primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.primary:hover {
  border-color: var(--press);
  background: var(--press);
}

/* Store badge: black in both themes, like the official ones. */
.badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  height: 3rem;
  padding: 0 1.125rem;
  border: 1px solid #a1a1aa;
  border-radius: 10px;
  background: #000;
  color: #fff;
  line-height: 1.15;
  text-decoration: none;
  transition: border-color var(--ease);
}

.badge:hover {
  border-color: #fff;
}

.badge small {
  font-size: 0.6875rem;
  letter-spacing: 0.01em;
}

.badge strong {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.meta {
  margin: 0.75rem 0 0;
  color: var(--dim);
  font-size: 0.8125rem;
}

.meta + .meta {
  margin-top: 0.25rem;
}

.link {
  border: 0;
  background: none;
  padding: 0 0.5rem;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color var(--ease);
}

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

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

pre {
  margin: 2rem 0 0;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font: 0.8125rem/1.7 var(--mono);
}

.card {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 1px 2px var(--shadow);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

ol {
  margin: 0;
  padding-inline-start: 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.8;
}
