/* install.fairlead-panel.com — the panel's own palette and type: steel and navy, teal for what acts. */

@font-face { font-family: "Space Grotesk"; font-weight: 400 700; font-display: swap; src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-weight: 400 700; font-display: swap; src: url("fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Golos Text"; font-weight: 400 900; font-display: swap; src: url("fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 800; font-display: swap; src: url("fonts/jetbrains-mono-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 800; font-display: swap; src: url("fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 800; font-display: swap; src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --bg: #e7eef2;
  --surface: #ffffff;
  --ink: #0a2236;
  --muted: #5b7488;
  --line: #cfdbe3;
  --accent: #0c9aa0;
  --accent-ink: #08797e;
  --accent-soft: #d3ecec;
  --token: #f1f6f8;
  --term: #071a2b;
  --term-line: #16324a;
  --term-ink: #dbe8ef;
  --term-dim: #7f9bb0;
  --term-accent: #22cebf;
  --font: "Space Grotesk", "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-sm: 9px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #091a2c;
    --surface: #0e2337;
    --ink: #e4eef4;
    --muted: #8ea7b9;
    --line: #1d3a54;
    --accent: #22cebf;
    --accent-ink: #22cebf;
    --accent-soft: #0f3b45;
    --token: #12304a;
    --term: #04111f;
    --term-line: #173550;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/1.6 var(--font);
  text-rendering: optimizeLegibility;
}

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

code, pre, .mono { font-family: var(--mono); }

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

/* ---- header: the mark and the languages ---- */

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: inline-flex; line-height: 0; }
.brand img { height: 38px; width: auto; }

.langs { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.langs a {
  display: inline-block; min-width: 40px; padding: 6px 9px; border-radius: var(--radius-sm);
  color: var(--muted); font-weight: 600; font-size: 12px; text-align: center; text-decoration: none;
}
.langs a:hover { color: var(--ink); background: var(--surface); }
.langs a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); }

/* ---- the opening: what it is, and the one command ---- */

.hero { padding: 56px 0 64px; }
.hero h1 {
  margin: 0; max-width: 17ch;
  font-size: clamp(28px, 4.2vw, 44px); line-height: 1.06; font-weight: 600; letter-spacing: -0.025em;
  text-wrap: balance;
}
.lede { margin: 18px 0 0; max-width: 64ch; font-size: clamp(15px, 1.6vw, 16px); color: var(--muted); }
.lede strong { color: var(--ink); font-weight: 600; }

.term {
  margin-top: 40px; border-radius: var(--radius); background: var(--term); color: var(--term-ink);
  border-left: 4px solid var(--term-accent); box-shadow: 0 18px 50px -24px rgba(4, 17, 31, .55);
  overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--term-line);
  color: var(--term-dim); font-size: 12px;
}
.term-cmd { margin: 0; padding: 16px 20px 18px; overflow-x: auto; font-size: clamp(12px, 1.3vw, 14px); line-height: 1.55; }
.term-cmd .p { color: var(--term-accent); user-select: none; margin-right: .6ch; }

.copy {
  flex: 0 0 auto; padding: 6px 14px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--term-line); background: transparent; color: var(--term-ink);
  font: 600 12px/1.4 var(--font); white-space: nowrap;
}
.copy:hover { border-color: var(--term-accent); color: var(--term-accent); }
.copy.done { border-color: var(--term-accent); background: var(--term-accent); color: var(--term); }

.systems { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.systems li {
  padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font: 500 11px/1.5 var(--mono); color: var(--muted);
}

/* ---- sections ---- */

section { padding: 56px 0; border-top: 1px solid var(--line); }
section > .wrap > h2 { margin: 0 0 18px; font-size: clamp(21px, 2.6vw, 25px); line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; }
.sub { margin: -14px 0 26px; color: var(--muted); max-width: 64ch; }

/* a list of name → what it is, like the panel's instrument plates */
.spec { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.spec > div { display: grid; grid-template-columns: 190px 1fr; gap: 8px 28px; padding: 20px 24px; }
.spec > div + div { border-top: 1px solid var(--line); }
.spec dt { font-weight: 600; font-size: 14px; }
.spec dd { margin: 0; }
.spec dd p { margin: 0; }
.spec .val { font-weight: 500; }
.spec .note { margin-top: 3px; color: var(--muted); font-size: 13px; }

.tokens { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.tokens li {
  padding: 2px 9px; border-radius: 6px; background: var(--token); border: 1px solid var(--line);
  font: 500 11px/1.6 var(--mono); color: var(--ink);
}

/* the installation: a real sequence, so it is numbered */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.steps > li {
  counter-increment: step; position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 0 18px;
  padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps > li::before {
  content: counter(step); grid-row: 1 / span 3;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink); font: 700 15px/1 var(--mono);
}
.steps h3 { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 600; padding-top: 9px; }
.steps p { margin: 8px 0 0; color: var(--muted); max-width: 70ch; }
.steps p code, .opts code, .sub code, .foot code {
  padding: 1px 6px; border-radius: 6px; background: var(--token); border: 1px solid var(--line);
  font-size: .9em; color: var(--ink); white-space: nowrap;
}
.mini {
  margin: 12px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); overflow-x: auto;
  background: var(--term); color: var(--term-ink); border-left: 3px solid var(--term-accent);
  font-size: 12px; line-height: 1.55;
}
.mini .p { color: var(--term-accent); user-select: none; margin-right: .6ch; }

/* the installer's options */
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.opts { width: 100%; border-collapse: collapse; }
.opts th, .opts td { padding: 14px 20px; text-align: left; vertical-align: top; }
.opts thead th { font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.opts tbody tr + tr td { border-top: 1px solid var(--line); }
.opts td:first-child { width: 1%; white-space: nowrap; }
.opts td:first-child code { color: var(--accent-ink); }

/* ---- footer ---- */

.foot { padding: 30px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.foot p { margin: 0; max-width: 70ch; }

/* ---- narrow screens ---- */

@media (max-width: 720px) {
  .top { padding: 16px 0; }
  .brand img { height: 30px; }
  .langs a { min-width: 34px; padding: 5px 6px; font-size: 12px; }
  .hero { padding: 30px 0 44px; }
  .term { margin-top: 28px; }
  .term-bar { padding: 10px 12px 10px 14px; }
  .term-cmd { padding: 16px 14px 18px; }
  section { padding: 42px 0; }
  .spec > div { grid-template-columns: 1fr; padding: 16px 18px; }
  .steps > li { grid-template-columns: 1fr; padding: 18px; }
  .steps > li::before { grid-row: auto; margin-bottom: 10px; width: 32px; height: 32px; font-size: 14px; }
  .steps h3 { padding-top: 0; }
  /* a command wraps on a phone rather than hiding behind the edge (Copy still takes it whole) */
  .term-cmd, .mini { white-space: pre-wrap; overflow-wrap: anywhere; }
  /* the options read as a list: the option, and under it what it does */
  .opts thead { display: none; }
  .opts tr, .opts td { display: block; }
  .opts td:first-child { width: auto; padding-bottom: 2px; }
  .opts td + td { padding-top: 4px; }
  .opts th, .opts td { padding: 12px 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  .copy { transition: background .15s, color .15s, border-color .15s; }
}

.opt-example { margin: 0 0 18px; }
.nw { white-space: nowrap; }
