:root {
  color-scheme: light dark;
  --page: #f3f7f5;
  --surface: #fbfdfc;
  --surface-strong: #ffffff;
  --ink: #10201c;
  --muted: #52645f;
  --line: #cbd8d3;
  --accent: #087861;
  --accent-strong: #05604e;
  --accent-soft: #d9eee7;
  --danger: #a33131;
  --shadow: 0 24px 70px rgba(19, 54, 45, 0.11);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

h1,
h2,
p {
  overflow-wrap: normal;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  width: min(100% - 48px, 1120px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  background: var(--page);
}

.site-header-inner {
  display: flex;
  min-height: 55px;
  align-items: center;
}

.site-logo {
  color: inherit;
  font-size: 1.05rem;
  font-weight: 820;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 24px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.button:hover {
  background: var(--accent-strong);
}

.button:active {
  background: #034d3f;
}

.button:disabled {
  background: #8b9c97;
  cursor: not-allowed;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 120px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  max-width: none;
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 40px, 1120px);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 32px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0d1513;
    --surface: #121d1a;
    --surface-strong: #17231f;
    --ink: #eff8f5;
    --muted: #adc0ba;
    --line: #354741;
    --accent: #46b99d;
    --accent-strong: #82d8c3;
    --accent-soft: #1a3a32;
    --danger: #ff9b9b;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  }

  .button {
    color: #07100e;
  }

  .button:active {
    background: #9ee3d1;
  }
}

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