@font-face {
  font-family: Geist;
  src: url(fonts/geist-sans.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --background: #eef0f6;
  --foreground: #16181d;
  --card: rgba(255, 255, 255, 0.66);
  --card-border: rgba(255, 255, 255, 0.9);
  --card-shadow: 0 1px 2px rgba(30, 36, 70, 0.05), 0 8px 24px rgba(30, 36, 70, 0.08);
  --line: rgba(30, 36, 70, 0.16);
  --text-secondary: #4f5563;
  --accent: #2456b5;
  --accent-foreground: #fff;
  --good: #276b33;
  --warn: #7d5600;
  --warn-ground: rgba(212, 172, 74, 0.2);
  --well: rgba(30, 36, 70, 0.06);
  --blue: rgba(91, 157, 240, 0.26);
  --violet: rgba(168, 85, 247, 0.15);
  --green: rgba(76, 191, 114, 0.2);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101114;
    --foreground: #f1f1f1;
    --card: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-shadow: none;
    --line: rgba(255, 255, 255, 0.16);
    --text-secondary: #abacb2;
    --accent: #5b9df0;
    --accent-foreground: #0b0b0b;
    --good: #4cbf72;
    --warn: #d4ac4a;
    --warn-ground: rgba(212, 172, 74, 0.1);
    --well: rgba(255, 255, 255, 0.07);
    --blue: rgba(91, 157, 240, 0.14);
    --violet: rgba(168, 85, 247, 0.12);
    --green: rgba(76, 191, 114, 0.08);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--background);
}

body {
  margin: 0;
  color: var(--foreground);
  background:
    radial-gradient(circle 700px at 10% 0, var(--blue), transparent),
    radial-gradient(circle 700px at 90% 0, var(--violet), transparent),
    radial-gradient(circle 800px at 50% 100%, var(--green), transparent),
    var(--background);
  font: 17px/1.6 Geist, Arial, Helvetica, sans-serif;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--accent-foreground);
  background: var(--accent);
}

.skip:focus {
  top: 8px;
}

/* header */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-top: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: inherit;
  font-size: 24px;
  text-decoration: none;
}

.brand b {
  font-weight: 700;
}

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

.top li {
  margin: 0;
}

.top li a {
  display: block;
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 15px;
  text-decoration: none;
}

.top li a:hover,
.top li a[aria-current] {
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

/* text */
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 54px);
}

h2 {
  margin: 56px 0 16px;
  font-size: clamp(25px, 4vw, 32px);
}

h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

p,
.text li {
  max-width: 68ch;
}

.lead {
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1.5;
}

.small {
  color: var(--text-secondary);
  font-size: 15px;
}

li + li {
  margin-top: 6px;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--well);
  font-size: 0.88em;
}

pre {
  overflow-x: auto;
  padding: 14px;
  border-radius: 12px;
  background: var(--well);
  font-size: 15px;
}

pre code {
  padding: 0;
  background: none;
}

/* first screen */
.hero {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-top: 40px;
}

.page {
  padding-top: 40px;
}

.status {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--warn);
  font-size: 14px;
  font-weight: 600;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.buttons li {
  margin: 0;
}

.button {
  display: block;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--foreground);
  background: var(--card);
  font-weight: 600;
  text-decoration: none;
}

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

.button.main {
  border-color: var(--accent);
  color: var(--accent-foreground);
  background: var(--accent);
}

.shots {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.shots img,
.shot {
  display: block;
  min-width: 0;
  max-width: 100%;
  height: auto;
  border: 5px solid #0b0d10;
  border-radius: 22px;
}

.shots img {
  flex: 0 1 280px;
  width: 50%;
  object-fit: contain;
}

.shot {
  border-width: 1px;
  border-color: var(--line);
  border-radius: 16px;
}

figure {
  margin: 24px 0;
}

figcaption {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* cards */
.cards {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--card-shadow);
}

.card p {
  margin: 0 0 10px;
}

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

.card .status {
  margin-bottom: 8px;
}

.note {
  max-width: 76ch;
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--warn);
  border-radius: 12px;
  background: var(--warn-ground);
}

.note > :first-child {
  margin-top: 0;
}

.note > :last-child {
  margin-bottom: 0;
}

/* numbered steps and layers */
.steps {
  max-width: 76ch;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  position: relative;
  margin: 0;
  padding: 0 0 20px 52px;
  counter-increment: step;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  border-radius: 50%;
  color: var(--accent-foreground);
  background: var(--accent);
  font-weight: 700;
  line-height: 34px;
  text-align: center;
}

.steps > li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 16px;
  top: 40px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

dl {
  max-width: 76ch;
}

dt {
  margin-top: 16px;
  font-weight: 650;
}

dd {
  margin: 2px 0 0;
}

/* footer */
footer {
  margin-top: 72px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 15px;
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

footer li {
  margin: 0;
}

footer li a {
  display: block;
  padding: 8px 0;
}

@media (min-width: 720px) {
  .two {
    grid-template-columns: 1fr 1fr;
  }

  .three {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    grid-template-columns: 1.1fr 1fr;
    padding-top: 64px;
  }

  .page {
    padding-top: 64px;
  }
}
