/* ==========================================================================
   PICCADILLY RADIO 261 — SHELL STYLES
   Type, buttons, header, hero, footer. Depends on brand.css.
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--pr-paper);
  color: var(--pr-black);
  font-family: var(--pr-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* Sentence case, weight 800, tight tracking — matching the reference. */
h1, h2, h3, h4 {
  font-family: var(--pr-font-body);
  font-weight: 800;
  letter-spacing: var(--pr-track-tight);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

:focus-visible { outline: 3px solid var(--pr-orange); outline-offset: 2px; }

.pr-wrap {
  width: 100%;
  max-width: var(--pr-max);
  margin-inline: auto;
  padding-inline: var(--pr-gutter);
}

/* Small uppercase label — the one place letter-spacing is used. */
.pr-eyebrow {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: var(--pr-track-wide);
  text-transform: uppercase;
  color: var(--pr-orange);
  margin: 0 0 var(--pr-s3);
}

/* ==========================================================================
   THE WORDMARK — pure CSS, no image file
   Mirrors the merch lockup: rule + EST. 2024 / PICCADILLY / RADIO [261] /
   tagline. Scales from the single font-size on .pr-mark.
   ========================================================================== */

.pr-mark {
  display: inline-grid;
  font-size: 1rem;            /* the only dial — everything below is em-based */
  line-height: 1;
  color: var(--pr-black);
  user-select: none;
}

.pr-mark__est {
  justify-self: end;
  font-family: var(--pr-font-body);
  font-size: .5em;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: .25em;
}

.pr-mark__rule { height: .16em; background: currentColor; margin-bottom: .18em; }

.pr-mark__name,
.pr-mark__radio,
.pr-mark__261 {
  font-family: var(--pr-font-mark);
  font-size: 2em;
  line-height: .86;
  letter-spacing: -.035em;
}

.pr-mark__row { display: flex; align-items: stretch; gap: .18em; margin-top: .1em; }

.pr-mark__radio { color: var(--pr-orange); }

.pr-mark__261 {
  background: var(--pr-orange);
  color: var(--pr-black);
  padding: .04em .14em .06em;
  border-radius: .06em;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  letter-spacing: -.02em;
}

.pr-mark__tagline {
  font-family: var(--pr-font-body);
  font-size: .445em;
  font-weight: 600;
  letter-spacing: .085em;
  margin-top: .5em;
  white-space: nowrap;
}

.pr-mark--invert { color: var(--pr-white); }
.pr-mark--invert .pr-mark__261 { color: var(--pr-ink); }

.pr-mark--compact { font-size: .82rem; }
.pr-mark--compact .pr-mark__tagline,
.pr-mark--compact .pr-mark__est { display: none; }

/* ── LOGOS ──────────────────────────────────────────────────────────────────
   Header: the horizontal lockup without its tagline (unreadable at this
   size). Footer: the vertical lockup beside the original retro roundel —
   made for today next to built on heritage.                                */

.pr-logo { display: block; flex: none; line-height: 0; }
.pr-logo img { height: 50px; width: auto; }

.pr-footer__marks { display: flex; align-items: center; gap: var(--pr-s5); }
.pr-logo--footer img { height: 190px; }
.pr-footer__heritage { width: 96px; height: auto; opacity: .95; }

/* ==========================================================================
   BUTTONS — pills, sentence case, no letter-spacing
   ========================================================================== */

.pr-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--pr-s2);
  font-family: var(--pr-font-body);
  font-size: .875rem;
  font-weight: 700;
  padding: .78rem 1.35rem;
  border: 0;
  border-radius: var(--pr-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s var(--pr-ease), color .2s var(--pr-ease),
              box-shadow .2s var(--pr-ease), transform .12s var(--pr-ease);
}

.pr-btn:active { transform: translateY(1px); }

.pr-btn--live {
  background: var(--pr-orange);
  color: var(--pr-white);
  box-shadow: var(--pr-shadow-btn);
}
.pr-btn--live:hover { background: var(--pr-orange-bright); }

/* White pill on a photo or dark ground */
.pr-btn--onlight {
  background: var(--pr-white);
  color: var(--pr-black);
  box-shadow: var(--pr-shadow);
}
.pr-btn--onlight:hover { color: var(--pr-orange); }

.pr-btn--dark { background: var(--pr-black); color: var(--pr-white); }
.pr-btn--dark:hover { background: var(--pr-orange); }

.pr-btn__play {
  width: 0; height: 0;
  border-left: 7px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-right: -2px;
}

/* ==========================================================================
   UTILITY BAR + HEADER
   ========================================================================== */

