:root {
  --ink: #152033;
  --ink-soft: #5a6978;
  --brand: #0c2340;
  --surface: #0c2340;
  --surface-deep: #081628;
  --accent: #0e5c82;
  --accent-dark: #0a4664;
  --accent-soft: #e7f2f7;
  --canvas: #f3f5f8;
  --paper: #ffffff;
  --line: #d5dde6;
  --on-surface: #f4f7fa;
  --on-surface-soft: #c5d2de;
  --measure: 78rem;
  --font-display: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --shadow: 0 10px 28px rgba(12, 35, 64, .08);
  color-scheme: light;
}

html[data-theme="dark"], html.dark {
  --ink: #e6eef5;
  --ink-soft: #b3c2d0;
  --brand: #e6eef5;
  --surface: #07111c;
  --surface-deep: #050c14;
  --accent: #3d93bc;
  --accent-dark: #67b4d6;
  --accent-soft: #163244;
  --canvas: #0c1622;
  --paper: #122033;
  --line: #2c4256;
  --on-surface: #f4f7fa;
  --on-surface-soft: #b7c6d4;
  --shadow: 0 12px 32px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  background: var(--paper);
  border-top: 3px solid var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(calc(100% - 3rem), var(--measure));
  min-height: 4.6rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex: 0 0 auto;
  color: var(--brand);
}
.brand-mark { width: 2.35rem; height: 2.35rem; display: block; flex: 0 0 auto; }
.mark-accent { stroke: var(--accent); }
.brand-copy { display: grid; line-height: 1; gap: .22rem; justify-items: start; text-align: left; }
.brand-name { font: 600 1.15rem/1 var(--font-display); letter-spacing: -.02em; }
.brand-name .brand-primary { color: var(--brand); font-weight: 700; }
.brand-name .brand-secondary { color: var(--brand); font-weight: 500; }
.brand-place { color: var(--accent); font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 1.35rem; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  padding: .2rem 0;
}
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-button, .ripple-a755 {
  width: 2.4rem; height: 2.4rem; border: 1px solid var(--line); border-radius: 2px;
  background: var(--paper); color: var(--brand); display: grid; place-items: center;
}
.icon-button svg, .ripple-a755 svg { width: 1.05rem; height: 1.05rem; }
.ripple-a755 { display: none; }

