*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #fff;
  color: #0b0b0b;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 400 20px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 700px;
  margin-left: clamp(20px, 10vw, 144px);
  padding-right: 20px;
}

nav {
  padding: 28px 0 0;
  font-size: 15px;
}

nav a {
  color: inherit;
  font-weight: 400;
  text-decoration: none;
  margin-right: 22px;
  white-space: nowrap;
}

nav a:hover {
  text-decoration: underline;
}

nav a[aria-current="page"] {
  font-weight: 700;
}

h1 {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 72px 0 32px;
}

h1.mark {
  font-size: clamp(72px, 13vw, 148px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin: 72px 0 48px;
}

.lede {
  font-size: 24px;
  line-height: 1.35;
  margin: -24px 0 48px;
}

p,
ol,
ul {
  margin: 0 0 1.1em;
}

ol {
  padding-left: 1.2em;
}

li {
  margin-bottom: 0.6em;
}

a {
  color: inherit;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.band {
  margin: 64px 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #e6e6e6;
  border-block: 1px solid #e6e6e6;
  overflow: hidden;
}

.band .row {
  display: flex;
  gap: 1px;
}

.band img {
  display: block;
  flex: none;
  width: 120px;
  height: 120px;
}

footer {
  margin-top: 96px;
  padding-bottom: 40px;
  font-size: 14px;
  color: #6b6b6b;
}

/* The specification: same page, reference type. */

.long .spec {
  font-size: 16px;
  line-height: 1.55;
}

.spec h1 {
  font-size: 36px;
}

.spec h2 {
  font-size: 24px;
  margin: 56px 0 16px;
}

.spec h3 {
  font-size: 19px;
  margin: 36px 0 12px;
}

.spec h4 {
  font-size: 16px;
  margin: 28px 0 10px;
}

.spec code {
  font: 14px/1.4 ui-monospace, Menlo, monospace;
}

.spec pre {
  background: #f4f4f4;
  padding: 14px 16px;
  overflow-x: auto;
}

.spec table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  font-size: 14px;
  margin: 0 0 1.2em;
}

.spec th,
.spec td {
  border-bottom: 1px solid #e5e5e5;
  padding: 6px 12px 6px 0;
  text-align: left;
  vertical-align: top;
}

.spec hr {
  border: 0;
  border-top: 1px solid #e5e5e5;
  margin: 48px 0;
}

@media (max-width: 600px) {
  body {
    font-size: 18px;
  }

  nav a {
    margin-right: 16px;
  }

  h1 {
    font-size: 34px;
    margin-top: 48px;
  }

  h1.mark {
    margin-top: 48px;
  }
}

/* Long hashes and addresses in the spec wrap instead of widening the page. */
.spec {
  overflow-wrap: anywhere;
}

.spec pre code {
  overflow-wrap: normal;
}
