:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #09070b;
  color: #f8f4f8;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 105, 180, 0.14), transparent 30rem),
    linear-gradient(180deg, #09070b 0%, #17111c 45%, #0e0b10 100%);
  color: #f8f4f8;
  font-size: 1.0625rem;
  line-height: 1.7;
}

a { color: #ff9dce; text-decoration-thickness: .1em; text-underline-offset: .18em; }
a:hover { color: #ffd87a; }
a:focus-visible { outline: 3px solid #72f0ff; outline-offset: 4px; border-radius: .2rem; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-180%);
  padding: .65rem 1rem;
  border-radius: .6rem;
  background: #fff;
  color: #17111c;
}
.skip-link:focus { transform: translateY(0); }

.site-header, .site-footer {
  border-color: rgba(255, 255, 255, .12);
  border-style: solid;
  border-width: 0 0 1px;
  background: rgba(23, 17, 28, .9);
}
.site-footer { border-width: 1px 0 0; }
.bar {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
.brand { color: #fff; font-weight: 850; text-decoration: none; }
.brand span { color: #ffd87a; }

main { width: min(100% - 2rem, 72rem); margin-inline: auto; padding-block: clamp(2.5rem, 6vw, 5rem); }
article { width: min(100%, 48rem); }
.eyebrow { color: #ffd87a; font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { color: #fff; line-height: 1.18; text-wrap: balance; }
h1 { margin: .5rem 0 1rem; font-size: clamp(2.35rem, 7vw, 4.5rem); letter-spacing: -.045em; }
h2 { margin: 3.25rem 0 .85rem; font-size: clamp(1.55rem, 4vw, 2.15rem); }
h3 { margin: 2rem 0 .5rem; font-size: 1.25rem; }
p, li { max-width: 74ch; }
.lede { color: #ded5df; font-size: 1.18rem; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
  margin: 1.5rem 0 2.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: .9rem;
  background: rgba(255,255,255,.055);
  color: #ded5df;
  font-size: .95rem;
}
.notice { padding: 1rem 1.2rem; border-left: 4px solid #ffd87a; background: rgba(255,216,122,.08); }
ul { padding-left: 1.35rem; }
li + li { margin-top: .45rem; }
.table-wrap { overflow-x: auto; margin-block: 1.25rem; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .75rem; border: 1px solid rgba(255,255,255,.16); text-align: left; vertical-align: top; }
th { background: rgba(255,255,255,.08); color: #fff; }
.toc { columns: 2; padding: 1rem 1rem 1rem 2rem; border-radius: 1rem; background: rgba(255,255,255,.045); }
.toc li { break-inside: avoid; }
.language-note { color: #cfc4d1; font-size: .92rem; }
.language-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .8rem;
  margin: -1rem 0 2.5rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: .9rem;
  background: rgba(255,255,255,.04);
  font-size: .9rem;
}
.language-selector span { color: #ded5df; font-weight: 750; }
.language-selector a[aria-current="page"] { color: #ffd87a; font-weight: 800; text-decoration-thickness: .16em; }

[dir="rtl"] .toc { padding-right: 2rem; padding-left: 1rem; }
[dir="rtl"] th, [dir="rtl"] td { text-align: right; }

@media (max-width: 42rem) {
  .toc { columns: 1; }
  .bar { align-items: flex-start; flex-direction: column; }
  th, td { min-width: 9rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  :root { color-scheme: light; background: #fff; color: #111; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .site-header, .site-footer { background: #fff; border-color: #bbb; }
  .brand, h1, h2, h3, a { color: #111; }
  .skip-link, .toc { display: none; }
  main { width: 100%; padding: 1rem; }
}
