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

:root {
  --paper: #F0ECE3;
  --paper-warm: #F6F3EC;
  --paper-deep: #E4DFD3;
  --ink: #1F2933;
  --ink-soft: #2C3843;
  --slate: #3E4C59;
  --slate-deep: #2E3945;
  --rule: #C9C2B4;
  --rule-dark: #55636F;
  --steel: #46515A;
  --accent: #7FD1DB;
  --accent-deep: #1F5E64;

  --ff-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --ff-body: "Piazzolla", Georgia, "Times New Roman", serif;
  --ff-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --fs-micro: 0.688rem;
  --fs-label: 0.75rem;
  --fs-meta: 0.813rem;
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --fs-lead: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --fs-h5: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  --fs-h4: clamp(1.3rem, 1.16rem + 0.6vw, 1.6rem);
  --fs-h3: clamp(1.6rem, 1.3rem + 1.4vw, 2.35rem);
  --fs-h2: clamp(2rem, 1.5rem + 2.6vw, 3.5rem);
  --fs-h1: clamp(2.55rem, 1.55rem + 5.4vw, 6.5rem);
  --fs-figure: clamp(3.2rem, 2rem + 7vw, 7.5rem);
  --fs-numeral: clamp(3rem, 1.8rem + 6vw, 6.75rem);

  --lh-tight: 0.9;
  --lh-head: 1.02;
  --lh-snug: 1.28;
  --lh-body: 1.62;
  --lh-loose: 1.75;

  --tr-label: 0.16em;
  --tr-nav: 0.1em;
  --tr-display: 0.005em;

  --shell: 1180px;
  --shell-wide: 1440px;
  --gutter: clamp(20px, 5vw, 64px);
  --block-y: clamp(64px, 10vw, 140px);
  --block-y-tight: clamp(44px, 6vw, 84px);
  --stack-1: 6px;
  --stack-2: 12px;
  --stack-3: 20px;
  --stack-4: 30px;
  --stack-5: 46px;
  --stack-6: 68px;

  --rule-hair: 1px solid var(--rule);
  --rule-mid: 2px solid var(--ink);
  --rule-thick: 4px solid var(--ink);

  --dur-xs: 110ms;
  --dur-sm: 190ms;
  --dur-md: 320ms;
  --dur-lg: 520ms;
  --dur-xl: 820ms;
  --ease-out: cubic-bezier(0.16, 0.84, 0.32, 1);
  --ease-in-out: cubic-bezier(0.62, 0.02, 0.24, 1);
  --ease-press: cubic-bezier(0.3, 0.9, 0.4, 1);
  --ease-settle: cubic-bezier(0.22, 1, 0.28, 1);

  --header-h: 72px;
  --focus-ring: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent-deep);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.55), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(123, 135, 148, 0.09), transparent 46%);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100%;
}

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

img { height: auto; border: 0; }

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

button { background: none; border: 0; }

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

ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 800;
  line-height: var(--lh-head);
  letter-spacing: var(--tr-display);
  text-transform: uppercase;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-h4); font-weight: 700; letter-spacing: 0.02em; }

