:root {
  --hub-ink: #1f4f6f;
  --hub-ink-soft: #346783;
  --hub-line: #c5e1de;
  --hub-cream: #f8fcfb;
  --hub-sand: #edf7f6;
  --hub-white: #ffffff;
  --hub-accent: #ef8d3d;
  --hub-accent-soft: #fff1e6;
  --hub-shadow: 0 18px 44px rgba(31, 90, 117, 0.16);
  --hub-topbar-bg: #f7f1e7;
  --hub-night-bg: #080d16;
  --hub-night-shell: #0f1623;
  --hub-night-card: #182235;
  --hub-night-line: #2a3a55;
  --hub-night-text: #d9e3f7;
  --hub-night-muted: #aebbd4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--hub-ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(110, 183, 173, 0.24), transparent 34%),
    radial-gradient(circle at 88% 12%, var(--hub-accent-soft), transparent 28%),
    linear-gradient(180deg, #dff2ef 0%, var(--hub-sand) 100%);
}

html.night-shell body {
  color: var(--hub-night-text);
  background:
    radial-gradient(circle at 10% 0%, rgba(85, 119, 216, 0.22), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(239, 141, 61, 0.12), transparent 28%),
    linear-gradient(180deg, var(--hub-night-bg) 0%, #121b2a 100%);
}

.hub-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 18px auto 30px;
  padding: 14px;
  background: rgba(248, 252, 251, 0.96);
  border: 1px solid var(--hub-line);
  border-radius: 28px;
  box-shadow: var(--hub-shadow);
}

html.night-shell .hub-shell {
  background: var(--hub-night-shell);
  border-color: var(--hub-night-line);
  box-shadow: 0 18px 38px rgba(6, 10, 18, 0.55);
}

.hub-topbar {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 220px;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.hub-brand,
.hub-nav,
.hub-searchbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  background: var(--hub-topbar-bg);
  border: 1px solid var(--hub-line);
  border-radius: 16px;
}

.hub-brand {
  gap: 10px;
  padding: 0 16px;
  color: var(--hub-ink);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.hub-brand__logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  object-fit: contain;
}

.hub-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hub-brand__name {
  color: #d57a4e;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hub-brand__tagline {
  color: var(--hub-ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hub-nav {
  gap: 14px;
  padding: 0 16px;
  overflow: auto;
  min-width: 0;
}

.hub-nav a {
  color: var(--hub-ink-soft);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

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

.hub-nav a.is-active {
  color: var(--hub-ink);
  border-bottom: 2px solid var(--hub-accent);
}

.hub-searchbar {
  gap: 8px;
  padding: 0 12px;
}

.hub-searchbar input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--hub-ink);
  font: inherit;
  font-size: 0.95rem;
}

html.night-shell .hub-brand,
html.night-shell .hub-nav,
html.night-shell .hub-searchbar {
  background: var(--hub-night-card);
  border-color: var(--hub-night-line);
}

html.night-shell .hub-brand,
html.night-shell .hub-brand__tagline,
html.night-shell .hub-nav,
html.night-shell .hub-searchbar input {
  color: var(--hub-night-text);
}

html.night-shell .hub-nav a:hover,
html.night-shell .hub-nav a.is-active {
  color: #ffffff;
}

.hub-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  min-height: 430px;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid rgba(110, 183, 173, 0.45);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(238, 248, 246, 0.9)),
    radial-gradient(circle at 84% 18%, var(--hub-accent-soft), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html.night-shell .hub-hero {
  background:
    linear-gradient(135deg, rgba(24, 34, 53, 0.98), rgba(15, 22, 35, 0.92)),
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.08), transparent 42%);
  border-color: var(--hub-night-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hub-hero::before {
  content: "";
  position: absolute;
  inset: 26px 36px auto auto;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: var(--hub-accent-soft);
  opacity: 0.72;
}

.hub-hero::after {
  content: "";
  position: absolute;
  inset: auto auto -72px -72px;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: rgba(110, 183, 173, 0.22);
}

.hub-hero__copy,
.hub-hero__panel {
  position: relative;
  z-index: 1;
}

.hub-breadcrumb {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--hub-ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
}

html.night-shell .hub-breadcrumb,
html.night-shell .hub-hero__lead,
html.night-shell .hub-focus-card span,
html.night-shell .hub-section__head p,
html.night-shell .hub-featured p,
html.night-shell .hub-article-link small {
  color: var(--hub-night-muted);
}

.hub-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.hub-kicker {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hub-accent) 14%, white);
  color: var(--hub-accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-hero h1 {
  max-width: 760px;
  margin: 16px 0 14px;
  color: var(--hub-ink);
  font-family: Georgia, serif;
  font-size: clamp(2.45rem, 6vw, 5.7rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

html.night-shell .hub-hero h1,
html.night-shell .hub-section h2,
html.night-shell .hub-section h3,
html.night-shell .hub-featured,
html.night-shell .hub-article-link,
html.night-shell .hub-focus-card strong {
  color: var(--hub-night-text);
}

.hub-hero__lead {
  max-width: 760px;
  margin: 0;
  color: var(--hub-ink-soft);
  font-size: 1.12rem;
  line-height: 1.62;
}

.hub-promise {
  max-width: 760px;
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 5px solid var(--hub-accent);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--hub-ink);
  font-weight: 800;
  line-height: 1.45;
}

html.night-shell .hub-promise,
html.night-shell .hub-metric {
  background: rgba(24, 34, 53, 0.82);
  border-color: var(--hub-night-line);
  color: var(--hub-night-text);
}

.hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--hub-ink);
  color: white;
  font-weight: 900;
  text-decoration: none;
}

.hub-btn--secondary {
  background: var(--hub-topbar-bg);
  color: var(--hub-ink);
  border: 1px solid var(--hub-line);
}

html.night-shell .hub-btn {
  background: #e8eefb;
  color: #101827;
}

html.night-shell .hub-btn--secondary {
  background: var(--hub-night-card);
  color: var(--hub-night-text);
  border-color: var(--hub-night-line);
}

.hub-hero__panel {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
}

.hub-focus-card {
  min-height: 250px;
  display: grid;
  align-content: end;
  padding: 24px;
  border: 1px solid rgba(31, 79, 111, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 28% 22%, #fff 0 16%, transparent 17%),
    linear-gradient(145deg, var(--hub-accent-soft), #fff);
  box-shadow: 0 14px 26px rgba(31, 90, 117, 0.11);
}

html.night-shell .hub-focus-card {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.12) 0 16%, transparent 17%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(24, 34, 53, 0.92));
  border-color: var(--hub-night-line);
}

.hub-focus-card__icon {
  margin-bottom: auto;
  font-size: 5rem;
  filter: drop-shadow(0 12px 18px rgba(31, 79, 111, 0.18));
}

.hub-focus-card strong {
  display: block;
  margin-top: 28px;
  font-family: Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hub-focus-card span {
  display: block;
  margin-top: 8px;
  color: var(--hub-ink-soft);
  font-weight: 750;
  line-height: 1.4;
}

.hub-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hub-metric {
  padding: 14px;
  border: 1px solid rgba(197, 225, 222, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.hub-metric strong {
  display: block;
  color: var(--hub-accent);
  font-size: 1.6rem;
  line-height: 1;
}

.hub-metric span {
  display: block;
  margin-top: 6px;
  color: var(--hub-ink-soft);
  font-size: 0.83rem;
  font-weight: 750;
}

.hub-section {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--hub-line);
  border-radius: 26px;
  background: var(--hub-white);
}

html.night-shell .hub-section,
html.night-shell .hub-side-card {
  background: var(--hub-night-card);
  border-color: var(--hub-night-line);
}

.hub-section h2,
.hub-section h3 {
  margin: 0 0 12px;
  color: var(--hub-ink);
  font-family: Georgia, serif;
  letter-spacing: -0.02em;
}

.hub-section__head {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.hub-section__head p {
  max-width: 650px;
  margin: 0;
  color: var(--hub-ink-soft);
  font-weight: 720;
  line-height: 1.45;
}

.hub-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hub-path__step {
  min-height: 108px;
  padding: 14px;
  border: 1px solid rgba(197, 225, 222, 0.9);
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fcfb, #eef8f6);
  font-weight: 850;
}

html.night-shell .hub-path__step,
html.night-shell .hub-article-link,
html.night-shell .hub-featured {
  background: #111b2b;
  border-color: var(--hub-night-line);
}

.hub-path__step span {
  display: block;
  margin-bottom: 12px;
  color: var(--hub-accent);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.hub-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.9fr);
  gap: 16px;
  margin-top: 16px;
}

.hub-featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  min-height: 180px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--hub-accent) 32%, var(--hub-line));
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 10%, var(--hub-accent-soft), transparent 38%),
    linear-gradient(135deg, #ffffff, #f7fbfa);
  text-decoration: none;
  color: var(--hub-ink);
}