.page-wrap { width: min(calc(100% - 3rem), var(--measure)); margin: 0 auto; }
.pearl-f27e { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: 2.4rem; align-items: start; }
.pearl-f27e:has([data-harborc0][hidden]), .pearl-f27e:has([data-harborc0]:empty) { grid-template-columns: minmax(0, 1fr); }
[data-harborc0][hidden] { display: none; }
.jasper-e443 { border-left: 2px solid var(--accent); padding: .2rem 0 0 1rem; position: sticky; top: 1.4rem; text-align: left; }
.jasper-e443 h2 { margin: 0 0 .8rem; font: 600 1rem/1.3 var(--font-display); }
.jasper-e443 ol { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.jasper-e443 li { margin: .45rem 0; font-size: .87rem; }
.jasper-e443 a { text-decoration: none; }
.jasper-e443 a:hover { color: var(--accent); }

h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-display); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 4vw, 3.15rem); margin: 0; }
h2 { font-size: clamp(1.55rem, 2.4vw, 2rem); margin: 0; }
h3 { font-size: 1.15rem; margin: 0; line-height: 1.35; }
p { margin: 0 0 1rem; }
.eyebrow {
  display: block;
  color: var(--accent);
  font: 600 .68rem/1.4 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 .65rem;
  text-align: left;
}
.section-heading { display: flex; justify-content: space-between; align-items: start; gap: 1.5rem; margin-bottom: 1.35rem; text-align: left; }
.section-heading p { color: var(--ink-soft); max-width: 34rem; margin: .15rem 0 0; }
.section-heading a { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-heading a::after { content: ' →'; }

.hero {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  min-height: 28rem;
  background: var(--surface);
  color: var(--on-surface);
  border: 1px solid var(--surface);
}
.hero-copy {
  padding: clamp(1.8rem, 4vw, 3.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}
.hero h1 { color: var(--on-surface); max-width: 14ch; font-size: clamp(2.2rem, 4vw, 3.35rem); line-height: 1.12; }
.hero-intro { color: var(--on-surface-soft); font-size: 1.05rem; line-height: 1.6; max-width: 34rem; margin: 1rem 0 1.5rem; }
.hero .eyebrow { color: #9ecae0; }
.hero-image { min-height: 18rem; position: relative; overflow: hidden; }
.hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 22, 40, .28), transparent 46%); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-note { display: flex; align-items: center; gap: .75rem; margin: 1.35rem 0 0; color: #b7c9d6; font-size: .84rem; }
.hero-note::before { content: ''; display: block; width: 1.75rem; border-top: 1px solid var(--accent); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: fit-content;
  border: 1px solid transparent; border-radius: 2px; min-height: 2.7rem; padding: .65rem 1.1rem; font-weight: 600;
  letter-spacing: .01em; text-decoration: none; transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-dark); }
.button-quiet { border-color: var(--line); color: var(--brand); background: transparent; }
.button-quiet:hover { border-color: var(--accent); color: var(--accent); }
.hero .button-quiet { color: var(--on-surface); border-color: rgba(255, 255, 255, .45); }
.hero .button-quiet:hover { border-color: #fff; color: #fff; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }

section { padding: 4.25rem 0 0; }
.category-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; align-items: stretch; }
.category-tile {
  min-height: 13.25rem;
  padding: 1.25rem 1.25rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  gap: .45rem;
  transition: border-color .2s ease, background .2s ease;
}
.category-tile:hover { border-color: var(--accent); background: var(--accent-soft); }
.category-tile > * { width: 100%; max-width: 100%; margin: 0; text-align: left; }
.category-tile span { color: var(--ink-soft); font-size: .82rem; font-weight: 500; letter-spacing: .02em; line-height: 1.4; }
.category-tile strong { display: block; font: 600 1.22rem/1.3 var(--font-display); color: var(--ink); letter-spacing: -.015em; overflow-wrap: break-word; }
.category-tile small { display: block; margin-top: auto; padding-top: .85rem; color: var(--accent); font-weight: 600; font-size: .84rem; line-height: 1.4; }

.news-grid, .ivory-ed47 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; align-items: stretch; }
.marble-713c { background: var(--paper); min-width: 0; display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); transition: border-color .2s ease; }
.marble-713c:hover { border-color: var(--accent); }
.amber-1eb3 { display: block; position: relative; aspect-ratio: 1.6 / 1; overflow: hidden; background: var(--accent-soft); }
.amber-1eb3 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.marble-713c .story-content, .marble-713c > .story-content {
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  flex: 1;
  gap: 0;
}
.fable-1fd4 { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: .4rem .65rem; margin: 0 0 .55rem; color: var(--ink-soft); font: 500 .72rem/1.35 var(--font-mono); text-align: left; }
.meadow-75d6 { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.marble-713c h3 { font-size: 1.12rem; line-height: 1.35; letter-spacing: -.015em; margin: 0; overflow-wrap: break-word; }
.marble-713c h3 a { text-decoration: none; }
.marble-713c h3 a:hover { color: var(--accent); }
.marble-713c p { color: var(--ink-soft); font-size: .94rem; line-height: 1.55; margin: .55rem 0 0; text-align: left; }
.cobalt-8884 { color: var(--ink-soft); padding: 1rem 1.1rem; border: 1px dashed var(--line); background: var(--paper); text-align: left; grid-column: 1 / -1; }

.guide-band { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(16rem, .85fr); background: var(--surface); color: var(--on-surface); align-items: stretch; }
.guide-band > div {
  padding: clamp(1.6rem, 4vw, 2.8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}
.guide-band h2 { color: var(--on-surface); max-width: 18em; font-size: clamp(1.55rem, 2.4vw, 2rem); line-height: 1.2; }
.guide-band p { color: var(--on-surface-soft); max-width: 36rem; margin: .8rem 0 1.25rem; text-align: left; }
.guide-band .eyebrow { color: #9ecae0; }
.guide-toc { border-left: 1px solid rgba(255, 255, 255, .16); }
.guide-toc h3 { color: var(--on-surface); font-size: .95rem; margin: 0 0 .85rem; text-align: left; }
.guide-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: guide; width: 100%; }
.guide-toc li {
  counter-increment: guide;
  display: flex;
  align-items: baseline;
  gap: .75rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding: .75rem 0;
  color: var(--on-surface-soft);
  text-align: left;
  line-height: 1.4;
}
.guide-toc li::before { content: counter(guide, decimal-leading-zero); flex: 0 0 auto; color: #9ecae0; font: 600 .72rem/1 var(--font-mono); }
.guide-toc a { text-decoration: none; color: inherit; }
.guide-toc a:hover { color: #fff; }

.data-panel { background: var(--paper); padding: clamp(1.25rem, 3vw, 1.75rem); border: 1px solid var(--line); text-align: left; }
.data-panel > p { margin: 0; max-width: 44rem; color: var(--ink-soft); text-align: left; }
.data-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: .45rem; margin: 1.15rem 0 1.25rem; }
.data-tab { border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--ink-soft); padding: .4rem .75rem; font-weight: 600; font-size: .88rem; }
.data-tab[aria-selected="true"], .data-tab:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.climate-panel { display: none; }
.climate-panel.is-visible { display: grid; grid-template-columns: minmax(0, 1fr) 15.5rem; gap: 1.75rem; align-items: center; }
.chart { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: .75rem; min-height: 11rem; border-bottom: 1px solid var(--line); padding: 0 0 .55rem; }
.bar-column { display: grid; grid-template-rows: auto 1fr auto; align-items: end; justify-items: center; min-width: 0; height: 100%; text-align: center; }
.bar-value, .bar-label { width: 100%; text-align: center; white-space: nowrap; line-height: 1.3; }
.bar-value { color: var(--accent); font: 600 .75rem/1.3 var(--font-mono); align-self: end; }
.bar { width: min(2.6rem, 72%); height: var(--bar-height); background: var(--accent); align-self: end; }
.bar-label { color: var(--ink-soft); font-size: .8rem; align-self: start; margin-top: .35rem; }
.data-summary { border-left: 1px solid var(--line); padding: .15rem 0 .15rem 1.35rem; text-align: left; align-self: center; }
.data-summary strong { display: block; color: var(--brand); font: 600 2.15rem/1.15 var(--font-display); letter-spacing: -.03em; text-align: left; }
.data-summary p { color: var(--ink-soft); font-size: .9rem; line-height: 1.5; margin: .45rem 0 .7rem; text-align: left; }
.data-summary a { color: var(--accent); font-weight: 600; text-decoration: none; }
.data-summary a:hover { text-decoration: underline; }
.data-source { margin: 1rem 0 0; color: var(--ink-soft); font-size: .78rem; text-align: left; }
.data-source a { color: var(--accent); }

.newsletter { margin-top: 0; padding: clamp(1.6rem, 4vw, 2.6rem); background: var(--paper); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; text-align: left; }
.newsletter h2 { max-width: 16em; line-height: 1.2; }
.newsletter p { color: var(--ink-soft); max-width: 34rem; margin: 0 0 .9rem; text-align: left; }
.newsletter-form { display: grid; gap: .65rem; justify-items: stretch; }
.newsletter-fields { display: flex; align-items: stretch; gap: .55rem; }
.newsletter input, .archive-form input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 2px; min-height: 2.7rem; padding: .6rem .85rem; background: var(--paper); color: var(--ink); }
.form-status { color: var(--accent); font-size: .9rem; min-height: 1.4em; margin: 0; text-align: left; }

.page-intro { padding: 3.6rem 0 1.6rem; max-width: 46rem; text-align: left; }
.page-intro h1 { font-size: clamp(2.15rem, 4vw, 3.15rem); line-height: 1.15; }
.page-intro p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; max-width: 40rem; margin-top: .9rem; }
.archive-form { display: flex; align-items: stretch; gap: .6rem; margin-bottom: 1rem; }
.filter-list { min-height: 2rem; margin-bottom: 1.5rem; text-align: left; }

