/* Story 3.1 - band identity hero; monospace ui type (.cursor/rules/ux-ui-style-guide.mdc). */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 0.5rem;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family:
    ui-monospace,
    SFMono-Regular,
    "SF Mono",
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  color: #ebe6ef;
  line-height: 1.45;
  background-color: #0c0a10;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E"),
    linear-gradient(
      168deg,
      rgba(12, 10, 16, 0.84) 0%,
      rgba(12, 10, 16, 0.68) 42%,
      rgba(12, 10, 16, 0.82) 100%
    ),
    url("/assets/page-bg.png");
  background-size:
    128px 128px,
    100% 100%,
    cover;
  background-position:
    0 0,
    0 0,
    center 28%;
  background-repeat:
    repeat,
    no-repeat,
    no-repeat;
  background-attachment: scroll;
}

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

.skip-link:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 0.75rem;
  clip: auto;
  overflow: visible;
  background: #1a1520;
  color: #ebe6ef;
  text-decoration: underline;
  border-radius: 4px;
  outline: 2px solid #c4a8d8;
  outline-offset: 2px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: max(0.75rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  max-width: 28rem;
  margin: 0 auto;
}

.hero__photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(34vh, 260px);
  object-fit: cover;
  border-radius: 6px;
  background: #1a1520;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 0.125rem;
}

.hero__name {
  margin: 0;
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f5f0ff;
}

.hero__tagline {
  margin: 0;
  font-size: clamp(0.95rem, 3.6vw, 1.05rem);
  font-weight: 400;
  color: #c8bfd4;
  max-width: 36ch;
}

@media (min-width: 380px) {
  .hero__photo {
    max-height: min(36vh, 280px);
  }
}

/* Story 3.2 - featured release + streaming CTAs */

.featured {
  max-width: 28rem;
  margin: 0 auto;
  padding: 0 max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.featured__heading {
  margin: 0;
  padding: 0 0.125rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: #c4b8d4;
}

.featured__panel {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem;
  border-radius: 8px;
  background: #141018;
  border: 1px solid #2a2433;
}

.featured__thumb {
  display: block;
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  background: #1a1520;
}

.featured__actions {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: center;
}

.featured__release-name {
  margin: 0;
  font-size: 0.82rem;
  color: #c8bfd4;
  line-height: 1.25;
}

.featured__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
}

.featured__cta:focus-visible {
  outline: 2px solid #c4a8d8;
  outline-offset: 2px;
}

.featured__cta--spotify {
  background: #1ed760;
  color: #0c0a10;
  border-color: #12bc4d;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.featured__more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  padding: 0 0.125rem;
}

.featured__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  min-width: 48px;
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #e4daf0;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 4px;
}

.featured__link:focus-visible {
  outline: 2px solid #c4a8d8;
  outline-offset: 2px;
}

/* Root URL helper - canonical content lives at /links */
.root-fallback {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.root-fallback__text {
  margin: 0;
  font-size: 1.1rem;
}

.root-fallback a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.25rem 0.35rem;
  color: #e4daf0;
}

.root-fallback a:focus-visible {
  outline: 2px solid #c4a8d8;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Story 3.3 - social (new tab), privacy footer, touch targets, contrast (NFR17-NFR19). */

main {
  display: block;
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
  flex: 1 1 auto;
  background-color: rgba(12, 10, 16, 0.88);
}

#main:focus {
  outline: none;
}

.social {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.25rem max(1rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.social__heading {
  margin: 0;
  padding: 0 0.125rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: #c4b8d4;
}

.social__list {
  list-style: none;
  margin: 0;
  padding: 0 0.125rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.social__item {
  margin: 0;
}

.social__link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  min-width: 48px;
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #e4daf0;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 4px;
  box-sizing: border-box;
}

.social__link:focus-visible {
  outline: 2px solid #c4a8d8;
  outline-offset: 2px;
}

.site-footer {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 0 max(1rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  border-top: 1px solid #2a2433;
  background-color: rgba(12, 10, 16, 0.88);
}

.site-footer__heading {
  margin: 0 0 0.5rem;
  padding: 1rem 0.125rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: #c4b8d4;
}

.site-footer__notice {
  margin: 0;
  padding: 0 0.125rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #e0d8eb;
}

.site-footer__notice--inline-links {
  padding-top: 1rem;
}

.site-footer__notice--inline-links .site-footer__more {
  margin-top: 0;
}

.site-footer__sep {
  color: #9a8fb0;
}

.site-footer__notice strong {
  font-weight: 700;
  color: #f2ebfa;
}

.site-footer__kbd {
  font-weight: 700;
  color: #f2ebfa;
}

.site-footer__more {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: inherit;
  font-weight: 600;
  color: #d4c4e8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__more:focus-visible {
  outline: 2px solid #c4a8d8;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Below “tablet” width: shell spans full viewport so the photo does not sit in
   side gutters (Surface Duo ~540px, tall phones). Inner sections stay max 28rem. */
@media (max-width: 47.99rem) {
  main,
  .site-footer {
    max-width: none;
  }
}

/* Landscape phones (not squashed desktop windows): short viewports, modest width. */
@media (orientation: landscape) and (max-height: 33rem) and (max-width: 60rem) {
  main,
  .site-footer {
    max-width: none;
  }
}

@media (min-width: 768px) {
  body {
    align-items: center;
    justify-content: safe center;
    padding-inline: max(1rem, env(safe-area-inset-left))
      max(1rem, env(safe-area-inset-right));
    padding-block: max(1.5rem, env(safe-area-inset-top))
      max(1.5rem, env(safe-area-inset-bottom));
  }

  /* Let main+footer size to content so vertical centering matches pre-flex layout. */
  main {
    flex: 0 1 auto;
  }
}

/* links/privacy, links/thanks - detail pages */

.doc-page {
  padding: max(0.75rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(2rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.doc-page__nav {
  margin-bottom: 0.75rem;
}

.doc-page__back {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.4rem 0.125rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #c4a8d8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-page__back:focus-visible {
  outline: 2px solid #c4a8d8;
  outline-offset: 2px;
  border-radius: 4px;
}

.doc-page__header {
  padding: 0 0.125rem 1rem;
  border-bottom: 1px solid #2a2433;
}

.doc-page__title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f5f0ff;
}

.doc-page__lede {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #ddd5e8;
}

.doc-page__subtitle {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  font-weight: 400;
  color: #ddd5e8;
}

.doc-page__lede a,
.doc-page__subtitle a {
  color: #d4c4e8;
  font-weight: 600;
}

.doc-page__article {
  padding: 1rem 0.125rem 0;
}

.doc-section {
  margin-bottom: 1.35rem;
}

.doc-section:last-child {
  margin-bottom: 0;
}

.doc-section__heading {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: #b8a8cc;
}

.doc-section__p {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #e0d8eb;
}

.doc-section__p:last-child {
  margin-bottom: 0;
}

.doc-section__list {
  margin: 0 0 0.65rem;
  padding-left: 1.15rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #e0d8eb;
}

.doc-section__list li {
  margin-bottom: 0.35rem;
}

.doc-section__list li:last-child {
  margin-bottom: 0;
}

.doc-section__list a {
  color: #d4c4e8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc-section__list a:focus-visible {
  outline: 2px solid #c4a8d8;
  outline-offset: 2px;
  border-radius: 2px;
}

.doc-section__meta {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: #9a8fb0;
}
