@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;900&family=Work+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --ink: #14120F;
  --ink-soft: #26221C;
  --paper: #F4F1EA;
  --paper-dim: #EAE5D8;
  --signal: #C8102E;
  --signal-deep: #9C0C23;
  --signal-onink: #FF5A72;
  --line: #D8D2C2;
  --line-dark: #3A352C;
  --stone: #5C574A;
  --stone-light: #9A9384;

  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --step--2: clamp(0.688rem, 0.67rem + 0.09vw, 0.75rem);
  --step--1: clamp(0.8rem, 0.77rem + 0.14vw, 0.875rem);
  --step-0: clamp(0.975rem, 0.94rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.12rem, 1.05rem + 0.36vw, 1.3125rem);
  --step-2: clamp(1.32rem, 1.19rem + 0.63vw, 1.6875rem);
  --step-3: clamp(1.56rem, 1.32rem + 1.15vw, 2.25rem);
  --step-4: clamp(1.82rem, 1.4rem + 2vw, 3rem);
  --step-5: clamp(2.1rem, 1.42rem + 3.2vw, 4rem);
  --step-6: clamp(2.4rem, 1.3rem + 5.2vw, 5.5rem);
  --step-7: clamp(2.75rem, 1.05rem + 8vw, 7.5rem);

  --u: 8px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 56px;
  --s7: 72px;
  --s8: 96px;
  --s9: 128px;
  --s10: 168px;

  --shell: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --grid-gap: clamp(20px, 2.6vw, 40px);
  --section-y: clamp(56px, 8vw, 128px);
  --section-y-tight: clamp(48px, 5.5vw, 96px);

  --hair: 1px solid var(--line);
  --hair-ink: 1px solid rgba(20, 18, 15, 0.16);
  --hair-inverse: 1px solid rgba(244, 241, 234, 0.18);

  --dur-fast: 140ms;
  --dur-1: 240ms;
  --dur-2: 480ms;
  --dur-3: 760ms;
  --dur-4: 1120ms;
  --ease-out: cubic-bezier(0.16, 0.84, 0.44, 1);
  --ease-in-out: cubic-bezier(0.62, 0.02, 0.24, 1);
  --ease-wipe: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.22, 1.14, 0.36, 1);
  --stagger: 90ms;

  --lift: 0 1px 0 rgba(20, 18, 15, 0.08), 0 18px 40px -28px rgba(20, 18, 15, 0.45);
  --lift-strong: 0 2px 0 rgba(20, 18, 15, 0.1), 0 40px 80px -48px rgba(20, 18, 15, 0.6);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0.002em;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--step-6);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.035em;
}

h2 {
  font-size: var(--step-4);
  font-weight: 700;
  letter-spacing: -0.028em;
}

h3 {
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h4 {
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.18;
}

h5,
h6 {
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1em;
  overflow-wrap: break-word;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:not([class]) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  transition: color var(--dur-1) var(--ease-out), text-decoration-color var(--dur-1) var(--ease-out);
}

a:not([class]):hover {
  color: var(--signal);
  text-decoration-color: var(--ink);
}

.section--ink a:not([class]),
footer a:not([class]) {
  color: var(--paper);
  text-decoration-color: var(--signal-onink);
}

.section--ink a:not([class]):hover,
footer a:not([class]):hover {
  color: var(--signal-onink);
  text-decoration-color: var(--paper);
}

strong,
b {
  font-weight: 600;
}

em {
  font-style: italic;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.4em;
}

li:last-child {
  margin-bottom: 0;
}

blockquote {
  margin: 0;
}

figure {
  margin: 0;
}

img,
picture,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
  display: block;
}

img {
  background-color: var(--paper-dim);
}

hr {
  border: 0;
  border-top: var(--hair);
  margin: var(--s6) 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: 0;
}

code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

pre {
  overflow-x: auto;
  max-width: 100%;
  padding: var(--s3);
  background: var(--paper-dim);
  border-left: 3px solid var(--signal);
}

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

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