.pr-util {
  background: var(--pr-black);
  color: rgba(255, 255, 255, .78);
  font-size: .75rem;
  font-weight: 500;
}

.pr-util .pr-wrap { display: flex; align-items: center; gap: var(--pr-s4); min-height: 38px; }

.pr-util__where { display: inline-flex; align-items: center; gap: var(--pr-s2); }
.pr-util__where svg { width: 12px; height: 12px; fill: var(--pr-orange); flex: none; }

.pr-util__right { margin-left: auto; display: flex; align-items: center; gap: var(--pr-s4); }
.pr-util a { transition: color .2s var(--pr-ease); }
.pr-util a:hover { color: var(--pr-orange); }

.pr-util__social { display: flex; gap: var(--pr-s3); }
.pr-util__social svg { width: 14px; height: 14px; fill: currentColor; }

.pr-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--pr-white);
  box-shadow: var(--pr-shadow-xs);
}

.pr-header .pr-wrap {
  position: relative;
  display: flex; align-items: center;
  gap: var(--pr-s6);
  height: var(--pr-header-h);
}

.pr-nav { display: flex; gap: var(--pr-s5); margin: 0 auto; padding: 0; list-style: none; }

.pr-nav a {
  display: block;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--pr-black);
  padding: var(--pr-s2) 0;
  transition: color .2s var(--pr-ease), box-shadow .2s var(--pr-ease);
}

.pr-nav a:hover { color: var(--pr-orange); }

/* Active tab underline — inset shadow, same device as the reference. */
.pr-nav .is-active a {
  color: var(--pr-orange);
  box-shadow: inset 0 -3px 0 0 var(--pr-orange);
}

.pr-burger {
  display: none;
  background: none; border: 0; padding: var(--pr-s2);
  cursor: pointer; color: var(--pr-black);
}
.pr-burger svg { width: 24px; height: 24px; fill: currentColor; }

/* ==========================================================================
   HERO — light photograph, dark type, diagonal brand wash on the right
   ========================================================================== */

.pr-hero { position: relative; overflow: hidden; background: var(--pr-mist); }

.pr-hero__media { position: absolute; inset: 0; }
.pr-hero__media picture { display: block; width: 100%; height: 100%; }
.pr-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }

/* Scrim: keeps the left readable for dark type. */
.pr-hero__media::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(247, 245, 242, .95) 0%,
    rgba(247, 245, 242, .88) 30%,
    rgba(247, 245, 242, .50) 45%,
    rgba(247, 245, 242, 0) 60%);
}

/* The diagonal orange wash across the right third. */
.pr-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(103deg,
    rgba(252, 92, 2, 0) 60%,
    rgba(252, 92, 2, .20) 60.3%,
    rgba(207, 74, 0, .40) 100%);
}

.pr-hero .pr-wrap { position: relative; padding-block: var(--pr-s9); }
.pr-hero__inner { max-width: 620px; }

.pr-hero__title {
  font-size: clamp(2.25rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  margin-bottom: var(--pr-s4);
}
.pr-hero__title em { font-style: normal; color: var(--pr-orange); display: block; }

.pr-hero__lede {
  font-size: 1.0625rem;
  color: var(--pr-grey-700);
  max-width: 44ch;
  margin: 0 0 var(--pr-s6);
}

.pr-hero__actions { display: flex; flex-wrap: wrap; gap: var(--pr-s3); }

/* ==========================================================================
   SECTION FURNITURE
   ========================================================================== */

.pr-section { padding-block: var(--pr-s8); }

.pr-section__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--pr-s5);
  margin-bottom: var(--pr-s5);
}

.pr-section__title { font-size: 1.75rem; }

.pr-section__link {
  font-size: .875rem; font-weight: 700;
  color: var(--pr-orange);
  white-space: nowrap;
}
.pr-section__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Accent rule to the left of a sidebar heading. */
.pr-side__title {
  font-size: 1.25rem;
  border-left: 4px solid var(--pr-orange);
  padding-left: var(--pr-s3);
  margin-bottom: var(--pr-s4);
}

/* ==========================================================================
   FOOTER — light, matching the reference
   ========================================================================== */

.pr-footer { background: var(--pr-white); padding-block: var(--pr-s8) var(--pr-s5); }

.pr-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--pr-s7);
  padding-bottom: var(--pr-s6);
}

.pr-footer__blurb { font-size: .875rem; color: var(--pr-grey-700); max-width: 40ch; margin: var(--pr-s5) 0 var(--pr-s4); }

.pr-footer h4 { font-size: .8125rem; letter-spacing: var(--pr-track-wide); text-transform: uppercase; margin-bottom: var(--pr-s4); }

