@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-400-5.3.0.woff2) format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-600-5.3.0.woff2) format("woff2");
}

:root {
  --bg: #ffffff;
  --raised: #f5f5f5;
  --ink: #0a0a0a;
  --body: #262626;
  --muted: #525252;
  --hair: #e5e5e5;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --raised: #171717;
    --ink: #fafafa;
    --body: #d4d4d4;
    --muted: #a3a3a3;
    --hair: #262626;
  }
}

* { box-sizing: content-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 40px 16px 64px;
  background: var(--bg);
  color: var(--body);
  font: 400 1.0625rem/1.55 Inter, system-ui, sans-serif;
}
header, main, footer {
  max-width: 44rem;
  margin-inline: auto;
}

h1, h2, strong { font-weight: 600; color: var(--ink); }
h1 {
  margin: 24px 0 16px;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem);
  line-height: 1.2;
}
h2 { margin: 0 0 16px; font-size: 1.25rem; line-height: 1.3; }
p { margin: 0; }
p + p { margin-top: 16px; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

code, .command {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.command {
  margin: 8px 0 16px;
  padding: 16px;
  background: var(--raised);
  color: var(--body);
  white-space: pre-wrap;
  -webkit-user-select: all;
  user-select: all;
}

.logo { display: block; width: 100%; height: auto; color: var(--ink); }

main section, footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
}

.items { margin: 0; padding: 0; list-style: none; }
.items li + li { margin-top: 24px; }
.items .limit, footer { font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.items .limit { margin-top: 8px; }

.steps { display: grid; row-gap: 4px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 1fr; align-items: baseline; }
.steps li + li::before {
  content: "\2193";
  content: "\2193" / "";
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: var(--muted);
}
.steps code { color: var(--ink); }

.strip { padding: 16px; background: var(--raised); }
.strip p + p { margin-top: 8px; }
#notice:not(:empty) { margin-bottom: 16px; color: var(--ink); }
#live p[data-state]::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
#live p[data-state="growing"]::before { background: currentColor; }

#forge p { margin-top: 16px; }
footer noscript p { margin-top: 16px; }

@media (min-width: 400px) {
  .steps li { grid-template-columns: 6rem 1fr; }
}
@media (min-width: 768px) {
  body { padding-top: 96px; padding-bottom: 96px; }
  main section, footer { margin-top: 96px; }
}

@media (prefers-reduced-motion: no-preference) {
  .logo path {
    animation-delay: 0.6s;
    animation-duration: 4s;
    animation-iteration-count: 1;
    animation-fill-mode: both;
    animation-timing-function: step-end;
  }
  .logo .e7 { animation-name: hide-1; }
  .logo .t6 { animation-name: hide-2; }
  .logo .u5 { animation-name: hide-3; }
  .logo .l4 { animation-name: hide-4; }
  .logo .o3 { animation-name: hide-5; }
  .logo .v2 { animation-name: hide-6; }
  .logo .d2 { animation-name: show-8; }
  .logo .e3 { animation-name: show-9; }
  .logo .e4 { animation-name: show-12; }
  .logo .v5 { animation-name: show-13; }
  .logo .o6 { animation-name: show-14; }
  .logo .l7 { animation-name: show-15; }
  .logo .u8 { animation-name: show-16; }
  .logo .t9 { animation-name: show-17; }
  .logo .e10 { animation-name: show-18; }
  .logo .cursor { animation-name: cursor; }

  @keyframes hide-1 { from { visibility: visible; } 5.2632%, to { visibility: hidden; } }
  @keyframes hide-2 { from { visibility: visible; } 10.5263%, to { visibility: hidden; } }
  @keyframes hide-3 { from { visibility: visible; } 15.7895%, to { visibility: hidden; } }
  @keyframes hide-4 { from { visibility: visible; } 21.0526%, to { visibility: hidden; } }
  @keyframes hide-5 { from { visibility: visible; } 26.3158%, to { visibility: hidden; } }
  @keyframes hide-6 { from { visibility: visible; } 31.5789%, to { visibility: hidden; } }
  @keyframes show-8 { from { visibility: hidden; } 42.1053%, to { visibility: visible; } }
  @keyframes show-9 { from { visibility: hidden; } 47.3684%, to { visibility: visible; } }
  @keyframes show-12 { from { visibility: hidden; } 63.1579%, to { visibility: visible; } }
  @keyframes show-13 { from { visibility: hidden; } 68.4211%, to { visibility: visible; } }
  @keyframes show-14 { from { visibility: hidden; } 73.6842%, to { visibility: visible; } }
  @keyframes show-15 { from { visibility: hidden; } 78.9474%, to { visibility: visible; } }
  @keyframes show-16 { from { visibility: hidden; } 84.2105%, to { visibility: visible; } }
  @keyframes show-17 { from { visibility: hidden; } 89.4737%, to { visibility: visible; } }
  @keyframes show-18 { from { visibility: hidden; } 94.7368%, to { visibility: visible; } }
  @keyframes cursor {
    from { visibility: hidden; transform: translateX(-350px); }
    0.01% { visibility: visible; transform: translateX(-350px); }
    5.2632% { transform: translateX(-440px); }
    10.5263% { transform: translateX(-530px); }
    15.7895% { transform: translateX(-620px); }
    21.0526% { transform: translateX(-710px); }
    26.3158% { transform: translateX(-800px); }
    31.5789% { transform: translateX(-890px); }
    42.1053% { transform: translateX(-800px); }
    47.3684% { transform: translateX(-710px); }
    57.8947% { transform: translateX(-620px); }
    63.1579% { transform: translateX(-530px); }
    68.4211% { transform: translateX(-440px); }
    73.6842% { transform: translateX(-350px); }
    78.9474% { transform: translateX(-260px); }
    84.2105% { transform: translateX(-170px); }
    89.4737% { transform: translateX(-80px); }
    94.7368% { transform: translateX(0); }
    to { visibility: hidden; transform: translateX(0); }
  }
}
