:root {
  color-scheme: light;
  --bg: #f6f1e8;
  --bg-accent: #efe6d6;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-border: rgba(65, 49, 30, 0.12);
  --text: #1f1a16;
  --muted: #64584e;
  --accent: #7a4f2b;
  --accent-strong: #1f5f54;
  --shadow: 0 20px 60px rgba(61, 45, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(122, 79, 43, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(31, 95, 84, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, #fcfaf6 46%, #fffdf9 100%);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.5;
}

code,
pre {
  font-family: "SFMono-Regular", "Cascadia Mono", "Liberation Mono", Consolas, monospace;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero,
.section,
.footer-panel {
  margin-bottom: 28px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  border-radius: 28px;
}

.hero {
  padding: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 95, 84, 0.12);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow > a {
  color: rgb(0, 100, 0);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}
.primary-h1 {
  max-width: 16ch;
}

.lede {
  max-width: 68ch;
  margin-top: 20px;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #a46c34);
  box-shadow: 0 14px 28px rgba(122, 79, 43, 0.24);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(65, 49, 30, 0.14);
}

.hero-grid,
.steps,
.flag-grid {
  display: grid;
  gap: 16px;
}

.hero-grid {
  margin-top: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.card,
.flag,
.stack,
.code-block {
  border: 1px solid rgba(65, 49, 30, 0.1);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 22px;
}

.panel {
  padding: 22px;
}

.panel-label {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
}

.panel h2,
.section-head h2,
.footer-panel h2 {
  font-size: 1.35rem;
  line-height: 1.08;
  margin-bottom: 10px;
}

.panel p,
.section-head p,
.footer-panel p,
.card p,
.flag span,
.list li {
  color: var(--muted);
}

.section,
.footer-panel {
  padding: 28px 32px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head p {
  max-width: 62ch;
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 22px;
}

.card span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 14px;
  background: rgba(31, 95, 84, 0.12);
  color: var(--accent-strong);
  font-weight: 800;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.stack {
  padding: 28px;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.list li strong {
  color: var(--text);
}

.flag-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flag {
  padding: 16px 18px;
}

.flag code {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.96rem;
}

.code-block {
  overflow: auto;
  padding: 18px 20px;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #2a231e;
}

code {
  padding: 0.12em 0.36em;
  border-radius: 8px;
  background: rgba(122, 79, 43, 0.08);
}

.code-block code {
  padding: 0;
  background: transparent;
}

.footer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 920px) {
  .hero-grid,
  .steps,
  .split,
  .flag-grid {
    grid-template-columns: 1fr;
  }

  .footer-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .section,
  .footer-panel {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding-top: 28px;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 1120px);
    padding-top: 10px;
  }

  .hero,
  .section,
  .footer-panel {
    border-radius: 20px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