.pr-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--pr-s3); font-size: .875rem; color: var(--pr-grey-700); }
.pr-footer a:hover { color: var(--pr-orange); }

.pr-footer__social { display: flex; gap: var(--pr-s3); }
.pr-footer__social a {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--pr-mist);
  color: var(--pr-black);
  transition: background .2s var(--pr-ease), color .2s var(--pr-ease);
}
.pr-footer__social a:hover { background: var(--pr-orange); color: var(--pr-white); }
.pr-footer__social svg { width: 15px; height: 15px; fill: currentColor; }

.pr-footer__base {
  display: flex; flex-wrap: wrap; gap: var(--pr-s4);
  justify-content: space-between;
  padding-top: var(--pr-s5);
  border-top: 1px solid var(--pr-line);
  font-size: .8125rem;
  color: var(--pr-grey-700);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Seven nav items plus wordmark plus Live button stop fitting near 1040px. */
@media (max-width: 1060px) {
  .pr-nav { display: none; }
  .pr-burger { display: block; margin-left: auto; }

  .pr-nav.is-open {
    display: grid;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--pr-white);
    box-shadow: var(--pr-shadow-lg);
    padding: var(--pr-s3) var(--pr-gutter);
    margin: 0;
    gap: 0;
  }
  .pr-nav.is-open li { border-bottom: 1px solid var(--pr-line); }
  .pr-nav.is-open li:last-child { border-bottom: 0; }
  .pr-nav.is-open a { padding: var(--pr-s4) 0; box-shadow: none; }
}

@media (max-width: 760px) {
  .pr-util__where { display: none; }
  .pr-util__right { margin-left: 0; }
  .pr-footer__grid { grid-template-columns: 1fr; gap: var(--pr-s6); }
  .pr-section { padding-block: var(--pr-s7); }
  .pr-hero .pr-wrap { padding-block: var(--pr-s8); }
  .pr-hero .pr-wrap { padding-bottom: 11rem; }          /* a strip of city under the buttons */
  .pr-hero__media img { object-position: 50% 78%; }       /* aim at the buildings, not the sky */
  .pr-mark__tagline { white-space: normal; }

  /* On a narrow screen the diagonal wash would sit over the text, so it
     becomes a bottom band instead. */
  .pr-hero__media::before {
    background: linear-gradient(180deg,
      rgba(247, 245, 242, .95) 0%,
      rgba(247, 245, 242, .88) 48%,
      rgba(247, 245, 242, .35) 66%,
      rgba(247, 245, 242, 0) 80%);
  }
  .pr-hero__media::after {
    background: linear-gradient(180deg,
      rgba(252, 92, 2, 0) 70%,
      rgba(207, 74, 0, .30) 100%);
  }
}

@media (max-width: 560px) {
  :root { --pr-gutter: var(--pr-s4); }

  .pr-header .pr-wrap { gap: var(--pr-s3); }
  .pr-mark--compact { font-size: .68rem; }
  .pr-logo img { height: 40px; }
  .pr-header .pr-btn--live { padding: .6rem 1rem; font-size: .8125rem; }
  .pr-hero__title { font-size: clamp(1.9rem, 9vw, 2.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ── NORTHERN MUSIC HEADLINES ──────────────────────────────────────────────
   Filled by initHeadlines() in widgets.js. Links open the publisher's story. */

.pr-headlines-note {
  font-size: .875rem; font-weight: 600;
  color: var(--pr-grey-700);
  margin: 0 0 var(--pr-s5);
}

.pr-headlines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pr-s4); }
.pr-headlines--compact { grid-template-columns: 1fr; gap: var(--pr-s3); }

.pr-headline {
  display: flex; flex-direction: column; gap: var(--pr-s2);
  padding: var(--pr-s5);
  background: var(--pr-white);
  border-radius: var(--pr-radius);
  border-left: 4px solid var(--pr-orange);
  box-shadow: var(--pr-shadow-xs);
  color: var(--pr-black);
  text-decoration: none;
  transition: box-shadow .2s var(--pr-ease), transform .2s var(--pr-ease);
}
.pr-headline:hover { box-shadow: var(--pr-shadow-lg); transform: translateY(-2px); }
.pr-headline:focus-visible { outline: 2px solid var(--pr-orange); outline-offset: 2px; }

.pr-headline__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pr-s3); }
.pr-headline__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.pr-headline__summary { font-size: .875rem; line-height: 1.5; color: var(--pr-grey-700); }

.pr-headlines--compact .pr-headline { padding: var(--pr-s4); }
.pr-headlines--compact .pr-headline__title { font-size: .9375rem; }

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