/* Ungenerated: the page's kit. One ground, one ink, one accent (proofreader's red: every rule here
 * was a correction once). Archivo for words, at its wider widths for headings; Martian Mono for
 * the marks in the margin. Light and dark, both written by hand. */
:root {
  --ground: #f4f4f1;
  --panel: #ffffff;
  --sunk: #eaeae5;
  --ink: #0e0e0c;
  --body: #383833;
  --muted: #6c6c64;
  --quiet: #9b9b92;
  --line: rgba(14, 14, 12, 0.1);
  --line-2: rgba(14, 14, 12, 0.18);
  --red: #dc2f1c;
  --red-ink: #b82414;
  --red-soft: rgba(220, 47, 28, 0.09);
  --shadow: 0 1px 0 rgba(14, 14, 12, 0.04), 0 18px 40px -24px rgba(14, 14, 12, 0.28);
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wide: 116%;
  --page: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0d0d0c; --panel: #171715; --sunk: #1f1f1c; --ink: #f3f2ed; --body: #d0cfc7; --muted: #9b9a90; --quiet: #6d6c65;
    --line: rgba(243, 242, 237, 0.1); --line-2: rgba(243, 242, 237, 0.18); --red: #ff5a43; --red-ink: #ff7a66; --red-soft: rgba(255, 90, 67, 0.12);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 40px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0d0d0c; --panel: #171715; --sunk: #1f1f1c; --ink: #f3f2ed; --body: #d0cfc7; --muted: #9b9a90; --quiet: #6d6c65;
  --line: rgba(243, 242, 237, 0.1); --line-2: rgba(243, 242, 237, 0.18); --red: #ff5a43; --red-ink: #ff7a66; --red-soft: rgba(255, 90, 67, 0.12);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--body); font: 400 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
code { font: 0.86em var(--mono); padding: 1px 5px; border-radius: 5px; background: var(--sunk); color: var(--ink); }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 500 11.5px/1.4 var(--mono); letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--red); }

/* The bar: the mark, the sections, install. */
.bar { position: sticky; top: 0; z-index: 50; background: var(--ground); border-bottom: 1px solid transparent; transition: border-color 200ms ease; padding-top: env(safe-area-inset-top, 0px); }
.bar.is-stuck { border-bottom-color: var(--line); }
.bar-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.mark { display: inline-flex; align-items: baseline; gap: 0; font: 800 19px/1 var(--sans); font-stretch: var(--wide); letter-spacing: -0.035em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.mark b { position: relative; font-weight: 800; color: var(--red); }
.mark b::after { content: ""; position: absolute; left: -1px; right: -1px; top: 54%; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 300ms cubic-bezier(.23, 1, .32, 1); }
.mark:hover b::after { transform: scaleX(1); }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; font-weight: 500; }
.nav a { color: var(--muted); text-decoration: none; transition: color 150ms ease; }
.nav a:hover { color: var(--ink); }
.bar-cta { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--ground); font-size: 14px; font-weight: 600; text-decoration: none; transition: transform 90ms cubic-bezier(.23, 1, .32, 1); }
.bar-cta:active { transform: scale(0.97) translateY(1px); }
.bar-gh { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink); }
.bar-gh:hover { background: var(--sunk); }
@media (max-width: 860px) { .nav { display: none; } .bar-in { justify-content: space-between; } }

/* The install block, used twice on the home page and once on every skill page. */
.install { position: relative; max-width: 560px; border-radius: 16px; background: var(--ink); color: var(--ground); }
.install pre { margin: 0; padding: 18px 96px 18px 20px; overflow-x: auto; font: 13px/1.85 var(--mono); }
.install code { padding: 0; background: none; color: inherit; font: inherit; }
.install .dim { color: color-mix(in srgb, var(--ground) 45%, transparent); }
@media (max-width: 560px) { .install pre { padding: 54px 16px 16px; font-size: 12px; } }
.copy { position: absolute; top: 14px; right: 14px; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--ground); color: var(--ink); font: 600 13px var(--sans); cursor: pointer; transition: transform 90ms ease; }
.copy:active { transform: scale(0.96); }

.btn-line { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color 150ms ease, transform 90ms ease; }
.btn-line:hover { background: var(--sunk); }
.btn-line:active { transform: scale(0.97) translateY(1px); }
.btn-solid { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform 90ms ease, background-color 150ms ease; }
.btn-solid:hover { background: var(--red-ink); }
.btn-solid:active { transform: scale(0.97) translateY(1px); }

.foot { margin-top: 40px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-block: 28px 48px; font-size: 13.5px; color: var(--quiet); }
.foot a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; } }
