/* Funky House Radio — site styles
   Colours come straight from the logo: the Chicago flag on a record label. */

@font-face { font-family: "Antonio"; src: url("../fonts/antonio-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Antonio"; src: url("../fonts/antonio-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("../fonts/josefin-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("../fonts/josefin-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #FBF8F1;   /* the flag's white field, the label's cream */
  --sky:   #5BB8E8;   /* the two bands */
  --star:  #D3202E;   /* the four stars — used for the one thing to press */
  --star-dark: #A8161F;
  --ink:   #17140F;   /* vinyl */
  --muted: #5B544A;
  --label: #F1EBDD;   /* a second, slightly warmer paper for quiet panels */

  --display: "Antonio", "Arial Narrow", sans-serif;
  --body: "Josefin Sans", "Futura", "Century Gothic", sans-serif;

  --measure: 34rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --band: clamp(10px, 1.6vw, 18px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.1875rem;     /* 19px — Josefin runs small */
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--star-dark); }

:focus-visible { outline: 3px solid var(--star); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 0.5rem; background: var(--ink); color: var(--paper); padding: 0.5rem 0.9rem; z-index: 10; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */

.site-header { padding: 1rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 48px; height: 48px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 1rem; padding: 0.35rem 0; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--sky); color: var(--ink); }

/* ---------- the hero is the flag ---------- */

.flag { border-top: var(--band) solid var(--sky); border-bottom: var(--band) solid var(--sky); }
.flag .wrap { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-top: clamp(2rem, 6vw, 4.5rem); padding-bottom: clamp(2rem, 6vw, 4.5rem); align-items: center; }

@media (min-width: 900px) {
  .flag .wrap { grid-template-columns: 1.35fr 1fr; gap: 3rem; }
}

.status { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1.1rem; font-weight: 600; font-size: 1.05rem; }
.status .dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--star); flex: none; }
.status.is-live .dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.headline {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(3rem, 9.5vw, 7.25rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  margin: 0 0 1.8rem;
  max-width: 12ch;
  text-wrap: balance;
}

.stars { display: flex; gap: 0.55rem; margin: 0 0 1.6rem; }
.stars svg { width: 1.6rem; height: 1.6rem; fill: var(--star); }

/* the player */
.player { background: var(--ink); color: var(--paper); border-radius: 6px; padding: 1.1rem; max-width: 34rem; }
.player-slot {
  min-height: 9.5rem;
  border: 2px dashed rgba(251, 248, 241, 0.35);
  border-radius: 4px;
  display: grid; place-items: center; text-align: center;
  padding: 1rem; font-size: 1rem; color: rgba(251, 248, 241, 0.8);
}
.player-slot iframe { width: 100%; border: 0; display: block; }
/* the Live365 widget: stretches to the box width, keeps its own height */
.player-embed iframe { width: 100%; height: 316px; border: 0; display: block; border-radius: 4px; background: #000; }
.player-note { margin: 0.8rem 0 0; font-size: 0.95rem; color: rgba(251, 248, 241, 0.75); }
.player-note a { color: var(--paper); font-weight: 600; }
.player-note a:hover { color: var(--sky); }

/* the record label turns, slowly, once the page is open — the one moving thing */
.record { justify-self: center; width: min(62vw, 26rem); aspect-ratio: 1; position: relative; }
.record img { width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .record img { animation: spin 18s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- sections ---------- */

section { padding: clamp(3rem, 8vw, 6rem) 0; }

.section-title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1; letter-spacing: 0.01em; margin: 0 0 1.25rem;
}

.promise .big {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(2.2rem, 6.5vw, 4.75rem); line-height: 0.98; margin: 0 0 1.5rem; max-width: 18ch; text-wrap: balance;
}
.promise p { max-width: var(--measure); margin: 0 0 1rem; }

/* trailer — loads YouTube only when pressed */
.trailer { background: var(--label); }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 6px; overflow: hidden; max-width: 60rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-start {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; cursor: pointer; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  font: 600 1.1rem var(--body);
}
.video-start img { width: clamp(6rem, 18vw, 10rem); }
.video-start .play {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--star); color: #fff; padding: 0.75rem 1.3rem; border-radius: 999px;
}
.video-start:hover .play { background: var(--star-dark); }
.video-start .play svg { width: 1rem; height: 1rem; fill: currentColor; }
.video-note { font-size: 0.95rem; color: var(--muted); margin: 0.8rem 0 0; max-width: var(--measure); }

/* the three DJs */
.djs ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .djs ol { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.dj figure { margin: 0 0 1rem; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--ink); border-bottom: 8px solid var(--sky); }
.dj figure img { width: 100%; height: 100%; object-fit: cover; }
.dj.hank figure img { object-position: 30% 30%; }
.dj.lisa figure img { object-position: 50% 30%; }
.dj.mike figure img { object-position: 82% 30%; }

.dj h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 2rem; line-height: 1; margin: 0 0 0.3rem; }
.dj .role { margin: 0 0 0.9rem; color: var(--muted); font-size: 1rem; }
.dj blockquote { margin: 0 0 1rem; font-size: 1.15rem; line-height: 1.45; }
.dj blockquote::before { content: "\201C"; }
.dj blockquote::after { content: "\201D"; }
.dj a { font-weight: 600; }

/* the honest note */
.honest { background: var(--ink); color: var(--paper); }
.honest p { max-width: var(--measure); margin: 0 0 1rem; }
.honest .section-title { color: var(--paper); }
.honest a { color: var(--paper); font-weight: 600; }
.honest a:hover { color: var(--sky); }

/* ---------- footer ---------- */

.site-footer { border-top: var(--band) solid var(--sky); padding: 2.5rem 0 3rem; }
.site-footer .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr; align-items: end; } }
.tagline { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1; margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 1rem; }
.footer-links a { font-weight: 600; }
.small { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- inner pages ---------- */

.page-head { border-bottom: var(--band) solid var(--sky); padding: clamp(2rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.8rem, 8vw, 5.5rem); line-height: 0.95; margin: 0 0 1rem; text-wrap: balance; }
.page-head .lede { font-size: 1.3rem; line-height: 1.45; max-width: var(--measure); margin: 0; }

.prose > * { max-width: var(--measure); }
.prose h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1; margin: 2.8rem 0 0.8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1rem; }

