/* Damien Styles — STAY ALiVE (PART iii)
   Brand tokens from source/tokens.css (ink, paper, acid accent, Anton + Inter). */

@font-face { font-family: "Anton"; src: url("fonts/anton-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --ink: #050505;
  --ink-soft: #171717;
  --paper: #F5F5F2;
  --paper-dim: rgba(245, 245, 242, 0.62);
  --line: rgba(245, 245, 242, 0.14);
  --accent: #D7FF00;
  --f-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, Arial, sans-serif;
  --radius: 14px;
  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
}

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

html { background: var(--ink); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--paper);
  background: var(--ink);
  font: 400 16px/1.45 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

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

/* Blurred artwork wash behind the page */
.backdrop {
  position: fixed;
  inset: -12vmax;
  z-index: -1;
  background: url("images/cover.jpg") center / cover no-repeat;
  filter: blur(70px) saturate(0.6) brightness(0.45);
  transform: translateZ(0);
}
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(5, 5, 5, 0.35), var(--ink) 75%);
}

/* Layout */
.release {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) var(--gutter) max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.cover {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--line);
}

.heading { text-align: center; }

.artist {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.title {
  margin: 0;
  font: 400 clamp(38px, 11vw, 52px)/0.95 var(--f-display);
  letter-spacing: 0.01em;
}
.title span { display: inline-block; color: var(--paper-dim); }

.cue {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--paper-dim);
}

/* Streaming buttons — each in its own brand colour */
.services { display: grid; gap: 10px; }

.service {
  --bg: var(--ink-soft);
  --fg: var(--paper);
  --logo: var(--fg);
  --logo-glyph: var(--bg);
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.service:hover { filter: brightness(1.08); transform: translateY(-1px); }
.service:active { transform: translateY(1px) scale(0.99); filter: brightness(0.95); }

.service .logo { width: 28px; height: 28px; color: var(--logo); }

.service .action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.22);
}
.service .action::after {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
}

.service[data-service="spotify"]     { --bg: #1DB954; --fg: #050505; --logo: #050505; --logo-glyph: #1DB954; }
.service[data-service="apple-music"] { --bg: linear-gradient(135deg, #FA586A, #E0192F); --fg: #fff; --logo: #fff; --logo-glyph: #E8233A; }
.service[data-service="youtube"]     { --bg: #E00000; --fg: #fff; --logo: #fff; --logo-glyph: #E00000; }
.service[data-service="spotify"] .action { background: rgba(0, 0, 0, 0.14); }

/* Footer */
.foot { display: grid; gap: 18px; justify-items: center; padding-top: 4px; }

.profiles { display: flex; gap: 8px; }
.profile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--paper-dim);
  border: 1px solid var(--line);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.profile svg { width: 20px; height: 20px; }
.profile:hover { color: var(--ink); background: var(--accent); border-color: var(--accent); }

.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 12px; }
.legal a, .legal button {
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--paper-dim);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.legal a:hover, .legal button:hover, .legal [aria-current] { color: var(--paper); }

/* Desktop: artwork left, actions right */
@media (min-width: 880px) {
  .release {
    max-width: 960px;
    display: grid;
    grid-template-columns: minmax(0, 440px) minmax(0, 400px);
    grid-template-rows: auto auto auto;
    align-content: center;
    justify-content: center;
    column-gap: 64px;
    row-gap: 22px;
  }
  .cover { grid-row: 1 / span 3; max-width: 440px; align-self: center; }
  .heading { text-align: left; align-self: end; }
  .title { font-size: 60px; }
  .services { align-self: start; }
  .foot { justify-items: start; }
  .legal { justify-content: flex-start; }
}

/* Short landscape phones and small laptops: keep the buttons on screen */
@media (max-height: 700px) and (max-width: 879px) {
  .cover { max-width: 220px; }
  .release { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Legal pages */
.doc {
  max-width: 680px;
  margin: 0 auto;
  padding: max(40px, env(safe-area-inset-top)) var(--gutter) 56px;
  font-size: 16px;
  line-height: 1.6;
}
.doc .back { font-size: 13px; color: var(--paper-dim); text-decoration: none; }
.doc .back:hover { color: var(--paper); }
.doc h1 { margin: 20px 0 8px; font: 400 44px/1 var(--f-display); }
.doc h2 { margin: 32px 0 6px; font-size: 17px; }
.doc p { margin: 0 0 12px; color: rgba(245, 245, 242, 0.82); }
.doc a:not(.back) { color: var(--accent); }
.doc .foot { justify-items: start; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.doc .legal { justify-content: flex-start; }

/* Hosted Osano banner and drawer, matched to the page */
.osano-cm-widget { display: none !important; }
.osano-cm-window { font-family: var(--f-body) !important; }
.osano-cm-dialog {
  background: rgba(17, 17, 17, 0.97) !important;
  color: var(--paper) !important;
  border-top: 1px solid var(--line) !important;
  backdrop-filter: blur(12px);
  font-size: 13px !important;
}
.osano-cm-dialog .osano-cm-link, .osano-cm-info .osano-cm-link { color: var(--accent) !important; }
.osano-cm-button {
  border-radius: 999px !important;
  border: 1px solid var(--line) !important;
  background: transparent !important;
  color: var(--paper) !important;
  font-weight: 600 !important;
}
.osano-cm-button--type_accept, .osano-cm-accept-all {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--ink) !important;
}
.osano-cm-info { background: var(--ink-soft) !important; color: var(--paper) !important; }
.osano-cm-info .osano-cm-header, .osano-cm-info .osano-cm-info-dialog-header { background: var(--ink-soft) !important; color: var(--paper) !important; }
.osano-cm-close { color: var(--paper) !important; stroke: var(--paper) !important; }
.osano-cm-toggle__input:checked + .osano-cm-toggle__switch { background: var(--accent) !important; border-color: var(--accent) !important; }
/* Keep the banner at the bottom so it never covers the artwork or the buttons */
.osano-cm-dialog--type_bar.osano-cm-dialog--position_top {
  top: auto !important;
  bottom: 0 !important;
  border-top: 1px solid var(--line) !important;
  border-bottom: 0 !important;
  padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
}

/* While the consent bar is open on a phone, lift the page so all three buttons stay above it */
@media (max-width: 879px) {
  body:has(.osano-cm-dialog--type_bar:not(.osano-cm-dialog--hidden)) .release {
    justify-content: flex-start;
    gap: 14px;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: 220px;
  }
  body:has(.osano-cm-dialog--type_bar:not(.osano-cm-dialog--hidden)) .cover { max-width: min(250px, 64vw); }
  body:has(.osano-cm-dialog--type_bar:not(.osano-cm-dialog--hidden)) .cue { display: none; }
}
@media (max-width: 879px) and (max-height: 700px) {
  body:has(.osano-cm-dialog--type_bar:not(.osano-cm-dialog--hidden)) .cover { max-width: 150px; }
  body:has(.osano-cm-dialog--type_bar:not(.osano-cm-dialog--hidden)) .title { font-size: 34px; }
}
