:root {
  color-scheme: light;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #07303a;
  --ink-2: #244a53;
  --muted: #637b82;
  --cream: #f7efe2;
  --cream-2: #fff9ef;
  --paper: #fffdf8;
  --nav: #082d35;
  --border: #d8cdc0;
  --accent: #f47c4d;
  --accent-strong: #e35f2d;
  --accent-soft: #ffe2d4;
  --database: #2d6cdf;
  --database-soft: #e7f0ff;
  --tools: #2fa66a;
  --tools-soft: #e9f7ef;
  --docs: #6e75e6;
  --docs-soft: #eceeff;
  --shadow: 0 22px 70px rgba(7, 48, 58, 0.12);
  --soft-shadow: 0 14px 45px rgba(7, 48, 58, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shell: 1120px;
}

body:has(#theme-data:checked) {
  color-scheme: dark;
  --ink: #eaf7f8;
  --ink-2: #c7dee3;
  --muted: #9fb9c0;
  --cream: #061f26;
  --cream-2: #082a33;
  --paper: #0b313a;
  --nav: #03171c;
  --border: #28545e;
  --accent: #4aa8ff;
  --accent-strong: #7cc0ff;
  --accent-soft: #123e55;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --soft-shadow: 0 14px 55px rgba(0, 0, 0, 0.20);
}

body:has(#theme-light:checked) {
  --ink: #092b34;
  --ink-2: #35535b;
  --muted: #67767b;
  --cream: #fbfaf7;
  --cream-2: #ffffff;
  --paper: #ffffff;
  --nav: #ffffff;
  --border: #d9dee0;
  --accent: #f47c4d;
  --accent-strong: #dd5a25;
  --accent-soft: #fff0e8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 12%, rgba(244, 124, 77, 0.16), transparent 28rem),
    radial-gradient(circle at 18% 38%, rgba(47, 166, 106, 0.09), transparent 30rem),
    linear-gradient(180deg, var(--cream), var(--cream-2) 45%, var(--cream));
  min-height: 100vh;
}

a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }

a:hover { color: var(--accent-strong); }

.theme-radio {
  position: fixed;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.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(--nav);
  color: white;
  border-bottom: 1px solid color-mix(in srgb, var(--border), transparent 45%);
}

body:has(#theme-light:checked) .site-header {
  color: var(--ink);
  box-shadow: 0 8px 35px rgba(7, 48, 58, 0.08);
}

.nav-shell,
.section-shell,
.footer-shell {
  width: min(var(--shell), calc(100% - 32px));
  margin-inline: auto;
}

