:root {
  --ink: #153243;
  --ink-soft: #4e6873;
  --sky: #ccecf1;
  --sky-deep: #8bd1dc;
  --mint: #d9f1e4;
  --mint-deep: #79b995;
  --paper: #f8fbf8;
  --paper-strong: #ffffff;
  --line: #cfe1df;
  --accent: #e58968;
  --link: #167489;
  --shadow: 0 1.5rem 4rem rgba(21, 50, 67, .11);
  --measure: 76rem;
  --font-display: 'Literata', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: light;
}

html[data-theme="dark"], html.dark {
  --ink: #e8f4f1;
  --ink-soft: #b4ccca;
  --sky: #193f4a;
  --sky-deep: #69bdc8;
  --mint: #1b413b;
  --mint-deep: #91d3ad;
  --paper: #10252e;
  --paper-strong: #17343e;
  --line: #31545b;
  --accent: #f0a180;
  --link: #8edbe3;
  --shadow: 0 1.5rem 4rem rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
button { color: inherit; }

.shell {
  width: min(calc(100% - 3rem), var(--measure));
  margin-inline: auto;
}
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--link);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.display-title, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.08;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.65rem, 6vw, 5.7rem); max-width: 11ch; }
h2 { font-size: clamp(2rem, 3.5vw, 3.25rem); }
h3 { font-size: 1.5rem; }
.lede { color: var(--ink-soft); font-size: clamp(1.15rem, 1.8vw, 1.35rem); max-width: 39rem; }
.visually-hidden { 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 {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.header-inner {
  display: flex;
  min-height: 5.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark { width: 2.75rem; height: 2.75rem; flex: 0 0 auto; }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.primary-nav { display: flex; align-items: center; gap: .25rem; }
.primary-nav a {
  padding: .6rem .8rem;
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--ink); background: var(--mint); }
[data-atlase6], .marble-bcba {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-strong);
  cursor: pointer;
}
[data-atlase6] { font-size: 1.1rem; }
.marble-bcba { display: none; }

.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 7rem) 0 5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(20rem, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}
.hero-copy h1 { margin-bottom: 1.4rem; }
.hero-copy .lede { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; }
.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { background: var(--link); color: #fff; transform: translateY(-2px); }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--mint); color: var(--ink); }
.hero-visual { position: relative; }
.hero-photo {
  aspect-ratio: 1 / 1.06;
  overflow: hidden;
  border-radius: 48% 48% 1.3rem 1.3rem;
  box-shadow: var(--shadow);
  background: var(--sky);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-note {
  position: absolute;
  right: -1.2rem;
  bottom: 1.4rem;
  width: min(14rem, 42%);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper-strong);
  box-shadow: 0 .9rem 2rem rgba(21, 50, 67, .12);
  font-size: .9rem;
}
.hero-note strong { display: block; margin-bottom: .25rem; color: var(--link); }

.section { padding: 6rem 0; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.4rem; }
.section-header h2 { margin-bottom: .35rem; }
.section-header p { max-width: 35rem; color: var(--ink-soft); }
.mint-band { background: var(--mint); }
.sky-band { background: var(--sky); }
.value-grid, .subject-grid, .community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 68rem;
}
.value-card, .subject-card, .community-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--paper-strong);
}
.value-card .number { color: var(--accent); font-family: var(--font-mono); font-size: .85rem; font-weight: 700; }
.value-card h3, .subject-card h3, .community-card h3 { margin: 1.5rem 0 .55rem; }
.value-card p, .subject-card p, .community-card p { margin-bottom: 0; color: var(--ink-soft); }
.subject-card { padding: 0; overflow: hidden; }
.subject-card figure { margin: 0; aspect-ratio: 1.55 / 1; overflow: hidden; background: var(--sky); }
.subject-card figure img { width: 100%; height: 100%; object-fit: cover; }
.subject-card .card-copy { padding: 1.3rem 1.4rem 1.5rem; }
.subject-card .card-copy h3 { margin-top: 0; }
.card-link { font-weight: 700; text-decoration: none; }

