:root {
  color-scheme: light;
  --bg: #fff8ef;
  --paper: #ffffff;
  --ink: #241d2e;
  --muted: #75697f;
  --brand: #6f3ff5;
  --brand-dark: #4e27bc;
  --line: #eadfce;
  --accent: #ffbf3f;
}

* {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.62;
}

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

header {
  padding: 30px 0 18px;
}

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

.mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand);
  color: white;
  font-size: 20px;
}

main {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  box-shadow: 0 10px 30px rgba(36, 29, 46, 0.07);
}

h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.05;
}

h2 {
  margin: 30px 0 8px;
  font-size: 21px;
  line-height: 1.25;
}

p,
li {
  font-size: 16px;
}

ul,
ol {
  padding-left: 22px;
}

a {
  color: var(--brand-dark);
  font-weight: 750;
}

.meta {
  margin: 10px 0 28px;
  color: var(--muted);
  font-weight: 650;
}

.lead {
  font-size: 18px;
}

.notice {
  border-left: 4px solid var(--accent);
  background: #fff8df;
  padding: 14px 16px;
  border-radius: 6px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

nav a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf3;
  text-decoration: none;
}

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

@media (max-width: 560px) {
  header,
  main,
  footer {
    width: min(100% - 28px, 880px);
  }

  main {
    padding: 24px 18px;
  }
}