.nav-shell {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-name,
.footer-brand span:last-child {
  font-family: var(--font-display);
  font-weight: 850;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.mark {
  position: relative;
  display: grid;
  place-items: center;
  inline-size: 58px;
  block-size: 58px;
  border: 2px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  background: radial-gradient(circle, #f8dd79 0 28%, #e7f2f4 29% 34%, transparent 35%);
}

body:has(#theme-light:checked) .mark { border-color: rgba(7, 48, 58, 0.22); }

.mark-a {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.5rem;
  color: #ff6800;
  text-shadow: 0 1px 0 #fff, 0 0 0 2px #07303a;
}

.mark-node {
  position: absolute;
  inline-size: 11px;
  block-size: 11px;
  border-radius: 50%;
  background: #7aa2f7;
  border: 1.5px solid var(--ink);
}
.n1 { top: 2px; left: 22px; }
.n2 { top: 14px; right: 4px; background: #7bd88f; }
.n3 { bottom: 7px; right: 8px; }
.n4 { bottom: 1px; left: 22px; background: #7bd88f; }
.n5 { bottom: 12px; left: 3px; }
.n6 { top: 13px; left: 4px; background: #7bd88f; }

.mark.small {
  inline-size: 52px;
  block-size: 52px;
  opacity: 0.8;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 60%);
}
.mark.small .mark-a { font-size: 2.1rem; color: #e5f2f5; text-shadow: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  font-weight: 650;
  text-decoration: none;
  padding-block: 32px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}

.nav-links a.active::after,
.nav-links a:hover::after { background: var(--accent); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

body:has(#theme-light:checked) .theme-toggle {
  border-color: var(--border);
  background: rgba(7,48,58,0.04);
}

.theme-toggle label {
  display: grid;
  place-items: center;
  inline-size: 38px;
  block-size: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 760;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

body:has(#theme-data:checked) .theme-toggle label[for="theme-data"],
body:has(#theme-twilight:checked) .theme-toggle label[for="theme-twilight"],
body:has(#theme-light:checked) .theme-toggle label[for="theme-light"] {
  background: var(--accent);
  color: #092b34;
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 52px;
  align-items: center;
  min-height: 560px;
  padding-block: 70px 54px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  color: var(--ink);
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(3.3rem, 6vw, 5.7rem);
  line-height: 0.96;
  font-weight: 880;
}

.hero-lede {
  max-width: 560px;
  margin-bottom: 32px;
  color: var(--ink-2);
  font-size: 1.08rem;
  line-height: 1.68;
}

.hero-lede a { color: var(--database); font-weight: 650; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 760;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--ink); color: var(--cream-2); border-color: var(--ink); box-shadow: 0 14px 30px rgba(7, 48, 58, 0.18); }
.button.secondary { background: color-mix(in srgb, var(--paper), transparent 20%); color: var(--ink); }
.button.primary:hover { color: var(--cream-2); }

.hero-visual {
  min-height: 420px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 72% 40%, rgba(244,124,77,0.24), transparent 10rem),
    radial-gradient(circle at 45% 52%, rgba(45,108,223,0.20), transparent 12rem),
    radial-gradient(circle at 60% 62%, rgba(47,166,106,0.17), transparent 9rem),
    linear-gradient(135deg, transparent, rgba(255,255,255,0.42));
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--ink), transparent 82%) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at 60% 45%, black, transparent 72%);
  opacity: 0.5;
}

.bonds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bonds path {
  fill: none;
  stroke: color-mix(in srgb, var(--ink), transparent 62%);
  stroke-width: 2;
}

.orbit {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--ink), transparent 84%);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.orbit-one { width: 410px; height: 230px; left: 72px; top: 80px; }
.orbit-two { width: 560px; height: 310px; left: 18px; top: 52px; transform: rotate(12deg); }

.node {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: inset 0 8px 18px rgba(255,255,255,0.42), 0 12px 30px rgba(7,48,58,0.16);
}
.node-a { width: 66px; height: 66px; left: 86px; top: 222px; background: rgba(47,166,106,0.48); }
.node-b { width: 44px; height: 44px; left: 198px; top: 154px; background: rgba(122,162,247,0.50); }
.node-c { width: 72px; height: 72px; left: 278px; top: 186px; background: rgba(244,124,77,0.55); }
.node-d { width: 54px; height: 54px; right: 132px; top: 94px; background: rgba(122,162,247,0.55); }
.node-e { width: 84px; height: 84px; right: 12px; top: 138px; background: rgba(244,124,77,0.50); }
.node-f { width: 48px; height: 48px; left: 248px; bottom: 80px; background: rgba(216,205,192,0.70); }
.node-g { width: 56px; height: 56px; right: 90px; bottom: 92px; background: rgba(45,108,223,0.44); }

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-block: 20px 28px;
}

.route-card,
.split-panel,
.metrics {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--paper), transparent 5%);
  box-shadow: var(--soft-shadow);
}

.route-card {
  display: flex;
  flex-direction: column;
  min-height: 450px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.route-card-intro {
  display: flex;
  flex-direction: column;
}

@media (min-width: 981px) {
  .route-card-intro {
    min-height: 190px;
  }

  .route-card-intro .inline-link {
    margin-top: auto;
  }
}

.database { background: linear-gradient(135deg, color-mix(in srgb, var(--database-soft), transparent 42%), var(--paper) 44%); }
.tools { background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft), transparent 36%), var(--paper) 44%); }
.docs { background: linear-gradient(135deg, color-mix(in srgb, var(--docs-soft), transparent 32%), var(--paper) 44%); }

.section-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.icon-badge,
.metric-icon {
  display: grid;
  place-items: center;
  inline-size: 58px;
  block-size: 58px;
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 850;
}

.icon-badge img,
.metric-icon img,
.metric-icon svg {
  width: 56%;
  height: 56%;
  display: block;
}

.metric-icon svg {
  fill: currentColor;
}

.icon-badge img,
.metric-icon img {
  filter: brightness(0) saturate(100%);
  opacity: 0.92;
}
.database .icon-badge { background: var(--database-soft); color: var(--database); }
.tools .icon-badge { background: var(--accent-soft); color: var(--accent-strong); }
.docs .icon-badge { background: var(--docs-soft); color: var(--docs); }

.route-card h2,
.split-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1;
  font-weight: 850;
}

.route-card p,
.split-panel p {
  color: var(--ink-2);
  line-height: 1.6;
}

.inline-link,
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  font-weight: 760;
  color: var(--accent-strong);
  text-decoration: none;
}

.resource-list {
  margin-block: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: color-mix(in srgb, var(--paper), transparent 18%);
}

.resource-list a {
  position: relative;
  display: block;
  padding: 15px 42px 15px 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.resource-list a:last-child { border-bottom: 0; }
.resource-list a::after {
  content: "›";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}
.resource-list strong { display: block; font-weight: 800; }
.resource-list span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.9rem; }
.footer-link { margin-top: auto; color: var(--ink); }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 22px;
  border-radius: var(--radius-lg);
  margin-block: 22px 34px;
}

.metric {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 16px;
  align-items: center;
  padding-inline: 16px;
  border-right: 1px solid var(--border);
}
.metric:last-child { border-right: 0; }
.metric-icon { grid-row: span 2; inline-size: 46px; block-size: 46px; background: var(--accent-soft); color: var(--accent-strong); font-size: 1.1rem; }
.metric strong { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; letter-spacing: -0.04em; }
.metric span:last-child { color: var(--muted); }

.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  padding: 34px;
  border-radius: var(--radius-lg);
  margin-bottom: 42px;
}
.split-panel article + article { border-left: 1px solid var(--border); padding-left: 44px; }

.institution-row,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.institution-row span,
.social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
}

.subscribe {
  display: flex;
  margin-top: 24px;
  max-width: 450px;
}
.subscribe input,
.subscribe button {
  min-height: 54px;
  border: 1px solid var(--border);
  font: inherit;
}
.subscribe input {
  flex: 1;
  min-width: 0;
  padding-inline: 18px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: color-mix(in srgb, var(--paper), white 12%);
  color: var(--ink);
}
.subscribe button {
  padding-inline: 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--ink);
  color: var(--cream-2);
  font-weight: 800;
  cursor: pointer;
}

