/* Inter, served from here (SIL Open Font License, see inter-LICENSE.txt). Latin only. */
@font-face {
  font-family: "Inter";
  src: url(/inter.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #fff;
  --fg: #0b0b10;
  --muted: #5c5c66;
  --line: #e6e6ea;
  --card: #f6f6f8;
  --accent: #c04bff;
  /* The logo's colours, darkened enough to read on white. */
  --grad: linear-gradient(90deg, #4353ff, #2e9d3c, #b07d00, #d63fae);
  /* The logo's effect, from docs/logo/skim-logo-light.svg. */
  --grad5: linear-gradient(90deg, #5b6cff, #8be36a, #ffd84d, #ff8ad8, #c04bff);
  --fill: linear-gradient(90deg, #14183f, #0b0b10, #0b0b10, #2b0f2c);
  --bloom: 0.65;
  --edge: 0.6;
  --halo: 0;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
}
main { max-width: 40rem; margin: 0 auto; padding: 4rem 16px 3rem; overflow-wrap: break-word; }
a { color: inherit; }
a:hover { color: var(--accent); }
code { font: 0.88em ui-monospace, SFMono-Regular, Menlo, monospace; }
p, li { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }

/* The logo image has room around the checks for its glow; the negative
   margins keep that room from pushing the name and heading away. */
.mark { display: block; flex: none; height: 1.4em; margin: -0.29em -0.2em -0.29em -0.26em; }
.mark img { display: block; height: 100%; width: auto; }
/* The name with the logo's effect: layers stacked in one grid cell. */
.word { display: inline-grid; }
.word > * { grid-area: 1 / 1; }
.word .fill {
  z-index: 1;
  background: var(--fill);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.word .layer { user-select: none; pointer-events: none; }
.word .bloom, .word .halo {
  background: var(--grad5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.word .bloom { filter: blur(0.2em); opacity: var(--bloom); }
.word .halo { filter: blur(0.05em); opacity: var(--halo); }
.word .blue { color: #5b6cff; transform: translateX(-0.022em); filter: blur(0.012em); opacity: var(--edge); }
.word .pink { color: #ff5bd0; transform: translateX(0.022em); filter: blur(0.012em); opacity: var(--edge); }

/* Every page but the homepage: a small logo linking home. */
.top { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; text-decoration: none; font-weight: 700; }
h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 2rem 0 1.2rem; }
h2 { font-size: 1.1rem; margin: 2.5rem 0 0.5rem; }

/* Homepage. */
/* The name and the heading share one size. */
.home { --size: clamp(1.75rem, 6.2vw, 2.65rem); }
.brand { display: flex; align-items: center; gap: 0.35em; font-size: var(--size); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }

.hero { font-size: var(--size); line-height: 1.1; letter-spacing: -0.03em; margin: 1rem 0 1.6rem; }
.hero em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.btn { display: inline-block; padding: 0.65rem 1.2rem; border-radius: 999px; text-decoration: none; font-weight: 600; margin: 0 0.4rem 0.5rem 0; }
.btn.primary {
  color: var(--fg);
  border: 2px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box;
}
.btn.primary:hover { color: var(--fg); }
.steps { display: grid; gap: 0.8rem; margin: 3.5rem 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; background: var(--card); border-radius: 12px; padding: 1rem 1.2rem 1rem 3.2rem; position: relative; margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 1.2rem; top: 1rem; color: var(--muted); font-weight: 700; }
.home p, .facts li { color: var(--muted); }
.facts li { margin-bottom: 0.4rem; }
.home p strong, .home code { color: var(--fg); }
.home p strong { font-weight: 600; }

footer { margin-top: 4rem; font-size: 0.9rem; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; margin-right: 1rem; }
footer .coffee { display: block; margin-top: 1.5rem; width: fit-content; }
footer .coffee img { display: block; }
