@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;800&family=JetBrains+Mono:wght@400;500&family=Public+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --ink: #16191B;
  --ink-80: #3A4043;
  --paper: #FAFBFB;
  --concrete: #D9DDDE;
  --concrete-light: #ECEFEF;
  --graphite: #5A6266;
  --steel: #9AA3A6;
  --mint: #7FD9C4;
  --mint-deep: #145C4E;
  --mint-dim: #C9EFE5;
  --alert: #A3341F;

  --fise-c0c: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --fise-174: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --fise-693: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --fs-hero: clamp(2.6rem, 11vw, 9.5rem);
  --fs-d1: clamp(2.1rem, 6.4vw, 5.2rem);
  --fs-d2: clamp(1.75rem, 4.2vw, 3.3rem);
  --fs-d3: clamp(1.45rem, 2.6vw, 2.15rem);
  --fs-lead: clamp(1.12rem, 1.6vw, 1.45rem);
  --fs-body: clamp(1.0625rem, 0.32vw + 1rem, 1.1875rem);
  --fs-small: 0.9375rem;
  --fs-mono: 0.78125rem;
  --fs-mono-lg: 0.875rem;

  --lh-display: 0.92;
  --lh-body: 1.6;
  --lh-tight: 1.22;
  --tr-display: -0.01em;
  --tr-mono: 0.08em;

  --measure: 64ch;
  --measure-narrow: 52ch;
  --shell: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1.125rem;
  --s-5: 1.75rem;
  --s-6: 2.75rem;
  --s-7: 4.25rem;
  --s-8: 6.5rem;
  --block-pad: clamp(4rem, 10vw, 9rem);
  --rule: 6px;
  --hair: 1px;
  --border: 2px;

  --tap: 48px;
  --radius: 0;

  --dur-1: 120ms;
  --dur-2: 180ms;
  --dur-3: 320ms;
  --dur-4: 620ms;
  --dur-5: 900ms;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0.05, 0.36, 1);
  --ease-press: cubic-bezier(0.18, 0.89, 0.32, 1.06);

  --z-header: 60;
  --z-nav: 70;
  --z-chat: 80;
  --z-consent: 90;
  --z-skip: 100;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--fise-174);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

img { background-color: var(--concrete-light); }

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

button { background: none; border: 0; }

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

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

hr {
  border: 0;
  border-top: var(--border) solid var(--ink);
  margin: var(--s-5) 0;
}

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

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

h1, h2, h3 {
  font-family: var(--fise-c0c);
  font-weight: 800;
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
  text-wrap: balance;
  overflow-wrap: break-word;
}

h4, h5, h6 {
  font-family: var(--fise-174);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: 0;
}

h1 { font-size: var(--fs-d1); }
h2 { font-size: var(--fs-d2); }
h3 { font-size: var(--fs-d3); font-weight: 700; }
h4 { font-size: 1.0625rem; }

.display-hero {
  font-size: var(--fs-hero);
  font-family: var(--fise-c0c);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: pretty;
  margin: 0;
}

.display-xl { font-size: var(--fs-d1); }
.display-lg { font-size: var(--fs-d2); }
.display-md { font-size: var(--fs-d3); }

.upper {
  text-transform: uppercase;
}

.mono,
.meta {
  font-family: var(--fise-693);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  line-height: 1.45;
}

.meta { color: var(--graphite); }
.meta--ink { color: var(--ink); }
.mono-lg { font-size: var(--fs-mono-lg); }

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

.pull {
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.4;
  max-width: 34ch;
  color: var(--ink);
}

.accent { color: var(--mint-deep); }
.dim { color: var(--graphite); }

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

.prose > * + * { margin-top: var(--s-4); }
.prose p { font-size: var(--fs-body); line-height: var(--lh-body); }
.prose h2 { margin-top: var(--s-6); font-size: clamp(1.6rem, 3vw, 2.4rem); }
.prose h3 { margin-top: var(--s-5); font-size: clamp(1.3rem, 2vw, 1.7rem); }
.prose h2 + p,
.prose h3 + p { margin-top: var(--s-3); }
.prose strong { font-weight: 600; }
.prose a {
  color: var(--mint-deep);
  text-decoration: underline;
  text-decoration-color: var(--mint);
  transition: color var(--dur-2) var(--ease-out), text-decoration-color var(--dur-2) var(--ease-out);
}
.prose a:hover { color: var(--ink); text-decoration-color: var(--ink); }

.prose ul,
.prose ol {
  padding-left: 1.4rem;
  max-width: var(--measure);
}
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li {
  position: relative;
  padding-left: 1.5rem;
  margin-top: var(--s-3);
}
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 2px;
  background: var(--mint-deep);
}
.prose ol { list-style: decimal; }
.prose ol > li { margin-top: var(--s-3); padding-left: 0.35rem; }
.prose ol > li::marker {
  font-family: var(--fise-693);
  font-size: 0.8em;
  color: var(--graphite);
}