.content-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 1.25rem 1.3rem 1.3rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}
.info-card .eyebrow { margin-bottom: .55rem; }
.info-card h2, .info-card h3 { margin: 0 0 .55rem; font-size: 1.15rem; line-height: 1.35; letter-spacing: -.015em; max-width: none; overflow-wrap: break-word; text-align: left; }
.info-card p { color: var(--ink-soft); margin: 0; line-height: 1.55; text-align: left; }
.info-card ul { margin: 0; padding-left: 1.15rem; color: var(--ink-soft); text-align: left; }
.data-table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 38rem; }
th, td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
th { color: var(--brand); font: 600 .75rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
td { color: var(--ink-soft); }

.byline { display: flex; gap: .9rem; align-items: center; margin: 1.6rem 0 0; padding: .9rem 1rem; background: var(--accent-soft); border: 1px solid var(--line); text-align: left; }
.byline img { width: 3rem; height: 3rem; object-fit: cover; border-radius: 2px; }
.byline p { margin: .2rem 0 0; color: var(--ink-soft); font-size: .9rem; text-align: left; }
.mercury-34f1 { max-width: 46rem; padding: 3.2rem 0 4rem; text-align: left; }
.mercury-34f1 .cobalt-8884 { margin-top: 1.5rem; }
.pine-8fda h1 { max-width: 22ch; font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1.15; }
.delta-1a8d { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.55; max-width: 40rem; margin: .85rem 0 1.2rem; text-align: left; }
.lumen-01e0 { width: 100%; aspect-ratio: 1.8 / 1; object-fit: cover; margin: 1.5rem 0; }
.prose { max-width: 42rem; text-align: left; }
.prose p, .prose li { font-size: 1.05rem; line-height: 1.7; }
.prose h2 { margin: 2.1rem 0 .6rem; font-size: 1.45rem; line-height: 1.25; }
.prose h3 { margin: 1.5rem 0 .45rem; }
.prose a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .16em; }
.prose blockquote { margin: 1.5rem 0; padding: .9rem 1.1rem; border-left: 3px solid var(--accent); color: var(--brand); font: 500 1.08rem/1.5 var(--font-body); background: var(--accent-soft); }