h5 {
  font-family: var(--ff-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  line-height: 1.4;
  margin: 0;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color var(--dur-sm) var(--ease-out),
    text-decoration-color var(--dur-sm) var(--ease-out),
    background-color var(--dur-sm) var(--ease-out);
}

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

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

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

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

small { font-size: var(--fs-meta); }

hr {
  border: 0;
  border-top: var(--rule-mid);
  margin: var(--stack-5) 0;
}

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

abbr[title] { text-decoration: underline dotted; cursor: help; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -200%;
  z-index: 200;
  padding: 14px 22px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ff-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
}

.skip-link:focus {
  top: 12px;
  color: var(--paper);
}

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

.shell--wide { max-width: var(--shell-wide); }

.block {
  position: relative;
  padding-block: var(--block-y);
  border-bottom: var(--rule-thick);
}

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

.block--paper { background: var(--paper); }
.block--paper-warm { background: var(--paper-warm); }
.block--paper-deep { background: var(--paper-deep); }

.block--slate {
  background: var(--slate);
  color: var(--paper-warm);
  border-bottom-color: var(--ink);
}

.block--ink {
  background: var(--ink);
  color: var(--paper-warm);
  border-bottom-color: var(--ink);
}

.block--slate h1,
.block--slate h2,
.block--slate h3,
.block--slate h4,
.block--ink h1,
.block--ink h2,
.block--ink h3,
.block--ink h4 { color: var(--paper-warm); }

.block--slate a,
.block--ink a { color: var(--accent); }

.block--slate a:hover,
.block--ink a:hover { color: var(--paper); }

.block--slate .lede,
.block--ink .lede { color: rgba(240, 236, 227, 0.86); }

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    repeating-linear-gradient(0deg, rgba(31, 41, 51, 0.045) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(31, 41, 51, 0.03) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
}

.block--slate.grain::after,
.block--ink.grain::after { mix-blend-mode: overlay; opacity: 0.3; }

.label {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--steel);
  line-height: 1.4;
}

.label + h1,
.label + h2,
.label + h3 { margin-top: 16px; }

.label--ink { color: var(--ink); }
.label--accent { color: var(--accent-deep); }
.label--paper { color: rgba(240, 236, 227, 0.72); }

.label-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--stack-4);
}

.label-rule::after {
  content: "";
  flex: 1 1 auto;
  min-width: 0;
  height: 1px;
  background: var(--rule);
}

.block--slate .label-rule::after,
.block--ink .label-rule::after { background: rgba(240, 236, 227, 0.3); }

.lede {
  font-size: var(--fs-lead);
  line-height: 1.48;
  color: var(--ink-soft);
  max-width: 34ch;
}

.measure { max-width: 68ch; }
.measure-narrow { max-width: 52ch; }
.measure-wide { max-width: 80ch; }

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

.prose h2 {
  font-size: var(--fs-h3);
  margin-top: var(--stack-6);
  margin-bottom: var(--stack-2);
}

.prose h3 {
  font-size: var(--fs-h4);
  margin-top: var(--stack-5);
  margin-bottom: var(--stack-1);
}

.prose p { max-width: 72ch; }

.prose a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

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

.prose ul,
.prose ol {
  max-width: 70ch;
  padding-left: 0;
}

.prose li {
  position: relative;
  padding-left: 26px;
  margin-top: var(--stack-2);
}

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

.prose ol { counter-reset: pl; }

.prose ol > li { counter-increment: pl; }

.prose ol > li::before {
  content: counter(pl, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.16em;
  font-family: var(--ff-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--steel);
}

.prose dt {
  font-family: var(--ff-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  margin-top: var(--stack-3);
}

.prose dd { margin: var(--stack-1) 0 0; max-width: 70ch; }

.mono {
  font-family: var(--ff-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.uc { text-transform: uppercase; letter-spacing: var(--tr-label); }

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

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

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

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

.grid {
  display: grid;
  gap: var(--stack-5);
}

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

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }
.grid--aside { grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); }

@media (max-width: 900px) {
  .grid--2,
  .grid--3,
  .grid--split,
  .grid--aside { grid-template-columns: minmax(0, 1fr); }
}

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

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

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

.frame {
  position: relative;
  display: block;
  background: var(--paper-deep);
}

.frame picture {
  position: relative;
  display: block;
  overflow: hidden;
}

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

.frame--4x3 picture { aspect-ratio: 4 / 3; }
.frame--3x2 picture { aspect-ratio: 3 / 2; }
.frame--1x1 picture { aspect-ratio: 1 / 1; }
.frame--tall picture { aspect-ratio: 4 / 5; }

.caption {
  margin-top: 10px;
  font-family: var(--ff-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  line-height: 1.5;
  max-width: 46ch;
}

.block--slate .caption,
.block--ink .caption { color: rgba(240, 236, 227, 0.66); }

.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  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 { background: #fff; color: #000; }
  .site-header, .site-footer, .chat-launcher, .chat-panel, .consent-bar { display: none !important; }
}
