:root {
  color-scheme: light;
  --paper: #f4f3ef;
  --surface: #fff;
  --ink: #25262a;
  --muted: #53545b;
  --line: #d8d6ce;
  --blue: #244faa;
  --blue-pale: #e8effa;
  font: 400 100%/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }

body { margin: 0; }

a {
  color: var(--blue);
  text-underline-offset: .18em;
}

a:hover { text-decoration-thickness: .12em; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: .5rem .75rem;
  background: var(--surface);
}

.skip:not(:focus) { clip-path: inset(50%); }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .125rem 1rem;
  min-height: 4.25rem;
  padding: .375rem clamp(1rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
}

.site-header nav, .page-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

.site-header a, .page-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-header .brand {
  gap: .55rem;
  color: var(--ink);
  font-weight: 680;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, .5rem);
  gap: .125rem;
  padding: .25rem;
  border: 1px solid #acaab4;
  border-radius: .45rem;
}

.brand-mark i {
  aspect-ratio: 1;
  border-radius: 28%;
  background: #a6bdf1;
}

.brand-mark i:nth-child(2) { background: #c8b9e6; }
.brand-mark i:nth-child(3) { background: #efcdd8; }
.brand-mark i:nth-child(4) { background: #b6cdb8; }

.layout {
  display: grid;
  grid-template-columns: minmax(10.5rem, 13rem) minmax(0, 48rem);
  gap: clamp(2rem, 6vw, 6rem);
  width: min(100%, 76rem);
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 5vw, 3rem) 2rem;
}

.contents {
  position: sticky;
  top: 1.5rem;
  padding-block: .25rem;
  font-size: .875rem;
}

.contents p {
  margin: 0 0 .3rem;
  font-weight: 680;
}

.contents ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding-inline-start: .75rem;
  border-inline-start: 1px solid var(--line);
}

.contents a, .contents li { display: block; }
.contents a { padding-block: .35rem; }

main { min-width: 0; }

.intro {
  padding-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 .4rem;
  color: var(--blue);
  font: 600 .8125rem/1.5 ui-monospace, monospace;
}

h1, h2, h3 { line-height: 1.15; }

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5.2vw, 3.65rem);
  font-weight: 680;
  letter-spacing: -.045em;
}

.intro > p:not(.eyebrow) {
  max-width: 39rem;
  margin: 1rem 0;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: .3rem;
  padding-inline: .9rem;
  border: 1px solid var(--blue);
  border-radius: .55rem;
  color: #fff;
  background: var(--blue);
  font-weight: 640;
  text-decoration: none;
}

.button:hover { text-decoration: underline; }

section { margin-block: clamp(1.8rem, 4.2vw, 3.2rem); }

h2 {
  margin: 0 0 .7rem;
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  letter-spacing: -.027em;
  scroll-margin-block-start: 1.2rem;
}

h3 { margin: 0; font-size: 1.1rem; }

section p { margin: .65rem 0; }

dl { margin: 1rem 0; }

dl > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr);
  gap: .75rem;
  padding-block: .65rem;
  border-top: 1px solid var(--line);
}

dt { font-weight: 660; }
dd { margin: 0; }

.note {
  padding: .85rem 1rem;
  border-inline-start: 3px solid var(--blue);
  border-radius: 0 .5rem .5rem 0;
  background: var(--blue-pale);
}

.steps {
  margin: 1.25rem 0 0;
  padding-inline-start: 1.6rem;
}

.steps > li {
  margin-block-end: 1.5rem;
  padding-inline-start: .35rem;
}

.steps > li::marker {
  color: var(--blue);
  font-weight: 680;
}

code {
  font: 500 .875em/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}

:not(pre) > code {
  padding: .08em .22em;
  border-radius: .22em;
  background: #e8e8e2;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

pre {
  margin: .75rem 0;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--surface);
  white-space: pre-wrap;
}

.statuses > div { grid-template-columns: 5.75rem minmax(0, 1fr); }
.statuses dt { font: 650 .875rem/1.65 ui-monospace, monospace; }

.page-footer {
  padding-top: .75rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
}

@media (max-width: 740px) {
  .layout { display: flex; flex-direction: column; gap: 0; }
  .layout aside { display: none; }
}

@media (max-width: 480px) {
  .roles > div, .links > div { grid-template-columns: 1fr; gap: .2rem; }
  .statuses > div { gap: .4rem; }
}
