@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/atkinson-next-latin.woff2") format("woff2");
}

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

:root {
  --paper: #f5f6f2;
  --sheet: #ffffff;
  --ink: #18233a;
  --ink-hover: #2b3a5a;
  --graphite: #5b6372;
  --rule: #d5d9d2;
  --verify: #1f7a5c;
  --flag: #c23b32;
  --partial: #8a5a00;
  --sans: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --page: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
  font-kerning: normal;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
figure {
  margin: 0;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip-link {
  position: absolute;
  top: -4rem;
  left: var(--gutter);
  z-index: 1;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header,
main,
.site-footer {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem;
}

.wordmark {
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--graphite);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Intro */

.intro {
  padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2rem, 5vw, 3.5rem);
}

.intro h1 {
  max-width: 15em;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  max-width: 32em;
  margin-top: 1.25rem;
  color: var(--graphite);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
}

.button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
}

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

/* Reviewed answer */

.review {
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.sheet {
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.answer {
  max-width: 24em;
  font-family: var(--serif);
  font-size: clamp(1.625rem, 1rem + 2.6vw, 2.75rem);
  font-weight: 400;
  line-height: 1.45;
  font-optical-sizing: auto;
}

.claim {
  color: inherit;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  text-decoration-skip-ink: none;
  border-radius: 2px;
}

.claim--flag {
  text-decoration-style: wavy;
  text-decoration-color: var(--flag);
  background-image: linear-gradient(rgb(194 59 50 / 0.09), rgb(194 59 50 / 0.09));
}

.claim--verify {
  text-decoration-style: solid;
  text-decoration-color: var(--verify);
  background-image: linear-gradient(rgb(31 122 92 / 0.08), rgb(31 122 92 / 0.08));
}

.claim--partial {
  text-decoration-style: dashed;
  text-decoration-color: var(--partial);
  background-image: linear-gradient(rgb(138 90 0 / 0.09), rgb(138 90 0 / 0.09));
}

.answer sup {
  margin-left: 0.08em;
  font-family: var(--sans);
  font-size: 0.42em;
  font-weight: 700;
  line-height: 0;
}

.answer sup a {
  padding-inline: 0.15em;
  text-decoration: none;
}

.answer sup a:hover {
  text-decoration: underline;
}

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem 2.5rem;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding: clamp(1.25rem, 3vw, 2rem) 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.note {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  align-content: start;
}

.note-number {
  grid-row: span 2;
  color: var(--note-color);
  font-weight: 700;
}

.verdict {
  justify-self: start;
  color: var(--note-color);
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-color: var(--note-color);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
  text-decoration-skip-ink: none;
}

.note p {
  margin-top: 0.35rem;
  color: var(--graphite);
}

.note--flag {
  --note-color: var(--flag);
}

.note--flag .verdict {
  text-decoration-style: wavy;
}

.note--verify {
  --note-color: var(--verify);
}

.note--partial {
  --note-color: var(--partial);
}

.note--partial .verdict {
  text-decoration-style: dashed;
}

.ref--flag {
  color: var(--flag);
}

.ref--verify {
  color: var(--verify);
}

.ref--partial {
  color: var(--partial);
}

.review figcaption {
  margin-top: 0.75rem;
  color: var(--graphite);
  font-size: 0.9375rem;
}

/* Sections */

.block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: clamp(3rem, 8vw, 5.5rem);
  border-top: 1px solid var(--rule);
}

.block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.services {
  display: grid;
  gap: 1.75rem;
  max-width: 40rem;
}

.services dt {
  font-weight: 700;
}

.services dd {
  margin-top: 0.25rem;
}

.steps {
  display: grid;
  gap: 1.75rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.5rem;
  color: var(--graphite);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.steps p {
  margin-top: 0.25rem;
}

.contact p {
  max-width: 32em;
}

.email {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: clamp(1.75rem, 1rem + 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}

.site-footer {
  padding-bottom: 3rem;
  color: var(--graphite);
  font-size: 0.9375rem;
}

.site-footer p {
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

@media (min-width: 52rem) {
  .block {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 3rem;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

/* One load sequence: the three claims are marked in reading order, each note appears with its mark. */

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

  .claim {
    animation: mark-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .claim--flag {
    animation-delay: 0.35s;
  }

  .claim--verify {
    animation-delay: 0.85s;
  }

  .claim--partial {
    animation-delay: 1.35s;
  }

  .note {
    animation: note-in 0.5s ease-out both;
  }

  .note--flag {
    animation-delay: 0.6s;
  }

  .note--verify {
    animation-delay: 1.1s;
  }

  .note--partial {
    animation-delay: 1.6s;
  }
}

@keyframes mark-in {
  from {
    background-size: 0% 100%;
    text-decoration-color: transparent;
  }
}

@keyframes note-in {
  from {
    opacity: 0;
  }
}
