:root {
  color-scheme: light;
  --hub-bg: #f5f5f7;
  --hub-ink: #191919;
  --hub-muted: #626268;
  --hub-line: rgba(25, 25, 25, 0.12);
  --hub-paper: #ffffff;
  --hub-soft: #eceef0;
  --hub-dark: #0b0b0c;
  --hub-dark-soft: #171717;
  --hub-gold: #b88a45;
  --hub-green: #2f6d5b;
  --hub-rose: #9a5b4b;
  --hub-shadow: 0 22px 62px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--hub-bg);
}

body.medusa-hub-page {
  margin: 0;
  overflow-x: hidden;
  background: var(--hub-bg);
  color: var(--hub-ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body.medusa-hub-page a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.hub-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(245, 245, 247, 0.88);
  backdrop-filter: blur(18px);
}

.hub-brand,
.hub-nav,
.hub-actions,
.hub-link,
.hub-button {
  display: inline-flex;
  align-items: center;
}

.hub-brand {
  gap: 10px;
  color: var(--hub-ink);
  font-size: 0.98rem;
  font-weight: 800;
  text-decoration: none;
}

.hub-brand img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.hub-nav {
  gap: 20px;
}

.hub-nav a {
  color: #3f3f43;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.hub-nav a:hover,
.hub-nav a:focus-visible {
  color: var(--hub-ink);
  outline: none;
}

.hub-hero,
.hub-map,
.hub-product,
.hub-separation,
.hub-book,
.hub-directory,
.hub-author,
.hub-footer {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 0 auto;
}

.hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100svh - 58px);
  padding: 58px 0 34px;
}

.hub-hero-copy {
  max-width: 760px;
}

.hub-eyebrow {
  margin: 0 0 14px;
  color: var(--hub-gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hub-hero h1,
.hub-product h2,
.hub-section-heading h2,
.hub-book h2,
.hub-author h2,
.hub-footer h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1;
}

.hub-hero h1 {
  max-width: 780px;
  font-size: 5.8rem;
}

.hub-hero-copy > p:not(.hub-eyebrow),
.hub-product-copy > p,
.hub-section-heading,
.hub-book-copy > p,
.hub-author p,
.hub-footer p {
  color: var(--hub-muted);
  line-height: 1.62;
}

.hub-hero-copy > p:not(.hub-eyebrow) {
  max-width: 690px;
  margin: 22px 0 0;
  font-size: 1.24rem;
}

.hub-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hub-button,
.hub-link {
  min-height: 42px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
}

.hub-button {
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(29, 29, 31, 0.18);
  background: #ffffff;
}

.hub-button.is-primary {
  border-color: transparent;
  background: var(--hub-ink);
  color: #ffffff;
}

.hub-link {
  color: #005fb8;
  font-size: 1.02rem;
}

.hub-link::after,
.hub-tile a::after {
  content: ">";
  margin-left: 6px;
}

.hub-hero-visual,
.hub-book-visual,
.hub-product-visual {
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: #0b0b0c;
  box-shadow: var(--hub-shadow);
}

.hub-hero-visual img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center;
}

.hub-map,
.hub-directory,
.hub-author {
  margin-top: 18px;
  padding: 48px;
  border-radius: 8px;
  background: var(--hub-paper);
}

.hub-section-heading {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.hub-section-heading.align-left {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.hub-section-heading h2 {
  font-size: 3rem;
}

.hub-section-heading > p:not(.hub-eyebrow) {
  max-width: 650px;
  margin: 16px auto 0;
  font-size: 1.05rem;
}

.hub-section-heading.align-left > p:not(.hub-eyebrow) {
  margin-left: 0;
}

.hub-product-grid,
.hub-directory-grid {
  display: grid;
  gap: 18px;
}

.hub-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hub-feature-card,
.hub-product-panel a,
.hub-directory-grid a,
.hub-author-list a {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.hub-feature-card {
  overflow: hidden;
}

.hub-feature-card:hover,
.hub-feature-card:focus-visible,
.hub-product-panel a:hover,
.hub-product-panel a:focus-visible,
.hub-directory-grid a:hover,
.hub-directory-grid a:focus-visible,
.hub-author-list a:hover,
.hub-author-list a:focus-visible,
.hub-tile a:hover,
.hub-tile a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(184, 138, 69, 0.38);
  outline: none;
}

.hub-feature-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hub-feature-card span,
.hub-product-panel span,
.hub-directory-grid span,
.hub-separation-grid span {
  margin: 22px 22px 0;
  color: var(--hub-rose);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hub-feature-card strong,
.hub-product-panel strong,
.hub-directory-grid strong {
  margin: 10px 22px 0;
  color: inherit;
  font-size: 1.3rem;
  line-height: 1.12;
}

.hub-feature-card small,
.hub-product-panel small,
.hub-directory-grid small {
  margin: 10px 22px 24px;
  color: var(--hub-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.hub-product {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 18px;
  padding: 54px;
  border-radius: 8px;
  background: var(--hub-paper);
  scroll-margin-top: 76px;
}

.hub-product.is-control {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 241, 239, 0.94)),
    var(--hub-paper);
}

.hub-product.is-sala {
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.72fr);
  background: var(--hub-dark);
  color: #f5f5f7;
}

.hub-product.is-sala .hub-product-copy > p {
  color: #d0d0d4;
}

.hub-product h2,
.hub-book h2,
.hub-author h2 {
  max-width: 760px;
  font-size: 4.25rem;
}

.hub-product-copy > p,
.hub-book-copy > p,
.hub-author p {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 1.16rem;
}

.hub-product-panel {
  display: grid;
  gap: 12px;
  align-content: center;
}

.hub-product-panel a {
  justify-content: center;
  min-height: 190px;
}

.hub-product.is-sala .hub-link {
  color: #ffffff;
}

.hub-product-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.hub-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 18px auto 0;
}

.hub-tile {
  overflow: hidden;
  border-radius: 8px;
  background: var(--hub-paper);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.08);
}

