@font-face {
  font-family: "Inter";
  src: url("InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --text: #262626;        /* neutral-800 */
  --muted: #737373;       /* neutral-500 */
  --faint: rgba(115, 115, 115, 0.12);
  --link-underline: rgba(115, 115, 115, 0.35);
  --max-main: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #ededed;
    --muted: #8a8a8f;
    --faint: rgba(255, 255, 255, 0.08);
    --link-underline: rgba(255, 255, 255, 0.28);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  font-variation-settings: "opsz" 16;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

main {
  display: flex;
  justify-content: center;
  padding: 2rem 1.5rem;
}

@media (min-width: 640px) {
  main { padding-top: 8rem; }
}

article {
  width: 100%;
  max-width: var(--max-main);
}

header h1 {
  font-size: 1.25rem;
  font-weight: 500;
  font-variation-settings: "opsz" 32, "wght" 500;
  letter-spacing: -0.01em;
  margin: 0 0 1.75rem;
}

/* label / content rows */
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 2rem;
  padding: 0.75rem 0;
}

@media (min-width: 640px) {
  .row {
    grid-template-columns: 7rem 1fr;
    padding: 0.9rem 0;
  }
}

.row-label h2 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  margin: 0;
}

.row-body p { margin: 0; }

.row-body .item { padding-bottom: 1rem; }
.row-body .item:last-child { padding-bottom: 0; }

.item-desc {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-variation-settings: "opsz" 14;
}

ul.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

/* links */
.link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}
.link:hover { text-decoration-color: currentColor; }

.link-external {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  text-decoration: none;
}
.link-external:hover { text-decoration: underline; text-underline-offset: 2px; }

.arrow {
  width: 0.9em;
  height: 0.9em;
  display: inline-block;
  background: currentColor;
  opacity: 0.45;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M76 88a12 12 0 0 1 0-24h104a12 12 0 0 1 12 12v104a12 12 0 0 1-24 0v-75l-83.5 83.5a12 12 0 0 1-17-17L151 88H76Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M76 88a12 12 0 0 1 0-24h104a12 12 0 0 1 12 12v104a12 12 0 0 1-24 0v-75l-83.5 83.5a12 12 0 0 1-17-17L151 88H76Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: opacity 0.15s ease;
}
.link-external:hover .arrow { opacity: 0.9; }

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--faint);
  font-size: 0.85rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  footer { margin-top: 5rem; }
}

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