.home-page {
  --paper: #f5f8fc;
  --paper-strong: #ffffff;
  --ink: #08152c;
  --ink-soft: #687692;
  --line: #d4ddea;
  --field: #102b43;
  --field-deep: #071722;
  --accent: #1557f0;
  --accent-soft: #e9f0ff;
  background: var(--paper);
  color: var(--ink);
}

.home-page * { box-sizing: border-box; }
.home-page .shell { width: min(calc(100% - 64px), 1280px); }
.home-page [hidden] { display: none !important; }
.home-page .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;
}

.home-page a:focus-visible,
.home-page button:focus-visible,
.home-page input:focus-visible {
  outline: 3px solid #9db8ff;
  outline-offset: 4px;
}

.home-page .site-header {
  position: relative;
  z-index: 5;
  background: var(--field-deep);
  border-bottom-color: rgba(214, 231, 247, .18);
  color: #fff;
}

.home-page .site-header__inner { min-height: 72px; }
.home-page .wordmark { color: #fff; letter-spacing: .06em; }
.home-page .wordmark__mark {
  width: 31px;
  height: 31px;
  border-radius: 2px;
  background: var(--accent);
  font-family: Georgia, serif;
  transform: none;
}
.home-page .wordmark__text span { color: #b7cce0; }
.home-page .site-nav { gap: 30px; }
.home-page .site-nav a { color: #eef6ff; }
.home-page .site-nav a:hover { color: #d7f12b; }

.home-page .hero {
  min-height: 264px;
  background: linear-gradient(108deg, #071722 0%, #0b1d2c 58%, #102a3e 100%);
}

.home-page .hero::before {
  inset: -80% -10% -100% 61%;
  border: 1px solid rgba(196, 222, 241, .34);
  border-radius: 0;
  transform: rotate(-8deg);
  box-shadow: none;
}

.home-page .hero::after {
  top: 16%;
  right: 11%;
  width: min(31vw, 390px);
  height: 68%;
  border: 1px solid rgba(196, 222, 241, .35);
  border-radius: 0;
  transform: skewX(-12deg);
  box-shadow: inset 0 0 0 1px rgba(196, 222, 241, .08);
}

.home-page .hero__inner {
  grid-template-columns: minmax(0, 1fr) minmax(240px, .36fr);
  gap: 58px;
  align-items: center;
  min-height: 264px;
  padding-block: 36px 40px;
}

.home-page .hero .eyebrow { color: #d7f12b; }
.home-page .hero h1 {
  max-width: 800px;
  margin: 9px 0 12px;
  color: #f8fbff;
  font-size: clamp(2.25rem, 4.55vw, 4.75rem);
  line-height: 1.1;
  letter-spacing: -.075em;
}
.home-page .hero h1 em { color: #f8fbff; }
.home-page .hero p {
  max-width: 690px;
  color: #d2dfec;
  font-size: .9rem;
  line-height: 1.8;
}
.home-page .hero__aside {
  position: relative;
  z-index: 1;
  max-width: 250px;
  border-top-color: rgba(216, 239, 255, .45);
  color: #aec3d6;
  font-size: .75rem;
  line-height: 1.7;
}
.home-page .hero__aside strong {
  color: #fff;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 1.3rem;
  letter-spacing: .08em;
}

.home-page .home-discovery {
  position: relative;
  z-index: 2;
  padding-block: 22px 18px;
  background: var(--paper-strong);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.home-page .discovery-lede {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 13px;
}
.home-page .discovery-lede h2 {
  margin: 3px 0 0;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -.045em;
}
.home-page .discovery-lede p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .78rem;
}

.home-page .search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 10px;
  margin: 0;
}
.home-page .search-field {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 52px;
  padding: 0 17px;
  border: 1px solid #b9c8e2;
  border-radius: 3px;
  background: #fbfdff;
  color: var(--ink-soft);
}
.home-page .search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21, 87, 240, .12);
}
.home-page .search-icon {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.home-page .search-icon::after {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 9px;
  height: 2px;
  background: var(--ink);
  content: "";
  transform: rotate(48deg);
  transform-origin: left center;
}
.home-page .search-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
}
.home-page .search-field input::placeholder { color: #8491ad; }
.home-page .search-submit {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.home-page .search-submit:hover { background: #0e45c8; transform: translateY(-1px); }
.home-page .search-submit__icon { font-size: 1.45rem; line-height: 1; }

.home-page .discovery-filters {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 13px;
}
.home-page .filter-caption {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
}
.home-page .league-nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 7px;
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.home-page .league-nav::-webkit-scrollbar {
  display: none;
}
.home-page .league-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid #d5dfed;
  border-radius: 999px;
  background: #f4f7fb;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.home-page .league-nav a span {
  color: var(--ink-soft);
  font-size: .67rem;
  font-weight: 700;
}
.home-page .league-nav a:hover,
.home-page .league-nav a.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.home-page .league-nav a:hover span,
.home-page .league-nav a.is-active span { color: #dce6ff; }

.home-page .home-listing { padding-block: 46px 78px; }
.home-page .home-listing .section-heading {
  align-items: end;
  margin-bottom: 17px;
}
.home-page .home-listing .section-heading h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 6px 0 0;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}
.home-page .section-heading__count {
  color: #8190ad;
  font-size: .84em;
  font-weight: 500;
  letter-spacing: 0;
}
.home-page .section-heading__side {
  display: flex;
  align-items: end;
  gap: 25px;
}
.home-page .section-heading__side p {
  max-width: 430px;
  margin: 0;
  color: var(--ink-soft);
  font-size: .78rem;
}
.home-page .section-heading__side a {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.home-page .section-heading__side a span {
  margin-left: 4px;
  font-size: 1.2rem;
  font-weight: 400;
}
.home-page .search-status {
  margin: 0 0 21px;
  color: var(--ink-soft);
  font-size: .72rem;
}

.home-page .league-group {
  margin-top: 48px;
  scroll-margin-top: 22px;
}
.home-page .league-group:first-of-type { margin-top: 0; }
.home-page .league-group__heading {
  align-items: baseline;
  margin-bottom: 0;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.home-page .league-group__heading .eyebrow { color: var(--accent); }
.home-page .league-group__heading h3 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 1.15rem;
  letter-spacing: -.04em;
}
.home-page .league-group__heading > span {
  color: var(--ink-soft);
  font-size: .72rem;
}
.home-page .player-grid {
  display: block;
  border-bottom: 1px solid var(--line);
}
.home-page .player-card {
  display: grid;
  grid-template-columns: 36px minmax(185px, 1.03fr) minmax(170px, .8fr) minmax(0, 1.7fr) 37px;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 19px;
  min-height: 0;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  transition: background .18s ease;
}
.home-page .player-card:first-child { border-top: 0; }
.home-page .player-card:hover {
  transform: none;
  background: rgba(226, 235, 249, .48);
  box-shadow: none;
}
.home-page .player-card__top {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  display: block;
}
.home-page .player-card__number {
  color: var(--accent);
  font: 800 .76rem "Arial Narrow", "Yu Gothic", sans-serif;
  letter-spacing: .05em;
}
.home-page .player-card__initial { display: none; }
.home-page .player-card__identity {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
}
.home-page .player-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.03rem;
  line-height: 1.45;
  letter-spacing: -.035em;
}
.home-page .player-card__latin {
  display: block;
  margin-top: 1px;
  color: #8390ab;
  font-family: Georgia, serif;
  font-size: .76rem;
  line-height: 1.45;
}
.home-page .player-card__meta {
  grid-column: 3;
  grid-row: 1 / span 2;
  margin: 0;
  color: var(--ink);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .015em;
  line-height: 1.55;
}
.home-page .player-card p {
  grid-column: 4;
  grid-row: 1 / span 2;
  margin: 0;
  color: var(--ink-soft);
  font-size: .76rem;
  line-height: 1.75;
}
.home-page .player-card__bottom {
  grid-column: 5;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  color: var(--accent);
  font-size: .66rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}
.home-page .player-card__arrow { color: var(--accent); font-size: 1.2rem; line-height: 1; }
.home-page .search-empty {
  margin: 34px 0 0;
  padding: 22px;
  border: 1px dashed #b7c5da;
  color: var(--ink-soft);
  font-size: .84rem;
  text-align: center;
}

.home-page .principles { border-top-color: var(--line); }
.home-page .principle b { color: var(--accent); }
.home-page .principle h3 { color: var(--ink); }
.home-page .principle p { color: var(--ink-soft); }
.home-page .site-footer { background: #071722; color: #a9bdcf; }

@media (max-width: 980px) {
  .home-page .shell { width: min(calc(100% - 48px), 1280px); }
  .home-page .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(200px, .4fr); gap: 32px; }
  .home-page .player-card {
    grid-template-columns: 30px minmax(165px, .9fr) minmax(145px, .7fr) minmax(0, 1.4fr) 32px;
    column-gap: 14px;
  }
  .home-page .player-card p { font-size: .72rem; }
}

@media (max-width: 760px) {
  .home-page .shell { width: min(calc(100% - 32px), 1280px); }
  .home-page .site-header__inner { min-height: 64px; }
  .home-page .site-nav { gap: 11px; font-size: .72rem; }
  .home-page .hero { min-height: 0; }
  .home-page .hero::before { inset: -45% -20% -70% 67%; }
  .home-page .hero::after { right: -4%; width: 40vw; height: 56%; }
  .home-page .hero__inner {
    grid-template-columns: 1fr;
    gap: 17px;
    min-height: 0;
    padding-block: 31px 32px;
  }
  .home-page .hero h1 {
    max-width: 620px;
    margin: 8px 0 10px;
    font-size: clamp(2rem, 9vw, 3.15rem);
    line-height: 1.13;
  }
  .home-page .hero p { max-width: 500px; font-size: .81rem; line-height: 1.75; }
  .home-page .hero__aside {
    display: none;
  }
  .home-page .discovery-lede { display: block; margin-bottom: 12px; }
  .home-page .discovery-lede p { margin-top: 7px; }
  .home-page .discovery-filters { align-items: flex-start; display: block; margin-top: 12px; }
  .home-page .filter-caption { display: block; margin-bottom: 7px; }
  .home-page .league-nav { margin-inline: -16px; padding-inline: 16px 16px; }
  .home-page .home-listing { padding-block: 37px 57px; }
  .home-page .home-listing .section-heading { display: block; margin-bottom: 12px; }
  .home-page .home-listing .section-heading h2 { font-size: 1.55rem; }
  .home-page .section-heading__side { display: block; }
  .home-page .section-heading__side p { margin-top: 9px; }
  .home-page .section-heading__side a { display: inline-block; margin-top: 11px; }
  .home-page .search-status { margin-bottom: 17px; }
  .home-page .league-group { margin-top: 38px; }
  .home-page .league-group__heading h3 { font-size: 1.03rem; }
  .home-page .player-card {
    grid-template-columns: 28px minmax(0, 1fr) 30px;
    grid-template-rows: auto auto auto auto;
    column-gap: 11px;
    row-gap: 5px;
    padding: 16px 0 17px;
  }
  .home-page .player-card__top { grid-column: 1; grid-row: 1 / span 4; }
  .home-page .player-card__identity { grid-column: 2; grid-row: 1; }
  .home-page .player-card h4 { font-size: .98rem; }
  .home-page .player-card__latin { font-size: .71rem; }
  .home-page .player-card__meta {
    grid-column: 2;
    grid-row: 2;
    font-size: .68rem;
    line-height: 1.5;
  }
  .home-page .player-card p {
    grid-column: 2;
    grid-row: 3 / span 2;
    font-size: .76rem;
    line-height: 1.7;
  }
  .home-page .player-card__bottom {
    grid-column: 3;
    grid-row: 1 / span 4;
    font-size: .58rem;
  }
  .home-page .player-card__arrow { font-size: 1.1rem; }
  .home-page .principles { grid-template-columns: 1fr; gap: 21px; }
}