.hub-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hub-tile div {
  padding: 22px;
}

.hub-tile p,
.hub-tile h3 {
  margin: 0;
}

.hub-tile p {
  color: var(--hub-gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hub-tile h3 {
  margin-top: 8px;
  font-size: 1.45rem;
}

.hub-tile a {
  display: inline-flex;
  margin-top: 16px;
  color: #005fb8;
  font-weight: 850;
  text-decoration: none;
}

.hub-separation {
  margin-top: 18px;
  border-radius: 8px;
  padding: 48px;
  background: #ffffff;
}

.hub-separation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hub-separation-grid article {
  min-height: 230px;
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  padding: 26px;
  background: var(--hub-soft);
}

.hub-separation-grid article:last-child {
  background: var(--hub-dark-soft);
  color: #f5f5f7;
}

.hub-separation-grid span {
  display: block;
  margin: 0;
  color: var(--hub-gold);
}

.hub-separation-grid h3 {
  margin: 16px 0 0;
  font-size: 1.45rem;
  line-height: 1.12;
}

.hub-separation-grid p {
  margin: 16px 0 0;
  color: var(--hub-muted);
  line-height: 1.6;
}

.hub-separation-grid article:last-child p {
  color: #d0d0d4;
}

.hub-book {
  display: grid;
  grid-template-columns: minmax(280px, 0.56fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 18px;
  padding: 42px;
  border-radius: 8px;
  background: #ffffff;
  scroll-margin-top: 76px;
}

.hub-book-visual img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hub-directory {
  background: #e8eaee;
  scroll-margin-top: 76px;
}

.hub-directory-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hub-directory-grid a {
  min-height: 214px;
  justify-content: flex-start;
  background: #ffffff;
}

.hub-author {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 0.68fr);
  gap: 28px;
  align-items: center;
}

.hub-author-list {
  display: grid;
  gap: 12px;
}

.hub-author-list a {
  min-height: 64px;
  justify-content: center;
  padding: 0 20px;
  font-weight: 850;
}

.hub-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 18px;
  margin-bottom: 32px;
  padding: 28px;
  border-radius: 8px;
  background: #ffffff;
}

.hub-footer h2 {
  font-size: 1.35rem;
}

.hub-footer p {
  max-width: 620px;
  margin: 8px 0 0;
}

.hub-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.hub-footer a {
  color: #424245;
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hub-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 20px;
  }

  .hub-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hub-hero,
  .hub-product,
  .hub-product.is-sala,
  .hub-book,
  .hub-author,
  .hub-separation-grid {
    grid-template-columns: 1fr;
  }

  .hub-hero {
    min-height: 0;
    padding-top: 34px;
  }

  .hub-hero h1 {
    font-size: 4.2rem;
  }

  .hub-hero-visual {
    order: -1;
  }

  .hub-hero-visual img,
  .hub-book-visual img {
    height: 480px;
  }

  .hub-product-grid,
  .hub-tile-grid,
  .hub-directory-grid {
    grid-template-columns: 1fr;
  }

  .hub-tile {
    display: grid;
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1fr);
  }

  .hub-tile img {
    height: 100%;
    aspect-ratio: auto;
  }

  .hub-footer {
    grid-template-columns: 1fr;
  }

  .hub-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hub-hero,
  .hub-map,
  .hub-product,
  .hub-book,
  .hub-directory,
  .hub-author,
  .hub-footer,
  .hub-separation,
  .hub-tile-grid {
    width: 360px;
    max-width: calc(100% - 48px);
    margin-left: 24px;
    margin-right: auto;
  }

  .hub-hero h1 {
    font-size: 3.05rem;
  }

  .hub-product h2,
  .hub-book h2,
  .hub-author h2,
  .hub-section-heading h2 {
    font-size: 2.35rem;
  }

  .hub-map,
  .hub-product,
  .hub-book,
  .hub-directory,
  .hub-author,
  .hub-separation {
    padding: 28px 18px;
  }

  .hub-hero-copy > p:not(.hub-eyebrow),
  .hub-product-copy > p,
  .hub-book-copy > p,
  .hub-author p {
    font-size: 1rem;
  }

  .hub-actions,
  .hub-button {
    width: 100%;
  }

  .hub-link {
    width: 100%;
    min-height: 34px;
  }

  .hub-hero-visual img,
  .hub-book-visual img {
    height: 420px;
  }

  .hub-product-visual img {
    min-height: 340px;
  }

  .hub-product-panel a,
  .hub-directory-grid a,
  .hub-separation-grid article {
    min-height: 0;
  }

  .hub-tile {
    display: block;
  }

  .hub-tile img {
    aspect-ratio: 4 / 3;
  }
}
