/* forkit landing page. No framework, no web fonts, no network: every URL is relative. */

:root {
  --bg: #ffffff;
  --band: #f5f6f8;
  --fg: #0c0e11;
  --muted: #555c68;
  --line: #e2e5ea;
  --accent: #6636fb;
  --accent-2: #1284fc;
  --code-bg: #0f1216;
  --code-fg: #e6e8ec;
  --radius: 12px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e11;
    --band: #12151a;
    --fg: #f2f3f5;
    --muted: #a3aab5;
    --line: #242932;
    --accent: #a98bff;
    --accent-2: #5fb0ff;
    --code-bg: #080a0d;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px / 1.6 var(--sans);
  overflow-wrap: break-word;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-2);
}
a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
}
:not(pre) > code {
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}
h2 code {
  background: none;
  padding: 0;
  font-size: 0.92em;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
}
.brand img {
  display: block;
  height: 32px;
  width: auto;
}
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 18px;
  font-size: 15px;
}
nav a {
  color: var(--muted);
  text-decoration: none;
}
nav a:hover {
  color: var(--fg);
}

/* Sections */
section {
  padding: 72px 0;
}
.band {
  background: var(--band);
  border-block: 1px solid var(--line);
}
h1,
h2 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  max-width: 15ch;
}
h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}
.sub {
  color: var(--muted);
  max-width: 70ch;
  margin: 0 0 28px;
  font-size: 1.05rem;
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #a53afd, #1284fc 60%, #00c8d7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero */
.hero {
  padding: 88px 0 72px;
}
.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 68ch;
  margin: 0 0 24px;
}
.runners {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.runners li {
  font: 500 14px / 1 var(--mono);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--band);
}
.install {
  max-width: 760px;
}
.note {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 0;
}

/* Code blocks */
pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  background: var(--code-bg);
  color: var(--code-fg);
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--code-fg) 10%, transparent);
  font: 13.5px / 1.6 var(--mono);
  tab-size: 2;
}
pre code {
  font-size: inherit;
}
.k {
  color: #c792ea;
}
.s {
  color: #a5d6a7;
}
.n {
  color: #f7c47a;
}
.f {
  color: #82aaff;
}
.c {
  color: #7a8494;
  font-style: italic;
}

.split {
  /* Prose above, code below at full width: the examples' longest lines fit without scrolling. */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.prose {
  max-width: 820px;
}
.prose p {
  color: var(--muted);
}
.ticks {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
}
.ticks li {
  padding-left: 26px;
  position: relative;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, #a53afd, #1284fc);
}
figure {
  margin: 0;
}
.code figcaption,
.term figcaption,
.shot figcaption {
  font-size: 13px;
  color: var(--muted);
}
.code figcaption {
  font-family: var(--mono);
  margin: 0 0 8px;
}

/* Table */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14.5px;
}
th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--band);
}
tbody tr:last-child td {
  border-bottom: 0;
}
td:first-child {
  width: 42%;
}
.more {
  margin: 16px 0 0;
}

/* Terminal */
.term {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--code-bg);
  border: 1px solid var(--line);
}
.term-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px 0;
}
.term-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a404a;
}
.term-body {
  border: 0;
  border-radius: 0;
  font-size: 12.5px;
  line-height: 1.55;
}
.term figcaption {
  padding: 10px 20px 14px;
  border-top: 1px solid #1d222a;
  color: #8b93a0;
}
.t-bold {
  font-weight: 700;
}
.t-dim {
  opacity: 0.62;
}
.t-red {
  color: #ff6b6b;
}
.t-green {
  color: #5fd38d;
}
.t-yellow {
  color: #f7c47a;
}
.t-cyan {
  color: #56d4e0;
}
.t-magenta {
  color: #d38cff;
}

/* Screenshots */
.shots {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.08);
  background: var(--band);
}
.shot figcaption {
  margin-top: 8px;
}
.shot.wide {
  grid-column: 1 / -1;
}
.shot.phone img {
  max-width: 300px;
  margin-inline: auto;
}

/* Links */
.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.cards a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--fg);
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.cards a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--fg);
}
.cards span {
  color: var(--muted);
  font-size: 14px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 900px) {
  .ticks {
    grid-template-columns: minmax(0, 1fr);
  }
  .shots {
    grid-template-columns: minmax(0, 1fr);
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  section {
    padding: 52px 0;
  }
  .hero {
    padding: 56px 0 48px;
  }
  .top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
  }
  nav {
    justify-content: flex-start;
    gap: 4px 14px;
    font-size: 14px;
  }
  .top {
    position: static;
  }
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  pre {
    font-size: 12.5px;
    padding: 14px 16px;
  }
  th,
  td {
    padding: 10px 12px;
  }
  td:first-child {
    width: 46%;
  }
}
