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

:root {
  --paper: #EFE6D3;
  --paper-deep: #E4D8BE;
  --ink: #2B2A26;
  --ochre: #B78A3E;
  --olive: #545731;
  --terracotta: #A85A3E;
  --signal: #9B3115;

  --paper-lift: #F6F0E2;
  --ink-70: rgba(43, 42, 38, 0.7);
  --ink-55: rgba(43, 42, 38, 0.8);
  --ink-38: rgba(43, 42, 38, 0.38);
  --ink-18: rgba(43, 42, 38, 0.18);
  --ink-10: rgba(43, 42, 38, 0.1);
  --ink-06: rgba(43, 42, 38, 0.06);
  --hairline: 1px solid var(--ink-18);
  --hairline-faint: 1px solid var(--ink-10);
  --rule-strong: 1px solid var(--ink);
  --signal-tint: rgba(177, 64, 31, 0.09);
  --olive-tint: rgba(108, 110, 76, 0.12);
  --ochre-tint: rgba(183, 138, 62, 0.16);

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --t-hero: clamp(2.1rem, 7.4vw, 5.75rem);
  --t-h1: clamp(1.95rem, 5.4vw, 3.75rem);
  --t-h2: clamp(1.55rem, 3.5vw, 2.55rem);
  --t-h3: clamp(1.2rem, 2.1vw, 1.6rem);
  --t-h4: clamp(1.02rem, 1.4vw, 1.18rem);
  --t-lede: clamp(1.14rem, 1.9vw, 1.5rem);
  --t-body: clamp(1.02rem, 1.05vw, 1.14rem);
  --t-quote: clamp(1.45rem, 4.1vw, 2.7rem);
  --t-meta: clamp(0.7rem, 0.82vw, 0.79rem);
  --t-mono: clamp(0.79rem, 0.92vw, 0.9rem);

  --s1: 6px;
  --s2: 10px;
  --s3: 14px;
  --s4: 22px;
  --s5: 34px;
  --s6: 54px;
  --s7: 86px;
  --s8: 118px;

  --shell: 1180px;
  --measure: 66ch;
  --measure-narrow: 52ch;
  --gutter: clamp(20px, 5vw, 64px);
  --rhythm: clamp(64px, 10vw, 128px);
  --rhythm-half: clamp(38px, 6vw, 74px);

  --dur-xs: 110ms;
  --dur-sm: 200ms;
  --dur-md: 380ms;
  --dur-lg: 720ms;
  --dur-xl: 1200ms;
  --ease-out: cubic-bezier(0.16, 0.84, 0.28, 1);
  --ease-in-out: cubic-bezier(0.62, 0.03, 0.24, 0.98);
  --ease-magnet: cubic-bezier(0.2, 0.9, 0.16, 1);
  --ticker-speed: 38s;

  --focus-ring: 2px solid var(--signal);
  --focus-offset: 3px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 132px;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.62;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(90deg, var(--ink-06) 1px, transparent 1px);
  background-size: 25vw 100%;
  background-position: 0 0;
  opacity: 0.75;
}

main,
header,
footer,
section,
figure,
figcaption,
blockquote {
  position: relative;
  z-index: 1;
}

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

ul,
ol {
  padding-left: 1.1em;
}

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

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

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

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

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

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

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

h1 {
  font-size: var(--t-h1);
}

h2 {
  font-size: var(--t-h2);
  letter-spacing: -0.018em;
}

h3 {
  font-size: var(--t-h3);
  font-weight: 500;
  letter-spacing: -0.01em;
}

h4 {
  font-size: var(--t-h4);
  font-weight: 500;
  letter-spacing: 0.01em;
}

h5,
h6 {
  font-family: var(--font-mono);
  font-size: var(--t-meta);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.3;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-hero);
  line-height: 0.98;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.display em,
h1 em,
h2 em {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.012em;
}

.lede {
  font-size: var(--t-lede);
  line-height: 1.48;
  letter-spacing: -0.006em;
  color: var(--ink);
}

.lede em {
  font-style: italic;
}

.subhead {
  font-family: var(--font-mono);
  font-size: var(--t-meta);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  line-height: 1.35;
}

.meta,
.coord {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  font-weight: 400;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.coord {
  font-size: var(--t-meta);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.ochre {
  color: var(--ochre);
}

.olive {
  color: var(--olive);
}

.signal {
  color: var(--signal);
}

a {
  color: var(--signal);
  text-decoration: none;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--ink);
}

p a,
li a,
dd a,
.prose a {
  text-decoration: underline;
  text-decoration-color: rgba(177, 64, 31, 0.45);
}

p a:hover,
li a:hover,
.prose a:hover {
  text-decoration-color: var(--ink);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.prose {
  max-width: var(--measure);
}

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

.prose > h2 {
  margin-top: 1.9em;
}

.prose > h3 {
  margin-top: 1.7em;
}

.prose > h2 + p,
.prose > h3 + p,
.prose > h4 + p {
  margin-top: 0.5em;
}

.prose p {
  hanging-punctuation: first last;
}

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

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

.prose li::marker {
  color: var(--olive);
}

.prose strong {
  font-weight: 500;
  color: var(--ink);
}

.prose blockquote {
  border-left: 2px solid var(--terracotta);
  padding-left: var(--s4);
  font-style: italic;
  color: var(--ink-70);
}

.prose dt {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
  margin-top: 1.1em;
}

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

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

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

.measure {
  max-width: var(--measure);
  margin-inline: auto;
}

.measure-narrow {
  max-width: var(--measure-narrow);
}

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

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

.band {
  background: var(--paper-deep);
  border-block: var(--hairline);
}

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

.band-ink a {
  color: var(--paper);
}

.stack {
  display: flex;
  flex-direction: column;
}

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

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

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

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

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

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

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s4);
}

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

.split {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  justify-content: space-between;
  align-items: baseline;
}

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

.grid {
  display: grid;
  gap: var(--s5) var(--s4);
}

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

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

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

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

.center {
  text-align: center;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

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

.icon-xl {
  width: 2.1em;
  height: 2.1em;
  stroke-width: 1.25;
}

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

.skip-link {
  position: fixed;
  top: var(--s2);
  left: 50%;
  transform: translate(-50%, -240%);
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 22px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  transition: transform var(--dur-sm) var(--ease-out);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
  color: var(--paper);
  outline-offset: -6px;
  outline-color: var(--paper);
}

.no-wrap-mono {
  white-space: nowrap;
  font-family: var(--font-mono);
}

.hidden {
  display: none !important;
}

.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .ticker__track {
    animation: none !important;
    transform: none !important;
  }

  .hover-preview {
    display: none !important;
  }
}

@media print {
  body::before,
  .site-header,
  .cookie-bar,
  .chat-launcher,
  .chat-panel,
  .ticker {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
