/* wavecast.fm: the look shared by the public pages and the web app.
   Colours follow the apps: teal accent, quiet greys, artwork with barely rounded corners. */
:root {
  color-scheme: light dark;
  --accent: #0f766e;
  --accent-strong: #0b5f5c;
  --on-accent: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f2f2f7;
  --card: #ffffff;
  --line: rgba(60, 60, 67, 0.16);
  --text: #111113;
  --text-2: rgba(60, 60, 67, 0.72);
  --text-3: rgba(60, 60, 67, 0.48);
  --fill: rgba(120, 120, 128, 0.14);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  --art-radius: 6px;
  --card-radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #2cb5a8;
    --accent-strong: #5eead4;
    --on-accent: #04272d;
    --bg: #000000;
    --bg-soft: #0e0e10;
    --card: #1c1c1e;
    --line: rgba(84, 84, 88, 0.5);
    --text: #f5f5f7;
    --text-2: rgba(235, 235, 245, 0.68);
    --text-3: rgba(235, 235, 245, 0.42);
    --fill: rgba(120, 120, 128, 0.26);
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--text-2); }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.08rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 7.5px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 0.95rem; }
.site-nav a { color: var(--text-2); }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: var(--on-accent) !important; font-weight: 650; font-size: 0.98rem; border: 0; cursor: pointer; font-family: inherit; }
.button:hover { background: var(--accent-strong); text-decoration: none; }
.button.quiet { background: var(--fill); color: var(--text) !important; }
.button.small { padding: 7px 14px; font-size: 0.9rem; }
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--text-2); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.site-footer a { color: var(--text-2); }
.site-footer .spacer { flex: 1; }
@media (max-width: 640px) { .site-nav .hide-small { display: none; } }

/* Home */
.hero { text-align: center; padding: 64px 0 28px; }
.hero .app-icon { width: 104px; height: 104px; border-radius: 23px; box-shadow: var(--shadow); margin: 0 auto 26px; }
.hero p.tagline { font-size: 1.2rem; color: var(--text-2); max-width: 620px; margin: 0 auto 26px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-shot { margin: 44px auto 0; max-width: 980px; border-radius: 18px; box-shadow: var(--shadow); }
.section { padding: 56px 0 8px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 26px; }
.card { background: var(--bg-soft); border-radius: var(--card-radius); padding: 20px; }
.card p { margin: 0; color: var(--text-2); font-size: 0.97rem; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 26px; }
.section img.wide { display: block; width: 100%; margin-top: 26px; }
.grid.top .card h3 { font-size: 1.12rem; }
.shots img { border-radius: 22px; box-shadow: var(--shadow); width: 100%; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 44px; align-items: center; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* Text pages */
.prose { padding-top: 44px; }
.prose h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); }
.prose h2 { margin-top: 1.7em; font-size: 1.35rem; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose img.wide { width: 100%; border-radius: 16px; box-shadow: var(--shadow); margin: 18px 0; }
.note { background: var(--bg-soft); border-radius: var(--card-radius); padding: 18px 20px; margin: 18px 0; }
.note p:last-child { margin: 0; }
.person { display: flex; align-items: center; gap: 18px; margin: 22px 0 16px; }
.person img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; }
.person h2 { margin: 0; }
.prose .links, .links { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin: 18px 0; padding: 0; list-style: none; }
.prose .links li { margin: 0; }
.links a { display: flex; align-items: center; gap: 12px; background: var(--bg-soft); border-radius: var(--card-radius); padding: 12px; color: var(--text); font-weight: 600; }
.links a:hover { text-decoration: none; background: var(--fill); }
.links img { width: 52px; height: 52px; border-radius: var(--art-radius); object-fit: cover; flex: none; }
.links small { display: block; color: var(--text-2); font-weight: 400; }
form.contact { display: grid; gap: 14px; margin-top: 18px; }
form.contact label { display: grid; gap: 6px; font-weight: 600; font-size: 0.93rem; }
form.contact input, form.contact textarea { font: inherit; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); }
form.contact textarea { min-height: 150px; resize: vertical; }
form.contact .trap { position: absolute; left: -9999px; }
.form-status { min-height: 1.5em; color: var(--text-2); }

