@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;700&display=swap");

/* ==========================================================================
   Tokens — edit these to restyle the site (see repo/STYLEGUIDE.md)
   ========================================================================== */
:root {
  /* Colors */
  --bg: #0a0a0a;
  --bg-raised: #141414;
  --text: #ffffff;
  --text-muted: #a3a3a3;
  --accent: #d7263d;
  --accent-text: #ffffff;   /* text on accent-colored buttons */
  --line: #262626;

  /* Fonts */
  --font-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;  /*  4px */
  --space-2: 0.5rem;   /*  8px */
  --space-3: 1rem;     /* 16px */
  --space-4: 1.5rem;   /* 24px */
  --space-5: 2rem;     /* 32px */
  --space-6: 3rem;     /* 48px */
  --space-7: 4rem;     /* 64px */
  --space-8: 6rem;     /* 96px */

  /* Layout */
  --content-width: 56rem;
  --gutter: var(--space-3);
  --radius: 999px;

  /* Hero fallback gradient tint (admin sets it from the accent) */
  --hero-tint: #2a0a0e;

  /* Hero image focal point (object-position of .hero__media img) */
  --hero-position: center 30%;
}

@media (min-width: 48em) {
  :root { --gutter: var(--space-5); }
}

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

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

ul { list-style: none; margin: 0; padding: 0; }

a { color: inherit; }

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border: 2px solid currentColor;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--social { color: var(--text); background: rgba(10, 10, 10, 0.35); }
.btn--social:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.btn--accent { color: var(--accent-text); background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: transparent; color: var(--accent); }

/* ==========================================================================
   1. Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--space-7) var(--gutter) var(--space-6);
  /* Gradient shows behind .hero__media while it loads or if it's missing */
  background: radial-gradient(ellipse at 70% 20%, var(--hero-tint) 0%, var(--bg) 70%);
  overflow: hidden;
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: var(--hero-position);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(10, 10, 10, 0.55) 40%, rgba(10, 10, 10, 0.1) 100%);
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(5rem, 24vw, 14rem);
  line-height: 0.85;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* Logo in place of the name text (header_mode "logo" in /admin) */
.hero__name--logo img {
  display: block;
  width: min(100%, 34rem);
  height: auto;
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.5));
}

.hero__tagline {
  margin: var(--space-3) 0 var(--space-5);
  max-width: 32ch;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-7) var(--gutter);
}

.section__title {
  margin: 0 0 var(--space-5);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 12vw, 5.5rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.section__title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-top: var(--space-3);
  background: var(--accent);
}

/* ==========================================================================
   2. Shows
   ========================================================================== */
.shows__list { border-top: 1px solid var(--line); }

.show {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}

.show__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.5rem;
  font-family: var(--font-display);
  line-height: 1;
  color: var(--accent);
}
.show__day { font-size: 2.5rem; }
.show__month { font-size: 1.125rem; letter-spacing: 0.1em; text-transform: uppercase; }

.show__info { display: flex; flex-direction: column; }
.show__city { font-weight: 700; font-size: 1.125rem; text-transform: uppercase; letter-spacing: 0.04em; }
.show__venue { color: var(--text-muted); font-size: 0.9375rem; }

.show__ticket { grid-column: 1 / -1; }

.show__note {
  grid-column: 1 / -1;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shows__empty { color: var(--text-muted); }

@media (min-width: 40em) {
  .show { grid-template-columns: auto 1fr auto; }
  .show__ticket,
  .show__note { grid-column: auto; }
}

/* ==========================================================================
   3. Music
   ========================================================================== */
.music__embed iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--bg-raised);
}

/* Shown until the Spotify iframe is allowed to load (consent.js) */
.embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 452px;
  padding: var(--space-5) var(--space-4);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raised);
  text-align: center;
}
.embed-placeholder__icon { width: 3rem; height: 3rem; color: var(--accent); }
.embed-placeholder p { margin: 0; max-width: 36ch; color: var(--text-muted); font-size: 0.9375rem; }
.embed-placeholder__link { color: var(--text-muted); font-size: 0.875rem; text-underline-offset: 3px; }
.embed-placeholder__link:hover { color: var(--accent); }

/* ==========================================================================
   4. Footer
   ========================================================================== */
.footer {
  padding: var(--space-6) var(--gutter) var(--space-7);
  border-top: 1px solid var(--line);
}

.footer__icons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

.footer__icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__icons a:hover { color: var(--accent); }
.footer__icons .icon { width: 1.5rem; height: 1.5rem; }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1) var(--space-4);
  margin-top: var(--space-4);
  font-size: 0.8125rem;
}

.footer__links a,
.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s;
}
.footer__links a:hover,
.link-button:hover { color: var(--accent); }

/* ==========================================================================
   Legal pages (tietosuoja/)
   ========================================================================== */
.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--space-6) var(--gutter) var(--space-7);
}

.legal__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
}
.legal__back:hover { color: var(--accent); }

.legal h1 {
  margin: var(--space-4) 0 var(--space-2);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 12vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.legal__effective {
  margin: 0 0 var(--space-6);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.legal h2 {
  margin: var(--space-6) 0 var(--space-3);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
}

.legal p,
.legal ul,
.legal dl { margin: 0 0 var(--space-3); color: var(--text); }

.legal ul { padding-left: var(--space-4); list-style: disc; }
.legal li { margin-bottom: var(--space-1); }

.legal dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-1) var(--space-4);
}
.legal dt { color: var(--text-muted); }
.legal dd { margin: 0; }

.legal a { color: var(--accent); text-underline-offset: 3px; }
.legal code { font-size: 0.9em; }

.legal__placeholder { color: var(--text-muted); font-style: italic; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Inline settings link inside running text */
.legal .link-button { display: inline; min-height: 0; color: var(--accent); }