.split-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.band-photo { aspect-ratio: 1.35 / 1; overflow: hidden; border-radius: 1.2rem 4rem 1.2rem 4rem; background: var(--sky); }
.band-photo img { width: 100%; height: 100%; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 1.8rem 0 0; }
.check-list li { position: relative; padding: .6rem 0 .6rem 2rem; border-top: 1px solid var(--line); }
.check-list li::before { content: '✦'; position: absolute; left: 0; color: var(--accent); }
.cta-panel { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(2rem, 5vw, 4rem); border-radius: 1.5rem; background: var(--ink); color: var(--paper); }
.cta-panel h2 { max-width: 16ch; margin-bottom: .6rem; }
.cta-panel p { max-width: 34rem; margin-bottom: 0; color: #b9d4d2; }
.cta-panel .button { border-color: var(--sky-deep); background: var(--sky-deep); color: var(--ink); white-space: nowrap; }

.page-intro { padding: 5rem 0 3rem; }
.page-intro h1 { margin-bottom: 1rem; }
.page-intro .lede { margin-bottom: 0; }
.ivory-f008 { display: grid; grid-template-columns: minmax(0, 1fr) 12rem; gap: 2rem; align-items: start; }
.ivory-f008:has([data-ridge91][hidden]), .ivory-f008:has([data-ridge91]:empty) { grid-template-columns: minmax(0, 1fr); }
.mercury-ad0c { position: sticky; top: 1.5rem; padding: 1rem 0 1rem 1rem; border-left: 2px solid var(--sky-deep); }
.mercury-ad0c h2 { margin: 0 0 .85rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.mercury-ad0c ol { display: grid; gap: .65rem; padding-left: 1.2rem; margin: 0; color: var(--ink-soft); font-size: .9rem; }
.mercury-ad0c a { color: var(--ink-soft); text-decoration: none; }
.mercury-ad0c a:hover { color: var(--link); }
[data-ridge91][hidden] { display: none; }

.explore-tools { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-bottom: 2rem; }
.explore-tools label { margin-right: .4rem; color: var(--ink-soft); font-weight: 600; }
.topic-filter { border: 1px solid var(--line); border-radius: 999px; padding: .55rem .8rem; background: var(--paper-strong); color: var(--ink); cursor: pointer; }
.topic-filter.ember-a6f5, .topic-filter:hover { border-color: var(--link); background: var(--sky); }
.subject-card[hidden] { display: none; }
.zephyr-4234 { display: grid; gap: 1rem; }
.archive-row { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1.2rem; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper-strong); }
.archive-row .bloom-d797 { aspect-ratio: 1.25 / 1; }
.archive-row h2 { margin: .35rem 0; font-size: 1.55rem; }
.archive-row p { margin: 0; color: var(--ink-soft); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); align-items: start; gap: 1rem; }
.news-grid > * { min-width: 0; }
.nickel-73f9 { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper-strong); }
.bloom-d797 { display: block; position: relative; aspect-ratio: 1.5 / 1; overflow: hidden; background: var(--sky); }
.bloom-d797 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nickel-73f9 > :not(.bloom-d797) { margin-inline: 1.2rem; }
.nickel-73f9 .ridge-5eef { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; margin-top: 1rem; color: var(--ink-soft); font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; }
.nickel-73f9 h2 { margin-top: .45rem; font-size: 1.45rem; }
.nickel-73f9 p { color: var(--ink-soft); }
.silver-4b5e { padding: 1.25rem; border: 1px dashed var(--line); border-radius: .8rem; color: var(--ink-soft); }

.archive-form { display: flex; max-width: 42rem; gap: .65rem; margin-bottom: 1.5rem; }
.archive-form input { min-width: 0; flex: 1; padding: .82rem 1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--paper-strong); color: var(--ink); }
.filter-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }

.article-layout { max-width: 68rem; }
.byline { display: flex; align-items: center; gap: .8rem; margin: 0 0 2rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper-strong); }
.byline img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; background: var(--sky); }
.byline strong { display: block; }
.byline p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.slate-e426 h1 { max-width: 18ch; margin-bottom: 1rem; }
.pine-797f { max-height: 32rem; width: 100%; margin: 2rem 0; border-radius: 1rem; object-fit: cover; }
.prose { max-width: 46rem; }
.prose p, .prose li { font-size: 1.15rem; line-height: 1.8; }
.prose p { margin-bottom: 1.4rem; }
.prose h2 { margin-top: 3rem; font-size: 2rem; }
.prose h3 { margin-top: 2rem; }
.prose a { color: var(--link); font-weight: 600; }

.site-footer { margin-top: 5rem; padding: 2rem 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--ink); font-weight: 700; text-decoration: none; }
.not-found { padding: 7rem 0; text-align: center; }
.not-found h1 { max-width: none; margin-inline: auto; }
.not-found p { max-width: 34rem; margin: 0 auto 2rem; color: var(--ink-soft); }

@media (max-width: 800px) {
  .shell { width: min(calc(100% - 2rem), var(--measure)); }
  .header-inner { min-height: 4.75rem; }
  .marble-bcba { display: inline-grid; }
  .primary-nav { display: none; position: absolute; inset: 4.75rem 1rem auto; flex-direction: column; align-items: stretch; padding: .7rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper-strong); box-shadow: var(--shadow); }
  .primary-nav.harbor-4367 { display: flex; }
  .primary-nav a { padding: .8rem 1rem; }
  .hero { padding-top: 3.5rem; }
  .hero-grid, .split-band { grid-template-columns: 1fr; }
  .hero-grid { gap: 3rem; }
  .hero-visual { max-width: 34rem; margin-inline: auto; }
  .hero-note { right: -.3rem; }
  .value-grid, .subject-grid, .community-grid { grid-template-columns: 1fr; }
  .section-header { display: block; }
  .section-header p { margin-bottom: 0; }
  .cta-panel { grid-template-columns: 1fr; }
  .ivory-f008 { grid-template-columns: 1fr; }
  .mercury-ad0c { position: static; grid-row: 1; padding: .8rem 0; border-left: 0; border-top: 2px solid var(--sky-deep); }
  .archive-row { grid-template-columns: 7rem minmax(0, 1fr); }
  .archive-row h2 { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
