/* Palette sampled from assets/banner.png so the hero and the logo share one background. */
:root {
  --brand-bg: #2a3c40;
  /* Hero sits between the brand colour and the page below it: closer to the
     body than the logo's original backdrop, but still clearly a lighter band. */
  --hero-bg: #223133;
  --brand-cyan: #53b1bd;
  --brand-mint: #88ebb9;

  --bg: #ffffff;
  --fg: #1c2426;
  --muted: #5a686b;
  --rule: #dfe5e6;
  --code-bg: #f4f7f7;
  --link: #10707e;

  /* Faint grid echoing the wireframe cage in the logo. Kept at the edge of
     visibility — it should read as texture, never as a drawn element. */
  --grid: rgba(20, 50, 55, 0.045);
  --grid-size: 34px;
  --text: 17px;

  /* Outfit for headings and Rubik for running text: both geometric with
     softened corners, which is the quality the logo's wordmark has. */
  --font-head: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Rubik", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* YAML tokens */
  --tok-key: #0f6f7d;
  --tok-str: #1c7a56;
  --tok-act: #4d7f86;
  --tok-punc: #8a9a9c;
  --tok-com: #8a9a9c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16211f;
    --fg: #e6eeec;
    --muted: #9aabab;
    --rule: #2c3b3c;
    --code-bg: #1d2a2b;
    --link: var(--brand-mint);
    --grid: rgba(160, 220, 210, 0.035);

    --tok-key: #6cc6d2;
    --tok-str: #8fe0b4;
    --tok-act: #7c9ba0;
    --tok-punc: #7a8b8d;
    --tok-com: #7a8b8d;
  }
}

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text);
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.tagline,
.ba-head,
.strip b,
.button,
.cmp thead th {
  font-family: var(--font-head);
  /* Outfit at 500 — heavier weights read as shouting next to 300 body text. */
  font-weight: 500;
  letter-spacing: -0.005em;
}

b,
strong {
  font-weight: 500;
}

.wrap {
  width: min(100% - 2.5rem, 46rem);
  margin-inline: auto;
}

