:root {
  color-scheme: light dark;
  --bg: #f7f7f2;
  --text: #141512;
  --muted: #5f6259;
  --line: #d9dbc9;
  --panel: #ffffff;
  --accent: #147c72;
  --accent-strong: #075e5a;
  --ink: #10151f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101411;
    --text: #f3f5eb;
    --muted: #b8bda9;
    --line: #313729;
    --panel: #181d17;
    --accent: #7fd8c4;
    --accent-strong: #a6eadb;
    --ink: #eaf2ff;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

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

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

.hero {
  min-height: 58vh;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.mark {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #7fd8c4;
  font-size: 58px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 20px 45px rgb(0 0 0 / 18%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #041816;
}

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

article {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  letter-spacing: 0;
}

p {
  margin: 0 0 16px;
}

.text-page {
  max-width: 780px;
}

.text-page h1 {
  margin-top: 28px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
}

.text-page h2 {
  margin-top: 30px;
}

.muted {
  color: var(--muted);
}

.back {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

pre {
  overflow-x: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 24px, 1060px);
    padding: 28px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: auto;
    padding-bottom: 28px;
  }

  .mark {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    font-size: 42px;
  }

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