:root {
  --brand-primary: #075e54;
  --brand-accent: #d97706;
  --brand-surface: #f2f8f6;
  --brand-text: #16302b;
  --brand-focus: #b45309;
  --brand-radius: 0.7rem;
}

[data-md-color-scheme="default"] {
  --md-primary-fg-color: var(--brand-primary);
  --md-accent-fg-color: var(--brand-accent);
  --md-typeset-a-color: #06695d;
}

.md-typeset h1 {
  color: var(--brand-text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.md-typeset { font-size: 0.8rem; }

.md-header,
.md-tabs,
.md-nav,
.md-footer,
.md-search { font-size: 0.8rem; }

.md-typeset h2 { font-size: 0.9rem; font-weight: 650; }
.md-typeset h3,
.md-typeset h4 { font-size: 0.8rem; }

.md-typeset p,
.md-typeset li { line-height: 1.65; }

.md-typeset p { max-width: 68ch; }

.md-typeset table:not([class]) {
  font-size: 0.8rem;
  line-height: 1.65;
}

.md-typeset .admonition,
.md-typeset details {
  font-size: inherit;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.md-button { min-height: 44px; border-radius: var(--brand-radius); }

:focus-visible {
  outline: 3px solid var(--brand-focus) !important;
  outline-offset: 3px;
}

@media (max-width: 390px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .md-button { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
