:root {
  --bg: #0e1116;
  --panel: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #d6905b;
  --accent-soft: rgba(214, 144, 91, 0.18);

  --mono: ui-monospace, "SF Mono", Monaco, Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}
a:hover { border-bottom-color: var(--accent); }

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 4px;
}

/* ---------------------------------------------------------------- topbar */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.logo {
  width: 28px;
  height: 28px;
  display: block;
}

.topbar-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.topbar-links a {
  color: var(--muted);
  border-bottom-color: transparent;
}
.topbar-links a:hover {
  color: var(--text);
  border-bottom-color: transparent;
}
.topbar-links .github-link {
  color: var(--accent);
}
.topbar-links .github-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 720px) {
  .topbar { padding: 12px 16px; }
  .topbar-links { gap: 16px; font-size: 12px; }
}

/* ---------------------------------------------------------------- layout */

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
section:last-of-type { border-bottom: none; }

h1, h2, h3 {
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 24px;
  font-weight: 600;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
}

p { margin: 0 0 16px 0; }

@media (max-width: 720px) {
  main { padding: 0 16px; }
  section { padding: 48px 0; }
}

/* ---------------------------------------------------------------- hero */

/* Wide screens get a 2-column hero: text on the left, real app
   screenshot on the right. Below 980 px the screenshot drops under
   the text so the column doesn't squeeze either side. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
  /* Break out of the 960 px main container so the screenshot side
     gets enough breathing room on big monitors without losing the
     centred text alignment. */
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.hero-text { min-width: 0; }
.hero-image { min-width: 0; }

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45),
              0 8px 16px rgba(0, 0, 0, 0.3);
}

.hero .lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 580px;
  margin-top: 24px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Stack on narrow screens — one column, image below text. */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 64px;
  }
  .hero-image img {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4),
                0 4px 8px rgba(0, 0, 0, 0.25);
  }
}

.btn {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  display: inline-block;
  border-bottom: 1px solid var(--border); /* override the link rule */
}
.btn:hover {
  border-bottom: 1px solid var(--border);
}
.btn.primary {
  background: var(--accent);
  color: #0e1116;
  border-color: var(--accent);
  font-weight: 600;
}
.btn.primary:hover {
  background: #e09e6c;
  border-color: #e09e6c;
}
.btn.ghost {
  border-color: var(--accent);
  color: var(--accent);
}
.btn.ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ---------------------------------------------------------------- bullets */

.bullet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.bullet h3 { color: var(--accent); }
.bullet p { color: var(--muted); margin: 0; }

@media (max-width: 720px) {
  .bullet-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------------------------------------------------------------- recipe */

.recipe-lead {
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 24px;
}

/* ---------------------------------------------------------------- snippet */

pre.snippet {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 22px;
  overflow-x: auto;
  margin: 0 0 24px 0;
}

pre.snippet .c {
  color: var(--muted);
  font-style: italic;
}

/* ---------------------------------------------------------------- status */

.status-lead {
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 24px;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.status-grid h3 {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.status-grid ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.status-grid li {
  margin-bottom: 8px;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .status-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------------------------------------------------------------- oss + footer */

.oss .quiet {
  color: var(--muted);
  font-size: 14px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 32px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
footer a {
  color: var(--muted);
  border-bottom-color: transparent;
}
footer a:hover {
  color: var(--text);
  border-bottom-color: transparent;
}
footer .dot {
  margin: 0 8px;
  opacity: 0.5;
}
