:root {
  --bg: #fbf7f0;
  --surface: #ffffff;
  --text: #1c1813;
  --muted: #6b6257;
  --accent: #8a5a2b;
  --accent-text: #ffffff;
  --border: #e8dfd2;
  --hero-bg: #07111a;
  --hero-text: #f3dab1;
  --hero-muted: #b9a888;
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b141c;
    --surface: #121e29;
    --text: #efe6d8;
    --muted: #a59a8a;
    --accent: #f3dab1;
    --accent-text: #07111a;
    --border: #22313f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: var(--hero-bg);
  color: var(--hero-text);
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 16px 0;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hero-text);
  text-decoration: none;
  font-weight: 700;
  margin-right: auto;
}
.site-header .brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.site-header nav a:not(.brand) {
  color: var(--hero-muted);
  text-decoration: none;
  font-size: 15px;
}
.site-header nav a:not(.brand):hover { color: var(--hero-text); }

/* Hero */
.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 48px 0 72px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(36px, 7vw, 60px);
  line-height: 1.1;
  margin: 0 0 16px;
}
.hero p {
  color: var(--hero-muted);
  font-size: 19px;
  max-width: 560px;
  margin: 0 auto 32px;
}
.cycler {
  display: inline-block;
  min-height: 1.2em;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  background: var(--hero-text);
  color: var(--hero-bg);
}
.button.secondary {
  background: transparent;
  color: var(--hero-text);
  border: 1px solid var(--hero-muted);
}
.button svg { width: 20px; height: 20px; fill: currentColor; }

/* Sections */
section { padding: 64px 0; }
section h2 {
  font-size: 30px;
  margin: 0 0 8px;
  text-align: center;
}
section .lede {
  color: var(--muted);
  text-align: center;
  margin: 0 auto 40px;
  max-width: 560px;
}

.samples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.sample {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.sample .name {
  font-size: 13px;
  color: var(--muted);
}
.sample .text {
  font-size: 22px;
  overflow-wrap: anywhere;
}
/* Zalgo marks stack far above and below the line. */
.sample .text.tall {
  line-height: 2.4;
  overflow: hidden;
}

@media (max-width: 480px) {
  .site-header nav a:not(.brand) { font-size: 14px; }
  .site-header nav { gap: 6px 14px; }
  section { padding: 48px 0; }
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature .icon { font-size: 28px; }
.feature h3 { margin: 8px 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  vertical-align: middle;
}

.banner-demo {
  background: #0b0f0b;
  color: #39ff14;
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
  font: 600 13px/1.15 ui-monospace, "SF Mono", Menlo, "Roboto Mono", monospace;
  margin: 0;
}

/* Prose pages */
.prose {
  max-width: 720px;
  padding-top: 48px;
  padding-bottom: 64px;
}
.prose h1 { font-size: 36px; margin: 0 0 4px; }
.prose h2 { font-size: 22px; margin: 32px 0 8px; }
.prose .updated { color: var(--muted); font-style: italic; }

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--muted);
  font-size: 15px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
footer a { color: var(--muted); }
footer .copy { margin-right: auto; }
