:root {
  color-scheme: light;
  --ink: #1d1c17;
  --muted: #5f6159;
  --paper: #fffdf7;
  --line: #d9d4c7;
  --accent: #d43f2f;
  --accent-dark: #9f2a21;
  --green: #0f766e;
  --shadow: 0 22px 70px rgb(29 28 23 / 14%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    linear-gradient(135deg, rgb(255 253 247 / 92%), rgb(244 247 239 / 94%)),
    radial-gradient(circle at 20% 15%, rgb(212 63 47 / 18%), transparent 30%),
    radial-gradient(circle at 90% 80%, rgb(15 118 110 / 18%), transparent 28%),
    var(--paper);
}

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

.hero {
  display: grid;
  min-height: 58vh;
  align-content: center;
  gap: 22px;
  padding: clamp(40px, 8vw, 92px) 0;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-block-start: 0;
}

h1 {
  max-width: 780px;
  margin-block-end: 0;
  font-size: clamp(3.5rem, 10vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lede {
  max-width: 640px;
  margin-block-end: 0;
  color: var(--muted);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

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

.button.primary {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 26px rgb(212 63 47 / 22%);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  background: rgb(255 255 255 / 62%);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 8px;
}

article {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgb(255 255 255 / 72%);
  box-shadow: var(--shadow);
}

h2 {
  margin-block-end: 12px;
  font-size: 1.1rem;
}

article p {
  margin-block-end: 0;
  color: var(--muted);
  line-height: 1.65;
}

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.12rem 0.32rem;
  background: rgb(255 255 255 / 70%);
  color: var(--accent-dark);
  font-size: 0.95em;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 640px);
    padding-top: 42px;
  }

  .hero {
    min-height: auto;
    padding: 36px 0 46px;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 5.8rem);
  }

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

  .button {
    width: 100%;
  }

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