.js :focus:not(:focus-visible) {
  outline: none;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 200;
  transform: translateY(-140%);
  display: inline-block;
  min-height: 44px;
  padding: 12px 20px;
  background: var(--signal);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform var(--dur-1) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--flush-right {
  padding-right: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.grid > * {
  min-width: 0;
}

.flex {
  display: flex;
  flex-wrap: wrap;
}

.flex > * {
  min-width: 0;
}

.stack > * + * {
  margin-top: var(--s3);
}

.stack-tight > * + * {
  margin-top: var(--s2);
}

.stack-wide > * + * {
  margin-top: var(--s5);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: var(--section-y-tight);
}

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

.section--dim {
  background: var(--paper-dim);
}

.section--ruled {
  border-top: var(--hair);
}

.section--ink.section--ruled {
  border-top: var(--hair-inverse);
}

.measure {
  max-width: 34em;
}

.measure-tight {
  max-width: 26em;
}

.measure-wide {
  max-width: 46em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 var(--s3);
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 28px;
  height: 2px;
  background: var(--signal);
  transform: translateY(-0.28em);
}

.eyebrow--stone {
  color: var(--stone);
}

.eyebrow--stone::before {
  background: var(--stone);
}

.section--ink .eyebrow {
  color: var(--signal-onink);
}

.section--ink .eyebrow::before {
  background: var(--signal-onink);
}

.meta {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--stone);
}

.meta-num {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}

.section--ink .meta,
.section--ink .meta-num {
  color: var(--stone-light);
}

.lead {
  font-size: var(--step-2);
  line-height: 1.34;
  letter-spacing: -0.014em;
  font-weight: 400;
}

.lead-sm {
  font-size: var(--step-1);
  line-height: 1.44;
  letter-spacing: -0.008em;
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.hang {
  text-indent: -0.42em;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vertical-align: middle;
}

.icon--lg {
  width: 1.6em;
  height: 1.6em;
}

.icon--sm {
  width: 0.95em;
  height: 0.95em;
}

.prose {
  max-width: 36em;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  font-size: var(--step-3);
  margin-top: 2em;
  padding-top: 0.6em;
  border-top: var(--hair);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  font-size: var(--step-1);
  margin-top: 1.8em;
}

.prose p {
  margin: 0;
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.1em;
}

.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose ul > li {
  position: relative;
  padding-left: 1.5em;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 12px;
  height: 2px;
  background: var(--signal);
}

.prose ol {
  counter-reset: prose-count;
  list-style: none;
  padding-left: 0;
}

.prose ol > li {
  counter-increment: prose-count;
  position: relative;
  padding-left: 2.2em;
}

.prose ol > li::before {
  content: counter(prose-count, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.12em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--signal);
  letter-spacing: 0.04em;
}

.prose blockquote {
  border-left: 3px solid var(--signal);
  padding: 0.2em 0 0.2em 1.2em;
  font-size: var(--step-1);
  line-height: 1.42;
}

.prose dl {
  margin: 0;
}

.prose dt {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 1.2em;
}

.prose dd {
  margin: 0.3em 0 0;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.prose a:hover {
  color: var(--signal);
}

.rule {
  border: 0;
  border-top: var(--hair);
  margin: 0;
}

.rule--ink {
  border-top: var(--hair-inverse);
}

.rule--signal {
  border-top: 3px solid var(--signal);
  width: 64px;
}

.lines {
  display: block;
}

.line-mask {
  display: block;
  overflow: hidden;
}

.line {
  display: block;
}

.wipe {
  position: relative;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  background: var(--paper-dim);
}

.wipe > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-caption {
  margin-top: 12px;
  padding-top: 10px;
  border-top: var(--hair);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--stone);
  display: block;
}

.section--ink .figure-caption {
  border-top: var(--hair-inverse);
  color: var(--stone-light);
}

.stamp {
  display: inline-block;
  width: clamp(72px, 8vw, 116px);
  height: auto;
  transition: transform var(--dur-2) var(--ease-spring);
}

a:hover .stamp,
a:focus-visible .stamp,
.stamp:hover {
  transform: rotate(-9deg);
}

.baseline-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--line) 0 1px, transparent 1px 100%);
  background-size: 25% 100%;
  opacity: 0.5;
}

@media (max-width: 767px) {
  .baseline-ticks {
    display: none;
  }
}

@media (min-width: 768px) {
  .col-1 { grid-column: span 1; }
  .col-2 { grid-column: span 2; }
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .col-9 { grid-column: span 9; }
  .col-10 { grid-column: span 10; }
  .col-12 { grid-column: span 12; }
  .start-2 { grid-column-start: 2; }
  .start-3 { grid-column-start: 3; }
  .start-4 { grid-column-start: 4; }
  .start-5 { grid-column-start: 5; }
  .start-6 { grid-column-start: 6; }
  .start-7 { grid-column-start: 7; }
  .start-9 { grid-column-start: 9; }
}

@media (max-width: 767px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  html {
    scroll-padding-top: 76px;
  }
}

@media (min-width: 1600px) {
  :root {
    --shell: 1440px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .wipe {
    clip-path: inset(0) !important;
  }
  .stamp {
    transform: none !important;
  }
}
