:root {
  color-scheme: light dark;
  --bg: #f4f7f5;
  --surface: #ffffff;
  --text: #14221d;
  --muted: #5d6d66;
  --accent: #1d786a;
  --border: #d9e2de;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

header, main, footer {
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
}

header { padding: 42px 0 24px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

main {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

h1 { margin: 0 0 4px; font-size: clamp(30px, 7vw, 44px); line-height: 1.15; }
h2 { margin: 32px 0 8px; font-size: 21px; line-height: 1.25; }
p, ul { margin: 8px 0 14px; }
ul { padding-left: 22px; }
.updated, .muted { color: var(--muted); }
a { color: var(--accent); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-block;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 7px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 26px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

footer a { color: inherit; }

@media (max-width: 560px) {
  header { padding-top: 26px; }
  main { padding: 24px 20px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1512;
    --surface: #131f1b;
    --text: #edf5f1;
    --muted: #a5b5ae;
    --accent: #58b7a4;
    --border: #2a3b34;
  }

  .button { color: #07110e; }
}
