/*
Theme Name: TheNameAboveAllNames
Theme URI: https://thenameaboveallnames.de/
Author: Codex
Description: Ruhiges Artist-Theme fuer TheNameAboveAllNames mit eigener Startseite, Tracklist und Plattformlinks.
Version: 0.1.12
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: thenameaboveallnames
*/

:root {
  --paper: #243024;
  --paper-muted: rgba(36, 48, 36, 0.72);
  --paper-faint: rgba(36, 48, 36, 0.46);
  --black: #fffaf0;
  --black-2: #eef7ea;
  --brown: #6d5630;
  --gold: #bd7a1f;
  --green: #4e7858;
  --sky: #7fb7d4;
  --line: rgba(44, 71, 45, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  background: var(--black);
}

body {
  margin: 0;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(78, 120, 88, 0.08) 1px, transparent 1px) 0 0 / 5rem 5rem,
    radial-gradient(circle at 12% 6%, rgba(255, 214, 111, 0.52), transparent 23rem),
    radial-gradient(circle at 86% 14%, rgba(127, 183, 212, 0.34), transparent 28rem),
    linear-gradient(180deg, #fffaf0 0%, #eef7ea 48%, #fff4df 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--paper);
  color: var(--black);
  padding: 0.65rem 0.9rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.05rem 0;
  background: rgba(255, 250, 240, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--paper);
  font-size: 0.94rem;
  font-weight: 840;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 250, 240, 0.9), 0 0.5rem 1.3rem rgba(36, 48, 36, 0.14);
}

.footer-brand .brand-logo {
  width: 2.2rem;
  height: 2.2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--paper-muted);
  font-size: 0.8rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--paper);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
  color: var(--paper);
}

.menu-toggle span {
  width: 18px;
  height: 1px;
  background: currentColor;
  grid-area: 1 / 1;
  transition: transform 160ms ease;
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translateY(4px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.opening,
.songs,
.platforms,
.statement,
.site-footer {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.opening {
  min-height: min(640px, calc(79svh - 73px));
  display: grid;
  align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem) 0;
}

.opening-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr) minmax(260px, 0.5fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: end;
}

.cover-block {
  margin: 0;
}

.cover-block picture,
.statement-image picture,
.track-thumb picture {
  display: block;
  width: 100%;
  height: 100%;
}

.cover-block img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 1.5rem 4rem rgba(78, 91, 49, 0.18);
}

.cover-block figcaption {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.85rem;
  color: var(--paper-muted);
  font-size: 0.84rem;
}

