@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/BigShouldersDisplay.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Marcellus SC";
  src: url("/fonts/MarcellusSC.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --night: #0c1633;
  --night-2: #13214a;
  --b97: #0b4ea2;
  --b97-hot: #2f6be0;
  --b97-red: #ee3b43;
  --hc: #c8261c;
  --hc-hot: #e5322b;
  --amber: #ffb627;
  --needle: #ff3b2f;
  --mist: #eef2f8;
  --ink: #10203f;
  --white: #ffffff;
  --iu: #990000;
  --iu-deep: #7a0000;

  --serif: "Marcellus SC", "Copperplate", "Trajan Pro", Georgia, serif;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);

  /* dial positions: (MHz - 88) / 20 */
  --pos-b97: 43.5%;
  --pos-hc: 85.5%;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }

/* ---------- Top: logo, title, dial ---------- */

.top {
  background: var(--night);
  color: var(--white);
  padding: clamp(28px, 5vw, 56px) var(--gutter) 0;
  overflow: hidden;
}
.top-inner { max-width: var(--wrap); margin: 0 auto; }

.amp-logo { width: clamp(190px, 28vw, 300px); }

h1 {
  /* room above the line for the red needle */
  margin: calc(0.7em + clamp(12px, 2.5vw, 28px)) 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 13vw, 8.25rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--white);
}

/* The red needle over the i before the c, taken from the Artistic Media Partners logo.
   Offsets are in em so it tracks the type at any size (Marcellus SC: descent 0.28em,
   small-cap I height 0.525em, i stem centred 0.125em into the letter). */
.i-mark { position: relative; }
.i-mark::before {
  content: "";
  position: absolute;
  left: 0.09em;
  bottom: 0.845em;
  width: 0.07em;
  height: 1em;
  background: linear-gradient(90deg, #a3120c 0%, #e5322b 40%, #ff7a63 58%, #c8261c 100%);
  clip-path: polygon(0 100%, 100% 100%, 58% 0);
  transform: rotate(20deg);
  transform-origin: 50% 100%;
  pointer-events: none;
}
h1 .i-mark::before { animation: flick 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) 0.5s backwards; }
@keyframes flick {
  from { transform: rotate(20deg) scaleY(0); }
  to { transform: rotate(20deg) scaleY(1); }
}

.lede {
  margin: 18px 0 0;
  max-width: 36ch;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.4;
  color: #c9d4f0;
}

/* The dial */
.dial {
  position: relative;
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 70px 0 104px;
}
.scale {
  position: relative;
  height: 22px;
  border-bottom: 2px solid var(--amber);
  background-image:
    linear-gradient(90deg, var(--amber) 0 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 182, 39, 0.55) 0 1px, transparent 1px);
  background-size: 5% 22px, 1% 10px;
  background-repeat: repeat-x;
  background-position: left bottom, left bottom;
  filter: drop-shadow(0 0 6px rgba(255, 182, 39, 0.45));
}
.scale::after { /* closing tick at 108 */
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 2px;
  height: 22px;
  background: var(--amber);
}

.mark {
  position: absolute;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--amber);
  opacity: 0.85;
}
.f88 { left: 0; transform: none; }
.f92 { left: 20%; }
.f96 { left: 40%; }
.f100 { left: 60%; }
.f104 { left: 80%; }
.f108 { left: 100%; transform: translateX(-100%); }

.needle {
  position: absolute;
  top: -26px;
  bottom: -14px;
  left: var(--pos-b97);
  width: 3px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--needle);
  box-shadow: 0 0 14px rgba(255, 59, 47, 0.9);
  animation: sweep 1.8s cubic-bezier(0.22, 0.9, 0.24, 1) 0.2s backwards;
  transition: left 0.6s cubic-bezier(0.3, 0.9, 0.3, 1);
}
@keyframes sweep {
  from { left: 0%; }
  to { left: var(--pos-b97); }
}
/* Retune the needle when a Hoosier Country link has the pointer or focus */
body:has(.hc:hover, .hc:focus-visible, .tune-hc:hover, .tune-hc:focus-visible) .needle {
  left: var(--pos-hc);
}

/* Station flags on the dial */
.tune {
  position: absolute;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 12px 7px;
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.7rem;
  line-height: 1;
}
.tune span {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
}
.tune::after { /* pin from flag to the scale */
  content: "";
  position: absolute;
  width: 3px;
  background: inherit;
}
.tune-b97 {
  bottom: calc(22px + 104px + 22px);
  left: var(--pos-b97);
  transform: translateX(-10px);
  background: var(--b97-hot);
}
.tune-b97::after { left: 8px; top: 100%; height: 22px; }

.tune-hc {
  top: calc(70px + 22px + 44px);
  left: var(--pos-hc);
  transform: translateX(calc(-100% + 10px));
  background: #d42a22; /* 5:1 with white text */
}
.tune-hc::after { right: 8px; bottom: 100%; height: 44px; }

.tune:hover { filter: brightness(1.1); }

/* ---------- Stations ---------- */

.stations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(
    101deg,
    var(--b97) 0 calc(50% - 5px),
    var(--white) calc(50% - 5px) calc(50% + 5px),
    var(--hc) calc(50% + 5px) 100%
  );
}

.station {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(48px, 7vw, 88px) clamp(28px, 6vw, 72px) clamp(56px, 8vw, 96px);
  color: var(--white);
  text-decoration: none;
}
.station.b97 { justify-self: end; width: min(100%, 560px); }
.station.hc { justify-self: start; width: min(100%, 560px); padding-left: clamp(40px, 7vw, 96px); }

