:root {
  color-scheme: light dark;
  --background: #faf9fa;
  --text: #14181f;
  --muted: #66646b;
  --accent: #aa314e;
  --line: #e8e5e8;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

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

.landing {
  display: flex;
  flex-direction: column;
}

.brand {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 80px 28px;
}

.brand picture {
  display: block;
  width: min(392px, 78vw);
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.footer {
  padding: 28px 24px max(28px, env(safe-area-inset-bottom));
}

.footer nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 32px;
}

a {
  color: var(--muted);
  text-decoration: none;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 2px;
}
.footer a {
  font-size: 13px;
  line-height: 1.6;
  padding: 5px 0;
}

.document {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px;
}
.document header {
  margin-bottom: 64px;
}
.document header img {
  width: 180px;
  height: auto;
}
.document h1 {
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.document h2 {
  margin: 40px 0 16px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.document p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}
.document .document-meta {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.document a {
  overflow-wrap: anywhere;
}
.table-scroll {
  overflow-x: auto;
  margin: 24px 0;
}
.document table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.document th,
.document td {
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  vertical-align: top;
}
.document th {
  background: var(--line);
}
.document td p,
.document th p {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}
.document .back {
  display: inline-block;
  margin-top: 32px;
  color: var(--accent);
}

@media (max-width: 600px) {
  .footer nav {
    flex-direction: column;
    gap: 3px;
  }
  .footer {
    padding-top: 16px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111318;
    --text: #f5f3f5;
    --muted: #aaa6b0;
    --accent: #c64b6b;
    --line: #2c2b32;
  }
}
