:root {
  color-scheme: light dark;
  --background: #f7f8f4;
  --surface: #ffffff;
  --text: #19201d;
  --secondary: #5e6964;
  --border: #dce3df;
  --accent: #48b8aa;
  --accent-soft: #e4f5f1;
  --yellow: #f4bf3f;
  --max-width: 780px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: #177c71;
  text-underline-offset: 3px;
}

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

header {
  padding: 56px 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 750;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

h1,
h2 {
  line-height: 1.2;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 8vw, 48px);
}

h2 {
  margin: 0 0 12px;
  font-size: 23px;
}

p,
ul {
  margin-top: 0;
}

.intro {
  max-width: 650px;
  margin-bottom: 12px;
  color: var(--secondary);
  font-size: 19px;
}

.updated {
  color: var(--secondary);
  font-size: 14px;
}

main {
  display: grid;
  gap: 14px;
  padding-bottom: 44px;
}

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

li + li {
  margin-top: 8px;
}

.notice {
  border-left: 4px solid var(--yellow);
}

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

.button-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.button-link.secondary {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

footer {
  padding: 0 0 48px;
  color: var(--secondary);
  font-size: 14px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111613;
    --surface: #18201c;
    --text: #f2f6f3;
    --secondary: #b4c0ba;
    --border: #34423b;
    --accent: #58c8ba;
    --accent-soft: #183c36;
  }

  a {
    color: #77d8cc;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  header {
    padding-top: 34px;
  }

  section {
    padding: 19px;
  }

  .button-link {
    width: 100%;
  }
}