.hub-featured small {
  color: var(--hub-accent);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-featured strong {
  display: block;
  margin-top: 8px;
  font-family: Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hub-featured p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--hub-ink-soft);
  font-weight: 720;
  line-height: 1.45;
}

.hub-featured__arrow {
  color: var(--hub-accent);
  font-size: 2rem;
  font-weight: 950;
}

.hub-article-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.hub-article-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 15px;
  border: 1px solid rgba(197, 225, 222, 0.9);
  border-radius: 16px;
  background: #f8fcfb;
  color: var(--hub-ink);
  font-weight: 850;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.hub-article-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--hub-accent) 42%, var(--hub-line));
  background: #fff;
}

.hub-article-link small {
  display: block;
  margin-top: 4px;
  color: var(--hub-ink-soft);
  font-weight: 700;
}

.hub-article-link__cta {
  color: var(--hub-accent);
  font-weight: 950;
  white-space: nowrap;
}

.hub-side-card {
  padding: 20px;
  border: 1px solid var(--hub-line);
  border-radius: 24px;
  background: #fff;
}

.hub-side-card__lead {
  margin: -4px 0 16px;
  color: var(--hub-ink-soft);
  font-weight: 720;
  line-height: 1.45;
}

.hub-asset-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--hub-ink-soft);
  line-height: 1.45;
  list-style: none;
}