.site-footer {
  background: var(--nav);
  color: rgba(255,255,255,0.86);
  padding-block: 42px 22px;
}
body:has(#theme-light:checked) .site-footer { color: white; --nav: #082d35; }
.footer-shell {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) 0.7fr 0.7fr 1fr;
  gap: 38px;
}
.footer-shell p { color: rgba(255,255,255,0.72); line-height: 1.6; }
.footer-shell a { display: block; width: fit-content; color: rgba(255,255,255,0.82); text-decoration: none; margin-bottom: 9px; }
.footer-shell h3 { margin-bottom: 14px; color: white; font-family: var(--font-body); letter-spacing: 0; font-size: 1rem; }
.footer-status { align-self: end; justify-self: end; display: inline-flex; align-items: center; gap: 9px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #23c779; box-shadow: 0 0 0 4px rgba(35,199,121,0.16); }
.copyright { width: min(var(--shell), calc(100% - 32px)); margin: 28px auto 0; color: rgba(255,255,255,0.58); font-size: 0.88rem; }

@media (max-width: 980px) {
  .nav-shell { flex-wrap: wrap; padding-block: 14px; }
  .nav-links { order: 3; width: 100%; justify-content: space-between; gap: 12px; overflow-x: auto; }
  .nav-links a { padding-block: 12px; }
  .nav-links a::after { bottom: 4px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 54px 34px; }
  .hero-visual { min-height: 340px; }
  .route-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .metric:nth-child(2) { border-right: 0; }
  .split-panel, .footer-shell { grid-template-columns: 1fr; }
  .split-panel article + article { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; padding-top: 34px; }
  .footer-status { justify-self: start; }
}

@media (max-width: 620px) {
  .nav-shell, .section-shell, .footer-shell, .copyright { width: min(100% - 22px, var(--shell)); }
  .brand-name { font-size: 1.65rem; }
  .mark { inline-size: 48px; block-size: 48px; }
  .mark-a { font-size: 2rem; }
  .theme-toggle label { inline-size: 34px; block-size: 34px; }
  h1 { font-size: 3.05rem; }
  .route-card, .split-panel { padding: 22px; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--border); padding-block: 14px; }
  .metric:last-child { border-bottom: 0; }
  .subscribe { flex-direction: column; }
  .subscribe input, .subscribe button { border-radius: var(--radius-sm); }
  .subscribe button { margin-top: 10px; }
}

.page-main {
  padding-block: 58px 72px;
}

.content-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--paper), transparent 4%);
  box-shadow: var(--soft-shadow);
  padding: clamp(24px, 5vw, 54px);
}

.content-card h1 {
  max-width: 780px;
  margin-bottom: 26px;
  font-size: clamp(2.7rem, 5vw, 4.4rem);
}

.content-card h2 {
  margin-top: 42px;
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.04;
}

.content-card h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.content-card p,
.content-card li {
  color: var(--ink-2);
  font-size: 1.03rem;
  line-height: 1.72;
}

.content-card a {
  color: var(--database);
  font-weight: 650;
}

.content-card ul,
.content-card ol {
  padding-left: 1.3rem;
}

.content-card li + li {
  margin-top: 0.45rem;
}

.content-card iframe {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

.content-card .button {
  color: var(--cream-2);
}

.missing-page {
  min-height: 420px;
}

.compact-actions {
  margin-top: 24px;
}

.footer-note {
  margin-top: 12px;
  font-size: 0.92rem;
}

@media (max-width: 620px) {
  .page-main {
    padding-block: 34px 46px;
  }

  .content-card {
    padding: 22px;
  }
}

.embedded-subscribe-card {
  margin-block: 28px;
  max-width: 560px;
}

.followit--follow-form-container .form-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft), transparent 28%), var(--paper));
  box-shadow: var(--soft-shadow);
  padding: 28px;
}

.followit--follow-form-container h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.followit--follow-form-container input,
.followit--follow-form-container button {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
}

.followit--follow-form-container input {
  padding-inline: 16px;
  background: color-mix(in srgb, var(--paper), white 10%);
  color: var(--ink);
}

.followit--follow-form-container button {
  margin-top: 10px;
  background: var(--ink);
  color: var(--cream-2);
  font-weight: 800;
  cursor: pointer;
}

.powered-by-line {
  display: inline-block;
  margin-top: 12px;
  color: var(--muted) !important;
  font-size: 0.9rem;
}

/* Screenshot-aligned portal refinements. */
:root {
  --shell: 1128px;
  --nav: #082d35;
  --cream: #fbf1e2;
  --cream-2: #fffaf1;
  --paper: rgba(255, 253, 248, 0.76);
  --border: #dbcfc0;
  --soft-shadow: 0 18px 48px rgba(7, 48, 58, 0.08);
}

