

:root {

  color-scheme: dark;

  --ink: #1A1815;
  --paper: #F5F1EA;
  --ember: #E4571E;
  --warm: #C9BFB1;
  --dim: #9A9288;

  --body: rgba(245, 241, 234, .90);

  --hair: rgba(245, 241, 234, .12);
  --hair-strong: rgba(245, 241, 234, .22);

  --measure: 66ch;
}

* { box-sizing: border-box; }

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  background: var(--ink);
  color: var(--body);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(16px, .4vw + 15px, 18px);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(60vmax 30vmax at 50% 0, rgba(228, 87, 30, .06), rgba(228, 87, 30, 0) 70%);
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}

.skip {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 9;
  transform: translate(-50%, -140%);
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { transform: translate(-50%, 0); }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: clamp(24px, 5vw, 40px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--paper);
  text-decoration: none;
}
.brand .mark {
  display: block;
  height: 30px;
  width: auto;
}
.brand .wordmark {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.015em;
  line-height: 1;
}
.brand .suffix { color: var(--ember); }
.brand:hover .wordmark { color: var(--warm); }

.home {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--dim);
  text-decoration: none;
  white-space: nowrap;
}
.home:hover { color: var(--warm); }

.docnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin-top: clamp(22px, 4vw, 34px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair-strong);
}
.docnav a {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
}
.docnav a:hover { color: var(--warm); }
.docnav a[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--ember);
}

.doc {
  padding: clamp(34px, 6vw, 54px) 0 clamp(48px, 8vw, 72px);
}

.doc :is(h1, h2, p, ul, ol, .note) { max-width: var(--measure); }

.doc h1 {
  margin: 0;
  font-size: clamp(28px, 5.2vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--paper);
}

.eff {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--warm);
}

.doc h2 {
  margin: 2.2em 0 .55em;
  font-size: clamp(19px, 2.5vw, 23px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--paper);
  scroll-margin-top: 24px;
}

.doc p { margin: 0 0 1.05em; }

.doc :is(ul, ol) {
  margin: 0 0 1.05em;
  padding-left: 1.35em;
}
.doc li { margin-bottom: .5em; }
.doc li::marker { color: var(--dim); }

.doc strong, .doc b {
  font-weight: 700;
  color: var(--paper);
}

.doc a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(228, 87, 30, .5);
  padding-bottom: 1px;
}

.doc a:hover,
.doc a:focus-visible { border-bottom-color: var(--ember); }

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

.doc table {
  width: 100%;
  margin: 1.5em 0 1.6em;
  border-collapse: collapse;
  font-size: .94em;
}
.doc :is(th, td) {
  padding: .72em .9em .72em 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hair);
}
.doc :is(th, td):last-child { padding-right: 0; }
.doc thead th {
  padding-top: 0;
  font-size: .76em;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 1px solid var(--hair-strong);
}
.doc tbody tr:last-child :is(th, td) { border-bottom: 0; }

@media (max-width: 40rem) {
  .doc :is(table, tbody, tr, td) { display: block; }
  .doc thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
  }
  .doc table { border-top: 1px solid var(--hair-strong); }
  .doc tbody tr {
    padding: .95em 0;
    border-bottom: 1px solid var(--hair);
  }
  .doc tbody tr:last-child { border-bottom: 0; }
  .doc td {
    padding: 0;
    border: 0;
  }
  .doc td + td { margin-top: .7em; }
  .doc td::before {
    content: attr(data-label);
    display: block;
    font-size: .74em;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--dim);
  }
}

.bot {
  padding: clamp(22px, 4vw, 30px) 0 clamp(34px, 6vw, 48px);
  border-top: 1px solid var(--hair-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--dim);
}
.bot a {
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 241, 234, .18);
  padding-bottom: 2px;
}
.bot a:hover,
.bot a:focus-visible {
  color: var(--warm);
  border-bottom-color: rgba(201, 191, 177, .5);
}
.bot .sep { color: rgba(245, 241, 234, .3); }
