@font-face {
  font-family: "SLHS Archivo";
  src: url("/assets/fonts/ArchivoBlack-Regular.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "SLHS Inter";
  src: url("/assets/fonts/Inter-Variable.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  --slhs-ink: #061522;
  --slhs-panel: #0b2132;
  --slhs-deep: #071b29;
  --slhs-line: #244051;
  --slhs-cream: #faf4e9;
  --slhs-muted: #a8bdc8;
  --slhs-lime: #d7ff46;
  --slhs-cyan: #12c8e7;
}

body.team-site {
  background: var(--slhs-ink);
  color: var(--slhs-cream);
  font-family: "SLHS Inter", Inter, Arial, Helvetica, sans-serif;
}

.team-site .masthead {
  align-items: center;
  background: color-mix(in srgb, var(--slhs-ink) 94%, transparent);
  border-bottom: 1px solid var(--slhs-line);
  display: flex;
  justify-content: space-between;
  min-height: 68px;
  padding: 14px 20px;
  position: relative;
  z-index: 10;
}

.team-site .brand {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  font-family: "SLHS Archivo", Impact, "Arial Narrow", sans-serif;
  font-size: 17px;
  letter-spacing: -0.03em;
  line-height: 0.86;
}

.team-site .brand::before {
  background: var(--slhs-lime);
  content: "";
  height: 3px;
  margin-bottom: 7px;
  width: 28px;
}

.team-site .brand small {
  color: var(--slhs-cyan);
  font-size: 10px;
  letter-spacing: 0.15em;
  margin-top: 5px;
}

.team-site .masthead nav {
  align-items: center;
  display: flex;
  gap: 20px;
}

.team-site .masthead nav a {
  color: var(--slhs-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-site .masthead nav a:first-child {
  color: var(--slhs-cream);
  display: inline-block;
}

.team-site .masthead nav a:hover,
.team-site .masthead nav a:focus-visible {
  color: var(--slhs-lime);
}

.team-page,
.article-page {
  --team-accent: var(--slhs-lime);
  --team-secondary: var(--slhs-cyan);
  --team-code: "SLHS";
  --team-place: "SOUTHERN CALIFORNIA";
  --sport-pattern:
    repeating-linear-gradient(128deg, transparent 0, transparent 41px, color-mix(in srgb, var(--team-accent) 20%, transparent) 42px),
    linear-gradient(135deg, color-mix(in srgb, var(--team-secondary) 8%, transparent), transparent 58%);
  isolation: isolate;
}

[data-franquia="kings"] { --team-code: "LAK"; --team-place: "LA / ICE"; }
[data-franquia="ducks"] { --team-code: "ANA"; --team-place: "OC / ICE"; }
[data-franquia="lafc"] { --team-code: "LAFC"; --team-place: "LA / PITCH"; }
[data-franquia="galaxy"] { --team-code: "LAG"; --team-place: "LA / PITCH"; }
[data-franquia="angels"] { --team-code: "LAA"; --team-place: "OC / DIAMOND"; }
[data-franquia="dodgers"] { --team-code: "LAD"; --team-place: "LA / DIAMOND"; }
[data-franquia="padres"] { --team-code: "SD"; --team-place: "SD / DIAMOND"; }
[data-franquia="lakers"] { --team-code: "LAL"; --team-place: "LA / COURT"; }
[data-franquia="clippers"] { --team-code: "LAC"; --team-place: "LA / COURT"; }
[data-franquia="rams"] { --team-code: "LAR"; --team-place: "LA / FIELD"; }
[data-franquia="chargers"] { --team-code: "LAC"; --team-place: "LA / FIELD"; }
[data-franquia="san-diego-fc"] { --team-code: "SDFC"; --team-place: "SD / PITCH"; }

[data-league="NHL"] {
  --sport-pattern:
    repeating-linear-gradient(145deg, transparent 0, transparent 39px, color-mix(in srgb, var(--team-accent) 19%, transparent) 40px),
    linear-gradient(135deg, color-mix(in srgb, var(--team-secondary) 8%, transparent), transparent 58%);
}

[data-league="MLS"] {
  --sport-pattern:
    linear-gradient(90deg, transparent 49.8%, color-mix(in srgb, var(--team-secondary) 18%, transparent) 50%, transparent 50.2%),
    repeating-linear-gradient(0deg, transparent 0, transparent 95px, color-mix(in srgb, var(--team-accent) 17%, transparent) 96px);
}

[data-league="MLB"] {
  --sport-pattern:
    repeating-linear-gradient(45deg, transparent 0, transparent 67px, color-mix(in srgb, var(--team-accent) 16%, transparent) 68px),
    repeating-linear-gradient(-45deg, transparent 0, transparent 67px, color-mix(in srgb, var(--team-secondary) 9%, transparent) 68px);
}

[data-league="NBA"] {
  --sport-pattern:
    radial-gradient(circle at 82% 50%, transparent 0, transparent 91px, color-mix(in srgb, var(--team-accent) 19%, transparent) 92px, transparent 93px),
    linear-gradient(90deg, transparent 49.8%, color-mix(in srgb, var(--team-secondary) 14%, transparent) 50%, transparent 50.2%);
}

[data-league="NFL"] {
  --sport-pattern:
    repeating-linear-gradient(0deg, transparent 0, transparent 59px, color-mix(in srgb, var(--team-accent) 18%, transparent) 60px),
    repeating-linear-gradient(90deg, transparent 0, transparent 119px, color-mix(in srgb, var(--team-secondary) 9%, transparent) 120px);
}

.team-hero,
.article-hero {
  background-color: var(--slhs-deep);
  border-bottom: 1px solid var(--slhs-line);
  overflow: hidden;
  position: relative;
}

.team-hero::before,
.article-hero::before {
  background-image: var(--sport-pattern);
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
  opacity: 0.82;
  pointer-events: none;
  position: absolute;
}

.team-hero {
  display: grid;
  min-height: 600px;
  padding: 54px 20px 30px;
}

.team-hero__copy {
  align-self: end;
  max-width: 820px;
  position: relative;
  z-index: 2;
}

.team-hero__meta,
.article-hero__meta,
.team-feed__head,
.article-rail__label {
  align-items: center;
  display: flex;
  font-size: 10px;
  font-weight: 800;
  justify-content: space-between;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team-hero__meta,
.article-hero__meta {
  border-bottom: 1px solid color-mix(in srgb, var(--team-accent) 48%, var(--slhs-line));
  color: var(--team-accent);
  margin-bottom: 26px;
  padding-bottom: 12px;
}

.team-edition {
  color: var(--slhs-muted);
  font-size: 0;
}

.team-edition::after {
  content: var(--team-place);
  font-size: 10px;
}

.team-hero h1,
.article-hero h1 {
  font-family: "SLHS Archivo", Impact, "Arial Narrow", sans-serif;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.team-hero h1 {
  font-size: clamp(48px, 15vw, 118px);
  line-height: 0.86;
  max-width: 900px;
  overflow-wrap: normal;
  text-transform: uppercase;
}

.team-hero__dek {
  color: var(--slhs-muted);
  font-size: 16px;
  line-height: 1.6;
  margin-top: 26px;
  max-width: 570px;
}

.team-signal,
.article-hero__signal {
  align-items: center;
  color: var(--team-accent);
  display: flex;
  font-family: "SLHS Archivo", Impact, "Arial Narrow", sans-serif;
  inset: 24px 20px auto auto;
  justify-content: center;
  opacity: 0.16;
  pointer-events: none;
  position: absolute;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: top right;
  white-space: nowrap;
}

.team-signal::before,
.article-hero__signal::before {
  content: var(--team-code);
  font-size: clamp(92px, 28vw, 260px);
  letter-spacing: -0.08em;
}

.team-feed {
  margin: 0 auto;
  max-width: 1120px;
  padding: 52px 20px 72px;
}

.team-feed__head {
  border-bottom: 1px solid var(--slhs-line);
  color: var(--slhs-muted);
  margin-bottom: 18px;
  padding-bottom: 14px;
}

.team-feed__head h2 {
  color: var(--slhs-cream);
  font-family: "SLHS Archivo", Impact, "Arial Narrow", sans-serif;
  font-size: 23px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.team-feed__head span:last-child {
  color: var(--team-accent);
}

.team-feed__grid {
  display: grid;
  gap: 1px;
}

.team-feed .post {
  background: var(--slhs-panel);
  border: 1px solid var(--slhs-line);
  display: grid;
  gap: 24px;
  grid-template-columns: 48px 1fr;
  min-height: 190px;
  padding: 24px 20px;
  position: relative;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.team-feed .post::after {
  background: var(--team-accent);
  bottom: -1px;
  content: "";
  height: 4px;
  left: -1px;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  width: calc(100% + 2px);
}

.team-feed .post:hover,
.team-feed .post:focus-visible {
  background: color-mix(in srgb, var(--slhs-panel) 78%, var(--team-accent));
  border-color: var(--team-accent);
}

.team-feed .post:hover::after,
.team-feed .post:focus-visible::after {
  transform: scaleX(1);
}

.post__number {
  color: var(--team-accent);
  font-family: "SLHS Archivo", Impact, "Arial Narrow", sans-serif;
  font-size: 15px;
  letter-spacing: 0.05em;
}

.post__copy {
  align-self: end;
}

.team-feed .post .eyebrow {
  color: var(--slhs-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}

.team-feed .post h3 {
  font-family: "SLHS Archivo", Impact, "Arial Narrow", sans-serif;
  font-size: clamp(25px, 7vw, 38px);
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.team-empty {
  align-items: flex-end;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--team-accent) 10%, transparent), transparent 54%),
    var(--slhs-panel);
  border: 1px solid var(--slhs-line);
  display: grid;
  min-height: 330px;
  overflow: hidden;
  padding: 26px 20px;
  position: relative;
}

.team-empty::after {
  color: color-mix(in srgb, var(--team-accent) 18%, transparent);
  content: var(--team-code);
  font-family: "SLHS Archivo", Impact, "Arial Narrow", sans-serif;
  font-size: clamp(112px, 39vw, 330px);
  letter-spacing: -0.08em;
  line-height: 0.7;
  position: absolute;
  right: -0.08em;
  top: 26px;
}

.team-empty__copy {
  max-width: 460px;
  position: relative;
  z-index: 1;
}

.team-empty__copy strong {
  display: block;
  font-family: "SLHS Archivo", Impact, "Arial Narrow", sans-serif;
  font-size: 28px;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.team-empty__copy p {
  color: var(--slhs-muted);
  font-size: 14px;
  line-height: 1.6;
}

.team-switch {
  align-items: center;
  border-top: 1px solid var(--slhs-line);
  display: flex;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 20px;
}

.team-switch a,
.article-back {
  color: var(--slhs-cream);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-switch a::after,
.article-back::after {
  color: var(--team-accent);
  content: " →";
}

.team-switch span {
  color: var(--slhs-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-hero {
  min-height: 560px;
  padding: 58px 20px 46px;
}

.article-hero__inner {
  align-items: end;
  display: grid;
  min-height: 456px;
  position: relative;
  z-index: 2;
}

.article-hero__copy {
  max-width: 980px;
}

.article-hero__team {
  color: var(--team-accent);
}

.article-hero h1 {
  font-size: clamp(43px, 11vw, 92px);
  line-height: 0.94;
  max-width: 1000px;
}

.article-hero__dek {
  color: var(--slhs-muted);
  font-size: clamp(17px, 4.8vw, 22px);
  line-height: 1.5;
  margin-top: 26px;
  max-width: 720px;
}

.article-shell {
  margin: 0 auto;
  max-width: 1120px;
  padding: 48px 20px 76px;
}

.article-layout {
  display: grid;
  gap: 42px;
}

.article-copy {
  max-width: 720px;
}

.article-copy p {
  color: var(--slhs-cream);
  font-family: "SLHS Inter", Inter, Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.76;
  margin: 0 0 1.55em;
  white-space: pre-wrap;
}

.article-copy p:first-child {
  font-size: 21px;
  line-height: 1.67;
}

.article-copy p:first-child::first-letter {
  color: var(--team-accent);
  float: left;
  font-family: "SLHS Archivo", Impact, "Arial Narrow", sans-serif;
  font-size: 72px;
  line-height: 0.82;
  margin: 9px 10px 0 0;
}

.article-rail {
  border-top: 1px solid var(--team-accent);
  padding-top: 16px;
}

.article-rail__label {
  color: var(--team-accent);
  margin-bottom: 14px;
}

.article-rail p {
  color: var(--slhs-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.article-sources {
  border-top: 1px solid var(--slhs-line);
  margin-top: 40px;
  padding-top: 30px;
}

.article-sources h2 {
  font-family: "SLHS Archivo", Impact, "Arial Narrow", sans-serif;
  font-size: 24px;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.article-sources > p {
  color: var(--slhs-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.article-sources ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-sources li {
  border-top: 1px solid var(--slhs-line);
  line-height: 1.45;
}

.article-sources li:last-child {
  border-bottom: 1px solid var(--slhs-line);
}

.article-sources a {
  color: var(--slhs-cream);
  display: block;
  font-size: 13px;
  padding: 15px 0;
}

.article-sources a:hover,
.article-sources a:focus-visible {
  color: var(--team-accent);
}

.article-footer-nav {
  margin-top: 32px;
}

.team-site footer {
  border-top: 1px solid var(--slhs-line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  padding: 30px 20px 48px;
}

.team-site footer a {
  color: var(--slhs-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-site footer a:hover,
.team-site footer a:focus-visible {
  color: var(--slhs-lime);
}

@media (min-width: 720px) {
  .team-site .masthead,
  .team-site footer {
    padding-inline: 40px;
  }

  .team-hero,
  .article-hero {
    padding-inline: 40px;
  }

  .team-hero {
    min-height: 690px;
    padding-bottom: 48px;
  }

  .team-feed,
  .article-shell {
    padding-inline: 40px;
  }

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

  .team-feed .post {
    min-height: 250px;
    padding: 28px;
  }

  .team-empty {
    min-height: 400px;
    padding: 36px;
  }

  .article-hero {
    min-height: 650px;
    padding-bottom: 60px;
  }

  .article-hero__inner {
    min-height: 530px;
  }

  .article-layout {
    align-items: start;
    grid-template-columns: minmax(0, 720px) minmax(180px, 1fr);
    gap: 72px;
  }

  .article-rail {
    position: sticky;
    top: 30px;
  }
}

@media (min-width: 1120px) {
  .team-site .masthead,
  .team-site footer,
  .team-hero,
  .article-hero {
    padding-inline: max(64px, calc((100vw - 1280px) / 2));
  }

  .team-hero__copy {
    max-width: 1040px;
  }

  .team-signal,
  .article-hero__signal {
    right: max(64px, calc((100vw - 1280px) / 2));
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-feed .post,
  .team-feed .post::after {
    transition: none;
  }
}