body {
  background:
    radial-gradient(circle at 82% 16%, rgba(244, 124, 77, 0.12), transparent 28rem),
    radial-gradient(circle at 20% 48%, rgba(47, 166, 106, 0.07), transparent 30rem),
    linear-gradient(180deg, #fff5e7 0%, #fffaf0 46%, #fbf0df 100%);
}

.site-header {
  background:
    radial-gradient(circle at 15% 0%, rgba(67, 97, 106, 0.35), transparent 28rem),
    linear-gradient(90deg, #082d35, #031a20 58%, #082d35);
}

.nav-shell {
  min-height: 102px;
  gap: 34px;
}

.brand { gap: 18px; }

.brand-logo {
  width: 74px;
  height: 74px;
  display: block;
  object-fit: contain;
}

.brand-logo-lightbar {
  display: none;
}

.brand-logo-darkbar {
  display: block;
}

html[data-theme="light"] .brand-logo-lightbar {
  display: block;
}

html[data-theme="light"] .brand-logo-darkbar {
  display: none;
}

.brand-name {
  color: #fff8ec;
  font-size: clamp(2.1rem, 3vw, 2.65rem);
  letter-spacing: -0.045em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.1);
}

.nav-links { gap: clamp(24px, 3vw, 42px); }

.nav-links a {
  color: rgba(255,255,255,0.94);
  font-weight: 760;
  padding-block: 38px;
}

.nav-links a::after { bottom: 28px; }

.theme-toggle {
  padding: 6px;
  border-color: rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.06);
}

.theme-toggle label {
  width: 42px;
  height: 42px;
  color: #fffaf1;
}

.hero {
  grid-template-columns: minmax(390px, 0.82fr) minmax(520px, 1.18fr);
  gap: 28px;
  min-height: 520px;
  padding-block: 72px 34px;
}

.hero h1 {
  max-width: 560px;
  margin-bottom: 24px;
  font-size: clamp(3.55rem, 5.3vw, 5.3rem);
  line-height: 1.02;
}

.hero-lede {
  max-width: 450px;
  font-size: 1.05rem;
  line-height: 1.62;
}

.hero-actions { gap: 16px; }

.button {
  min-height: 52px;
  padding: 0 24px;
  border-color: color-mix(in srgb, var(--ink), transparent 74%);
  border-radius: 10px;
}

.button.primary {
  background: #073542;
  color: #fffaf1;
}

.button.secondary {
  background: rgba(255,255,255,0.48);
}

.hero-visual {
  min-height: 392px;
  margin-right: calc((100vw - min(var(--shell), calc(100vw - 32px))) / -2);
  border-radius: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(244,124,77,0.20), transparent 5rem),
    radial-gradient(circle at 47% 50%, rgba(45,108,223,0.16), transparent 12rem),
    radial-gradient(circle at 60% 62%, rgba(47,166,106,0.13), transparent 9rem);
}

