/*
 * SPDX-FileCopyrightText: 2026 Aaghash Murugesan <aaghashm@gmail.com>
 * SPDX-License-Identifier: CC0-1.0
 */

/* Breeze colors. */
:root {
  --bg: #fcfcfc;
  --bg-alt: #eff0f1;
  --fg: #232629;
  --muted: #5d6166;
  --border: #d1d5d9;
  --accent: #3daee9;
  --link: #1b6d9e;
  --code-bg: #232629;
  --code-fg: #eff0f1;
  --code-muted: #a1a9b1;
  --focus: #3daee9;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1e20;
    --bg-alt: #202326;
    --fg: #eff0f1;
    --muted: #a1a9b1;
    --border: #3b4045;
    --link: #6cc4f0;
    --code-bg: #141618;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-wrap: break-word;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  padding: 8px 12px;
  background: var(--bg);
  z-index: 2;
}

.skip:focus {
  top: 8px;
}

/* Top bar */

.bar {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 24px;
  min-height: 56px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}

.bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 0.95rem;
}

.bar nav a {
  color: var(--muted);
  text-decoration: none;
}

.bar nav a:hover {
  color: var(--fg);
  text-decoration: underline;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 56px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 24px;
}

.hero-icon {
  display: block;
  margin-bottom: 12px;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 650;
  margin: 0;
  letter-spacing: -0.01em;
}

.tagline {
  text-wrap: balance;
  font-size: 1.3rem;
  color: var(--muted);
  margin: 6px 0 16px;
}

.hero .install-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 0;
  padding: 0;
  margin: 28px 0 0;
}

.hero-code code {
  display: block;
  padding-left: 2ch;
  text-indent: -2ch;
}

.hero-code pre {
  white-space: pre-wrap;
  overflow-wrap: normal;
  font-size: 15px;
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 36px rgb(0 0 0 / 0.16);
}

.shot figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Sections */

section {
  padding-top: 56px;
}

h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 6px;
}

p {
  margin: 0 0 12px;
}

.small {
  font-size: 0.95rem;
}

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

#how p,
#questions p,
#install > p,
#usage > p {
  max-width: 68ch;
}

.features {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 32px;
}

.features h3 {
  margin: 12px 0 4px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  line-height: 1.3;
}

.features p {
  margin: 0;
  color: var(--muted);
}

.cli-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0 40px;
}

/* Code */

.code {
  position: relative;
  margin: 8px 0 16px;
}

pre {
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 42px 16px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow-x: auto;
  margin: 0;
  font: 14px/1.55 "Noto Sans Mono", ui-monospace, "DejaVu Sans Mono", Menlo, monospace;
  tab-size: 4;
}

pre .out {
  color: var(--code-muted);
}

.copy {
  position: absolute;
  top: 8px;
  right: 8px;
  font: inherit;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #4d5357;
  background: #31363b;
  color: var(--code-fg);
  cursor: pointer;
}

.copy:hover {
  border-color: var(--accent);
}

code {
  font-family: "Noto Sans Mono", ui-monospace, "DejaVu Sans Mono", Menlo, monospace;
  font-size: 0.9em;
}

:not(pre) > code {
  background: var(--bg-alt);
  border-radius: 4px;
  padding: 1px 5px;
}

kbd {
  font: 13px "Noto Sans Mono", ui-monospace, Menlo, monospace;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--bg-alt);
  white-space: nowrap;
}

/* Options and keys */

.options {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 16px;
}

.options th,
.options td {
  text-align: left;
  padding: 7px 10px 7px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.options td:first-child {
  white-space: nowrap;
  padding-right: 16px;
}

.options th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
}

.keys {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 8px 0 0;
}

.keys dd {
  margin: 0;
}

/* Tabs */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 20px;
  border-bottom: 1px solid var(--border);
}

.tabs button {
  font: inherit;
  font-size: 0.95rem;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: -1px;
}

.tabs button:hover {
  color: var(--fg);
}

.tabs button[aria-selected="true"] {
  color: var(--fg);
  background: var(--bg);
  border-color: var(--border);
  font-weight: 600;
}

.panel {
  padding-top: 12px;
}

/* Footer */

footer {
  margin-top: 72px;
  padding-top: 20px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

footer p {
  margin: 0 0 6px;
}

/* Narrower screens */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 40px;
  }

  .shot {
    max-width: 560px;
    margin: 0 auto;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cli-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.9rem;
  }

  .hero {
    padding-top: 28px;
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .bar-inner {
    min-height: 0;
  }
}

.hero-code .nb {
  white-space: nowrap;
}
