@import url("https://fonts.googleapis.com/css2?family=League+Gothic&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --paper: #EFE5CF;
  --paper-deep: #E3D4B3;
  --paper-light: #F6EFDD;
  --ink: #2A241A;
  --ink-soft: #4E4536;
  --ochre: #B8924A;
  --ochre-light: #D9BD85;
  --olive: #4F4E2A;
  --olive-deep: #55542F;
  --terracotta: #84432A;
  --accent: #A5421D;
  --accent-deep: #86351A;
  --rule: #2A241A33;
  --rule-strong: #2A241A66;
  --rule-on-dark: #EFE5CF40;

  --nusa-b23: "League Gothic", "Oswald", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --nusa-9f4: "EB Garamond", "Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --nusa-87a: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-micro: clamp(0.7rem, 0.68rem + 0.1vw, 0.78rem);
  --fs-meta: clamp(0.8rem, 0.77rem + 0.15vw, 0.9rem);
  --fs-small: clamp(0.98rem, 0.95rem + 0.15vw, 1.06rem);
  --fs-body: clamp(1.125rem, 1.07rem + 0.28vw, 1.25rem);
  --fs-lead: clamp(1.28rem, 1.16rem + 0.6vw, 1.6rem);
  --fs-h4: clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --fs-h3: clamp(1.8rem, 1.5rem + 1.5vw, 2.8rem);
  --fs-h2: clamp(2.3rem, 1.7rem + 3vw, 4.6rem);
  --fs-h1: clamp(2.8rem, 1.9rem + 4.6vw, 6.4rem);
  --fs-hero: clamp(3rem, 12vw, 11rem);
  --fs-numeral: clamp(5rem, 22vw, 16rem);
  --fs-menu: clamp(2.6rem, 9vw, 7rem);

  --lh-display: 0.9;
  --lh-tight: 1.15;
  --lh-body: 1.55;
  --track-display: 0.01em;
  --track-caps: 0.08em;
  --track-mono: 0.02em;
  --measure: 62ch;
  --measure-narrow: 44ch;

  --space-3xs: 0.25rem;
  --space-2xs: 0.375rem;
  --space-xs: 0.5625rem;
  --space-s: 0.875rem;
  --space-m: 1.3125rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6.75rem;
  --section: clamp(4.5rem, 11vw, 10rem);
  --section-tight: clamp(3rem, 7vw, 6rem);

  --gutter: clamp(1.1rem, 4vw, 3rem);
  --shell: 1320px;
  --shell-wide: 1600px;
  --shell-text: 760px;

  --radius: 0;
  --border: 1.5px solid var(--ink);
  --hairline: 1px solid var(--rule);
  --shadow-print: 3px 3px 0 var(--ink);
  --shadow-print-lift: 5px 5px 0 var(--ink);
  --shadow-panel: 8px 8px 0 rgba(42, 36, 26, 0.16);
  --ink-bleed: 0 0 0.02em rgba(42, 36, 26, 0.15);

  --header-h: 5rem;
  --consent-offset: 0px;
  --z-header: 60;
  --z-consent: 80;
  --z-chat: 85;
  --z-nav: 100;

  --dur-press: 120ms;
  --dur-fast: 160ms;
  --dur-base: 200ms;
  --dur-slow: 420ms;
  --dur-scene: 900ms;
  --dur-ticker: 70s;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-print: cubic-bezier(0.33, 0, 0.15, 1);
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.14 0 0 0 0 0.1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--nusa-9f4);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  font-feature-settings: "kern", "liga", "onum";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: var(--grain);
  background-size: 240px 240px;
  opacity: 0.06;
  mix-blend-mode: multiply;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ol, ul {
  margin: 0;
}

ul[class], ol[class] {
  list-style: none;
  padding: 0;
}

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

img {
  height: auto;
  background-color: var(--paper-deep);
}

img[src$=".svg"] {
  background: none;
}

iframe, embed, object {
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  border-radius: var(--radius);
}

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

address {
  font-style: normal;
}

hr {
  border: 0;
  border-top: var(--hairline);
  margin: var(--space-xl) 0;
}

[hidden] {
  display: none !important;
}

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

:focus {
  outline: none;
}

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

h1, h2, h3, .display {
  font-family: var(--nusa-b23);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--track-display);
  line-height: var(--lh-display);
  text-shadow: var(--ink-bleed);
  font-kerning: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 0.95; }

h4, h5, h6 {
  font-family: var(--nusa-9f4);
  font-weight: 500;
  font-size: var(--fs-h4);
  line-height: var(--lh-tight);
  letter-spacing: -0.005em;
}

