:root {
  color-scheme: dark light;
  --background: #0e1417;
  --text: #f2f5f7;
  --secondary: #a8b4bb;
  --line: #27323a;
  --link: #55d6f2;
  --card: #151d22;
  --icon-line: #2b3840;
  --dark-only: block;
  --light-only: none;
}

@media (prefers-color-scheme: light) {
  :root {
    --background: #ffffff;
    --text: #0e1417;
    --secondary: #55626b;
    --line: #dde3e7;
    --link: #1f55d6;
    --card: #f5f7f8;
    --icon-line: #dde3e7;
    --dark-only: none;
    --light-only: block;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

header {
  margin-bottom: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}

.brand-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--icon-line);
  border-radius: 13px;
}

.wordmark {
  height: 88px;
  width: auto;
}

.wordmark.dark {
  display: var(--dark-only);
}

.wordmark.light {
  display: var(--light-only);
}

h1 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  margin: 40px 0 8px;
  font-size: 21px;
  line-height: 1.3;
}

p,
ul {
  margin: 0 0 16px;
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--link);
}

.lead {
  color: var(--secondary);
  font-size: 21px;
  line-height: 1.45;
}

.secondary {
  color: var(--secondary);
}

.note {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--secondary);
  font-size: 15px;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 56px;
  font-size: 15px;
}

@media (max-width: 480px) {
  .brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
  }

  .wordmark {
    height: 72px;
  }

  h1 {
    font-size: 32px;
  }

  .home h1 {
    font-size: 30px;
  }

  .lead {
    font-size: 19px;
  }

  header {
    margin-bottom: 40px;
  }
}

.home header {
  margin-bottom: 28px;
}

.hero {
  margin-bottom: 40px;
  text-align: center;
}

.hero .lead {
  max-width: 560px;
  margin: 0 auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.card h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.45;
}

.home .note {
  margin-top: 32px;
  padding-top: 0;
  border-top: 0;
  text-align: center;
}

.home footer {
  justify-content: center;
  margin-top: 16px;
}