.hub-asset-list li {
  position: relative;
  padding: 12px 12px 12px 38px;
  border-radius: 16px;
  background: var(--hub-accent-soft);
  font-weight: 760;
}

.hub-asset-list li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 12px;
  color: var(--hub-accent);
  font-weight: 950;
}

.hub-note {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px dashed rgba(207, 115, 41, 0.45);
  border-radius: 18px;
  background: #fff8ed;
  color: #7a4b22;
  line-height: 1.45;
}

html.night-shell .hub-note {
  background: rgba(239, 141, 61, 0.1);
  border-color: rgba(239, 141, 61, 0.38);
  color: #f4cfad;
}

html.night-shell .hub-side-card__lead {
  color: var(--hub-night-muted);
}

.hub-shell .site-footer-bento {
  margin: 18px 0 0;
}

.hub-shell .site-footer-bento a {
  color: inherit;
}

.hub-footer {
  margin-top: 18px;
  padding: 0 4px;
  color: var(--hub-ink-soft);
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .hub-topbar {
    grid-template-columns: 1fr;
  }

  .hub-hero,
  .hub-content-grid {
    grid-template-columns: 1fr;
  }

  .hub-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hub-shell {
    width: min(100% - 18px, 1180px);
    padding: 10px;
  }

  .hub-section__head,
  .hub-featured,
  .hub-article-link {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hub-hero {
    min-height: 0;
    padding: 20px;
  }

  .hub-nav {
    gap: 12px;
    padding: 0 12px;
  }

  .hub-searchbar {
    min-height: 54px;
  }

  .hub-path,
  .hub-metrics {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) and (max-width: 820px) {
  body {
    color: var(--hub-night-text);
    background:
      radial-gradient(circle at 10% 0%, rgba(85, 119, 216, 0.22), transparent 34%),
      radial-gradient(circle at 92% 12%, rgba(239, 141, 61, 0.12), transparent 28%),
      linear-gradient(180deg, var(--hub-night-bg) 0%, #121b2a 100%);
  }

  .hub-shell {
    background: var(--hub-night-shell);
    border-color: var(--hub-night-line);
  }
}
