/*
  base.css
  Shared by every page: colours, fonts, resets and the small UI bits
  (buttons, pills) that look the same everywhere.
*/

/*
  Fonts are stored in /fonts (no Google Fonts request, so the first paint is faster).
  Both are free under the SIL Open Font License.
*/
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-600-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-700-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0a0608;
  --bg-deep: #050304;
  --ink: #f5edee;
  --ink-soft: #d9cdd0;
  --muted: #a3969a;
  --red: #ff1f3d;
  --red-light: #ff3b4e;
  --red-text: #ff5a68;

  --font-sans: "Manrope", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--red-light);
}

button {
  font: inherit;
  color: inherit;
}

/* The italic serif used for song titles and lyrics */
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
}

/* Text only screen readers see (used for section headings) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The artist name, always lowercase */
.logo {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.btn--red {
  background: var(--red);
  color: #fff;
}

.btn--red:hover {
  background: var(--red-light);
  color: #fff;
}

.btn--big {
  padding: 17px 32px;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 12px 40px rgba(255, 31, 61, 0.35);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
}

.btn--ghost:hover {
  border-color: #fff;
  color: #fff;
}

/* Small rounded link, e.g. "YouTube Music" */
.pill {
  display: inline-block;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pill:hover {
  border-color: #fff;
  color: #fff;
}

.pill--red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.pill--red:hover {
  background: var(--red-light);
}

/* Round icon button (arrows, close) */
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 59, 78, 0.6);
  color: var(--red-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Row of "Also on" streaming links */
.also {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 13px;
  color: #c9bcc0;
}

/* Spinning record, used on the home page cards and the song dialog */
.record {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, #0a0a0c 0 2px, #1d1b20 2px 4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: spin 2.6s linear infinite;
}

.record::after {
  content: "";
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background: var(--red);
  border: 4px solid #0a0a0c;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .record {
    animation: none;
  }
}

/* ---------- streaming app links (footer + lyrics sheet) ---------- */

.apps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apps__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.apps__link svg {
  flex: none;
}

.apps__link:hover {
  border-color: var(--red);
  background: rgba(255, 31, 61, 0.12);
  color: #fff;
}

.apps__link:hover svg {
  color: var(--red-light);
}

/* Small pill with an app icon, used in the "Also on" rows */
.pill--app {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 9px;
  font-size: 12.5px;
}

.pill--app svg {
  flex: none;
}

@media (max-width: 640px) {
  .also {
    gap: 6px;
    font-size: 12px;
  }

  .pill--app {
    gap: 5px;
    padding: 6px 10px 6px 8px;
    font-size: 11.5px;
  }

  .pill--app svg {
    width: 14px;
    height: 14px;
  }
}

/* A button that looks like a footer link ("Cookie settings") */
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  color: var(--ink-soft);
  cursor: pointer;
}

.link-btn:hover {
  color: var(--red-light);
}

.link-btn[hidden] {
  display: none;
}

/* ---------- cookie banner (only shown when a Meta Pixel ID is set) ---------- */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  width: min(640px, calc(100% - 24px));
  padding: 14px 16px 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #140c10;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  transform: translateX(-50%);
}

.cookie-banner p {
  flex: 1 1 260px;
  margin: 0;
}

.cookie-banner a {
  color: var(--ink);
  text-decoration: underline;
}

.cookie-banner__buttons {
  display: flex;
  gap: 8px;
}

/* ---------- phone menu (☰) — see js/nav.js ---------- */

.menu-btn {
  display: none;
}

@media (max-width: 640px) {
  .menu-btn {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(10, 6, 8, 0.45);
    cursor: pointer;
  }

  /* The two lines of the icon; they turn into an X when open */
  .menu-btn span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.3s var(--ease-out);
  }

  .menu-open .menu-btn span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-open .menu-btn span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  /* The links become a full-screen menu.
     (Two classes in each selector so this wins over .site-nav / .page-nav.) */
  .site-header .nav,
  .page-header .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    padding: 0 10%;
    background: var(--bg);
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    font-size: 46px;
    line-height: 1.1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .menu-open .site-header .nav,
  .menu-open .page-header .nav {
    opacity: 1;
    visibility: visible;
  }

  .site-header .nav .pill,
  .page-header .nav .pill {
    display: inline-block;
    margin-top: 14px;
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-style: normal;
    font-size: 16px;
  }

  /* Keep the open menu above everything else, and stop the page scrolling under it */
  .menu-open {
    overflow: hidden;
  }

  /* Keep the logo visible on top of the open menu */
  .site-header .logo,
  .page-header .logo {
    position: relative;
    z-index: 2;
  }

  /* A blur on the header would trap the menu inside it, so switch it off while it's open */
  .menu-open .site-header,
  .menu-open .page-header {
    z-index: 60;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
