/* Beach Country Radio - hand written. Gulf-at-dusk palette: deep water,
   a low sun, warm sand. Deliberately unlike davidalangraham.net (coral mesh,
   Fraunces) so the station reads as its own brand. */
:root {
  --night: #0b3441;
  --sea: #13707f;
  --sea-2: #1c8f9c;
  --sun: #ff8a3d;
  --sun-2: #ffb347;
  --coral: #ef5b4c;
  --gold: #f6c453;
  --sand: #f7efe2;
  --sand-2: #efe1c8;
  --ink: #16262c;
  --muted: #4d6168;
  --line: rgba(22, 38, 44, .12);
  --white: #fffdf9;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(11, 52, 65, .45);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 17px/1.65 var(--font-body); -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--night); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sun);
  color: var(--night); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .btn { margin-inline: auto; }

/* ------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 52, 65, .92); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); color: var(--sand);
  border-bottom: 1px solid rgba(247, 239, 226, .08);
}
.topbar__inner { max-width: var(--wrap); margin-inline: auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.logo:hover { color: inherit; }
.logo__mark { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text b { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: -.01em; }
.logo__text small { font-size: .68rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--sun-2); font-weight: 700; margin-top: 3px; }
/* Tagline beside the logo, split off by a thin rule. Hidden once the nav
   needs the room. */
.topbar__tag { font-family: var(--font-display); font-weight: 500; font-size: .95rem;
  color: rgba(247, 239, 226, .75); padding-left: 18px; margin-left: -6px;
  border-left: 1px solid rgba(247, 239, 226, .25); line-height: 1.2; white-space: nowrap; }
@media (max-width: 1100px) { .topbar__tag { display: none; } }
.topbar__nav { display: flex; gap: 22px; margin-left: auto; }
.topbar__nav a { color: rgba(247, 239, 226, .82); text-decoration: none; font-weight: 600;
  font-size: .95rem; }
.topbar__nav a:hover, .topbar__nav a[aria-current="page"] { color: var(--white); }
.onair { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  border-radius: 999px; background: var(--sun); color: var(--night); font-weight: 700;
  font-size: .9rem; text-decoration: none; white-space: nowrap; }
.onair:hover { background: var(--sun-2); color: var(--night); }
.onair__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral);
  box-shadow: 0 0 0 0 rgba(239, 91, 76, .7); animation: pulse 1.8s infinite; flex: none; }
