@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap");

/* ── Reset ─────────────────────────────────────────────────────────── */

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

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body,
h1,
h2,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body {
  min-height: 100vh;
  line-height: 1.5;
}

h1,
h2 {
  line-height: 1.1;
  text-wrap: balance;
}

img,
picture {
  max-width: 100%;
  display: block;
}

/* ── Design tokens ─────────────────────────────────────────────────── */

:root {
  color-scheme: light dark;

  --font-family: "Lexend", sans-serif;
  --text: #333;
  --text-strong: #000;
  --text-muted: #999;
  --text-faint: #ccc;
  --bg: #fff;
  --bg-alt: #f5f5f5;
  --accent: darkgoldenrod;
  --orange: #f97316;
  --orange-muted: #fdba74;
  --border: #e5e5e5;
  --link: #333;
  --link-visited: #888;
  --shadow: 0 1px 3px rgb(0 0 0 / 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ccc;
    --text-strong: #fff;
    --text-muted: #666;
    --text-faint: #444;
    --bg: #111;
    --bg-alt: #1a1a1a;
    --accent: goldenrod;
    --orange: #f97316;
    --orange-muted: #9a3412;
    --border: #262626;
    --link: #ccc;
    --link-visited: #777;
    --shadow: 0 1px 3px rgb(0 0 0 / 0.3);
  }
}

/* ── Base ──────────────────────────────────────────────────────────── */

body {
  font-size: 1rem;
  font-family: var(--font-family);
  font-optical-sizing: auto;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--link);
  text-decoration-color: var(--text-faint);
}

a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

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

/* ── Layout ────────────────────────────────────────────────────────── */

.container {
  width: min(100%, 42rem);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header ────────────────────────────────────────────────────────── */

.landing-header {
  padding-block: 2rem 1rem;
}

.landing-header h1 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-strong);
}

.landing-header h1 img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
}

/* ── Main content ──────────────────────────────────────────────────── */

main {
  flex: 1;
}

/* ── Hero ──────────────────────────────────────────────────────────── */

.hero {
  padding-block: 2rem;
  border-bottom: 1px solid var(--border);
}

.hero h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 36rem;
  line-height: 1.6;
}

/* ── Features ──────────────────────────────────────────────────────── */

.features {
  padding-block: 2rem;
  border-bottom: 1px solid var(--border);
}

.features ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.features li {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  padding-left: 1.25rem;
  position: relative;
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--orange);
}

.features li strong {
  font-weight: 600;
  color: var(--text-strong);
}

/* ── Screenshot ────────────────────────────────────────────────────── */

.screenshot {
  padding-block: 2.5rem;
  display: flex;
  justify-content: center;
}

.screenshot img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

@media (prefers-color-scheme: dark) {
  .screenshot img {
    box-shadow: var(--shadow), 0 4px 16px rgb(0 0 0 / 0.4);
  }
}

/* ── Download ──────────────────────────────────────────────────────── */

.download {
  padding-block: 2rem 3rem;
  text-align: center;
}

.download h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 1.5rem;
}

.install-option {
  text-align: left;
  margin-bottom: 1.5rem;
}

.install-option h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 0.5rem;
}

.install-option pre {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.5;
}

.install-option code {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: inherit;
}

.install-option p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.install-option p code {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  padding: 0.1em 0.35em;
}

.source-link {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* ── Footer ────────────────────────────────────────────────────────── */

footer {
  margin-top: auto;
  padding-block: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

footer a {
  color: var(--text-muted);
}