.site-footer { margin-top: 4.5rem; background: var(--surface-deep); color: var(--on-surface-soft); padding: 2.8rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; align-items: start; }
.site-footer .brand { color: var(--on-surface); }
.site-footer .mark-accent { stroke: #7eb6d4; }
.site-footer .brand-name,
.site-footer .brand-name .brand-primary,
.site-footer .brand-name .brand-secondary { color: var(--on-surface); }
.site-footer .brand-place { color: #8fb4c9; }
.site-footer h2 { color: var(--on-surface); font-size: .95rem; line-height: 1.3; margin: 0 0 .7rem; letter-spacing: .04em; text-transform: uppercase; }
.site-footer p, .site-footer li { color: var(--on-surface-soft); font-size: .9rem; line-height: 1.5; text-align: left; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: .4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2rem; padding-top: .9rem; color: #8ea4b5; font-size: .78rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }

@media (max-width: 900px) {
  .header-inner { gap: 1rem; }
  .site-nav ul { gap: .85rem; }
  .site-nav a { font-size: .84rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-image { min-height: 16rem; order: -1; }
  .hero-image::after { background: linear-gradient(180deg, transparent 50%, rgba(8, 22, 40, .28)); }
  .hero-copy { padding: 1.8rem 1.6rem 2rem; }
  .climate-panel.is-visible { grid-template-columns: 1fr; align-items: start; }
  .data-summary { border-left: 0; border-top: 1px solid var(--line); padding: 1rem 0 0; }
}
@media (max-width: 700px) {
  .header-inner, .page-wrap { width: min(calc(100% - 2rem), var(--measure)); }
  .header-inner { min-height: 4.2rem; }
  .brand-mark { width: 2.05rem; height: 2.05rem; }
  .brand-name { font-size: 1.05rem; }
  .site-nav { display: none; position: absolute; z-index: 3; top: 4.35rem; left: 0; right: 0; padding: .4rem 1rem 1rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.pearl-e178 { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: .75rem .15rem; text-align: left; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
  .ripple-a755 { display: grid; }
  .header-actions { margin-left: auto; }
  .pearl-f27e { grid-template-columns: minmax(0, 1fr); }
  .jasper-e443 { position: static; margin-top: 2rem; }
  .category-strip, .content-columns { grid-template-columns: 1fr 1fr; }
  section { padding-top: 3rem; }
  .section-heading { display: block; }
  .section-heading a { display: inline-block; margin-top: .7rem; }
  .guide-band { grid-template-columns: 1fr; }
  .guide-toc { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
  .newsletter { grid-template-columns: 1fr; }
  .newsletter-fields { flex-direction: column; }
  .archive-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: .35rem; }
}
@media (max-width: 430px) {
  h1, .page-intro h1, .hero h1 { font-size: 1.9rem; }
  .category-strip, .content-columns { grid-template-columns: 1fr; }
  .hero-copy { padding: 1.4rem 1.15rem 1.6rem; }
  .hero-image { min-height: 13rem; }
  .page-intro { padding-top: 2.6rem; }
  .chart { gap: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
