:root {
  color-scheme: light;
  --leaf: #217a43;
  --mint: #e7f4e9;
  --ink: #172119;
  --muted: #627067;
  --paper: #fbfdf9;
  --line: #dbe5dc;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 12% 8%, rgba(91, 172, 106, .18), transparent 32%),
    linear-gradient(145deg, var(--paper), #f1f7ee);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  width: min(100%, 470px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 24px 70px rgba(26, 76, 42, .13);
}

.mark {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50% 50% 50% 14px;
  background: var(--leaf);
  color: var(--white);
  font-size: 27px;
  transform: rotate(-8deg);
}

.mark span { transform: rotate(8deg); }

h1 {
  margin: 22px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 9vw, 46px);
  line-height: .98;
  letter-spacing: -.035em;
}

p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

nav { display: grid; gap: 12px; }

a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

a::after { content: "→"; color: var(--leaf); font-size: 23px; }
a:hover { border-color: var(--leaf); background: var(--mint); transform: translateY(-1px); }
a:focus-visible { outline: 3px solid rgba(33, 122, 67, .28); outline-offset: 3px; }

footer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 420px) {
  body { padding: 14px; }
  main { padding: 24px 20px; border-radius: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  a { transition: none; }
}
