
:root {
  --ground: #e9edf1;
  --surface: #dfe5eb;
  --surface-tint: #d6dee5;
  --surface-card: #e3e8ee;
  --surface-subtle: #eef2f5;
  --ink: #141c24;
  --ink-muted: #4a5868;
  --ink-subtle: #6d7d8e;
  --ink-faint: #96a4b2;
  --rule: #cad3dc;
  --rule-subtle: #d9e1e8;
  --rule-strong: #aab7c4;
  --accent: #1b6b78;
  --accent-ice: #86b3bd;
  --accent-hover: #13525d;
  --accent-active: #0e3e46;
  --accent-tint: rgba(27, 107, 120, 0.08);
  --accent-tint-strong: rgba(27, 107, 120, 0.16);
  --accent-border: rgba(27, 107, 120, 0.32);

  --duotone-shadow: #141c24;
  --duotone-highlight: #86b3bd;

  --error: #a82424;
  --error-bg: #fbecec;
  --error-border: #e89e9e;
  --success: #1c6944;
  --success-bg: #eaf6f0;
  --success-border: #9cd5b6;

  --focus-ring: #1b6b78;
  --focus-outline: 2px solid var(--focus-ring);
  --focus-offset: 3px;

  --vube-a6a: 'Playfair Display', Georgia, serif;
  --vube-24d: 'Crimson Pro', Garamond, Georgia, serif;
  --vube-8e1: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --step--2: clamp(0.72rem, 0.69rem + 0.15vw, 0.82rem);
  --step--1: clamp(0.85rem, 0.81rem + 0.2vw, 0.96rem);
  --vube-9dd: clamp(1.02rem, 0.98rem + 0.22vw, 1.15rem);
  --vube-71e: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --vube-93f: clamp(1.45rem, 1.32rem + 0.65vw, 1.8rem);
  --vube-5b2: clamp(1.8rem, 1.58rem + 1.1vw, 2.35rem);
  --vube-595: clamp(2.25rem, 1.9rem + 1.75vw, 3.15rem);
  --vube-423: clamp(2.8rem, 2.3rem + 2.5vw, 4.2rem);
  --step-verb: clamp(2.75rem, 2.2rem + 2.75vw, 4.6rem);

  --leading-tight: 1.08;
  --leading-snug: 1.25;
  --leading-normal: 1.62;
  --leading-loose: 1.8;

  --tracking-tighter: -0.035em;
  --tracking-tight: -0.02em;
  --tracking-normal: 0em;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.08em;
  --tracking-mono: -0.01em;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6.5rem;
  --space-4xl: 9rem;

  --max-width: 1320px;
  --measure-prose: 56ch;
  --measure-narrow: 42ch;
  --rail-width: 290px;
  --header-height: 4.8rem;
  --gutter: clamp(1.1rem, 3.5vw, 2.75rem);

  --radius-none: 0px;
  --radius-xs: 1px;
  --radius-sm: 2px;

  --border-hairline: 1px solid var(--rule);
  --border-subtle: 1px solid var(--rule-subtle);
  --border-strong: 1px solid var(--rule-strong);
  --border-accent: 1px solid var(--accent);

  --shadow-editorial: 0 1px 2px rgba(20, 28, 36, 0.05), 0 4px 12px rgba(20, 28, 36, 0.04);
  --shadow-lift: 0 4px 16px rgba(20, 28, 36, 0.08), 0 12px 28px rgba(20, 28, 36, 0.06);
  --shadow-overlay: 0 8px 32px rgba(20, 28, 36, 0.16);

  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-instant: 120ms;
  --duration-fast: 180ms;
  --duration-base: 260ms;
  --duration-slow: 480ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--ground);
  color: var(--ink);
}

body {
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--vube-24d);
  font-size: var(--vube-9dd);
  line-height: var(--leading-normal);

  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;

  position: relative;
}

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

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

ul, ol {
  list-style: none;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--vube-a6a);
  color: var(--ink);
  line-height: var(--leading-tight);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
}

h1 {
  font-size: var(--vube-423);
  font-weight: 700;
  letter-spacing: var(--tracking-tighter);
}

h2 {
  font-size: var(--vube-595);
  font-weight: 600;
}

h3 {
  font-size: var(--vube-5b2);
  font-weight: 600;
}

h4 {
  font-size: var(--vube-93f);
  font-weight: 600;
}

h5 {
  font-size: var(--vube-71e);
  font-weight: 600;
}

h6 {
  font-size: var(--vube-9dd);
  font-weight: 600;
}

p {
  max-width: var(--measure-prose);
  color: var(--ink);
  margin-bottom: var(--space-s);
}

p.lead {
  font-size: var(--vube-71e);
  line-height: var(--leading-snug);
  color: var(--ink);
}

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

em, i {
  font-style: italic;
}

strong, b {
  font-weight: 600;
  color: var(--ink);
}

small {
  font-size: var(--step--1);
  color: var(--ink-muted);
}

mark {
  background-color: var(--accent-ice);
  color: var(--ink);
  padding: 0 0.2em;
}

blockquote {
  border-left: 2px solid var(--accent);
  padding-left: var(--space-m);
  margin: var(--space-l) 0;
  font-style: italic;
  font-size: var(--vube-71e);
  color: var(--ink);
  max-width: var(--measure-prose);
}

code, kbd, samp, pre {
  font-family: var(--vube-8e1);
  font-size: var(--step--1);
  letter-spacing: var(--tracking-mono);
}

code {
  background-color: var(--surface);
  padding: 0.15em 0.35em;
  border: 1px solid var(--rule);
  border-radius: var(--radius-xs);
}

pre {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  padding: var(--space-m);
  overflow-x: auto;
  max-width: 100%;
  margin: var(--space-m) 0;
}

pre code {
  background: transparent;
  border: none;
  padding: 0;
}

hr {
  border: none;

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

.skip-link {
  position: absolute;
  top: -999px;
  left: var(--space-s);
  background: var(--ink);
  color: var(--ground);
  padding: var(--space-xs) var(--space-m);
  z-index: 10000;
  font-family: var(--vube-8e1);
  font-size: var(--step--1);
  text-decoration: underline;
  border: 1px solid var(--accent-ice);
}

.skip-link:focus {
  top: var(--space-s);
}

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

.icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.18em;
  fill: currentColor;
  flex-shrink: 0;
}

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

.shell-container--fluid {
  max-width: none;
  width: 100%;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-l);
  width: 100%;
}

.split-2-1 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-l);
}

.split-1-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-l);
}

@media (min-width: 900px) {
  .split-2-1 {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
    gap: var(--space-xl);
  }

  .split-1-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: start;
    gap: var(--space-xl);
  }
}

.offcenter-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  width: 100%;
}

@media (min-width: 1024px) {
  .offcenter-frame {
    grid-template-columns: minmax(0, 1fr) var(--rail-width);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
}

.band-break {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
}

.duotone-frame {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-color: #141c24;
  overflow: hidden;
}

.duotone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(115%);
  mix-blend-mode: luminosity;
  opacity: 0.38;
}

.duotone-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 28, 36, 0.92) 0%, rgba(27, 107, 120, 0.72) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.duotone-frame .duotone-content {
  position: relative;
  z-index: 2;
  color: #edf2f6;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.baseline-line {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--rule);
  margin: var(--space-xl) 0;
}

.civo8ab-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-m) 0;
  border: var(--border-hairline);
  background: var(--surface);
}

.meta-label {
  font-family: var(--vube-8e1);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--ink-muted);
}

.num-display {
  font-family: var(--vube-8e1);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-mono);
}

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