:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --paper: #ffffff;
  --ink: #17211c;
  --muted: #526159;
  --line: #d8ded7;
  --accent: #106a5b;
  --accent-dark: #0b5146;
  --soft: #e4f1ed;
  --focus: #b45f00;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  transform: translateY(-96px);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  z-index: 2;
}

.skip-link:focus {
  transform: translateY(0);
}

main,
footer {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 42px;
  align-items: center;
  padding: 54px 0 32px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.03;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 18px;
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

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

.button.secondary {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.sample,
.band,
.card {
  border-radius: 8px;
}

.sample,
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px;
}

.template {
  margin: 0;
  padding: 16px;
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 7px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.status {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--accent-dark);
  font-weight: 700;
}

section {
  padding: 30px 0;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: 0;
}

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

.card strong {
  display: block;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.band {
  background: var(--soft);
  border: 1px solid #bddbd4;
  padding: 22px;
}

footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}

@media (max-width: 760px) {
  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 40px;
  }

  .actions,
  .button {
    width: 100%;
  }
}