p {
  text-wrap: pretty;
  hanging-punctuation: first last;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-thickness var(--dur-fast) var(--ease-out), text-decoration-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

a:hover {
  text-decoration-thickness: 2px;
  color: var(--accent-deep);
}

a:active {
  color: var(--ink);
  text-decoration-thickness: 3px;
}

strong, b { font-weight: 500; }
em, i { font-style: italic; }

small, .meta {
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

.mono, code, kbd, samp, time.mono {
  font-family: var(--nusa-87a);
  font-size: 0.82em;
  letter-spacing: var(--track-mono);
  font-feature-settings: "zero" 0;
}

.smallcaps, .eyebrow, .label {
  font-variant-caps: all-small-caps;
  letter-spacing: var(--track-caps);
  font-feature-settings: "c2sc", "smcp", "lnum";
}

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-lead);
  line-height: 1.2;
  color: var(--olive);
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.6em;
  height: 1px;
  background: var(--terracotta);
  flex: none;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.42;
  max-width: 40ch;
}

.numeral {
  font-family: var(--nusa-b23);
  font-size: var(--fs-numeral);
  line-height: 0.8;
  color: var(--ochre);
  letter-spacing: -0.005em;
  font-variant-numeric: lining-nums tabular-nums;
}

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

.accent-text {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 200;
  padding: 0.85em 1.4em;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  font-variant-caps: all-small-caps;
  letter-spacing: var(--track-caps);
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform var(--dur-base) var(--ease-out);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0.5rem);
  color: var(--paper);
  outline: 2px solid var(--accent);
}

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

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

.shell--wide {
  max-width: calc(var(--shell-wide) + var(--gutter) * 2);
}

.shell--text {
  max-width: calc(var(--shell-text) + var(--gutter) * 2);
}

main {
  display: block;
  position: relative;
  z-index: 2;
}

main:focus {
  outline: none;
}

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

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

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

.section + .section:not(.section--deep) {
  padding-top: calc(var(--section) * 0.6);
}

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

.rule-double {
  display: block;
  height: 5px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 0;
}

.stack > * + * {
  margin-top: var(--stack-gap, var(--space-m));
}

.stack--tight { --stack-gap: var(--space-xs); }
.stack--loose { --stack-gap: var(--space-xl); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cluster-gap, var(--space-s));
  align-items: center;
}

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

.grid {
  display: grid;
  gap: var(--grid-gap, var(--space-l));
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min, 18rem)), 1fr));
}

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

.split {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

@media (min-width: 64em) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-2xl);
  }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.prose {
  max-width: var(--measure);
  hanging-punctuation: first last;
}

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

.prose h2 {
  font-size: var(--fs-h3);
  margin-top: 1.6em;
  margin-bottom: 0.1em;
}

.prose h3 {
  font-size: var(--fs-h4);
  font-family: var(--nusa-b23);
  margin-top: 1.4em;
}

.prose h4 {
  font-size: var(--fs-lead);
  margin-top: 1.2em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li { margin-top: 0.35em; }

.prose ul li::marker { color: var(--terracotta); }
.prose ol li::marker {
  font-family: var(--nusa-87a);
  font-size: 0.8em;
  color: var(--olive);
}

.prose blockquote {
  border-left: 3px solid var(--ochre);
  padding-left: var(--space-m);
  font-style: italic;
  font-size: var(--fs-lead);
  line-height: 1.4;
}

.prose p:first-of-type:not([class])::first-letter {
  font-family: var(--nusa-b23);
  float: left;
  font-size: 3.4em;
  line-height: 0.82;
  padding: 0.06em 0.08em 0 0;
  color: var(--accent);
}

.prose--plain p:first-of-type::first-letter {
  all: unset;
}

.prose table { font-size: var(--fs-small); }

.suce91b {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

pre {
  max-width: 100%;
  overflow-x: auto;
}

figure { position: relative; }

figcaption,
.caption {
  font-family: var(--nusa-87a);
  font-size: var(--fs-micro);
  line-height: 1.5;
  letter-spacing: var(--track-mono);
  color: var(--ink-soft);
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: var(--hairline);
}

.frame img,
img.frame {
  border: 1px solid var(--rule);
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-press: 1ms;
    --dur-fast: 1ms;
    --dur-base: 1ms;
    --dur-slow: 1ms;
    --dur-scene: 1ms;
  }
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  body::before { display: none; }
  body { background: #fff; }
}
