/* ─────────────────────────────────────────────────────────────
   accelero.sh — product landing

   PALETTE SOURCE: img/android-chrome-512x512.png (the logo).
   Quantised the logo and it is TEAL/CYAN, not green:
     hue 180-199 = 43.5% of pixels, hue 200-219 = 16.8%,
     green (120-139) = 0.1%.
   Saturated logo pixels cluster #084860 / #105870 / #186078 /
   #207088 (deep teal); the porthole ring is hue-210 steel grey;
   the darkest hull tones are #081828 / #081820.

   Do NOT reintroduce the blog's green (#4ade80 / #22c55e). This
   site is intentionally NOT styled after arbianshkodra.com — that
   was a prior misstep. The blog is a personal reading surface;
   this is the product's own brand, taken from its own logo.

   Contrast verified against WCAG AA (see notes inline):
     #0e7490 on white  = 5.36:1  (text + primary button)
     #0891b2 on white  = 3.68:1  -> FAILS, decorative use only
     #22d3ee on #0b1620 = 10.11:1 (dark-mode accent)
   ───────────────────────────────────────────────────────────── */

@font-face { font-family: 'Geist Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/geist-sans-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Geist Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/geist-sans-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Geist Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/geist-sans-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Geist Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/geist-sans-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/geist-mono-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/geist-mono-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/geist-mono-latin-600.woff2') format('woff2'); }

:root {
  --sans: 'Geist Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;

  /* logo teal */
  --brand: #0e7490;          /* AA on white, 5.36:1 — text + buttons */
  --brand-mid: #0891b2;      /* decorative only, fails AA as text */
  --brand-bright: #22d3ee;   /* dark-mode accent */
  --brand-glow: #67e8f9;

  /* light theme: paper + steel */
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --fg: #334155;
  --fg-hi: #0f172a;
  --dim: #64748b;
  --dimmer: #94a3b8;
  --line: #e2e8f0;
  --line-hi: #cbd5e1;
  --code-bg: #f6f8fa;
  --accent-soft: rgba(14, 116, 144, 0.08);
  --term-bg: #0b1620;
  --term-fg: #cbd5e1;
  --btn-fg: #ffffff;
}

html.dark {
  /* dark theme: the logo's hull tones */
  --bg: #0b1620;
  --bg-alt: #101f2b;
  --fg: #94a3b8;
  --fg-hi: #e8eef4;
  --dim: #7c8ea3;
  --dimmer: #5a6b7d;
  --line: #1d2f3d;
  --line-hi: #2b4152;
  --code-bg: #0d1a24;
  --accent-soft: rgba(34, 211, 238, 0.10);
  --term-bg: #081219;
  --term-fg: #cbd5e1;
  --brand: #22d3ee;          /* 10.11:1 on hull */
  --brand-mid: #22d3ee;
  --btn-fg: #062630;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
html.dark { color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
code, kbd, samp, pre { font-family: var(--mono); }

.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }

/* ── header ── */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 3.75rem; }

.mark { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 1.0625rem; color: var(--fg-hi); letter-spacing: -0.025em; }
/* the real logo is a detailed ship-in-a-porthole illustration; below ~48px it
   collapses into an indistinct blob, so it runs at 30px here only because the
   "accelero" wordmark next to it carries the identification */
.mark img { width: 1.875rem; height: 1.875rem; flex: none; }

nav.main { display: flex; align-items: center; gap: 1.5rem; font-size: 0.875rem; }
nav.main a { color: var(--dim); transition: color 0.2s; }
nav.main a:hover { color: var(--fg-hi); }
nav.main .gh { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--fg-hi); font-weight: 500; }
@media (max-width: 760px) { nav.main .hide-sm { display: none; } }

main { flex: 1; }

/* ── hero ── */
.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(48rem 20rem at 12% -20%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--bg-alt), var(--bg) 60%);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; } }
.hero-grid > * { min-width: 0; }

.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ''; width: 1.25rem; height: 1px; background: currentColor; }

h1 {
  margin-top: 0.9rem;
  font-size: clamp(2rem, 5.2vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--fg-hi);
}
h1 .alt { color: var(--brand); }
.lede { margin-top: 1.1rem; font-size: 1.0625rem; max-width: 34rem; }
.lede strong { color: var(--fg-hi); font-weight: 600; }
.lede code { font-size: 0.9em; color: var(--brand); }

.cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  height: 2.625rem; padding: 0 1.15rem;
  border: 1px solid transparent; border-radius: 6px;
  font-size: 0.9375rem; font-weight: 500;
  background: var(--brand); color: var(--btn-fg);
  transition: filter 0.2s, background 0.2s;
}
.btn:hover { filter: brightness(1.12); }
.btn.ghost { background: none; border-color: var(--line-hi); color: var(--fg-hi); }
.btn.ghost:hover { background: var(--bg-alt); filter: none; border-color: var(--brand); }

