/* Shared by every page of wooloo.dev: colors, type, header, buttons, steps, notes and footer. */
:root {
  color-scheme: dark;
  --bg: #11111b;
  --bg-raised: #181824;
  --bg-hover: #202030;
  --line: #2a2a3c;
  --line-strong: #3a3a52;
  --line-hover: #4a4a66;
  --text: #f4f4f8;
  --text-2: #c4c4d4;
  --text-3: #9a9ab2;
  --accent: #8aadf4;
  --accent-hover: #a6c0f7;
  --accent-ink: #11111b;
  --warn: #eed49f;
  --max: 1120px;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--round); text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: var(--accent); text-decoration: none; }
/* Links inside running text are underlined, so they are not told apart by color alone. */
p a, li a { text-decoration: underline; text-decoration-color: rgba(138, 173, 244, 0.45); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
p a:hover, li a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
code { font: 0.88em var(--mono); background: var(--bg-raised); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.4em; }
.icon-svg { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: 16px; top: -48px; z-index: 10; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 16px; }
@media (min-width: 720px) { header.top { padding: 22px 32px; } }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 19px/1 var(--round); letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.top nav a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; color: var(--text-2); }
.top nav a:hover { color: var(--text); background: var(--bg-raised); }
.top nav a { white-space: nowrap; }

.status { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(238, 212, 159, 0.45); color: var(--warn); font-size: 13px; line-height: 1.5; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 16px; line-height: 1; border: 1px solid var(--line-strong); color: var(--text); background: var(--bg-raised); transition: background-color 0.15s, border-color 0.15s; }
.button .icon-svg { width: 18px; height: 18px; }
.button:hover { background: var(--bg-hover); border-color: var(--line-hover); }
.button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button:active { transform: translateY(1px); }
@media (max-width: 480px) { .actions .button { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .button { transition: none !important; } }

section { padding: 88px 0 0; }
section h2 { font-size: clamp(27px, 3.6vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 700; }

/* Steps are a real sequence, so they are numbered. */
ol.steps { list-style: none; counter-reset: step; color: var(--text-2); padding: 0; margin: 28px 0; max-width: 46em; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 46px; min-height: 30px; }
ol.steps > li + li { margin-top: 22px; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-raised); border: 1px solid var(--line-strong); color: var(--text); font: 600 14px/1 var(--round); }
.note { border-left: 3px solid var(--warn); background: var(--bg-raised); padding: 14px 18px; border-radius: 0 10px 10px 0; color: var(--text-2); font-size: 15.5px; max-width: 46em; margin: 0; }

footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer a { color: var(--text-2); }
footer a:hover { color: var(--text); text-decoration: underline; }