.hero-visual::before {
  background-image: radial-gradient(circle, rgba(7, 48, 58, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.42;
}

.bonds path {
  stroke: rgba(7,48,58,0.24);
  stroke-width: 2.6;
}

.node {
  backdrop-filter: blur(1px);
  border-color: rgba(255,255,255,0.68);
  box-shadow: inset 0 10px 20px rgba(255,255,255,0.45), 0 10px 24px rgba(7,48,58,0.13);
}

.node-a { left: 62px; top: 132px; }
.node-b { left: 170px; top: 214px; }
.node-c { left: 302px; top: 226px; }
.node-d { right: 264px; top: 158px; }
.node-e { right: 38px; top: 164px; }
.node-f { left: 240px; bottom: 48px; }
.node-g { right: 184px; bottom: 100px; }

.route-grid {
  gap: 20px;
  padding-block: 18px 30px;
}

.route-card {
  min-height: 500px;
  padding: 22px 22px 20px;
  border-radius: 15px;
  background-color: rgba(255, 253, 248, 0.62);
  backdrop-filter: blur(8px);
}

.database { background: linear-gradient(135deg, rgba(231,240,255,0.28), rgba(255,253,248,0.76) 44%); }
.tools { background: linear-gradient(135deg, rgba(255,226,212,0.36), rgba(255,253,248,0.76) 44%); }
.docs { background: linear-gradient(135deg, rgba(236,238,255,0.36), rgba(255,253,248,0.76) 44%); }

.section-title-row { gap: 18px; margin-bottom: 18px; }

.icon-badge {
  width: 58px;
  height: 58px;
  font-size: 1.65rem;
  color: var(--ink) !important;
}

.route-card h2,
.split-panel h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.route-card p { font-size: 1rem; }

.inline-link { margin-top: 20px; }

.resource-list {
  margin-block: 22px 18px;
  border-radius: 7px;
  background: rgba(255,255,255,0.40);
}

.resource-list a { padding: 13px 38px 12px 15px; }
.resource-list strong { font-size: 0.97rem; }
.resource-list span { font-size: 0.86rem; }
.footer-link { margin-top: auto; }

.metrics {
  margin-block: 2px 36px;
  padding: 22px 28px;
  border-radius: 15px;
  background: rgba(255,253,248,0.60);
  backdrop-filter: blur(8px);
}

.metric {
  grid-template-columns: 52px 1fr;
  padding-inline: 20px;
}

.metric-icon {
  width: 45px;
  height: 45px;
}

.metric strong {
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
}

.split-panel {
  gap: 52px;
  margin-bottom: 34px;
  padding: 32px 34px;
  border-radius: 15px;
  background: rgba(255,253,248,0.58);
  backdrop-filter: blur(8px);
}

.split-panel p {
  max-width: 380px;
  font-size: 0.98rem;
}

.institution-row {
  align-items: center;
  gap: 20px;
}

.institution-row span {
  border: 0;
  border-radius: 0;
  padding: 0;
  min-height: auto;
  color: rgba(7,48,58,0.72);
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.05;
}

.subscribe {
  margin-top: 24px;
  max-width: 430px;
}

.subscribe input,
.subscribe button { min-height: 56px; }

.subscribe input {
  background: rgba(255,255,255,0.68);
}

.subscribe button {
  min-width: 136px;
  background: #073542;
}

.social-links {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 20px;
  gap: 22px;
}

.social-links a {
  border: 0;
  padding: 0;
  min-height: auto;
  color: var(--ink);
  font-weight: 760;
}

.site-footer {
  padding-block: 44px 24px;
  background:
    radial-gradient(circle at 15% 0%, rgba(67, 97, 106, 0.34), transparent 24rem),
    linear-gradient(90deg, #082d35, #031a20 58%, #082d35);
}

.footer-shell {
  grid-template-columns: 92px minmax(210px, 1.25fr) 0.9fr 0.95fr;
  gap: 54px;
  align-items: start;
}

.footer-brand { display: block; }

.footer-logo {
  width: 84px;
  height: 94px;
  display: block;
  object-fit: contain;
}

.footer-shell > div:not(:first-child) {
  min-height: 148px;
}

.footer-shell > div:nth-child(2),
.footer-shell > div:nth-child(3) {
  border-right: 1px solid rgba(255,255,255,0.14);
  padding-right: 34px;
}

.footer-shell p { margin-top: 20px; }
.footer-shell h3 { margin-top: 0; }

.footer-bottom {
  width: min(var(--shell), calc(100% - 32px));
  margin: 18px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.copyright {
  width: auto;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-social a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.9rem;
}

.social-icon-link {
  display: inline-grid;
  place-items: center;
  width: 1.8em;
  height: 1.8em;
  color: currentColor;
  line-height: 1;
}

.social-icon {
  display: block;
  width: 1.8em;
  height: 1.8em;
  fill: currentColor;
}

.social-links .social-icon-link {
  color: var(--ink);
  filter: none;
}

.footer-social .social-icon-link {
  color: rgba(255,255,255,0.82);
  filter: none;
}

.social-icon-link:hover,
.social-icon-link:focus-visible {
  color: var(--accent);
}

@media (max-width: 980px) {
  .brand-logo { width: 62px; height: 62px; }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    margin-right: 0;
    border-radius: var(--radius-xl);
  }
  .footer-shell {
    grid-template-columns: 1fr;
  }
  .footer-shell > div:nth-child(2),
  .footer-shell > div:nth-child(3) {
    border-right: 0;
    padding-right: 0;
  }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .nav-shell { min-height: 82px; }
  .brand-logo { width: 52px; height: 52px; }
  .brand-name { font-size: 1.8rem; }
  .hero h1 { font-size: 3.05rem; }
  .route-card { min-height: auto; }
}

/* Flat color pass matching the provided PNG more closely. */
:root {
  --page-bg: #fff3e2;
  --page-bg-2: #fff8ee;
  --card-surface: rgba(255, 253, 248, 0.72);
  --databases-accent: #98c8aa;
  --databases-soft: #e7f2ea;
  --databases-border: #c9dfcf;
  --tools-accent: #f09a7d;
  --tools-soft: #ffe4d8;
  --tools-border: #ebc7b7;
  --docs-accent: #9fb0ec;
  --docs-soft: #e9edff;
  --docs-border: #c8d0ed;
}

body {
  background: var(--page-bg);
}

.site-header,
.site-footer {
  background: #082d35;
}

.hero-visual {
  background: transparent;
}

.route-card,
.split-panel,
.metrics,
.content-card {
  background: var(--card-surface);
}

.database,
.tools,
.docs {
  background: var(--card-surface);
}

.database {
  border-color: var(--databases-border);
}

.tools {
  border-color: var(--tools-border);
}

.docs {
  border-color: var(--docs-border);
}

.database .icon-badge,
.database .metric-icon {
  background: var(--databases-soft);
  color: #244f38 !important;
}

.tools .icon-badge,
.tools .metric-icon {
  background: var(--tools-soft);
  color: #7a321f !important;
}

.docs .icon-badge,
.docs .metric-icon {
  background: var(--docs-soft);
  color: #273b86 !important;
}

.database .inline-link,
.database .footer-link {
  color: #075f46;
}

.tools .inline-link,
.tools .footer-link {
  color: #c54c28;
}

.docs .inline-link,
.docs .footer-link {
  color: #2d63c8;
}

.database .resource-list {
  border-color: var(--databases-border);
}

.tools .resource-list {
  border-color: var(--tools-border);
}

.docs .resource-list {
  border-color: var(--docs-border);
}

.resource-list {
  background: rgba(255, 252, 246, 0.52);
}

.database .resource-list a {
  border-bottom-color: var(--databases-border);
}

.tools .resource-list a {
  border-bottom-color: var(--tools-border);
}

.docs .resource-list a {
  border-bottom-color: var(--docs-border);
}

.resource-list a:last-child {
  border-bottom: 0;
}

.metric:nth-child(1) .metric-icon {
  background: var(--databases-soft);
  color: #244f38;
}

.metric:nth-child(2) .metric-icon {
  background: var(--tools-soft);
  color: #7a321f;
}

.metric:nth-child(3) .metric-icon {
  background: var(--docs-soft);
  color: #273b86;
}

.metric:nth-child(4) .metric-icon {
  background: #ececff;
  color: #39408f;
}

.followit--follow-form-container .form-preview {
  background: var(--card-surface);
}

/* Typography and altermagnets-style theme switch refinements. */
:root {
  --line: rgba(7, 48, 58, 0.18);
  --surface-soft: rgba(255, 253, 248, 0.72);
  --accent-rgb: 244, 124, 77;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eaf7f8;
  --ink-2: #c7dee3;
  --muted: #9fb9c0;
  --page-bg: #061f26;
  --card-surface: rgba(11, 49, 58, 0.82);
  --border: #28545e;
  --line: rgba(234, 247, 248, 0.22);
  --surface-soft: rgba(11, 49, 58, 0.86);
  --accent: #ff9b6d;
  --accent-rgb: 255, 155, 109;
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #092b34;
  --ink-2: #35535b;
  --muted: #67767b;
  --page-bg: #fbfaf7;
  --card-surface: rgba(255, 255, 255, 0.82);
  --border: #d9dee0;
  --line: rgba(9, 43, 52, 0.18);
  --surface-soft: rgba(255, 255, 255, 0.88);
  --accent: #f47c4d;
  --accent-rgb: 244, 124, 77;
}

h1,
h2,
h3,
.brand-name,
.metric strong {
  font-weight: 650;
}

.hero h1 {
  font-weight: 650;
  letter-spacing: -0.035em;
}

.route-card h2,
.split-panel h2,
.content-card h1,
.content-card h2 {
  font-weight: 650;
  letter-spacing: -0.03em;
}

.brand-name {
  font-weight: 700;
}

.theme-toggle {
  display: none;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 4px;
  background: rgba(255,255,255,0.07);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.theme-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-grid;
  place-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.78);
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.theme-icon {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) invert(1) contrast(1.08);
}

.theme-btn:hover,
.theme-btn:focus-visible {
  color: #fff;
  border-color: rgba(255,255,255,0.28);
  outline: none;
}

.theme-btn.is-active {
  border-color: rgba(var(--accent-rgb), 0.58);
  background: rgba(var(--accent-rgb), 0.22);
}

html[data-theme="light"] .theme-switch {
  border-color: var(--line);
  background: var(--surface-soft);
  box-shadow: 0 12px 26px rgba(7, 48, 58, 0.08);
}

html[data-theme="light"] .theme-icon {
  filter: none;
}

html[data-theme="light"] .theme-btn:hover,
html[data-theme="light"] .theme-btn:focus-visible {
  border-color: var(--line);
}

@media (max-width: 620px) {
  .theme-btn {
    width: 34px;
    height: 34px;
  }
}

/* Final visual tuning from screenshot review. */
:root {
  --page-bg: #fff0df;
  --hero-link: #2d63c8;
}

body {
  background: #fff0df;
}

.theme-switch {
  background: rgba(255,255,255,0.06);
}

.theme-btn.is-active {
  border-color: #f59675;
  background: #f59675;
  color: #082d35;
}

.theme-btn.is-active .theme-icon {
  filter: brightness(0) saturate(100%) invert(13%) sepia(30%) saturate(832%) hue-rotate(145deg) brightness(88%) contrast(99%);
}

html[data-theme="light"] .theme-btn.is-active .theme-icon {
  filter: brightness(0) saturate(100%) invert(13%) sepia(30%) saturate(832%) hue-rotate(145deg) brightness(88%) contrast(99%);
}

.hero-lede a,
.split-panel .inline-link {
  color: var(--hero-link);
}

.split-panel h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
  letter-spacing: -0.02em;
}

/* Restore pre-toggle-review background color; keep the theme control refinements. */
:root {
  --page-bg: #fff3e2;
}

body {
  background: var(--page-bg);
}

/* Slightly lighter default twilight surface. */
html[data-theme="twilight"] {
  --page-bg: #fff5e8;
}

/* Restore subtle flat category card tints. */
.database {
  background: rgba(239, 249, 241, 0.72);
}

.tools {
  background: rgba(255, 241, 232, 0.72);
}

.docs {
  background: rgba(244, 246, 255, 0.72);
}

/* Softer category card tints. */
.database {
  background: rgba(247, 252, 248, 0.74);
}

.tools {
  background: rgba(255, 247, 242, 0.74);
}

.docs {
  background: rgba(249, 250, 255, 0.74);
}

/* Lighten category card surfaces while keeping subtle hue. */
.database {
  background: rgba(250, 253, 251, 0.82);
}

.tools {
  background: rgba(255, 250, 247, 0.82);
}

.docs {
  background: rgba(251, 252, 255, 0.82);
}

/* Lighten default twilight page background to match lighter card surfaces. */
html[data-theme="twilight"] {
  --page-bg: #fff8f0;
}

/* Lighten category cards another step toward white. */
.database {
  background: rgba(253, 254, 253, 0.9);
}

.tools {
  background: rgba(255, 253, 251, 0.9);
}

.docs {
  background: rgba(253, 254, 255, 0.9);
}

/* Shift docs card tint slightly toward blue-purple. */
.docs {
  background: rgba(253, 253, 255, 0.9);
}

/* Nudge docs card a little further toward pale purple. */
.docs {
  background: rgba(253, 252, 255, 0.9);
}

/* Theme-specific surface contrast. */
html[data-theme="light"] {
  --page-bg: #fdfdfb;
  --card-surface: rgba(255, 255, 255, 0.96);
}

html[data-theme="light"] body {
  background: var(--page-bg);
}

html[data-theme="light"] .route-card,
html[data-theme="light"] .split-panel,
html[data-theme="light"] .metrics,
html[data-theme="light"] .content-card {
  background: var(--card-surface);
}

html[data-theme="light"] .database {
  background: rgba(253, 255, 253, 0.98);
}

html[data-theme="light"] .tools {
  background: rgba(255, 254, 253, 0.98);
}

html[data-theme="light"] .docs {
  background: rgba(254, 253, 255, 0.98);
}

html[data-theme="dark"] .route-card,
html[data-theme="dark"] .split-panel,
html[data-theme="dark"] .metrics,
html[data-theme="dark"] .content-card {
  background: rgba(10, 39, 47, 0.92);
}

html[data-theme="dark"] .database {
  background: rgba(11, 45, 42, 0.94);
}

html[data-theme="dark"] .tools {
  background: rgba(52, 30, 25, 0.94);
}

html[data-theme="dark"] .docs {
  background: rgba(28, 32, 54, 0.94);
}

html[data-theme="dark"] .resource-list {
  background: rgba(4, 20, 25, 0.42);
}

/* Extra-bright light mode. */
html[data-theme="light"] {
  --page-bg: #ffffff;
  --card-surface: rgba(255, 255, 255, 0.995);
}

html[data-theme="light"] .database,
html[data-theme="light"] .tools,
html[data-theme="light"] .docs,
html[data-theme="light"] .route-card,
html[data-theme="light"] .split-panel,
html[data-theme="light"] .metrics,
html[data-theme="light"] .content-card {
  background: rgba(255, 255, 255, 0.995);
}

html[data-theme="light"] .resource-list {
  background: rgba(255, 255, 255, 0.98);
}

/* Light mode uses a light top bar with a clear separator. */
html[data-theme="light"] .site-header {
  background: #ffffff;
  color: var(--ink);
  border-bottom: 1px solid #d8dde0;
  box-shadow: none;
}

html[data-theme="light"] .brand-name,
html[data-theme="light"] .nav-links a {
  color: var(--ink);
}

html[data-theme="light"] .nav-links a.active::after,
html[data-theme="light"] .nav-links a:hover::after {
  background: var(--accent);
}

html[data-theme="light"] .theme-switch {
  border-color: #d8dde0;
  background: #ffffff;
  box-shadow: none;
}

html[data-theme="light"] .theme-btn {
  color: var(--ink-soft);
}

/* Responsive hamburger navigation. */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: #fff;
  cursor: pointer;
  place-content: center;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-lines::before { transform: translateY(-6px); }
.menu-toggle-lines::after { transform: translateY(6px); }

body.nav-open .menu-toggle-lines { background: transparent; }
body.nav-open .menu-toggle-lines::before { transform: rotate(45deg); }
body.nav-open .menu-toggle-lines::after { transform: rotate(-45deg); }

html[data-theme="light"] .menu-toggle {
  border-color: #d8dde0;
  background: #ffffff;
  color: var(--ink);
}

@media (max-width: 880px) {
  .nav-shell {
    position: relative;
    flex-wrap: nowrap;
    gap: 14px;
  }

  .brand {
    min-width: 0;
    margin-right: auto;
  }

  .brand-name {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }

  .menu-toggle {
    display: grid;
    order: 2;
  }

  .theme-switch {
    order: 3;
  }

  .nav-links {
    position: absolute;
    z-index: 50;
    top: calc(100% - 10px);
    right: 0;
    width: min(280px, calc(100vw - 32px));
    display: grid;
    gap: 0;
    margin-left: 0;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 16px;
    background: #082d35;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  body.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 13px 14px;
    border-radius: 10px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255,255,255,0.08);
  }

  html[data-theme="light"] .nav-links {
    border-color: #d8dde0;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(7, 48, 58, 0.12);
  }

  html[data-theme="light"] .nav-links a:hover,
  html[data-theme="light"] .nav-links a.active {
    background: #f4f6f7;
  }
}

