/* Fairlead landing page. Colors are the brand kit's (assets/brand/README.md). */
:root {
  --bg: #F7F9F8; --surface: #FFFFFF; --ink: #0B1618; --muted: #52615D; --line: #DCE4E1;
  --guide: #008F67; --guide-soft: #E2F2EB;
  --hero: #0B1618; --hero-ink: #E9F0EE; --hero-muted: #B3C3BE; --hero-line: #243A3D;
  --code-bg: #07100F; --code-ink: #DDE7E4; --code-dim: #7F948E;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1618; --surface: #102022; --ink: #E9F0EE; --muted: #93A5A0; --line: #1F3336;
    --guide: #00AE7B; --guide-soft: #0F2C27;
    --hero: #07100F; --hero-line: #1C3033;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, h2, h3 { font-family: Sora, "Public Sans", system-ui, sans-serif; letter-spacing: -.015em; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--guide); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 32px; }

.btn { display: inline-flex; align-items: center; font: 600 14px/1 "Public Sans", sans-serif; text-decoration: none; padding: 12px 18px; border-radius: 8px; border: 1px solid transparent; }
.btn.primary { background: #00AE7B; color: #04110D; }
.btn.ghost { border-color: var(--hero-line); color: var(--hero-ink); }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--hero); color: var(--hero-ink); }
.nav { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.logo img { display: block; height: 30px; width: auto; }
.links { display: flex; align-items: center; gap: 24px; font-size: 14.5px; color: var(--hero-muted); }
.links a { text-decoration: none; }
.links a:not(.btn):hover { color: var(--hero-ink); }
.rails { position: absolute; right: -6%; top: 50%; transform: translateY(-42%); height: 86%; aspect-ratio: 120 / 117; pointer-events: none; }
.rails svg { width: 100%; height: 100%; display: block; }
/* The mark's paths sit inside <use>, which a descendant selector can't reach;
   custom properties inherit into it. */
.rails { --mark-rail: #16292C; --mark-guide: #00AE7B; }
.r { fill: var(--mark-rail); } .g { fill: var(--mark-guide); }
.hero-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 64px 88px; }
.hero-body > * { max-width: 620px; }
.hero h1 { font-size: 54px; line-height: 1.06; font-weight: 700; color: #FFFFFF; }
.hero h1 span { color: #00AE7B; }
.lede { font-size: 18.5px; color: var(--hero-muted); max-width: 54ch; }
.install { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs button { font: 500 13px "Public Sans", sans-serif; color: var(--hero-muted); background: transparent; border: 0; padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: #13272A; color: #FFFFFF; }
.cmd { display: flex; align-items: center; gap: 10px; background: var(--code-bg); border: 1px solid var(--hero-line); border-radius: 10px; padding: 10px 10px 10px 16px; font: 13.5px "JetBrains Mono", ui-monospace, Menlo, monospace; color: var(--code-ink); }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: inherit; }
.dollar { color: var(--code-dim); user-select: none; }
.copy { flex: none; font: 600 12px "Public Sans", sans-serif; color: var(--code-ink); background: transparent; border: 1px solid var(--hero-line); border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
main section { padding-block: 72px 0; }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; }
.section-head h2 { font-size: 32px; }
.section-head p { color: var(--muted); font-size: 17px; max-width: 62ch; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.grid article { background: var(--surface); padding: 24px; display: grid; gap: 8px; align-content: start; }
.grid h3 { font-size: 17px; }
.grid p { color: var(--muted); font-size: 15px; }
.tag, .soon { font: 500 12px "JetBrains Mono", ui-monospace, monospace; }
.tag { color: var(--guide); } .soon { color: var(--muted); }

.works { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 16px 56px; align-items: start; }
.works .section-head { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 12.5px "JetBrains Mono", ui-monospace, monospace; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 5px 11px; }
.chip.k { border-color: transparent; background: var(--guide-soft); color: var(--guide); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; margin-top: 26px; }
.facts h3 { font-size: 16px; margin-bottom: 4px; }
.facts p { color: var(--muted); font-size: 15px; }
.limits { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.limits a, .fallback a, .note a { color: var(--guide); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stat { border-top: 3px solid var(--guide); padding-top: 14px; display: grid; gap: 2px; }
.stat .n { font: 600 38px/1.1 Sora, sans-serif; font-variant-numeric: tabular-nums; }
.stat .repo { font-weight: 600; }
.stat .l { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.note { margin-top: 18px; font-size: 13.5px; color: var(--muted); max-width: 72ch; }
.fallback { grid-column: 1 / -1; color: var(--muted); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 88px; padding-block: 24px 32px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

@media (max-width: 1000px) {
  .rails { right: -16%; opacity: .6; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .wrap { padding-inline: 18px; }
  .links a:not(.btn) { display: none; }
  .rails { position: relative; right: auto; top: auto; transform: none; display: block; height: 150px; margin: 4px -34px 0 auto; }
  .hero-body { padding-block: 12px 56px; }
  .hero h1 { font-size: 36px; }
  .lede { font-size: 17px; }
  main section { padding-block: 52px 0; }
  .section-head h2 { font-size: 26px; }
  .grid, .facts, .stats { grid-template-columns: minmax(0, 1fr); }
  .foot { margin-top: 64px; }
}
