:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #17202a;
  --muted: #5d6b7a;
  --border: #dbe2ea;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --focus: #f59e0b;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--text);
  color: #ffffff;
  font-size: 0.85rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  background: #e8f3f1;
  color: var(--accent-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.hero,
.page-heading,
.text-panel,
.content-grid article {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.hero {
  min-height: 360px;
  display: grid;
  align-items: center;
  padding: 48px;
}

.page-heading,
.text-panel {
  padding: 36px;
}

.text-panel {
  margin-top: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 6vw, 4.75rem);
  line-height: 1;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.12rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-dark);
}

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

.content-grid article {
  padding: 24px;
}

code {
  padding: 2px 5px;
  border-radius: 6px;
  background: #eef2f6;
  color: #263241;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.95em;
}

.site-footer {
  padding: 28px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

*:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
    padding: 14px 20px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .page-shell {
    width: min(100% - 28px, 1120px);
    padding: 32px 0;
  }

  .hero,
  .page-heading,
  .text-panel {
    padding: 28px;
  }

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