.onair .onair__dot { background: var(--night); box-shadow: 0 0 0 0 rgba(11, 52, 65, .6); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(239, 91, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 91, 76, 0); } }
.menu { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu span { display: block; width: 22px; height: 2px; background: var(--sand); margin: 5px 0;
  border-radius: 2px; transition: transform .2s, opacity .2s; }

@media (max-width: 860px) {
  .topbar__inner { gap: 12px; }
  .onair { margin-left: auto; }
  .menu { display: block; }
  .topbar__nav { display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0; background: var(--night);
    padding: 8px var(--gutter) 16px; border-bottom: 1px solid rgba(247, 239, 226, .1); }
  .topbar__nav a { padding: 12px 0; border-bottom: 1px solid rgba(247, 239, 226, .08); }
  .topbar.is-open .topbar__nav { display: flex; }
  .topbar.is-open .menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .topbar.is-open .menu span:nth-child(2) { opacity: 0; }
  .topbar.is-open .menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 420px) {
  .logo__mark { width: 38px; height: 38px; }
  .logo__text b { font-size: 1.02rem; }
  .onair { padding: 7px 12px; font-size: .85rem; }
}
.logo__text b { white-space: nowrap; }

/* ------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px;
  border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s, background .15s; }
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn--sun { background: var(--sun); color: var(--night); }
.btn--sun:hover { background: var(--sun-2); color: var(--night); }
.btn--ghost { color: var(--sand); border-color: rgba(247, 239, 226, .4); }
.btn--ghost:hover { color: var(--white); border-color: var(--sand); }
.btn--sea { background: var(--sea); color: var(--white); }
.btn--sea:hover { background: var(--night); color: var(--white); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; color: var(--sand);
  background: linear-gradient(180deg, #0b3441 0%, #15505c 38%, #c65d45 78%, #f08a4b 100%);
  padding: clamp(48px, 8vw, 96px) 0 clamp(120px, 16vw, 200px); }
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.hero__sun { position: absolute; left: 50%; bottom: 60px; width: min(520px, 90vw);
  aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, #ffd27a 0%, #ffa24d 45%, rgba(255, 138, 61, 0) 70%);
  opacity: .75; }
.hero__waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%;
  height: clamp(90px, 14vw, 200px); }
.hero__waves .w1 { fill: #1c8f9c; opacity: .55; }
.hero__waves .w2 { fill: #13707f; opacity: .85; }
.hero__waves .w3 { fill: var(--sand); }
.hero__grid { position: relative; display: grid; gap: 40px; align-items: center;
  grid-template-columns: minmax(0, 1fr) 482px; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--sun-2); margin-bottom: 14px; }
.eyebrow--sea { color: var(--sea); }
.hero__logo { margin: 0 0 18px; line-height: 0; }
.hero__logo img { width: 300px; height: auto; max-width: 100%;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
@media (max-width: 1000px) { .hero__copy { text-align: center; } .hero__cta { justify-content: center; }
  .hero__logo img { margin-inline: auto; }
  .hero__lede { margin-inline: auto; } }
@media (max-width: 600px) { .hero__logo img { width: 240px; } }
.hero__title { font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 800; letter-spacing: -.03em;
  color: var(--white); margin-bottom: .15em; }
.hero__title span { color: var(--sun-2); }
.hero__tag { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--sand); margin-bottom: 18px; }
.hero__lede { font-size: 1.1rem; max-width: 34em; color: rgba(247, 239, 226, .88); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
@media (max-width: 1000px) { .hero__grid { grid-template-columns: 1fr; } }

.player { background: rgba(255, 253, 249, .96); color: var(--ink); border-radius: 22px;
  padding: 16px 16px 12px; min-height: 360px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); width: 100%;
  max-width: 482px; justify-self: end; }
@media (max-width: 1000px) { .player { justify-self: center; } }
.player__label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--coral); padding: 2px 4px 10px; }
.player__note { font-size: .85rem; color: var(--muted); margin: 10px 4px 2px; text-align: center; }
/* Live365 draws its embeds at a fixed 450px. Rather than let a narrow column
   crop them, .fit scales the frame down: app.js sets --s to width/450, and
   the wrapper shrinks its height to match. */
.fit { --s: 1; --w: 450px; width: 100%; max-width: var(--w); margin-inline: auto;
  height: calc(var(--h) * var(--s)); overflow: hidden; border-radius: 12px; }
.fit--shadow { box-shadow: var(--shadow); }
/* Heights Live365's embed code asks for. Set here, not in style="" attributes,
   because the CSP blocks inline styles. The phone player's 614px is set by app.js. */
.fit--player { --h: 316px; }
.fit--played { --h: 511px; }
.embed { width: var(--w); height: var(--h); border: 0; background: #fff; transform-origin: 0 0;
  transform: scale(var(--s)); }

/* ------------------------------------------------------------- sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--sand { background: var(--sand); }
.section--sea { background: linear-gradient(160deg, var(--night), var(--sea)); color: var(--sand); }
.page-top { padding-top: clamp(40px, 6vw, 72px); background: var(--sand); min-height: 60vh; }
.h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
.h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; }
.h2--light { color: var(--white); }
.h3 { font-size: 1.35rem; font-weight: 700; margin-top: 1.6em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.section--sea .lede { color: rgba(247, 239, 226, .8); }

.cards { display: grid; gap: 20px; margin-top: 36px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--white); border-radius: var(--radius); padding: 26px;
  border: 1px solid var(--line); box-shadow: 0 10px 30px -22px rgba(11, 52, 65, .5); }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; }
.card__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px;
  margin-bottom: 18px; }
.card__icon svg { width: 26px; height: 26px; }
.card__icon--sun { background: #ffe6d3; color: #c2521a; }
.card__icon--sea { background: #d7eff1; color: var(--sea); }
.card__icon--coral { background: #fde0dc; color: #b8382b; }
.card__icon--gold { background: #fdf0cf; color: #9a6b00; }

.played { display: grid; gap: 40px; align-items: center;
  grid-template-columns: minmax(0, 1fr) 450px; }
.played__small { font-size: .95rem; color: var(--muted); border-left: 3px solid var(--sun);
  padding-left: 14px; }
@media (max-width: 900px) { .played { grid-template-columns: 1fr; } }

.ways { display: grid; gap: 20px; margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.way { background: rgba(255, 255, 255, .07); border: 1px solid rgba(247, 239, 226, .14);
  border-radius: var(--radius); padding: 24px; }
.way svg { width: 30px; height: 30px; color: var(--sun-2); margin-bottom: 14px; }
.way h3 { color: var(--white); font-size: 1.2rem; }
.way p { margin: 0; color: rgba(247, 239, 226, .82); }
.way strong { color: var(--white); }
.way a { color: var(--sun-2); }
.way code { display: block; margin-top: 8px; font-size: .82rem; color: var(--white);
  background: rgba(0, 0, 0, .2); padding: 6px 10px; border-radius: 8px; overflow-wrap: anywhere; }

.split { display: grid; gap: 40px; align-items: center;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.sponsor-teaser { background: var(--white); border-radius: var(--radius); padding: 30px;
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.sponsor-teaser h3 { font-size: 1.5rem; }
.sponsor-teaser p { color: var(--muted); }

/* ------------------------------------------------------------- sponsor page */
.tiers { display: grid; gap: 18px; margin: 30px 0 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.tier { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; }
.tier .h3 { margin-top: 0; font-size: 1.2rem; }
.tier p { margin: 0; color: var(--muted); }
.tier--feature { border: 2px solid var(--sun); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px;
  border-left: 3px solid var(--sea); border-bottom: 3px solid var(--sea); transform: rotate(-45deg); }
.cta-box { margin-top: 36px; background: var(--night); color: var(--sand); border-radius: var(--radius);
  padding: 30px; }
.cta-box .h3 { margin-top: 0; color: var(--white); }

/* ------------------------------------------------------------- footer */
.footer { background: var(--night); color: rgba(247, 239, 226, .78); padding: 56px 0 24px;
  font-size: .95rem; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer a { color: rgba(247, 239, 226, .85); text-decoration: none; display: block; margin-bottom: 8px;
  overflow-wrap: anywhere; }
.footer a:hover { color: var(--white); }
.logo--footer { display: flex; color: var(--sand); margin-bottom: 14px; }
.footer__tag { max-width: 26em; }
.footer__h { font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--sun-2); margin-bottom: 14px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  border-top: 1px solid rgba(247, 239, 226, .12); margin-top: 36px; padding-top: 20px;
  font-size: .85rem; color: rgba(247, 239, 226, .6); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .onair__dot { animation: none; }
  .btn:hover { transform: none; }
}