.cover-block figcaption span {
  color: var(--gold);
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiet-line,
.section-head span,
.current-release span {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.opening-copy h1 {
  margin: 0.55rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 9vw, 7.9rem);
  line-height: 0.78;
  font-weight: 700;
  letter-spacing: 0;
}

.intro {
  max-width: 580px;
  margin: 1.35rem 0 0;
  color: var(--paper-muted);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
}

.listen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.action-link,
.show-more {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(237, 227, 206, 0.28);
  background: transparent;
  color: var(--paper);
  padding: 0.78rem 1rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 820;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}

.action-link.primary {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
}

.current-release {
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.current-release a {
  display: block;
  margin-top: 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  line-height: 0.94;
  text-decoration: none;
}

.current-release p {
  margin: 0.75rem 0 0;
  color: var(--paper-muted);
}

.statement {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.statement-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
}

.statement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.statement-copy h2,
.section-head h2,
.platforms h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.statement-copy p,
.section-head p {
  max-width: 620px;
  margin: 1rem 0 0;
  color: var(--paper-muted);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
}

.songs {
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 0.55rem;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.tracklist {
  border-top: 1px solid var(--line);
}

.track {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) 8rem 9rem;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.track.is-featured {
  grid-template-columns: 13rem 4.5rem minmax(0, 1fr) 8rem 9rem;
  padding: 1.15rem 0;
}

.track.is-hidden {
  display: none;
}

.track-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
}

.track-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-number,
.track-meta {
  color: var(--paper-faint);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.track-main h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.6vw, 2.45rem);
  line-height: 1;
}

.track-main p {
  max-width: 560px;
  margin: 0.35rem 0 0;
  color: var(--paper-muted);
  font-size: 0.95rem;
}

.track-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.track-actions a {
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-decoration-color: rgba(215, 173, 99, 0.46);
  text-transform: uppercase;
  text-underline-offset: 0.28rem;
}

.show-more {
  margin-top: 1.35rem;
}

.platforms {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.platform-links {
  display: grid;
  border-top: 1px solid var(--line);
}

.platform-links a {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1;
  text-decoration: none;
}

.platform-label {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.85rem;
}

.platform-label span {
  min-width: 0;
}

.platform-icon {
  width: clamp(1.35rem, 2.2vw, 1.85rem);
  height: clamp(1.35rem, 2.2vw, 1.85rem);
  flex: 0 0 auto;
  color: var(--green);
  transition: color 160ms ease, transform 160ms ease;
}

.platform-icon--image {
  object-fit: contain;
}

.platform-links a:hover .platform-icon,
.platform-links a:focus-visible .platform-icon {
  color: var(--gold);
  transform: translateY(-1px);
}

.platform-links a::after {
  content: "open";
  align-self: center;
  flex: 0 0 auto;
  color: var(--paper-faint);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--paper-muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--paper-muted);
  text-underline-offset: 0.25rem;
}

.content-page {
  width: min(100% - 2rem, 860px);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.content-article {
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 5vw, 3rem);
}

.content-article h1 {
  max-width: 780px;
  margin: 0 0 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.content-body {
  color: var(--paper-muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.content-body > * {
  max-width: 720px;
}

.content-body a {
  color: var(--paper);
  text-decoration-color: rgba(215, 173, 99, 0.5);
  text-underline-offset: 0.25rem;
}

.content-body h2,
.content-body h3 {
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

.content-body img {
  max-width: 100%;
  height: auto;
}

.content-empty {
  color: var(--paper-muted);
}

@media (max-width: 1040px) {
  .opening-grid {
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  }

  .current-release {
    grid-column: 2;
  }

  .track,
  .track.is-featured {
    grid-template-columns: 3rem minmax(0, 1fr) 7rem;
  }

  .track-thumb {
    display: none;
  }

  .track-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: min(100% - 1.5rem, var(--max));
    background: rgba(255, 250, 240, 0.94);
    backdrop-filter: none;
  }

  .brand span {
    max-width: 20ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    top: 4.25rem;
    display: grid;
    gap: 0;
    padding: 0.35rem 0;
    border: 1px solid var(--line);
    background: #fffaf0;
    box-shadow: 0 1.25rem 3rem rgba(54, 72, 47, 0.14);
    transform: translateY(-0.6rem);
    opacity: 0;
    pointer-events: none;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.9rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .opening,
  .songs,
  .platforms,
  .statement,
  .site-footer,
  .content-page {
    width: min(100% - 1.5rem, var(--max));
  }

  .opening {
    min-height: auto;
    padding: 1.5rem 0 3rem;
  }

  .opening-grid,
  .statement,
  .platforms {
    grid-template-columns: 1fr;
  }

  .cover-block {
    order: 2;
  }

  .opening-copy {
    order: 1;
  }

  .current-release {
    grid-column: auto;
    order: 3;
  }

  .opening-copy h1 {
    font-size: clamp(3.1rem, 17vw, 5rem);
  }

  .listen-actions {
    display: grid;
  }

  .action-link {
    width: 100%;
  }

  .statement {
    padding: 3.5rem 0;
  }

  .track,
  .track.is-featured {
    grid-template-columns: 2.7rem minmax(0, 1fr);
    gap: 0.65rem;
  }

  .track-meta {
    grid-column: 2;
    font-size: 0.88rem;
  }

  .track-actions {
    grid-column: 2;
  }

  .platforms h2 {
    max-width: 8ch;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo {
    width: 2.25rem;
    height: 2.25rem;
  }
}

@supports (content-visibility: auto) {
  .statement,
  .songs,
  .platforms,
  .site-footer {
    content-visibility: auto;
  }

  .statement {
    contain-intrinsic-size: auto 620px;
  }

  .songs {
    contain-intrinsic-size: auto 1100px;
  }

  .platforms {
    contain-intrinsic-size: auto 520px;
  }

  .site-footer {
    contain-intrinsic-size: auto 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