/* who does what: two plain lists side by side */
.split { display: grid; gap: 1.5rem; margin: 1.2rem 0 1.4rem; max-width: 52rem; }
@media (min-width: 700px) { .split { grid-template-columns: 1fr 1fr; } }
.split > div { border-top: 6px solid var(--sky); padding-top: 0.9rem; }
.split > div.person { border-top-color: var(--star); }
.split h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.4rem; margin: 0 0 0.5rem; }
.split ul { margin: 0; padding-left: 1.1rem; }
.split li { margin: 0 0 0.35rem; }

.pull { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.02; margin: 2.2rem 0 0.5rem; max-width: 28ch; text-wrap: balance; }

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

/* ---------- schedule ---------- */

.t-chi, .t-uk, .t-you { display: block; }
.t-chi { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.1; }
.t-uk, .t-you { font-size: 0.88rem; color: var(--muted); font-weight: 400; line-height: 1.35; }
.t-you { color: var(--star-dark); font-weight: 600; }
.t-you[hidden] { display: none; }

.who { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.1rem; }

.tag { display: inline-block; margin-top: 0.4rem; background: var(--star); color: #fff; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.6rem 0.2rem; line-height: 1.3; border-radius: 999px; }

/* opening night */
.launch-note { background: var(--label); padding: clamp(2rem, 5vw, 3.5rem) 0; }
.launch-note[hidden] { display: none; }
.launch-date { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(1.5rem, 3.5vw, 2rem); margin: -0.6rem 0 1.2rem; }
.launch-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .launch-list { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.launch-list li { border-top: 6px solid var(--sky); padding-top: 0.8rem; font-size: 1.15rem; font-weight: 600; }
.launch-list li:first-child { border-top-color: var(--star); }
.launch-list .t-chi { font-size: 1.8rem; margin-bottom: 0.1rem; }
.launch-list .t-uk, .launch-list .t-you { margin-bottom: 0.7rem; }
.launch-list a { font-weight: 600; }
.launch-note p:last-child { margin: 0; }

/* the week */
.schedule { padding-top: clamp(2.5rem, 6vw, 4rem); }
.week { width: 100%; border-collapse: collapse; table-layout: fixed; }
.week thead th:first-child { width: 9rem; }
.week .tag { display: table; }
.week thead th { text-align: left; vertical-align: bottom; padding: 0 0.9rem 0.8rem; border-bottom: 4px solid var(--ink); }
.week tbody th { text-align: left; vertical-align: top; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.35rem; letter-spacing: 0.02em; padding: 1rem 0.9rem 1rem 0; width: 9rem; }
.week td { vertical-align: top; padding: 1rem 0.9rem; line-height: 1.3; }
.week tbody tr { border-bottom: 1px solid rgba(23, 20, 15, 0.15); }
.week td a { font-weight: 600; text-decoration: none; }
.week td a:hover { text-decoration: underline; }
.week .slot-time { display: none; }

.week tr.today { background: var(--label); box-shadow: inset 6px 0 0 var(--sky); }
.week tr.today th { padding-left: 1.1rem; }
.week td.now { background: var(--ink); color: var(--paper); }
.week td.now a { color: var(--paper); }
.week td.now .who, .week td.now .t-uk { color: rgba(251, 248, 241, 0.7); }
.week td.now .t-you { color: var(--sky); }

.night { margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem; }
.night span .t-chi, .night span .t-uk, .night span .t-you { display: inline; margin-right: 0.6rem; }
.night span .t-chi { font-size: 1.1rem; }
.night.now { background: var(--ink); color: var(--paper); padding: 0.8rem 1rem; border-radius: 6px; }

/* phones: each day becomes its own card */
@media (max-width: 759px) {
  .week, .week tbody, .week tr, .week th, .week td { display: block; width: 100%; }
  .week thead { display: none; }
  .week tbody tr { border: 0; border-top: 6px solid var(--sky); padding: 0.4rem 0 1.4rem; }
  .week tbody th { padding: 0.6rem 0 0.4rem; font-size: 1.7rem; }
  .week td { padding: 0.75rem 0; border-top: 1px solid rgba(23, 20, 15, 0.12); display: grid; grid-template-columns: 8.8rem 1fr; column-gap: 0.9rem; }
  .week td .tag { grid-column: 2; justify-self: start; }
  .week td > .slot-time { display: block; grid-row: span 3; }
  .week td .t-chi { font-size: 1.05rem; }
  .week tr.today { box-shadow: none; border-top-color: var(--star); padding-left: 0.8rem; padding-right: 0.8rem; }
  .week tr.today th { padding-left: 0; }
  .week td.now { padding-left: 0.7rem; padding-right: 0.7rem; border-radius: 4px; }
  .week td.now .t-uk { color: rgba(251, 248, 241, 0.7); }
}

/* how the week runs */
.week-notes { background: var(--label); }
.week-notes ul { padding-left: 1.1rem; margin: 0; }
.week-notes li { margin: 0 0 0.7rem; }

/* last played */
.played-box { padding: 1.1rem; }
.played-box iframe { width: 100%; height: 511px; border: 0; display: block; border-radius: 4px; background: #000; }

/* ---------- shows ---------- */

.dj-shows { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.dj-shows + .dj-shows { border-top: var(--band) solid var(--sky); }
.dj-shows-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.8rem; }
.dj-shows-head img { width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; flex: none; border: 4px solid var(--sky); }
.dj-shows.hank .dj-shows-head img { object-position: 30% 25%; }
.dj-shows.lisa .dj-shows-head img { object-position: 50% 25%; }
.dj-shows.mike .dj-shows-head img { object-position: 82% 25%; }
.dj-shows-head .section-title { margin: 0 0 0.3rem; }
.dj-shows-head .role { margin: 0; color: var(--muted); font-size: 1rem; }
.dj-shows-head .role a { font-weight: 600; color: var(--ink); margin-left: 0.3rem; white-space: nowrap; }

.show-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 2.5rem; }
@media (min-width: 760px) { .show-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .show-list { grid-template-columns: 1fr 1fr 1fr; } }
.show { border-top: 6px solid var(--sky); padding-top: 0.9rem; scroll-margin-top: 1.5rem; }
.show:first-child { border-top-color: var(--star); }
.show:target { background: var(--label); box-shadow: 0 0 0 0.8rem var(--label); border-radius: 2px; }
.show-when { margin: 0 0 0.35rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.show-when span { font-weight: 400; letter-spacing: 0.02em; }
.show h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1; margin: 0 0 0.6rem; }
.show-line { margin: 0; font-size: 1.12rem; line-height: 1.45; }
.show-note { margin: 0.6rem 0 0; font-size: 0.95rem; color: var(--muted); }

.night-note { background: var(--ink); color: var(--paper); }
.night-note a { color: var(--paper); font-weight: 600; }
.night-note a:hover { color: var(--sky); }
.lc { text-transform: none; }

/* ---------- DJ pages ---------- */

.kicker { margin: 0 0 0.5rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.9rem; color: var(--star-dark); }
.dj-head { border-bottom: 0; padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }

.dj-hero { margin: 0; border-top: var(--band) solid var(--sky); border-bottom: var(--band) solid var(--sky); background: var(--ink); }
.dj-hero img { width: 100%; height: clamp(16rem, 48vw, 34rem); object-fit: cover; }

.dj-body { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.dj-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) { .dj-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: 4rem; align-items: start; } }

.dj-quote { margin: 0 0 2.2rem; }
.dj-quote::before { content: "\201C"; }
.dj-quote::after { content: "\201D"; }

.dj-side { position: relative; }
@media (min-width: 900px) { .dj-side { position: sticky; top: 1.5rem; } }
.dj-portrait { width: 100%; max-width: 20rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; border-bottom: 8px solid var(--sky); margin-bottom: 1.6rem; }
.dj-side h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; margin: 0 0 0.6rem; }
.dj-shows-list { list-style: none; margin: 0 0 2rem; padding: 0; border-top: 4px solid var(--ink); }
.dj-shows-list li { padding: 0.55rem 0; border-bottom: 1px solid rgba(23, 20, 15, 0.15); }
.dj-shows-list a { display: block; font-weight: 600; text-decoration: none; line-height: 1.25; }
.dj-shows-list a:hover { text-decoration: underline; }
.dj-shows-list li > span { display: block; font-size: 0.85rem; color: var(--muted); }
.dj-things { margin: 0; padding-left: 1.1rem; font-size: 1rem; }
.dj-things li { margin: 0 0 0.6rem; }

