:root {
  color-scheme: dark;
  --bg: #070708;
  --surface: #171719;
  --surface-raised: #202024;
  --surface-muted: #111113;
  --border: #303034;
  --border-subtle: #242428;
  --hairline: #3e3e44;
  --text: #f7f7f8;
  --muted: #a7a7ad;
  --subtle: #74747b;
  --accent: #da291c;
  --accent-deep: #a91d12;
  --accent-muted: #321614;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

a:hover {
  color: var(--text);
}

a:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.container {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: 72px 0 80px;
}

.container:not(.document) {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
}

.document {
  max-width: 720px;
  padding-top: 48px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 16px;
  text-transform: uppercase;
}

.eyebrow::before {
  display: block;
  width: 20px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

h1,
h2 {
  color: var(--text);
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin: 0 0 20px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.16;
}

.document h1 {
  margin-bottom: 10px;
  font-size: 28px;
}

h2 {
  margin: 44px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.28;
  scroll-margin-top: 16px;
}

p {
  margin: 0 0 16px;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.updated {
  margin-top: 28px;
  color: var(--subtle);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.document .updated {
  margin: 0 0 34px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.links a {
  position: relative;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
}

.links a::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 2px;
  background: var(--accent);
  content: "";
  opacity: 0.72;
}

.links a::after {
  flex: 0 0 auto;
  color: var(--subtle);
  content: ">";
  font-size: 16px;
  line-height: 1;
}

.links a:hover {
  border-color: var(--hairline);
  background: var(--surface-raised);
}

.links a:hover::before,
.links a:focus-visible::before {
  opacity: 1;
}

.back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.back::before {
  color: var(--accent);
  content: "<";
  font-size: 14px;
  line-height: 1;
}

.back:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 760px);
    padding: 48px 0 56px;
  }

  .container:not(.document) {
    min-height: auto;
    justify-content: flex-start;
    padding-top: 72px;
  }

  .document {
    padding-top: 28px;
  }

  h1 {
    font-size: 28px;
  }

  .document h1 {
    font-size: 24px;
  }

  h2 {
    margin-top: 36px;
    font-size: 16px;
  }

  .links {
    grid-template-columns: 1fr;
  }

  .links a {
    min-height: 60px;
  }
}