.prose blockquote {
  border-left: var(--rule) solid var(--mint);
  padding-left: var(--s-4);
  font-style: italic;
}

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

.shell--narrow { max-width: 900px; }
.shell--wide { max-width: 1560px; }

.block {
  position: relative;
  padding-block: var(--block-pad);
  border-bottom: var(--rule) solid var(--ink);
}

.block--flush { padding-block: 0; }
.block--tight { padding-block: clamp(2.5rem, 6vw, 5rem); }
.block--paper { background: var(--paper); color: var(--ink); }
.block--concrete { background: var(--concrete); color: var(--ink); }
.block--light { background: var(--concrete-light); color: var(--ink); }
.block--ink { background: var(--ink); color: var(--paper); }
.block--ink .meta { color: var(--steel); }
.block--ink .dim { color: var(--steel); }
.block--ink .accent { color: var(--mint); }
.block--ink a { color: var(--paper); }
.block--last { border-bottom: 0; }

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

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

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

@media (max-width: 760px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .span-2, .span-3, .span-4, .span-5, .span-6,
  .span-7, .span-8, .span-9, .span-12 { grid-column: 1 / -1; }
}

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.stack-sm > * + * { margin-top: var(--s-2); }

.flow-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

.flow-row > * { min-width: 0; }

.divide-top { border-top: var(--border) solid var(--ink); padding-top: var(--s-4); }
.divide-bottom { border-bottom: var(--border) solid var(--ink); padding-bottom: var(--s-4); }
.hair-top { border-top: var(--hair) solid var(--steel); padding-top: var(--s-3); }

.hazard {
  height: 12px;
  width: 100%;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--ink) 0 14px,
    var(--mint) 14px 28px
  );
}

.hazard--top { border-bottom: var(--border) solid var(--ink); }
.hazard--bottom { border-top: var(--border) solid var(--ink); }

.seal {
  display: inline-grid;
  place-items: center;
  width: clamp(88px, 13vw, 168px);
  aspect-ratio: 1;
  border: var(--border) solid currentColor;
  color: var(--mint-deep);
  transform: rotate(-8deg);
  padding: 0.7rem;
  text-align: center;
}

.seal__mark {
  width: 46%;
  aspect-ratio: 1;
  background-color: currentColor;
  -webkit-mask: url("../logo-mark.svg") center / contain no-repeat;
  mask: url("../logo-mark.svg") center / contain no-repeat;
}

.seal__text {
  font-family: var(--fise-693);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  margin-top: 0.45rem;
  color: currentColor;
}

.seal--mint { color: var(--mint); }
.seal--ink { color: var(--ink); }
.seal--paper { color: var(--paper); }
.seal--sm {
  width: 34px;
  padding: 0.22rem;
  border-width: var(--hair);
}
.seal--sm .seal__mark { width: 62%; }
.seal--lg { width: clamp(120px, 20vw, 220px); }

.mark-inline {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
  background-color: currentColor;
  -webkit-mask: url("../logo-mark.svg") center / contain no-repeat;
  mask: url("../logo-mark.svg") center / contain no-repeat;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

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

.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;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-skip);
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--fise-693);
  font-size: var(--fs-mono);
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  padding: 0.9rem 1.4rem;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  border-bottom: var(--border) solid var(--mint);
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease-out);
}

.skip-link:focus { transform: translateY(0); }

.figure {
  margin: 0;
  position: relative;
}

.figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.figure__caption {
  margin-top: var(--s-3);
  padding-top: var(--s-2);
  border-top: var(--border) solid var(--ink);
  font-family: var(--fise-693);
  font-size: var(--fs-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--graphite);
  line-height: 1.5;
  max-width: 44ch;
}

.block--ink .figure__caption { color: var(--steel); border-top-color: var(--steel); }

.ratio-portrait { aspect-ratio: 2 / 3; }
.ratio-landscape { aspect-ratio: 3 / 2; }
.ratio-square { aspect-ratio: 1; }
.ratio-portrait img,
.ratio-landscape img,
.ratio-square img { width: 100%; height: 100%; object-fit: cover; }

.no-wrap-guard { overflow-wrap: anywhere; }

.text-right { text-align: right; }
.center { margin-inline: auto; text-align: center; }

@media (max-width: 760px) {
  .text-right { text-align: left; }
}

.js [hidden] { display: none !important; }

@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;
  }
  .seal { transform: none; }
}

@media print {
  .site-header, .site-footer, .consent-bar, .chat-launcher, .chat-panel, .read-progress { display: none !important; }
  body { background: #fff; color: #000; }
}
