/* Shared styling for the informational guide pages. Tokens, type, and the
   panel/button language mirror the inline styles in index.html so the guides
   read as part of the same tool. */

:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #576176;
  --paper: #f5f7fb;
  --panel: #ffffff;
  --line: #cbd3e1;
  --accent: #3157d5;
  --accent-dark: #203da0;
  --shadow: 0 18px 48px rgb(24 39 75 / 10%);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, #e9edff 0, transparent 34rem),
    var(--paper);
  font: 17px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

h1,
h2,
p,
ul,
ol {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h2 {
  margin: 40px 0 12px;
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  line-height: 1.2;
}

p,
li {
  margin-bottom: 14px;
}

a {
  color: var(--accent);
}

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

:where(a, button):focus-visible {
  outline: 3px solid #ea9c19;
  outline-offset: 3px;
}

.brand {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.82rem;
  font-weight: 720;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.brand a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--muted);
  text-decoration: none;
}

.brand a:hover {
  color: var(--ink);
}

.leveler-orbit {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  border: 0.2em solid #9aabf4;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: leveler-spin 5s linear infinite;
}

@keyframes leveler-spin {
  to {
    transform: rotate(360deg);
  }
}

.lede {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.12rem;
}

ol,
ul {
  padding-left: 1.3em;
}

li {
  margin-bottom: 8px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 40px;
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  box-shadow: var(--shadow);
}

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

.button {
  display: inline-block;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-weight: 720;
  line-height: 24px;
  text-decoration: none;
}

.button:hover {
  color: #fff;
  background: var(--accent-dark);
}

.site-footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0 0 6px;
}

.guides ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guides li {
  margin: 0;
}

.guides li:not(:last-child)::after {
  content: "·";
  margin: 0 0.6em;
}

.site-footer a {
  color: inherit;
}

.site-footer a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

.site-credit {
  margin-top: 18px;
}

@media (max-width: 680px) {
  main {
    width: min(100% - 20px, 720px);
    padding-top: 36px;
  }
}

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