* { box-sizing: border-box; }

:root {
  color-scheme: light dark;
  --paper: light-dark(#f7f6f2, #181917);
  --ink: light-dark(#20211e, #f3f2ec);
  --muted: light-dark(#54564e, #c2c3b9);
  --rule: light-dark(#cfcec5, #474941);
  --gutter: clamp(1.15rem, 5vw, 5rem);
}
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font: 400 1rem/1.65 "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid light-dark(#8c4123, #ffbb8b); outline-offset: 3px; }
.skip { position: absolute; clip-path: inset(50%); }
.skip:focus { z-index: 2; top: .5rem; left: .5rem; padding: .5rem 1rem; background: var(--paper); clip-path: none; }

header { border-bottom: 1px solid var(--rule); }
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  max-width: 90rem; margin-inline: auto; min-height: 4.75rem; padding-inline: var(--gutter);
}
.bar a, footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .88rem; }
.bar a:hover, footer a:hover { text-decoration: underline; }
.bar .brand { gap: .45rem; font-size: 1.04rem; font-weight: 750; letter-spacing: -.047em; }
.brand::before {
  content: ""; width: 2.75rem; height: 2.75rem; background: currentColor;
  mask: url("/media/landing/brand.svg") center / contain no-repeat;
}

main, footer { width: min(45rem, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
main { padding-block: clamp(2.6rem, 6vw, 6rem) clamp(3rem, 6vw, 5rem); }
article { font-size: clamp(1rem, .95rem + .25vw, 1.1rem); overflow-wrap: break-word; }
h1, h2, h3 { color: var(--ink); font-weight: 600; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.05rem, 4.5vw, 3.85rem); letter-spacing: -.055em; line-height: 1.05; }
h2 { margin: 2.75rem 0 .9rem; font-size: clamp(1.35rem, 2.25vw, 1.85rem); letter-spacing: -.033em; line-height: 1.19; scroll-margin-top: 1.5rem; }
h3 { margin: 1.65rem 0 .55rem; font-size: 1.13em; letter-spacing: -.015em; line-height: 1.35; }
article p, article ul { margin: 0 0 1em; }
article ul { padding-inline-start: 1.35em; }
article li + li { margin-top: .45em; }

.contents { margin-block: clamp(1.6rem, 3vw, 2.4rem); border-block: 1px solid var(--rule); }
.contents summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 48px; cursor: pointer; list-style: none; font-size: .95rem; font-weight: 600;
}
.contents summary::-webkit-details-marker { display: none; }
.contents summary span::before { content: "+"; font-weight: 400; font-size: 1.25rem; }
.contents[open] summary span::before { content: "−"; }
.contents ul { margin: 0 0 .8rem; list-style: none; padding: 0; }
.contents li { margin: 0; }
.contents a { display: block; padding-block: .4rem; color: var(--muted); font-size: .87rem; line-height: 1.4; text-decoration: none; }
.contents a:is(:hover, :focus-visible) { color: var(--ink); text-decoration: underline; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; padding-block: 1rem; border-top: 1px solid var(--rule); }

@media (max-width: 680px) {
  .bar { min-height: 3.9rem; }
  .bar .brand { font-size: .92rem; }
  .brand::before { width: 2.4rem; height: 2.4rem; }
}
@media print {
  :root { color-scheme: light !important; --paper: white; --ink: black; }
  header, footer, .skip, .contents { display: none; }
  main { width: 100%; padding: 0; }
  article { font-size: 11pt; }
  h1 { font-size: 20pt; }
  h2, h3 { break-after: avoid; }
}

.document-languages { position: relative; margin-inline-start: auto; }
.document-languages summary { cursor: pointer; padding: .65rem 0; font-size: .9rem; }
.document-languages nav { position: absolute; z-index: 2; right: 0; display: grid; min-width: 10rem; padding: .4rem .9rem; border: 1px solid var(--rule); background: var(--paper); }
.document-languages a[aria-current] { font-weight: 700; }