.meta { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1.5rem; font-family: var(--mono); font-size: 0.75rem; color: var(--dim); }
.meta .v { color: var(--brand); }

/* ── terminal (always dark) ── */
.term { border-radius: 8px; overflow: hidden; background: var(--term-bg); border: 1px solid var(--line-hi); box-shadow: 0 16px 40px -16px rgba(8, 30, 44, .45); }
html.dark .term { border-color: var(--line); box-shadow: none; }
.term-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.85rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.dot { width: 0.65rem; height: 0.65rem; border-radius: 50%; }
.dot.r { background: #64748b; } .dot.y { background: #64748b; } .dot.g { background: var(--brand-bright); }
.term-title { margin-left: 0.35rem; font-family: var(--mono); font-size: 0.6875rem; color: #64748b; }
.term-body { padding: 1rem 1.1rem 1.2rem; font-family: var(--mono); font-size: 0.75rem; line-height: 1.85; color: var(--term-fg); overflow-x: auto; }
.term-body p { white-space: pre; }
.pr .u { color: var(--brand-bright); } .pr .p { color: var(--brand-glow); } .pr .s { color: #64748b; }
.out { color: #64748b; }
.ok { color: var(--brand-bright); }
.cursor::after { content: '\2588'; color: var(--brand-bright); animation: blink 1.1s step-end infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ── sections ── */
section { padding: 4rem 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.shead { max-width: 34rem; }
.shead h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); letter-spacing: -0.02em; font-weight: 600; color: var(--fg-hi); }
.shead p { margin-top: 0.5rem; color: var(--dim); }

.grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem 2rem; margin-top: 2.25rem; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.grid > * { min-width: 0; }

.feat h3 { font-size: 0.9375rem; font-weight: 600; color: var(--fg-hi); display: flex; align-items: center; gap: 0.5rem; }
.feat h3::before { content: ''; width: 0.375rem; height: 0.375rem; border-radius: 1px; background: var(--brand); transform: rotate(45deg); flex: none; }
.feat p { margin-top: 0.4rem; font-size: 0.875rem; color: var(--dim); }
.feat code { font-size: 0.85em; color: var(--fg); background: var(--code-bg); border: 1px solid var(--line); border-radius: 3px; padding: 0.05rem 0.25rem; }

.flow { counter-reset: s; display: grid; grid-template-columns: 1fr; gap: 1.75rem; margin-top: 2.25rem; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.flow > div { position: relative; padding-top: 1.75rem; border-top: 2px solid var(--line); min-width: 0; }
.flow > div::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; top: 0.6rem; left: 0;
  font-family: var(--mono); font-size: 0.6875rem; color: var(--brand);
}
.flow > div:first-child { border-top-color: var(--brand); }
.flow h3 { font-size: 0.9375rem; font-weight: 600; color: var(--fg-hi); }
.flow p { margin-top: 0.35rem; font-size: 0.875rem; color: var(--dim); }

.qs { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.25rem; }
@media (min-width: 900px) { .qs { grid-template-columns: repeat(3, 1fr); align-items: start; } }
/* grid items default to min-width:auto, so a wide <pre> stretches the track and
   pushes the page sideways. min-width:0 lets the code scroll instead. */
.qs .step { min-width: 0; }
.qs .step h3 { font-family: var(--mono); font-size: 0.8125rem; color: var(--dim); font-weight: 500; margin-bottom: 0.6rem; }
.qs .step h3 .n { color: var(--brand); }
pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 6px; padding: 0.9rem 1rem; overflow-x: auto; font-size: 0.75rem; line-height: 1.75; color: var(--fg); }
/* the 3-up quickstart column is ~275px of content box. Most lines are wrapped by
   hand to fit; the JSON payload's repo_url line cannot be (a backslash-newline
   inside single quotes is not a bash continuation and would break the JSON), so
   that one block scrolls horizontally by design. 12px keeps it readable. */
.qs pre { font-size: 0.71rem; }
pre .c { color: var(--dimmer); }
pre .f { color: var(--brand); }
pre .v { color: var(--fg-hi); }
.hint { margin-top: 0.6rem; font-size: 0.8125rem; color: var(--dim); }
.hint a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: 0.875rem; color: var(--dim); }
/* the attribution link sits inside body-grey footer text, so give it colour +
   underline or it reads as plain text and nobody knows it is clickable */
.frow span a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.frow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.frow nav { display: flex; gap: 1.25rem; }
.frow a:hover { color: var(--fg-hi); }
.themes { display: flex; gap: 0.3rem; }
.themes button { display: grid; place-content: center; width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: 5px; background: none; color: var(--dim); cursor: pointer; transition: color .2s, border-color .2s; }
.themes button:hover { color: var(--fg-hi); }
.themes button[aria-pressed='true'] { color: var(--brand); border-color: var(--brand); }
.themes svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

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