/* Shared look for the legal and 404 pages: the landing page's tokens (packages/ui/styles/tokens.css), light and dark. */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/figtree-latin.woff2) format("woff2");
}
:root {
  --bg: #ffffff;
  --surface: #fff;
  --surface-sunk: #f3f5fb;
  --line: #e3e8f2;
  --ink: #0d1526;
  --ink-2: #46526b;
  --ink-3: #8e99b0;
  --primary: #2457f5;
  --on-primary: #fff;
  --primary-container: #d4e1ff;
  --on-primary-container: #0b2a8a;
  --lp-btn: #0d1526;
  --lp-on-btn: #fff;
  --font: "Figtree", system-ui, sans-serif;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1c;
    --surface: #131a2b;
    --surface-sunk: #161e31;
    --line: #243049;
    --ink: #eef2fb;
    --ink-2: #a8b3cc;
    --ink-3: #6b7791;
    --primary: #a9c2ff;
    --on-primary: #0b1430;
    --primary-container: #1e3a8a;
    --on-primary-container: #d4e1ff;
    --lp-btn: #eef2fb;
    --lp-on-btn: #0a0f1c;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* text, least specific first */
a {
  color: var(--primary);
}
h1 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 8px 0 0;
}
h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 40px 0 0;
}
article p,
article li {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
article b,
article strong {
  color: var(--ink);
  font-weight: 600;
}
article ul {
  padding-inline-start: 1.2em;
}
article li {
  margin: 6px 0;
}
section {
  scroll-margin-top: 96px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* header */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top-in {
  max-width: 1180px;
  margin-inline: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.word {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.word svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}
.top nav {
  margin-inline-start: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}

/* layout and contents list */
.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
}
.toc {
  position: sticky;
  top: 96px;
  align-self: start;
}
.toc p {
  margin: 0 0 10px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
}
.foot-in a {
  color: var(--ink-2);
}
.toc a:hover {
  background: var(--surface-sunk);
  color: var(--ink);
}
.center a.btn {
  display: inline-block;
  margin-top: 12px;
  background: var(--lp-btn);
  color: var(--lp-on-btn);
  padding: 16px 26px;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 600;
}
.top nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 10px;
}
.top nav a:hover {
  background: var(--surface-sunk);
  color: var(--ink);
}
.top nav a.btn {
  background: var(--lp-btn);
  color: var(--lp-on-btn);
  font-weight: 600;
}

/* article */
article {
  max-width: 760px;
}
.over {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.upd {
  color: var(--ink-3);
  margin: 10px 0 0;
  font-size: 15px;
}
.short {
  margin-top: 28px;
  background: var(--surface-sunk);
  border-radius: var(--r-lg);
  padding: 24px 28px;
}
.short h2 {
  margin-top: 0;
}
.tbl {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
th,
td {
  text-align: start;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
th {
  background: var(--surface-sunk);
  font-weight: 600;
  color: var(--ink);
}
td {
  color: var(--ink-2);
}
tr:last-child td {
  border-bottom: 0;
}

/* footer and 404 */
.foot {
  border-top: 1px solid var(--line);
}
.foot-in {
  max-width: 1180px;
  margin-inline: auto;
  padding: 28px 24px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  color: var(--ink-3);
  font-size: 14.5px;
}
.foot-in span:first-child {
  margin-inline-end: auto;
}
.center {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 24px;
}
.center p {
  color: var(--ink-2);
  font-size: 18px;
}

@media (max-width: 860px) {
  .wrap {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 28px;
  }
  .toc {
    display: none;
  }
  .top nav a:not(.btn) {
    display: none;
  }
}
