/* ============================================
   DIANA DRIVE — dianadrive.band
   Link hub. Tokens mirror dianadrive.com (css/style.css there).
   Vanilla CSS, no inline styles anywhere (CSP style-src 'self').
   ============================================ */

@font-face {
  font-family: 'DianaDrive2026';
  src: url('/assets/fonts/diana-drive-2026.woff2') format('woff2'),
       url('/assets/fonts/diana-drive-2026.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-deep: #000011;
  --bg-space: #0a0a1f;
  --bg-card: rgba(17, 17, 34, 0.78);
  --bg-card-solid: #111122;

  --silver: #e5e5e5;
  --silver-muted: #a1a1aa;
  --gold: #ffd700;
  --comet: #7dd3fc;
  --comet-glow: rgba(125, 211, 252, 0.65);
  --comet-glow-soft: rgba(125, 211, 252, 0.25);
  --hairline: rgba(229, 229, 229, 0.12);

  --text: #f5f5f5;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-hero: 'DianaDrive2026', "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --column: 34rem;
  --gutter: 1rem;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  background: var(--bg-deep);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

img, svg { display: block; }
p, h1, h2, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

/* ——— Sky ——— */

.stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.nebula {
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 12%, rgba(125, 211, 252, 0.13) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 55%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 90%, rgba(125, 211, 252, 0.07) 0%, transparent 45%);
  animation: nebula-drift 45s ease-in-out infinite alternate;
}

@keyframes nebula-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(2%, -3%) scale(1.04); }
}

/* ——— Layout ——— */

.masthead,
.main,
.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--column) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.main {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}


.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--silver);
  color: var(--bg-deep);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Masthead ——— */

.masthead {
  padding-top: max(2.25rem, env(safe-area-inset-top));
  padding-bottom: 1.75rem;
  text-align: center;
}

.masthead__logo {
  width: auto;
  height: 60px;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 18px rgba(125, 211, 252, 0.25));
}

.masthead__title {
  font-family: var(--font-hero);
  font-weight: 800;
  font-size: clamp(2rem, 10vw, 3rem);
  letter-spacing: 0.14em;
  /* Letter-spacing trails the last glyph; pull it back so the word centers. */
  margin-right: -0.14em;
  line-height: 1;
  color: var(--silver);
  white-space: nowrap;
  text-shadow: 0 0 40px rgba(125, 211, 252, 0.18);
}

.masthead__tagline {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-muted);
}

@media (min-width: 540px) {
  .masthead { padding-top: 3.5rem; padding-bottom: 2.25rem; }
  .masthead__logo { height: 76px; }
  .masthead__tagline { font-size: 0.8125rem; letter-spacing: 0.26em; }
}

/* ——— Featured ——— */

.featured {
  position: relative;
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  grid-template-areas: "art body" "cta cta";
  align-items: center;
  gap: 1.1rem 1.1rem;
  padding: 1rem;
  background: linear-gradient(160deg, rgba(26, 26, 46, 0.9), rgba(10, 10, 31, 0.85));
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 24px 60px -20px rgba(125, 211, 252, 0.25);
}

.featured__art {
  grid-area: art;
  position: relative;
}

.featured__body { grid-area: body; min-width: 0; }

.featured__art img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow:
    0 0 45px 8px rgba(125, 211, 252, 0.18),
    0 0 90px 30px rgba(125, 211, 252, 0.07);
  animation: art-float 9s ease-in-out infinite;
}

@keyframes art-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.featured__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--comet);
}

.featured__title {
  margin-top: 0.3rem;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.25);
}

.featured__lyric {
  margin-top: 0.5rem;
  max-width: 30ch;
  font-size: 0.875rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--silver-muted);
}

.featured__cta {
  grid-area: cta;
  width: 100%;
}

/* The whole card is the tap target; the button carries the name. */
.featured__cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
}

@media (min-width: 540px) {
  .featured {
    grid-template-columns: 12rem 1fr;
    grid-template-areas: "art body" "art cta";
    gap: 1rem 1.5rem;
    padding: 1.5rem;
  }
  .featured__title { font-size: 2.75rem; }
  .featured__lyric { font-size: 1rem; }
  .featured__cta { align-self: start; }
}

/* ——— Section heads ——— */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.9rem;
  font-size: inherit;
  font-weight: inherit;
}

.section-head__name {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--comet);
}

.section-head__lyric {
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--silver-muted);
}

/* ——— Link buttons ——— */

.links {
  display: grid;
  gap: 0.625rem;
}

