:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --bg-2: #F2F2F7;
  --label: #000000;
  --label-2: #6C6C70;
  --separator: #C6C6C8;
  --link: #1F5FD6;
  --brand: #4E84FA;
  --on-brand: #000000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #1C1C1E;
    --label: #FFFFFF;
    --label-2: #AEAEB2;
    --separator: #38383A;
    --link: #4E84FA;
    --brand: #4E84FA;
    --on-brand: #000000;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; }

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

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.band :focus-visible { outline-color: var(--on-brand); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.125rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1875rem; }
p { margin: 0 0 1em; }

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 0.5rem 1rem;
  background: var(--bg);
  color: var(--link);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 8px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Header and footer */
.site-head { border-bottom: 1px solid var(--separator); }
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--label);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
}
.icon-head { width: 32px; height: 32px; border-radius: 22.37%; display: block; }
.site-head nav ul, .site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-head nav a { text-decoration: none; font-weight: 500; }
.site-head nav a:hover { text-decoration: underline; }

.site-foot {
  border-top: 1px solid var(--separator);
  color: var(--label-2);
  font-size: 0.9375rem;
  padding: 2rem 0 3rem;
  margin-top: 3rem;
}
.site-foot p { margin: 0.75rem 0 0; }

/* Hero */
.band { background: var(--brand); color: var(--on-brand); }
.band a { color: var(--on-brand); }
.hero {
  display: grid;
  gap: 2rem;
  padding: 3rem 16px;
  align-items: center;
}
.hero .lede { font-size: 1.1875rem; max-width: 36rem; }
.icon-hero {
  width: 160px;
  height: 160px;
  border-radius: 22.37%;
  border: 3px solid var(--on-brand);
  display: block;
}
.placeholder {
  display: inline-block;
  margin: 0.5rem 0 0;
  padding: 0.75rem 1.25rem;
  border: 2px dashed var(--on-brand);
  border-radius: 12px;
  font-weight: 600;
}
@media (min-width: 640px) {
  .hero { grid-template-columns: 1fr auto; padding: 4.5rem 16px; }
}

/* Sections */
.section { padding: 3rem 0 0; }
.section > .wrap > p.intro { color: var(--label-2); max-width: 40rem; }

.points { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; }
.points li { background: var(--bg-2); border-radius: 16px; padding: 1.25rem; }
@media (min-width: 640px) { .points { grid-template-columns: repeat(3, 1fr); } }

.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--bg-2); border-radius: 16px; padding: 1.25rem; }
.card p { margin: 0; color: var(--label-2); }

/* FAQ */
details { background: var(--bg-2); border-radius: 12px; margin: 0 0 0.75rem; }
summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; }
details > div { padding: 0 1.25rem 1rem; }
details > div p:last-child { margin-bottom: 0; }

/* Document pages */
.doc { max-width: 68ch; margin: 0 auto; padding: 2.5rem 16px 0; }
.doc h2 { margin-top: 2rem; }
.doc h3 { margin-top: 1.5rem; }
.doc .meta { color: var(--label-2); }
.table-scroll { overflow-x: auto; margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--separator); }
td { overflow-wrap: anywhere; }
code { font-size: 0.875em; overflow-wrap: anywhere; }
