:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --panel: #ffffff;
  --text: #171717;
  --muted: #5f655f;
  --line: #d9ddd4;
  --accent: #0f766e;
  --accent-strong: #0b4f49;
  --code: #eef4ef;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

code {
  border-radius: 4px;
  background: var(--code);
  padding: 0.1rem 0.3rem;
  font-size: 0.95em;
}

pre {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101817;
  color: #eaf3ee;
  padding: 1rem;
}

pre code {
  background: transparent;
  padding: 0;
}

.page-shell,
.doc-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.page-shell {
  padding: 56px 0;
}

.doc-shell {
  max-width: 780px;
  padding: 48px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 112px);
}

.hero img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.3rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.doc-shell h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.lede {
  margin: 24px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

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

.actions a,
.back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 0 14px;
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.grid article,
.doc-shell section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.grid article {
  min-height: 190px;
  padding: 20px;
}

.grid p,
.doc-shell p {
  color: var(--muted);
  line-height: 1.65;
}

.doc-shell section {
  margin-top: 18px;
  padding: 22px;
}

.back-link {
  margin-bottom: 28px;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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