.dj-next { border-top: var(--band) solid var(--sky); padding: 1.6rem 0; }
.dj-next .wrap { display: flex; flex-wrap: wrap; gap: 0.8rem 2.5rem; }
.dj-next a { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 1.9rem); text-decoration: none; }
.dj-next a:hover span { color: var(--star); }

/* the DJs overview */
.dj-cards { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 3rem; }
@media (min-width: 760px) { .dj-cards { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.dj-card > a:first-child { text-decoration: none; }
.dj-card figure { margin: 0 0 1rem; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--ink); border-bottom: 8px solid var(--sky); }
.dj-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.dj-card.hank figure img { object-position: 72% 50%; }
.dj-card.lisa figure img { object-position: 50% 40%; }
.dj-card.mike figure img { object-position: 74% 50%; }
@media (prefers-reduced-motion: no-preference) { .dj-card > a:hover figure img { transform: scale(1.03); } }
.dj-card h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 2.2rem; line-height: 1; margin: 0 0 0.35rem; }
.dj-card .role { margin: 0 0 0.9rem; color: var(--muted); font-size: 1rem; }
.dj-card blockquote { margin: 0 0 1rem; font-size: 1.15rem; line-height: 1.45; }
.dj-card blockquote::before { content: "\201C"; }
.dj-card blockquote::after { content: "\201D"; }
.dj-card .more { font-weight: 600; }

/* ---------- contact ---------- */
.contact-mail { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 5.5vw, 3.4rem); line-height: 1; margin: 0 0 2.5rem; overflow-wrap: anywhere; }
.contact-mail a { text-decoration-thickness: 4px; text-decoration-color: var(--sky); text-underline-offset: 0.12em; }
.contact-split { max-width: none; }
@media (min-width: 900px) { .contact-split { grid-template-columns: repeat(3, 1fr); } }
.contact-split h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; margin: 0 0 0.5rem; }
.contact-split p { margin: 0; }
.contact-split > div:first-child { border-top-color: var(--star); }
.follow { background: var(--label); }
.follow-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; }
.follow-links a { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 1.9rem); text-decoration: none; }
.follow-links a:hover { color: var(--star-dark); }