.sticker {
  display: grid;
  place-items: center;
  width: clamp(200px, 26vw, 290px);
  aspect-ratio: 290 / 210;
  padding: 18px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.b97 .sticker { transform: rotate(-3deg); }
.hc .sticker { transform: rotate(2.5deg); }
.station:hover .sticker,
.station:focus-visible .sticker {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 14px 0 rgba(0, 0, 0, 0.22);
}
.sticker img { width: 100%; }

.freq {
  margin-top: 34px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.25rem, 7vw, 5.5rem);
  line-height: 0.85;
}
.station h2 {
  margin: 10px 0 0;
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.2;
}
.station p {
  margin: 10px 0 0;
  max-width: 34ch;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
}
.go {
  margin-top: 26px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--white);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}
.b97 .go { color: var(--b97); }
.hc .go { color: var(--hc); }
.station:hover .go { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- About / FAQ ---------- */

.faq {
  background: var(--mist);
  padding: clamp(56px, 8vw, 96px) var(--gutter);
}
.faq-inner { max-width: var(--wrap); margin: 0 auto; }
.faq h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 0.95;
  color: var(--ink);
}
.qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 36px 56px;
  margin-top: clamp(28px, 4vw, 44px);
}
.qa h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--ink);
}
.qa p {
  margin: 8px 0 0;
  max-width: 62ch;
  color: #2b3a5c;
}
.qa a { color: var(--b97); text-underline-offset: 2px; }

/* ---------- Footer ---------- */

.foot {
  background: var(--night);
  color: #c9d4f0;
  padding: 44px var(--gutter) 56px;
  font-size: 0.95rem;
}
.foot-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
}
.foot p, .foot address { margin: 0; font-style: normal; }
.foot a { color: var(--white); text-underline-offset: 2px; }
.foot-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--white);
}

/* ---------- Indiana Hoosiers scoreboard (filled by /scores.js from ESPN) ---------- */

.iu {
  color: var(--white);
  padding: clamp(40px, 6vw, 64px) var(--gutter) clamp(40px, 6vw, 60px);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 9px),
    radial-gradient(80% 140% at 50% -30%, rgba(255, 255, 255, 0.14), transparent 62%),
    linear-gradient(180deg, #a40a0a 0%, var(--iu) 48%, var(--iu-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.iu[hidden] { display: none; }
.iu.is-ready { opacity: 1; }
.iu-inner { max-width: var(--wrap); margin: 0 auto; }

.iu-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.iu-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
}
.iu-src {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
}

.iu-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.iu-card {
  padding: 26px clamp(20px, 3vw, 40px) 0;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.iu-card:first-child { border-left: 0; padding-left: 0; }
.iu-card:last-child { padding-right: 0; }

.iu-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 40px; }
.iu-sport {
  margin: 0;
  padding-top: 6px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
}
.iu-rank { margin: 0; display: flex; align-items: baseline; gap: 4px; line-height: 1; }
.iu-no { font-family: var(--serif); font-size: 0.9rem; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.8); }
.iu-num { font-family: var(--display); font-weight: 900; font-size: 2.5rem; }
.iu-rec { margin: 2px 0 0; font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); }

.iu-game { margin-top: 18px; }
.iu-k {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.iu-live { color: var(--white); }
.iu-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  animation: iu-pulse 1.6s ease-out infinite;
}
@keyframes iu-pulse {
  from { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  to { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
}
.iu-score { margin: 6px 0 0; display: flex; align-items: center; gap: 12px; line-height: 1; }
.iu-res {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1;
}
.iu-w { background: var(--white); border-color: var(--white); color: var(--iu); }
.iu-pts {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.iu-meta { margin: 6px 0 0; font-size: 0.95rem; color: rgba(255, 255, 255, 0.88); }
.iu-next { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.iu-opp { font-weight: 700; color: var(--white); }

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .iu-cols { grid-template-columns: 1fr; }
  .iu-card, .iu-card:first-child, .iu-card:last-child {
    padding: 22px 0 24px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  .iu-card:first-child { border-top: 0; }
  .iu-card:last-child { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .iu { transition: none; }
  .iu-dot { animation: none; }
}

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  .stations {
    grid-template-columns: 1fr;
    background: none;
  }
  .station.b97, .station.hc {
    justify-self: stretch;
    width: 100%;
    padding: 56px 24px 72px;
  }
  .station.b97 { background: var(--b97); }
  .station.hc {
    background: var(--hc);
    margin-top: -28px;
    padding-top: 84px;
    clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%);
  }
  .tune { font-size: 1.45rem; }
  .tune span { font-size: 0.85rem; }
  .mark { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .needle { animation: none; transition: none; }
  .sticker { transition: none; }
  h1 .i-mark::before { animation: none; }
}

/* ---------- Bloomington weather (filled by /weather.js from the National Weather Service) ---------- */
/* Sits in the About grid as a sixth answer, so it uses the same type sizes and colors as the answers. */

.wx-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.qa.wx {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.qa.wx[hidden] { display: none; }
.qa.wx.is-ready { opacity: 1; }

.wx-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.wx-icon {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 0;
  color: var(--ink);
}
.wx-text strong { color: var(--ink); font-weight: 700; }

.wx-days {
  list-style: none;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #d3dae8;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 32px;
}
.wx-day {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-size: 0.95rem;
  color: #2b3a5c;
}
.wx-dname { font-weight: 700; color: var(--ink); }
.wx-dicon { width: 24px; height: 24px; color: var(--ink); }
.wx-hl { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wx-pop { display: inline-flex; align-items: center; gap: 3px; font-size: 0.85rem; color: var(--b97); }
.wx-drop { width: 10px; height: 10px; color: var(--b97-hot); }
.qa .wx-src { margin-top: 12px; font-size: 0.8rem; color: #56637d; }

@media (prefers-reduced-motion: reduce) {
  .qa.wx { transition: none; }
}