a {
  color: var(--link);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* YAML tokens, hand-marked in the HTML — no highlighter library.
   renovate.json's customManager is written to skip over these tags, so the
   `uses:` lines can be split into key / action / comment like any other line. */
pre i {
  font-style: normal;
}

pre .k {
  color: var(--tok-key);
}

pre .s {
  color: var(--tok-str);
}

pre .a {
  color: var(--tok-act);
}

pre .p {
  color: var(--tok-punc);
}

pre .c {
  color: var(--tok-com);
}

/* ---- Hero: always dark, so the banner's baked-in background blends in ---- */

.hero {
  /* Layers, top to bottom: a soft glow behind the logo, the same faint grid as
     the body, then the flat colour sampled from banner.png so the image's baked-in
     background blends into the section. */
  /* Anchors .gh-corner below. */
  position: relative;
  background-color: var(--hero-bg);
  background-image:
    radial-gradient(60% 46% at 50% 4%, rgba(136, 235, 185, 0.11), transparent 72%),
    radial-gradient(45% 38% at 50% 2%, rgba(83, 177, 189, 0.1), transparent 70%),
    linear-gradient(rgba(190, 240, 228, 0.036) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 240, 228, 0.036) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    var(--grid-size) var(--grid-size),
    var(--grid-size) var(--grid-size);
  color: #eaf4f2;
  padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.hero a {
  color: var(--brand-mint);
}

/* Two classes so it outranks `.hero a` above — the GitHub mark shouldn't take
   our mint, the same call the footer's copy makes. Larger than `.gh`'s base
   text size because nothing sits beside it to match, and the padding turns it
   into a real tap target. */
.hero .gh-corner {
  position: absolute;
  top: clamp(0.5rem, 1.5vw, 0.75rem);
  right: clamp(0.5rem, 1.5vw, 0.75rem);
  display: inline-flex;
  padding: 0.5rem;
  border-radius: 999px;
  color: #eaf4f2;
  opacity: 0.7;
  transition:
    opacity 0.15s ease,
    background-color 0.15s ease;
}

.hero .gh-corner:hover,
.hero .gh-corner:focus-visible {
  opacity: 1;
  background-color: rgba(234, 244, 242, 0.12);
}

.gh-corner .gh {
  width: 1.2rem;
  height: 1.2rem;
}

.logo {
  display: block;
  width: min(100%, 340px);
  height: auto;
  margin: 0 auto;
}

.tagline {
  font-size: clamp(1.25rem, 3.6vw, 1.5rem);
  line-height: 1.4;
  margin: 1.5rem auto 0;
  max-width: 34ch;
  text-wrap: balance;
}

.lede {
  color: #b9cfcb;
  margin: 1.25rem 0 0;
  text-align: left;
}

.shot {
  margin: 2.5rem 0 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.shot figcaption {
  color: #9db4b1;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  text-align: left;
}

.note {
  color: #9db4b1;
  font-size: 0.95rem;
  margin: 2rem 0 0;
  text-align: left;
}

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

main {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0;
}

main section + section {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.6rem);
  line-height: 1.35;
  margin: 0 0 0.75rem;
}

h3 {
  font-size: clamp(1.15rem, 2.8vw, 1.3rem);
  line-height: 1.35;
  margin: 0 0 0.6rem;
}

h3 a {
  text-decoration: none;
}

h3 a:hover {
  text-decoration: underline;
}

p {
  margin: 0 0 1rem;
}

.sub {
  color: var(--muted);
}

.product {
  border-top: 1px solid var(--rule);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
}

/* The first one sits directly under its own section heading, so a rule there
   would orphan that heading rather than separate anything. */
.product--first {
  border-top: none;
  padding-top: 0;
  margin-top: 1.5rem;
}

/* ---- Feature strip ---- */

.strip {
  display: grid;
  /* 16rem keeps this at a 2x2 block rather than 3-across with a stray fourth. */
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.75rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.strip li {
  display: flex;
  gap: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Line-art to match the wireframe cage in the logo: stroked, never filled. */
.ico {
  flex: none;
  width: 27px;
  height: 27px;
  margin-top: 0.1rem;
  color: var(--tok-key);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Title on its own line: inline, the title nearly fills the column and leaves a
   single dangling word of the description behind it. */
.strip b {
  display: block;
  color: var(--fg);
  margin-bottom: 0.1rem;
}

/* ---- Before / After ---- */

.ba {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.ba-panel {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1rem;
  background: var(--bg);
}

.ba-panel.is-on {
  border-color: color-mix(in srgb, var(--brand-cyan) 45%, var(--rule));
}

.ba-head {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.ba-panel.is-on .ba-head {
  color: var(--brand-cyan);
}

.ba-step,
.ba-arrow {
  margin: 0;
}

.ba-arrow {
  color: var(--muted);
  line-height: 1.2;
  margin: 0.35rem 0;
}

.ba-list {
  list-style: none;
  margin: 0.35rem 0 0.9rem;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.9;
}

.ba-list li {
  position: relative;
  padding-left: 1.5rem;
  white-space: nowrap;
  overflow-x: auto;
}

/* The markers sit in a smaller monospace list, but reading them at that size is
   a squint — pull them back up to the body size and re-align to the line box. */
.ba-list li::before {
  position: absolute;
  left: 0;
  font-size: var(--text);
  line-height: 1.596rem;
  font-family: var(--font-body);
}

.ba-list .open {
  color: var(--muted);
}

.ba-list .open::before {
  content: "→";
}

.ba-list .ok::before {
  content: "✓";
  color: #1f9e6a;
}

.ba-list .no::before {
  content: "✕";
  color: #d0563f;
}

.ba-list .no b {
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #d0563f;
}

.ba-foot {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---- Numbered steps ---- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.5rem 0 0;
  padding: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
}

.steps > li + li {
  margin-top: 2rem;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand-cyan) 50%, var(--rule));
  color: var(--brand-cyan);
  font-size: 0.9rem;
  font-weight: 500;
}

.steps h3 {
  margin: 0.15rem 0 0.4rem;
}

.steps p {
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.shot.inline {
  margin: 0;
}

.shot.inline img {
  border-color: var(--rule);
}

/* ---- Comparison table ---- */

.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0 1rem;
}

.cmp {
  border-collapse: collapse;
  width: 100%;
  min-width: 40rem;
  font-size: 0.9rem;
}

.cmp th,
.cmp td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.cmp thead th {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-width: 2px;
}

.cmp thead th:nth-child(2) {
  color: var(--brand-cyan);
}

.cmp tbody th {
  font-weight: 500;
  color: var(--muted);
}

.cmp td:first-of-type {
  color: var(--fg);
}

.fine {
  font-size: 0.9rem;
  color: var(--muted);
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

pre code {
  font-size: inherit;
}

.more {
  margin: 0;
}

/* ---- CTA ---- */

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  border-top: 1px solid var(--rule);
  padding-top: clamp(2rem, 5vw, 3rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  /* Equal basis and equal grow, so both buttons end up the same width whatever
     their label; the cap keeps them from stretching across the whole column. */
  flex: 1 1 14rem;
  max-width: 18rem;
  background: var(--brand-bg);
  color: #eaf4f2;
  border-radius: 8px;
  padding: 0.7rem 1.4rem;
  text-decoration: none;
}

.button code {
  color: var(--brand-mint);
}

.button:hover {
  background: #35494e;
}

/* ---- Footer ---- */

footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

footer p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.1rem 0.45rem;
}

footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* The GitHub mark is a solid logo, unlike the stroked .ico set above. Defined
   once as a <symbol> and referenced with <use>, so it isn't repeated per link.
   Stays at the base text size rather than shrinking with the footer's type. */
.gh {
  width: var(--text);
  height: var(--text);
  fill: currentColor;
  flex: none;
}

/* In the footer it sits inside a link, so currentColor would make it the link
   green — keep it the same grey as the text around it. */
footer .gh {
  fill: var(--muted);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
}