/* A show's page, and an episode's */
/* The top of the page takes its colour from the artwork, as the apps do. The two ends of the
   gradient are named so that a change of colour fades rather than jumps. */
@property --top { syntax: "<color>"; inherits: false; initial-value: #3f4447; }
@property --bottom { syntax: "<color>"; inherits: false; initial-value: #1f2224; }
.starts { margin: 0 0 12px; font-size: 0.95rem; opacity: 0.9; }
.starts a { color: inherit; text-decoration: underline; }
.show-top { background: linear-gradient(180deg, var(--top) 0%, var(--bottom) 100%); transition: --top 0.6s ease, --bottom 0.6s ease; color: #fff; padding: 40px 0 34px; }
.play.on-color { background: #fff; color: #1c1c1e; }
.play.on-color:hover { background: rgba(255, 255, 255, 0.86); color: #1c1c1e; }
.show-head { display: flex; gap: 26px; align-items: flex-end; }
.show-head .art { width: 210px; height: 210px; flex: none; border-radius: var(--art-radius); box-shadow: 0 10px 34px rgba(0, 0, 0, 0.42); object-fit: cover; background: rgba(255, 255, 255, 0.08); }
.show-head h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); margin-bottom: 6px; }
.show-head .by { color: rgba(255, 255, 255, 0.74); margin-bottom: 14px; }
.show-head .crumb { color: rgba(255, 255, 255, 0.8); font-weight: 650; font-size: 0.92rem; display: inline-block; margin-bottom: 6px; }
.show-head .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.show-top .button { background: #fff; color: #1c1c1e !important; }
.show-top .button.quiet { background: rgba(255, 255, 255, 0.16); color: #fff !important; }
.show-about { margin: 22px 0 0; color: rgba(255, 255, 255, 0.82); max-width: 760px; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) { .show-head { flex-direction: column; align-items: flex-start; } .show-head .art { width: 168px; height: 168px; } }
.episodes { list-style: none; margin: 18px 0 0; padding: 0; }
.episode { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.episode .art { width: 64px; height: 64px; border-radius: 4px; object-fit: cover; flex: none; background: var(--fill); }
.episode .body { flex: 1; min-width: 0; }
.episode .title { color: var(--text); font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.episode .meta { color: var(--text-2); font-size: 0.88rem; margin-top: 2px; }
.episode .blurb { color: var(--text-2); font-size: 0.93rem; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.play { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--fill); color: var(--accent); cursor: pointer; display: grid; place-items: center; }
.play:hover { background: var(--accent); color: var(--on-accent); }
.play svg { width: 18px; height: 18px; fill: currentColor; }
.notes { margin-top: 22px; overflow-wrap: anywhere; }
.notes h3, .notes h4 { margin: 1.3em 0 0.4em; }
.notes ul, .notes ol { padding-left: 1.3em; }
.notes blockquote { margin: 1em 0; padding-left: 14px; border-left: 3px solid var(--line); color: var(--text-2); }
.big-player { margin-top: 20px; display: flex; align-items: center; gap: 14px; }
.big-player audio { width: 100%; }
/* The player that stays at the bottom of a public page once something is playing. */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
.dock[hidden] { display: none; }
.dock .wrap { display: flex; align-items: center; gap: 14px; }
.dock img { width: 46px; height: 46px; border-radius: 4px; object-fit: cover; flex: none; }
.dock .now { min-width: 0; flex: 0 1 260px; }
.dock .now b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.93rem; }
.dock .now span { color: var(--text-2); font-size: 0.82rem; }
.dock audio { flex: 1; min-width: 0; height: 40px; }
body.has-dock { padding-bottom: 86px; }
.center { text-align: center; }