@media (max-width: 560px) {
  .theme-switch {
    gap: 3px;
    padding: 3px;
  }

  .theme-btn {
    width: 32px;
    height: 32px;
  }

  .theme-icon {
    width: 18px;
    height: 18px;
  }
}

/* Switch to hamburger before the top-bar links can wrap. */
@media (max-width: 1040px) {
  .nav-shell {
    position: relative;
    flex-wrap: nowrap;
    gap: 14px;
  }

  .brand {
    min-width: 0;
    margin-right: auto;
  }

  .brand-name {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }

  .menu-toggle {
    display: grid;
    order: 2;
  }

  .theme-switch {
    order: 3;
  }

  .nav-links {
    position: absolute;
    z-index: 50;
    top: calc(100% - 10px);
    right: 0;
    width: min(280px, calc(100vw - 32px));
    display: grid;
    gap: 0;
    margin-left: 0;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 16px;
    background: #082d35;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  body.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 13px 14px;
    border-radius: 10px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255,255,255,0.08);
  }

  html[data-theme="light"] .nav-links {
    border-color: #d8dde0;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(7, 48, 58, 0.12);
  }

  html[data-theme="light"] .nav-links a:hover,
  html[data-theme="light"] .nav-links a.active {
    background: #f4f6f7;
  }
}

