:root {
  --background: #f8f7f5;
  --surface: #ffffff;
  --text: #251c1a;
  --muted: #70625e;
  --accent: #c2412d;
  --accent-dark: #963322;
  --line: #e8dedb;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: var(--accent); }

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.navigation { display: flex; flex-wrap: wrap; gap: 18px; }
.navigation a { color: var(--muted); text-decoration: none; }
.navigation a:hover { color: var(--accent); }

main {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.article,
.hero {
  max-width: 760px;
}

.article__header,
.hero { margin-bottom: 40px; }

h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.prose { font-size: 18px; }
.prose h2 { margin-top: 42px; font-size: 30px; line-height: 1.2; }
.prose img { display: block; max-width: 100%; height: auto; }
.prose_hero { margin-top: 28px; color: var(--muted); font-size: 21px; }

.page-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.page-list__item {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.page-list__item strong,
.page-list__item span { display: block; }
.page-list__item span { margin-top: 10px; color: var(--muted); }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.button:hover { background: var(--accent-dark); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.site-footer {
  min-height: 100px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.not-found {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
}

@media (max-width: 720px) {
  .site-header,
  .site-footer { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .navigation { gap: 12px; }
  main { padding: 48px 0; }
  .page-list { grid-template-columns: 1fr; }
}