@media (min-width: 480px) {
  .links--grid { grid-template-columns: 1fr 1fr; }
  /* An odd one out spans the row instead of leaving a hole. */
  .links--grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 3.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  color: var(--silver);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease),
              box-shadow 0.25s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease);
}

.link__icon {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  color: var(--silver);
  transition: color 0.2s var(--ease);
}

.link__label { flex: 1; min-width: 0; }

.link__chevron {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--silver-muted);
  opacity: 0.6;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease), color 0.2s var(--ease);
}

.link:hover {
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(125, 211, 252, 0.07);
  box-shadow: 0 0 24px -6px var(--comet-glow-soft);
  color: var(--text);
  transform: translateY(-1px);
}
.link:hover .link__icon,
.link:hover .link__chevron { color: var(--comet); }
.link:hover .link__chevron { opacity: 1; transform: translateX(3px); }
.link:active { transform: translateY(0) scale(0.99); }

.link--gold { border-color: rgba(255, 215, 0, 0.35); }
.link--gold .link__icon { color: var(--gold); }
.link--gold:hover {
  border-color: rgba(255, 215, 0, 0.6);
  background: rgba(255, 215, 0, 0.06);
  box-shadow: 0 0 24px -6px rgba(255, 215, 0, 0.3);
}
.link--gold:hover .link__icon,
.link--gold:hover .link__chevron { color: var(--gold); }

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--silver);
  border-radius: 2px;
  color: var(--silver);
  background: transparent;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn:hover { background: var(--silver); color: var(--bg-deep); }

.btn--primary {
  background: var(--silver);
  color: var(--bg-deep);
  box-shadow: 0 0 30px -8px var(--comet-glow);
}
.btn--primary:hover,
.featured:hover .btn--primary {
  background: var(--text);
  box-shadow: 0 0 36px -4px var(--comet-glow);
}

.btn--sm {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn--ghost {
  border-color: rgba(229, 229, 229, 0.3);
  color: var(--silver-muted);
}

/* ——— Shows ——— */

.shows {
  display: grid;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
}

.show {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}

.show__date {
  display: grid;
  justify-items: center;
  width: 3.25rem;
  padding: 0.35rem 0;
  border-right: 1px solid var(--hairline);
  line-height: 1.1;
}

.show__dow,
.show__month {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--silver-muted);
}

.show__day {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--comet);
}

.show__info { min-width: 0; }

.show__place {
  font-weight: 600;
  color: var(--silver);
}

.show__venue {
  font-size: 0.875rem;
  color: var(--silver-muted);
  overflow-wrap: anywhere;
}

.shows__empty {
  margin-bottom: 0.625rem;
  padding: 1rem;
  color: var(--silver-muted);
  text-align: center;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-lg);
}

/* ——— Socials ——— */

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.social {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--silver);
  transition: all 0.2s var(--ease);
}

.social .icon { width: 1.25rem; height: 1.25rem; }

.social:hover {
  color: var(--comet);
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow: 0 0 20px -4px var(--comet-glow-soft);
  transform: translateY(-2px);
}

/* ——— Footer ——— */

.footer {
  display: grid;
  gap: 0.25rem;
  padding-top: 3rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  font-size: 0.8125rem;
  text-align: center;
  color: var(--silver-muted);
}

.footer a {
  display: inline-block;
  padding: 0.35rem 0.15rem;
  color: var(--silver-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer a:hover { color: var(--comet); border-bottom-color: var(--comet); }

/* ——— 404 ——— */

.main--error {
  min-height: 70dvh;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
}
.main--error .masthead { padding-bottom: 0; }

.error__title {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--silver);
}

/* ——— Focus ——— */

:focus-visible {
  outline: 2px solid var(--comet);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(125, 211, 252, 0.15);
}

/* The stretched link's focus ring belongs on the card, not the button. */
.featured:has(.featured__cta:focus-visible) {
  outline: 2px solid var(--comet);
  outline-offset: 3px;
}

/* ——— Entrance ——— */

.reveal {
  animation: rise 0.7s var(--ease) both;
}
.main > .reveal:nth-child(1) { animation-delay: 0.08s; }
.main > .reveal:nth-child(2) { animation-delay: 0.16s; }
.main > .reveal:nth-child(3) { animation-delay: 0.24s; }
.main > .reveal:nth-child(4) { animation-delay: 0.32s; }
.main > .reveal:nth-child(5) { animation-delay: 0.4s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

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