/* Front-page hero image replaces generated CSS/SVG atom cluster. */
.hero-visual-image {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-height: 392px;
  overflow: hidden;
  background: transparent;
}

.hero-visual-image::before,
.hero-visual-image .orbit,
.hero-visual-image .node,
.hero-visual-image .bonds {
  display: none;
}

.hero-visual-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

/* Give hero copy more horizontal room now that the visual is a bitmap. */
.hero {
  grid-template-columns: minmax(430px, 0.95fr) minmax(480px, 1.05fr);
}

.hero h1 {
  max-width: 640px;
}

.hero-lede {
  max-width: 520px;
}

/* Wider hero copy and cheaper lightweight shadows. */
:root {
  --soft-shadow: 0 3px 10px rgba(7, 48, 58, 0.08);
  --shadow: 0 4px 12px rgba(7, 48, 58, 0.10);
}

.hero {
  grid-template-columns: minmax(620px, 1.35fr) minmax(360px, 0.65fr);
}

.hero h1 {
  max-width: 820px;
}

.hero-lede {
  max-width: 680px;
}

.route-card,
.split-panel,
.metrics,
.content-card,
.resource-list,
.content-card iframe,
.theme-switch,
.nav-links {
  box-shadow: 0 2px 8px rgba(7, 48, 58, 0.075);
}

