/* COLD RECORDS: white and ice grey, small monospace type. Shared by every page. */
:root {
  /* Calm, cool base with soft pastel accents. Each portal page has its own tint. */
  --bg: #f7f8fa;
  --paper: #ffffff;
  --ice: #edf1f5;
  --ice-2: #e1e7ed;
  --line: #ccd5dd;
  --mute: #75838f;
  --ink: #22303b;
  --alert: #b0574f;
  --tint: #dfe9f1;       /* soft background colour for the current page */
  --tint-ink: #3b6a8c;   /* deeper version for buttons, links and highlights */
  --glow-a: #dde9f3;     /* the two soft colour clouds behind the page */
  --glow-b: #e9e3f3;
  --player: #17212b;     /* the dark player bar */
  --player-hi: #ffffff;
  --mono: ui-monospace, 'SF Mono', Menlo, 'Courier New', monospace;
  color-scheme: light;
}

/* Page colours: frost, butter, sage, lavender, apricot, lagoon, rose. */
[data-page="overview"]  { --tint: #dfe9f1; --tint-ink: #3b6a8c; --glow-a: #dce8f2; --glow-b: #e6e2f3; }
[data-page="goals"]     { --tint: #f3ecd3; --tint-ink: #8a6a1c; --glow-a: #f4edd4; --glow-b: #e3ecdf; }
[data-page="funding"]   { --tint: #dcebe2; --tint-ink: #3d7558; --glow-a: #dcece2; --glow-b: #e8efd9; }
[data-page="bookings"]  { --tint: #e6e1f3; --tint-ink: #64579a; --glow-a: #e5e0f4; --glow-b: #dfe8f3; }
[data-page="content"]   { --tint: #f5e4d8; --tint-ink: #a35d3a; --glow-a: #f6e3d6; --glow-b: #f3e0e6; }
[data-page="demos"]     { --tint: #d8ebee; --tint-ink: #2d7480; --glow-a: #d5eaee; --glow-b: #e0e5f4; }
[data-page="playlists"] { --tint: #f1dfe5; --tint-ink: #95506a; --glow-a: #f2dee6; --glow-b: #e9e1f3; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; }

body {
  background:
    radial-gradient(60vmax 40vmax at 100% -10%, var(--glow-a), transparent 70%),
    radial-gradient(50vmax 35vmax at -10% 110%, var(--glow-b), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  letter-spacing: inherit;
}

/* ---------- Public page ---------- */
/* Hover colours, one soft pastel per thing you can click. */
.public {
  --hi-act: #dfe9f1;    --hi-act-ink: #3b6a8c;     /* frost */
  --hi-merch: #f5e4d8;  --hi-merch-ink: #a35d3a;   /* apricot */
  --hi-video: #f1dfe5;  --hi-video-ink: #95506a;   /* rose */
  --hi-book: #e6e1f3;   --hi-book-ink: #64579a;    /* lavender */
  min-height: 100vh;
  min-height: 100svh;
  padding: 18px 20px;
}

/* Start page: as before. The cover and song sit in one box that lights up on hover. */
.home {
  min-height: calc(100svh - 36px);
  display: grid;
  grid-template-rows: auto 1fr;
}
.home header { text-transform: lowercase; }
.tys-box {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 16px 16px 12px;
  margin: -16px -16px -12px;
  border: 1px solid transparent;
  border-radius: 18px;
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.cover-link { display: block; }
.home .cover {
  width: min(240px, 58vw);
  /* no shadow; a thin purple line appears right on the edge when you hover */
  box-shadow: none;
  outline: 1px solid transparent;
  outline-offset: 0;
  transition: outline-color .25s;
}
.tys-box { padding: 20px 20px 16px; margin: -20px -20px -16px; }
.act-link { color: inherit; }

/* The act's page */
.act-page {
  min-height: calc(100svh - 36px);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.act-page header, .act-page footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  text-transform: lowercase;
  color: var(--mute);
}
.act-page header .back { color: var(--ink); padding: 4px 10px 4px 0; border-radius: 999px; transition: color .2s, background-color .2s, padding .2s; }
.act-page footer { justify-content: center; flex-wrap: wrap; }
.act-page footer a + a::before { content: '/'; margin: 0 8px; color: var(--line); }

.tiles {
  width: min(320px, 70vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.tile {
  display: grid;
  gap: 2px;
  justify-items: start;
  text-align: left;
  padding: 16px 14px 14px;
  min-height: 84px;
  align-content: end;
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--ice-2);
  border-radius: 14px;
  text-transform: lowercase;
  transition: background-color .25s, border-color .25s, color .25s, transform .25s;
}
.tile small { font-size: 11px; color: var(--mute); transition: color .25s; }
.book {
  width: min(320px, 70vw);
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-transform: lowercase;
  transition: background-color .25s, border-color .25s, color .25s;
}

/* Merch and music videos pop-up */
.sheet { width: min(560px, calc(100vw - 32px)); }
.sheet .note { margin: 0; font-size: 13px; }
.sheet #sheet-body { display: grid; gap: 18px; }
.video { margin: 0; display: grid; gap: 6px; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: var(--ice); }
.video figcaption { color: var(--mute); text-transform: lowercase; }
.video-link { color: var(--hi-video-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Booking form (public page) ---------- */
.contact {
  width: min(400px, calc(100vw - 32px));
  border: 1px solid var(--ice-2);
  border-radius: 18px;
  padding: 26px 24px 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 70px -30px rgba(34, 48, 59, .4);
}
.contact::backdrop { background: rgba(221, 233, 243, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.contact h2 { font-size: 12px; font-weight: 400; margin: 0 0 10px; text-transform: lowercase; color: var(--mute); }
.contact .who { margin: 0 0 18px; font-size: 14px; }
.contact .who a { color: var(--tint-ink); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.contact form { display: grid; gap: 12px; }
.contact label { display: grid; gap: 4px; color: var(--mute); }
.contact input, .contact textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; width: 100%; letter-spacing: inherit;
}
.contact textarea { resize: vertical; }
.contact .send { justify-self: start; background: var(--tint-ink); color: #fff; padding: 8px 16px; border-radius: 999px; }
.contact .send:disabled { opacity: .5; }
.contact .status { margin: 0; color: var(--mute); min-height: 1.5em; }
.contact .close { position: absolute; top: 12px; right: 16px; font-size: 18px; color: var(--mute); }
.contact .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.stage {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  padding: 40px 0;
}

.cover {
  width: min(320px, 70vw);
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--ice);
  box-shadow: 0 30px 60px -30px rgba(59, 106, 140, .35);
}

.track {
  width: min(320px, 70vw);
  display: grid;
  gap: 10px;
}
.track .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.track .title { text-transform: lowercase; }
.track .title b { font-weight: 400; color: var(--mute); margin-right: 8px; }
.track .play { text-transform: lowercase; text-decoration: underline; text-underline-offset: 3px; }
.track .time { color: var(--mute); font-variant-numeric: tabular-nums; }

.seek {
  position: relative;
  height: 14px;
  cursor: pointer;
}
.seek::before, .seek span {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  height: 1px;
  background: var(--line);
  width: 100%;
}
.seek span { background: var(--tint-ink); width: 0; }

@media (hover: hover) {
  .tys-box:hover .cover { outline-color: #64579a; } /* lavender ink, the site's purple */
  .act-link:hover { text-decoration: underline; text-underline-offset: 3px; }
  .tile.merch:hover { background: var(--hi-merch); border-color: color-mix(in srgb, var(--hi-merch-ink) 30%, transparent); color: var(--hi-merch-ink); transform: translateY(-2px); }
  .tile.videos:hover { background: var(--hi-video); border-color: color-mix(in srgb, var(--hi-video-ink) 30%, transparent); color: var(--hi-video-ink); transform: translateY(-2px); }
  .tile:hover small { color: inherit; }
  .book:hover { background: var(--hi-book); border-color: color-mix(in srgb, var(--hi-book-ink) 35%, transparent); color: var(--hi-book-ink); }
  .act-page header .back:hover { color: var(--hi-act-ink); background: var(--hi-act); padding-left: 10px; }
  .video-link:hover { color: var(--ink); }
  .act-page footer a:hover, .track .play:hover {
    color: var(--tint-ink);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
  }
  .contact .send:hover { background: color-mix(in srgb, var(--tint-ink) 80%, #000); }
  .contact .close:hover, .contact .who a:hover { color: var(--ink); }
  .seek:hover::before { background: var(--tint-ink); opacity: .35; }
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  /* iPhone zooms the page in when you tap a text field smaller than 16px. */
  input, select, textarea { font-size: 16px !important; }
}
@media (pointer: coarse) {
  .act-page header .back { padding: 8px 12px 8px 0; }
  .contact .close { padding: 6px 10px; top: 6px; right: 6px; font-size: 22px; }
}
