/*
Theme Name: Santa 105
Description: Christmas radio theme for Santa 105 | All Year Holiday Hits.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: santa105
*/
:root {
    color-scheme: dark;
    --ink: #0a1714;
    --panel: #142922;
    --border: #355044;
    --cream: #fff4e2;
    --muted: #bfcfc4;
    --gold: #f4cb87;
    --red: #b4293a;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding-bottom: calc(82px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--cream); font: 16px/1.55 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: .2em; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
.wrap { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }
.skip-link, .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { clip-path: none; z-index: 100; width: auto; height: auto; padding: .65rem 1rem; margin: 0; background: var(--ink); }

.masthead { background: #101f1a; border-top: 3px solid var(--red); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.station-logo { color: var(--cream); font: bold 33px/1 var(--serif); text-decoration: none; white-space: nowrap; }
.station-logo span, .station-logo strong { color: var(--gold); }
.station-logo span { font-size: .6em; vertical-align: .12em; }
.custom-logo { display: block; width: auto; max-width: 180px; height: auto; max-height: 58px; object-fit: contain; }
.header-inner nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 27px; }
.header-inner nav a { color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 650; }
.header-inner nav a:hover { color: var(--gold); }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 21px; border: 1px solid transparent; border-radius: 5px; text-decoration: none; font-weight: 750; font-size: .88rem; white-space: nowrap; }
.primary { background: var(--red); color: #fff; }
.primary:hover, .play-icon:hover { background: #cd3448; }
.outline { color: var(--cream); background: #12251dcc; border-color: #829385; }

.hero { background: linear-gradient(90deg, #091810 0%, #091810b5 36%, #09181018 78%), url('assets/hero.webp') center 52% / cover, #143021; border-bottom: 1px solid var(--border); }
.hero-inner { min-height: clamp(365px, 49vw, 555px); padding-block: 60px 74px; display: flex; align-items: flex-start; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); font-size: .78rem; font-weight: 800; }
.hero h1 { margin: 0 0 29px; font: 700 clamp(3.1rem, 7.3vw, 6.6rem)/.98 var(--serif); letter-spacing: -.06em; }
.hero h1 em { color: var(--gold); font-weight: inherit; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.homepage { padding-block: 29px 58px; }
.now-playing { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 25px; padding: 23px; border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: 8px; background: linear-gradient(105deg, #203b30, var(--panel) 74%); }
.now-playing img { width: 112px; aspect-ratio: 1; object-fit: cover; border-radius: 5px; }
.live-dot { width: .55rem; height: .55rem; background: #f68e99; display: inline-block; border-radius: 50%; margin-right: .3rem; }
.now-song { font: 700 clamp(1.5rem, 4.1vw, 2.8rem)/1.05 var(--serif); margin: 0 0 .25em; overflow-wrap: anywhere; }
.now-artist { color: var(--muted); margin: 0; overflow-wrap: anywhere; }

.section { padding-top: 45px; }
.section-title { font: 700 clamp(1.9rem, 4vw, 2.9rem)/1.1 var(--serif); margin: 0 0 18px; letter-spacing: -.035em; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
#recent-status { color: var(--muted); }
#recent-status:empty, .track-list:empty { display: none; }
.track-list { list-style: none; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; }
.track-row { display: grid; grid-template-columns: 28px 48px minmax(0, 1fr) auto; align-items: center; gap: 16px; background: var(--panel); padding: 10px 16px; }
.track-row:nth-child(even) { background: #10221c; }
.track-row + .track-row { border-top: 1px solid var(--border); }
.track-art, .player-art { aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.track-title, .track-artist { display: block; overflow-wrap: anywhere; }
.track-number, .track-artist, .track-time { color: var(--muted); font-size: .82rem; }
.track-time { white-space: nowrap; }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.news-card, .contact-grid > div, .entry { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.news-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.news-card > a { display: block; }
.news-card img { display: block; width: 100%; aspect-ratio: 17 / 9; object-fit: cover; }
.news-card:first-child img { width: clamp(180px, 33vw, 420px); }
.news-card:first-child .news-card-body { grid-column: -2 / -1; }
.news-card:first-child .news-card-body:only-child { grid-column: 1 / -1; }
.news-card-body, .contact-grid > div { padding: 21px; }
.news-card time, .entry time { color: var(--gold); font-size: .82rem; }
.news-card h3, .contact-grid h3 { margin: 5px 0 7px; font: 700 1.3rem/1.25 var(--serif); }
.news-card:first-child h3 { font-size: 1.75rem; }
.news-card h3 a { color: var(--cream); text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; }
.news-card p { color: var(--muted); margin-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.contact-grid a { overflow-wrap: anywhere; }
.entry-wrap { max-width: 850px; padding-block: 45px; }
.entry { padding: clamp(18px, 5vw, 44px); margin-bottom: 20px; overflow-wrap: anywhere; }
.entry h1 { font: 700 clamp(2rem, 5vw, 3.4rem)/1.1 var(--serif); }
.entry > img { display: block; margin-block: 20px; }
.entry-content { margin-top: 20px; }
.entry-content > :last-child, .entry > :last-child { margin-bottom: 0; }
.entry textarea, .entry input { max-width: 100%; }
.entry pre { overflow: auto; }
.entry iframe { max-width: 100%; }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 72px; font-size: .85rem; }
.player { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; padding-bottom: env(safe-area-inset-bottom); background: #10251e; border-top: 2px solid var(--red); box-shadow: 0 -5px 28px #0006; }
.player-inner { min-height: 75px; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 13px; }
.play-icon { border: 0; border-radius: 50%; width: 44px; height: 44px; background: var(--red); color: #fff; padding: 0; }
.player-track { min-width: 0; }
.player-track strong, .player-track span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-track span, .player-status { color: var(--muted); font-size: .78rem; }
.player-volume { display: flex; align-items: center; gap: 8px; }
.player-volume button { border: 1px solid var(--border); border-radius: 4px; background: transparent; color: var(--cream); min-height: 34px; padding-inline: 8px; font-size: .78rem; }
.player-volume input { width: 100px; margin: 0; accent-color: var(--gold); }

@media (max-width: 760px) {
    .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 11px; padding-block: 12px; }
    .header-inner nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; gap: 4px 20px; }
    .header-inner nav a { padding-block: 4px; }
    .hero { background-position: center, 62% 50%; }
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
    .wrap { width: calc(100% - 28px); }
    .hero { background-image: linear-gradient(90deg, #091810eb, #09181060), url('assets/hero.webp'); }
    .hero-inner { min-height: 375px; }
    .now-playing { grid-template-columns: 67px minmax(0, 1fr); gap: 10px 14px; padding: 15px; }
    .now-playing img { width: 67px; }
    .now-playing .button { grid-column: 1 / -1; justify-self: start; }
    .now-playing .eyebrow { margin-bottom: 5px; }
    .news-grid, .contact-grid, .news-card:first-child { grid-template-columns: 1fr; }
    .news-card:first-child img { width: 100%; }
    .track-row { grid-template-columns: 17px 40px minmax(0, 1fr) auto; gap: 8px; padding: 9px; }
    .player-inner { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 3px 8px; padding-block: 7px; }
    .player-volume { grid-column: 4; grid-row: 1; gap: 5px; }
    .player-volume input { width: clamp(36px, 12vw, 65px); }
    .player-status { grid-column: 3 / -1; grid-row: 2; line-height: 1.2; }
    .player-status:empty { display: none; }
    .player-art { width: 33px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
