/* WinnerHour, ported from the Studio Hour design. Fonts are OFL files in assets/fonts. */

@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/barlow-semi-condensed-bold.woff2) format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/dm-sans.woff2) format("woff2");
}

body {
  --wh-ink: #18191e;
  --wh-paper: #fbfaf6;
  --wh-blue: #203cc5;
  --wh-navy: #142687;
  --wh-lemon: #ffeb42;
  --wh-pink: #ffbdad;
  --wh-line: #d4d2ca;
  --wh-muted: #5c6061;
  --wh-display: "Barlow Semi Condensed", "Arial Narrow", Impact, sans-serif;
  --wh-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wh-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  margin: 0;
  background: var(--wh-paper);
  color: var(--wh-ink);
  font-family: var(--wh-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

:where(body) a {
  color: var(--wh-blue);
}

:where(body) img {
  max-width: 100%;
  height: auto;
}

.wh-wrap {
  width: min(1320px, calc(100% - 7.5vw));
  margin-inline: auto;
}

.wh-mono {
  font-family: var(--wh-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wh-display {
  margin: 0;
  font-family: var(--wh-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.wh-display-small {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.wh-eyebrow {
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--wh-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wh-eyebrow a {
  color: inherit;
}

.wh-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: 1.5px solid var(--wh-ink);
  border-radius: 999px;
  background: var(--wh-lemon);
  color: var(--wh-ink);
}

/* --- sun mark --- */
.wh-sun {
  position: relative;
  display: inline-block;
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--wh-lemon);
  clip-path: polygon(
    50% 0,
    59% 15%,
    75% 7%,
    76% 25%,
    93% 25%,
    85% 41%,
    100% 50%,
    85% 59%,
    93% 75%,
    76% 75%,
    75% 93%,
    59% 85%,
    50% 100%,
    41% 85%,
    25% 93%,
    24% 75%,
    7% 75%,
    15% 59%,
    0 50%,
    15% 41%,
    7% 25%,
    24% 25%,
    25% 7%,
    41% 15%
  );
}

.wh-sun i {
  position: absolute;
  inset: 28%;
  border: 2px solid var(--wh-ink);
  border-radius: 50%;
  background: var(--wh-paper);
}

.wh-sun i::before,
.wh-sun i::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 2px;
  background: var(--wh-ink);
  transform-origin: bottom center;
}

.wh-sun i::before {
  height: 38%;
  transform: translateX(-50%);
}

.wh-sun i::after {
  height: 30%;
  transform: translateX(-50%) rotate(100deg);
}

/* --- header --- */
.wh-mast {
  border-bottom: 1.5px solid var(--wh-ink);
  background: var(--wh-paper);
}

.wh-mast-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-block: 0.9rem;
}

.wh-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--wh-ink);
  text-decoration: none;
  font-family: var(--wh-display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  text-transform: uppercase;
}

.wh-brand-small {
  font-size: 1.3rem;
}

.wh-brand-small .wh-sun {
  width: 1.9rem;
  height: 1.9rem;
}

.wh-network {
  font-family: var(--wh-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wh-muted);
}

.wh-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.2rem;
  margin-left: auto;
}

.wh-nav a {
  color: var(--wh-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.wh-nav a:hover,
.wh-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.wh-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0 1rem;
  border: 1.5px solid var(--wh-ink);
  border-radius: 999px;
  background: var(--wh-ink);
  color: var(--wh-paper);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.wh-pill:hover {
  background: var(--wh-blue);
  border-color: var(--wh-blue);
}

.wh-main {
  padding-block: 1.75rem 4rem;
}

/* --- buttons --- */
.wh-actions {
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.wh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0 1.25rem;
  border: 1.5px solid var(--wh-ink);
  border-radius: 8px;
  background: var(--wh-ink);
  color: var(--wh-paper);
  font: 600 1rem var(--wh-sans);
  text-decoration: none;
  cursor: pointer;
}

.wh-btn:hover {
  background: var(--wh-navy);
}

.wh-btn-lemon {
  background: var(--wh-lemon);
  color: var(--wh-ink);
}

.wh-btn-lemon:hover {
  background: #fff27a;
}

.wh-btn-outline {
  background: transparent;
  color: var(--wh-ink);
}

.wh-btn-outline:hover {
  background: var(--wh-lemon);
}

.wh-play {
  width: 0;
  height: 0;
  border-block: 0.4rem solid transparent;
  border-left: 0.65rem solid currentColor;
}

.wh-link {
  color: var(--wh-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* --- hero --- */
.wh-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1.5px solid var(--wh-ink);
  border-radius: 17px;
  background: var(--wh-blue);
  color: #ffffff;
}

.wh-hero .wh-eyebrow,
.wh-hero .wh-hero-meta {
  color: #e4e8ff;
}

.wh-hero-line {
  margin: 1rem 0 0;
  max-width: 34rem;
  font-size: 1.15rem;
}

.wh-hero-art {
  display: flex;
  justify-content: center;
}

.wh-frame {
  width: 100%;
  overflow: hidden;
  border: 1.5px solid var(--wh-ink);
  border-radius: 12px;
  background: var(--wh-navy);
  aspect-ratio: 4 / 3;
}

.wh-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wh-burst,
.wh-card-burst {
  display: block;
  aspect-ratio: 1;
  background: var(--wh-lemon);
  clip-path: polygon(
    50% 0,
    59% 15%,
    75% 7%,
    76% 25%,
    93% 25%,
    85% 41%,
    100% 50%,
    85% 59%,
    93% 75%,
    76% 75%,
    75% 93%,
    59% 85%,
    50% 100%,
    41% 85%,
    25% 93%,
    24% 75%,
    7% 75%,
    15% 59%,
    0 50%,
    15% 41%,
    7% 25%,
    24% 25%,
    25% 7%,
    41% 15%
  );
}

.wh-burst {
  width: min(100%, 20rem);
}

/* --- sections and quiz cards --- */
.wh-section {
  margin-top: 3rem;
}

.wh-section-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1.5px solid var(--wh-ink);
}

.wh-heading {
  margin: 0;
  font-family: var(--wh-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.wh-heading-small {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.wh-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 1.1rem;
}

.wh-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1.5px solid var(--wh-ink);
  border-radius: 12px;
  background: #ffffff;
  color: var(--wh-ink);
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.wh-card a:hover {
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 var(--wh-ink);
}

.wh-card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border-bottom: 1.5px solid var(--wh-ink);
  background: var(--wh-pink);
  overflow: hidden;
}

.wh-card-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wh-card-burst {
  width: 42%;
}

.wh-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem 1rem;
  flex: 1;
}

.wh-card-group,
.wh-card-meta {
  margin: 0;
  color: var(--wh-muted);
}

.wh-card-title {
  font-family: var(--wh-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.wh-card-meta {
  margin-top: auto;
}

.wh-board-band {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1.5px solid var(--wh-ink);
  border-radius: 17px;
  background: var(--wh-lemon);
}

.wh-board-band p {
  max-width: 36rem;
  margin: 0.6rem 0 0;
}

.wh-board-band .wh-eyebrow {
  margin: 0 0 0.5rem;
}

/* --- read cards --- */
.wh-reads {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.1rem;
}

.wh-read {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1.5px solid var(--wh-ink);
  border-radius: 12px;
  background: #ffffff;
}

.wh-read-art {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1.5px solid var(--wh-ink);
}

.wh-read-body {
  padding: 0.9rem 1rem 1.1rem;
}

.wh-read-title {
  margin: 0.3rem 0 0.4rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

.wh-read-title a {
  color: var(--wh-ink);
  text-decoration: none;
}

.wh-read-title a:hover {
  text-decoration: underline;
}

.wh-read-summary {
  margin: 0 0 0.5rem;
  color: var(--wh-muted);
  font-size: 0.95rem;
}

/* --- article --- */
.wh-article {
  max-width: 46rem;
  margin-inline: auto;
}

.wh-article-head {
  margin-bottom: 1.5rem;
}

.wh-article-title {
  margin: 0;
  font-family: var(--wh-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.wh-dek {
  margin: 0.9rem 0 0;
  font-size: 1.2rem;
  color: var(--wh-muted);
}

.wh-byline {
  margin: 1rem 0 0;
  color: var(--wh-muted);
}

.wh-byline a {
  color: inherit;
}

.wh-figure {
  margin: 0 0 1.5rem;
}

.wh-figure img {
  display: block;
  width: 100%;
  border: 1.5px solid var(--wh-ink);
  border-radius: 12px;
}

.wh-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--wh-muted);
}

.wh-credit {
  font-style: italic;
}

.wh-note {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--wh-blue);
  background: #eef0fb;
  font-size: 0.9rem;
}

.wh-body {
  font-size: 1.1rem;
  line-height: 1.7;
}

.wh-body :is(h2, h3) {
  font-family: var(--wh-display);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 2rem 0 0.6rem;
}

.wh-body h2 {
  font-size: 1.9rem;
}

.wh-body h3 {
  font-size: 1.45rem;
}

.wh-body blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 1.25rem;
  border-left: 4px solid var(--wh-lemon);
}

.wh-next {
  max-width: 46rem;
  margin: 3rem auto 0;
}

.wh-next-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1.5px solid var(--wh-ink);
  border-radius: 17px;
  background: var(--wh-blue);
  color: #ffffff;
}

.wh-next-card .wh-heading {
  color: #ffffff;
}

.wh-next-card p {
  margin: 0.6rem 0 0;
}

.wh-next .wh-reads {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}

/* --- archive, search and pager --- */
.wh-archive-head {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1.5px solid var(--wh-ink);
}

.wh-empty {
  padding: 1.25rem;
  border: 1.5px dashed var(--wh-line);
  border-radius: 12px;
  color: var(--wh-muted);
}

.wh-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.wh-pager a {
  color: var(--wh-ink);
  font-weight: 700;
}

.wh-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
  max-width: 34rem;
}

.wh-search input[type="search"] {
  flex: 1 1 14rem;
  min-height: 2.9rem;
  padding: 0 0.9rem;
  border: 1.5px solid var(--wh-ink);
  border-radius: 8px;
  background: #ffffff;
  font: 1rem var(--wh-sans);
}

/* --- footer --- */
/* "body footer.wh-foot" outranks the legacy site custom CSS rule "footer[class]" in any order. */
body footer.wh-foot {
  margin-top: 3rem;
  border-top: 4px solid var(--wh-lemon);
  background: var(--wh-ink);
  color: var(--wh-paper);
  text-align: left;
}

footer.wh-foot .wh-foot-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
  padding-block: 2.75rem 2rem;
}

footer.wh-foot .wh-foot-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

footer.wh-foot .wh-brand {
  color: var(--wh-paper);
}

footer.wh-foot .wh-sun i {
  background: var(--wh-ink);
  border-color: var(--wh-paper);
}

footer.wh-foot .wh-sun i::before,
footer.wh-foot .wh-sun i::after {
  background: var(--wh-paper);
}

footer.wh-foot .wh-network {
  color: var(--wh-lemon);
}

footer.wh-foot .wh-foot-blurb {
  max-width: 28rem;
  margin: 0.25rem 0 0;
  color: #c9ccd1;
  font-size: 0.92rem;
}

footer.wh-foot .wh-foot-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  max-width: none;
  margin: 0;
}

footer.wh-foot .wh-foot-head {
  margin: 0 0 0.3rem;
  font-family: var(--wh-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wh-lemon);
}

footer.wh-foot .wh-foot-col a {
  color: var(--wh-paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

footer.wh-foot .wh-foot-col a:hover,
footer.wh-foot .wh-foot-col a:focus-visible {
  color: var(--wh-lemon);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

footer.wh-foot .wh-legal {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid #3a3c44;
  color: #b8bbc0;
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  footer.wh-foot .wh-foot-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer.wh-foot .wh-foot-brand {
    grid-column: 1 / -1;
  }
}

/* --- quiz pages from the platform shell --- */
.base-quiz {
  --q-accent: var(--wh-blue);
  --q-line: var(--wh-ink);
  --q-muted: var(--wh-muted);
  font-family: var(--wh-sans);
  color: var(--wh-ink);
}

.base-quiz :is(.q-headline, .q-result-name, .q-card-title) {
  font-family: var(--wh-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.98;
}

.base-quiz :is(.q-eyebrow, .q-tag, .q-meta) {
  font-family: var(--wh-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.base-quiz .q-primary {
  border: 1.5px solid var(--wh-ink);
  border-radius: 8px;
  background: var(--wh-lemon);
  color: var(--wh-ink);
  font-weight: 700;
}

.base-quiz .q-primary:hover:not(:disabled) {
  background: #fff27a;
}

.base-quiz .q-option {
  border: 1.5px solid var(--wh-ink);
  border-radius: 10px;
}

.base-quiz .q-option:hover {
  box-shadow: 3px 3px 0 var(--wh-ink);
}

.base-quiz :is(.q-progress, .q-bar) {
  background: #e7e5dd;
  border-radius: 999px;
}

.base-quiz :is(.q-progress, .q-bar) span {
  background: var(--wh-blue);
  border-radius: 999px;
}

.base-quiz .q-card {
  border: 1.5px solid var(--wh-ink);
  border-radius: 12px;
}

.base-quiz .q-feedback {
  border: 1.5px solid var(--wh-ink);
  background: #fff6c2;
  color: var(--wh-ink);
}

.base-quiz .q-points {
  border: 1.5px solid var(--wh-ink);
  border-radius: 12px;
  background: var(--wh-lemon);
}

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

  .wh-hero-art {
    order: -1;
  }

  .wh-nav {
    margin-left: 0;
    flex-basis: 100%;
  }

  .wh-mast-inner .wh-pill {
    margin-left: auto;
  }

  .wh-foot-links {
    margin-left: 0;
  }
}
