:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --text: #121212;
  --muted: #4b5563;
  --line: #e5e7eb;
  --card: #ffffff;
  --code: #f3f4f6;
  --button: #111111;
  --button-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d10;
    --bg-soft: #12161d;
    --text: #f3f4f6;
    --muted: #c5cad3;
    --line: #2a2f3a;
    --card: #0f1319;
    --code: #0c1016;
    --button: #f3f4f6;
    --button-text: #111111;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-underline-offset: 2px;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 4.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.25rem;
  align-items: start;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.lede {
  margin-top: 0.9rem;
  font-size: clamp(1rem, 1.65vw, 1.2rem);
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.68rem 1.1rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.button.secondary {
  border-color: var(--line);
}

.code-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.07);
  overflow: hidden;
}

.code-card h2 {
  margin: 0;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}

.code-card pre {
  margin: 0;
  padding: 1rem;
  background: var(--code);
  overflow-x: auto;
  font-size: 0.85rem;
}

section {
  padding: 3.6rem 0;
}

section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.02em;
}

.prose {
  max-width: 760px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem;
  background: var(--card);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
}

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

.steps {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.step {
  border-left: 3px solid var(--line);
  padding-left: 0.85rem;
}

.step h3 {
  margin: 0;
  font-size: 1rem;
}

.step p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.generator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

form label {
  display: block;
  font-weight: 600;
  margin: 0.6rem 0 0.35rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  padding: 0.65rem 0.75rem;
}

textarea {
  resize: vertical;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .generator-grid {
    grid-template-columns: 1fr;
  }
}