@font-face {
  font-family: "Besley";
  src: url("../fonts/besley-variable.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --wash: #eef1f4;
  --paper: #ffffff;
  --ink: #18212b;
  --ink-soft: #46525f;
  --signal: #ff5a1f;
  --rule-soft: #c5ccd4;
  --on-ink-soft: #bfc8d2;

  --font-statement: "Besley", Rockwell, Georgia, serif;
  --font-label: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 3.9vw, 3.5rem);
  --sheet-pad: clamp(1.25rem, 3.9vw, 3.5rem);
  --sheet-gap: clamp(1rem, 1.95vw, 1.75rem);
  --section-gap: clamp(4.5rem, 9vw, 8.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@supports (width: round(1.5px, 1px)) {
  :root {
    --sheet-pad: round(clamp(1.25rem, 3.9vw, 3.5rem), 1px);
    --sheet-gap: round(clamp(1rem, 1.95vw, 1.75rem), 1px);
    --section-gap: round(clamp(4.5rem, 9vw, 8.5rem), 1px);
  }
}

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

html {
  background: var(--wash);
  color: var(--ink);
  scrollbar-color: var(--ink) var(--wash);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-statement);
  font-size: 1.0625rem;
  line-height: 1.5rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--signal);
}

::selection {
  background: var(--signal);
  color: var(--ink);
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
ol,
ul,
fieldset {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 400;
  text-wrap: balance;
}

p,
dd,
li {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--signal);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon-sprite {
  display: none;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
}

.route {
  white-space: nowrap;
}

.icon--inline {
  width: 0.82em;
  height: 0.82em;
  margin-left: 0.12em;
  margin-right: 0.12em;
  vertical-align: -0.04em;
}

.shell {
  width: min(100%, 90rem);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.sheet {
  background: var(--paper);
  padding: var(--sheet-pad);
  box-shadow:
    0 1px 0 rgb(24 33 43 / 0.14),
    0 1.5rem 2.5rem -1.75rem rgb(24 33 43 / 0.3);
}

.sheet--signal {
  background: var(--signal);
}

.sheet--ink {
  background: var(--ink);
  color: var(--paper);
}

.running-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--ink);
  font-family: var(--font-label);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.running-head a {
  text-decoration: none;
}

.running-head a:hover {
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 3px;
}

.wordmark {
  font-family: var(--font-label);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.display {
  font-size: clamp(2.625rem, 6.4vw, 5.75rem);
  font-size: round(clamp(2.625rem, 6.4vw, 5.75rem), 1px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.title {
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-size: round(clamp(2rem, 4.2vw, 3.75rem), 1px);
  line-height: 1.05;
  line-height: round(up, 1.05em, 1px);
  letter-spacing: -0.025em;
}

.title--pair {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-size: round(clamp(1.75rem, 3.4vw, 3rem), 1px);
  line-height: 1.1;
  line-height: round(up, 1.1em, 1px);
}

.title--pair span {
  color: var(--ink-soft);
}

.sheet--ink .title--pair span {
  color: var(--on-ink-soft);
}

.statement {
  font-size: clamp(1.3125rem, 2vw, 1.75rem);
  font-size: round(clamp(1.3125rem, 2vw, 1.75rem), 1px);
  font-weight: 500;
  line-height: 1.15;
  line-height: round(up, 1.15em, 1px);
  letter-spacing: -0.015em;
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.4375rem);
  font-size: round(clamp(1.125rem, 1.6vw, 1.4375rem), 1px);
  line-height: 1.4;
  line-height: round(up, 1.4em, 1px);
  max-width: 34em;
}

.note {
  font-family: var(--font-label);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.375rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3.75rem;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out),
    color 0.18s var(--ease-out);
}

.button:hover {
  background: var(--ink);
  color: var(--paper);
}

.button:active {
  transform: translateY(1px);
}

.button--primary {
  border-color: var(--signal);
  background: var(--signal);
}

.button--primary:hover {
  border-color: var(--ink);
}

.button--ink {
  background: var(--ink);
  color: var(--paper);
}

.button--ink:hover {
  background: var(--paper);
  color: var(--ink);
}

.sheet--ink .button--primary:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.button[disabled],
.button[disabled]:hover {
  border-color: var(--rule-soft);
  background: var(--rule-soft);
  color: var(--ink);
  cursor: progress;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-label);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rating::before {
  content: "";
  flex: none;
  width: 1.875rem;
  height: 1.875rem;
  background: var(--signal);
}

.findings {
  counter-reset: finding;
}

.finding {
  counter-increment: finding;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 0.875rem;
  padding-top: 1.125rem;
  padding-bottom: 1.125rem;
  border-top: 1px solid var(--ink);
}

.finding::before {
  content: "1." counter(finding);
  grid-row: 1 / span 2;
  font-family: var(--font-label);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.finding dt {
  grid-column: 2;
  font-family: var(--font-label);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.finding dd {
  grid-column: 2;
  margin-top: 0.5rem;
  line-height: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
}

[id] {
  scroll-margin-top: clamp(1.5rem, 4vw, 3rem);
}

.running-head a,
.cover__foot a,
.request__contact a,
.colophon a {
  display: inline-block;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  margin-top: -0.625rem;
  margin-bottom: -0.625rem;
}

.running-head a {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  margin-top: -0.375rem;
  margin-bottom: -0.375rem;
}

.running-head a:focus-visible {
  outline-offset: 0;
}