.site-header,
.site-footer,
.button.primary {
  box-shadow: none;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

/* Let hero copy overlap the visual instead of pushing it aside. */
.hero {
  position: relative;
  grid-template-columns: minmax(560px, 0.9fr) minmax(560px, 1.1fr);
  gap: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-right: 28px;
}

.hero-visual-image {
  position: relative;
  z-index: 1;
  margin-left: -120px;
}

.hero-visual-image::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  pointer-events: none;
  background: linear-gradient(90deg, var(--page-bg) 0%, rgba(255,255,255,0) 100%);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-visual-image {
    margin-left: 0;
  }
}

/* Increase hero copy width and overlap further into the visual. */
.hero {
  grid-template-columns: minmax(720px, 1.05fr) minmax(460px, 0.95fr);
}

.hero h1 {
  max-width: 960px;
}

.hero-lede {
  max-width: 760px;
}

.hero-visual-image {
  margin-left: -190px;
}

.hero-visual-image::after {
  width: 46%;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual-image {
    margin-left: 0;
  }
}

/* Move hero image further left under the copy. */
.hero-visual-image {
  margin-left: -250px;
}

@media (max-width: 980px) {
  .hero-visual-image {
    margin-left: 0;
  }
}

/* Pull hero content closer to the top bar. */
.hero {
  padding-top: 42px;
}

/* Aggressively tighten hero vertical whitespace. */
.hero {
  min-height: 360px;
  padding-top: 14px;
  padding-bottom: 10px;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: 18px;
    padding-bottom: 8px;
  }
}

/* Tighten hero spacing one more step. */
.hero {
  min-height: 300px;
  padding-top: 4px;
  padding-bottom: 2px;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: 8px;
    padding-bottom: 2px;
  }
}

/* Keep the bitmap proportional under browser zoom. */
.hero {
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  min-height: 460px;
  padding-top: 54px;
  padding-bottom: 46px;
}

.hero-copy {
  min-width: 0;
  max-width: 744px;
}

.hero h1 {
  max-width: 744px;
}

.hero-lede {
  max-width: 600px;
}

.hero-visual-image {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 58%;
  width: min(72vw, 920px);
  aspect-ratio: 16 / 10;
  min-height: 0;
  height: 100%;
  margin-left: 0;
  overflow: hidden;
  transform: translateX(-50%);
}

.hero-visual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 420px;
    padding-top: 42px;
    padding-bottom: 36px;
  }

  .hero-visual-image {
    left: 62%;
    width: 118vw;
  }
}

/* Keep the hero headline from ballooning on wide browser windows. */
.hero h1 {
  font-size: 3.05rem;
}

/* Keep the theme selector present but visually quieter until interaction. */
.theme-switch {
  gap: 4px;
  padding: 3px;
  opacity: 0.58;
  transition: opacity 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.theme-switch:hover,
.theme-switch:focus-within {
  opacity: 1;
}

.theme-btn {
  width: 32px;
  height: 32px;
}

.theme-icon {
  width: 17px;
  height: 17px;
}

@media (max-width: 560px) {
  .theme-btn {
    width: 30px;
    height: 30px;
  }

  .theme-icon {
    width: 16px;
    height: 16px;
  }
}

/* Make the closing panel subtly warmer and darker than the page background. */
.split-panel {
  background: #ffe8dc;
}

html[data-theme="light"] .split-panel {
  background: #fff1ea;
}

html[data-theme="dark"] .split-panel {
  background: rgba(58, 35, 30, 0.94);
}

/* Requested twilight surface colors. */
html[data-theme="twilight"] {
  --page-bg: #fef6ec;
}

html[data-theme="twilight"] body {
  background: #fef6ec;
}

html[data-theme="twilight"] .split-panel {
  background: #fbf1e7;
}
