:root {
  --bg: #f7f7f8;
  --bg-elevated: #ffffff;
  --text: #17181c;
  --text-muted: #55585f;
  --border: #e2e3e7;
  --accent: #d3262c;
  --accent-text: #ffffff;
  --code-bg: #eef0f3;
  --pill-bg: #eef0f3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101114;
    --bg-elevated: #1a1b1f;
    --text: #f1f1f3;
    --text-muted: #a3a6ad;
    --border: #2c2d33;
    --accent: #ff5a5f;
    --accent-text: #101114;
    --code-bg: #1f2024;
    --pill-bg: #232429;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

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

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

nav.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav.site-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

nav.site-nav a.current,
nav.site-nav a:hover {
  color: var(--text);
}

main {
  padding: 40px 0 20px;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 12px;
}

h2 {
  font-size: 1.3rem;
  margin: 40px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

h3 {
  font-size: 1.05rem;
  margin: 22px 0 6px;
}

p {
  margin: 0 0 14px;
  color: var(--text);
}

.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

ul,
ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

.pill-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.pill-list li {
  margin: 0;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.92rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 8px;
}

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  opacity: 0.9;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  text-decoration: none;
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.screenshot-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 12px;
  margin-bottom: 8px;
}

.screenshot-placeholder {
  flex: 0 0 auto;
  width: 160px;
  aspect-ratio: 9 / 19.5;
  border-radius: 22px;
  border: 1px dashed var(--border);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 12px;
}

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

code {
  background: var(--code-bg);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.9em;
}

.placeholder {
  background: var(--code-bg);
  border-radius: 4px;
  padding: 1px 6px;
}

details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
}

summary {
  font-weight: 600;
  cursor: pointer;
}

summary::marker {
  color: var(--accent);
}

details p:last-child {
  margin-bottom: 0;
}

details[open] summary {
  margin-bottom: 8px;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 24px 0 40px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

footer.site-footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.55rem;
  }

  main {
    padding-top: 28px;
  }
}
