:root {
  --bg: #0c0c0d;
  --bg-elevated: #141416;
  --bg-card: #1a1a1d;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --heading: #fafafa;
  --accent: #c8102e;
  --accent-hover: #e11d3a;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font-display: "Oswald", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --container: 1120px;
  --header-h: 76px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

button,
.button {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(200, 16, 46, 0.28);
}

.button:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
}

/* Header
-------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 0.85rem 0;
  color: var(--text);
  background: transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.header-inner {
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo img,
.teralodon-logo {
  height: 40px;
  width: auto;
  transition: filter 0.35s ease;
}

.home .teralodon-logo {
  filter: none;
}

body:not(.home) .teralodon-logo,
.scrolled .teralodon-logo {
  filter: invert(1);
}

.scrolled .header,
body:not(.home) .header {
  background: rgba(12, 12, 13, 0.94);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 1200px) {
  .navmenu ul {
    display: flex;
    align-items: center;
    gap: 0.2rem;
  }

  .navmenu a {
    position: relative;
    display: inline-flex;
    padding: 0.45rem 0.85rem;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.08em;
  }

  .home:not(.scrolled) .navmenu a {
    color: #1a1a1a;
  }

  .home:not(.scrolled) .navmenu a:hover,
  .home:not(.scrolled) .navmenu a.active {
    color: var(--accent);
  }

  .scrolled .navmenu a,
  body:not(.home) .navmenu a {
    color: var(--text);
  }

  .navmenu a:hover,
  .navmenu a.active {
    color: var(--accent);
  }

  .navmenu a::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.15rem;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }

  .navmenu a:hover::after,
  .navmenu a.active::after {
    transform: scaleX(1);
  }

  .mobile-nav-toggle {
    display: none;
  }
}

@media (max-width: 1199px) {
  .mobile-nav-toggle {
    background: none;
    border: 0;
    padding: 0.2rem;
    color: var(--accent);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
  }

  .home:not(.scrolled) .mobile-nav-toggle {
    color: #1a1a1a;
  }

  .scrolled .mobile-nav-toggle,
  body:not(.home) .mobile-nav-toggle {
    color: #fff;
  }

  .navmenu ul {
    display: none;
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    position: fixed;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 1002;
    color: #fff;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(8, 8, 9, 0.96);
    backdrop-filter: blur(18px);
  }

  .mobile-nav-active .navmenu ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    height: 100%;
    padding: 4rem 2rem;
  }

  .mobile-nav-active .navmenu a {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 5.5vw, 2.1rem);
    letter-spacing: 0.1em;
    line-height: 1.2;
    white-space: normal;
  }

  .mobile-nav-active .navmenu a.active {
    color: var(--accent);
  }
}

/* Hero
-------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 0;
  display: grid;
  min-height: 100svh;
  align-items: start;
  padding: calc(var(--header-h) + 3.5rem) 0 5rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0%, transparent 46%),
    linear-gradient(180deg, transparent 70%, rgba(12, 12, 13, 0.92) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  color: #141414;
}

.hero-copy h5 {
  margin-bottom: 0.35rem;
  color: #292929;
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.hero-copy h2 {
  color: #111;
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 700;
}

.hero-copy p {
  margin-top: 0.75rem;
  color: #1f1f1f;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
}

.hero .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.hero .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  color: #111;
  font-size: 1rem;
}

.hero .social-links a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .hero-media {
    object-position: 20% center;
  }

  .hero-copy {
    max-width: 100%;
  }
}

/* Promo
-------------------------------------------------------------- */
.promo {
  padding: 4.5rem 0 5rem;
  background: var(--bg);
  text-align: center;
}

.promo h2 {
  margin-bottom: 1.75rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.promo-card {
  margin: 0 auto;
  max-width: 520px;
}

.promo-card img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.promo-card figcaption {
  margin-top: 1.35rem;
}

.promo-fb {
  margin-top: 0;
  gap: 0.55rem;
}

.promo-fb i {
  font-size: 1.15rem;
}

/* Inner pages
-------------------------------------------------------------- */
body:not(.home) .main {
  padding-top: var(--header-h);
}

.page-hero {
  padding: 4.5rem 0 2.5rem;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.page-hero p {
  max-width: 42rem;
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.kicker {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* About
-------------------------------------------------------------- */
.about-section {
  display: grid;
  gap: 2rem;
  padding: 1rem 0 4rem;
}

.about-section img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-copy {
  display: grid;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about-copy strong {
  color: var(--text);
}

.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  padding-bottom: 4.5rem;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #1f1f23 0%, #151517 100%);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.team-member:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
}

.team-member img {
  width: 132px;
  height: 132px;
  margin-bottom: 1rem;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(0.15);
}

.team-member h3 {
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
}

.team-member p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.team-member a {
  margin-top: 0.8rem;
  color: var(--text);
  font-size: 1.15rem;
}

@media (max-width: 960px) {
  .team {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .team {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-inline: auto;
  }
}

/* Discography
-------------------------------------------------------------- */
.diskografie-section {
  padding: 4rem 0 5rem;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.album {
  padding: 1rem 1rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.album img,
.album-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.album h3 {
  margin-top: 1.1rem;
  font-size: 1.45rem;
  text-align: center;
}

.album p {
  margin: 0.35rem 0 1rem;
  color: var(--text-muted);
  text-align: center;
}

.tracklist {
  display: grid;
  gap: 0.35rem;
  color: color-mix(in srgb, var(--text) 82%, transparent);
  font-size: 0.95rem;
}

.tracklist li {
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem 0.2rem;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 900px) {
  .album-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-inline: auto;
  }
}

/* Gigs
-------------------------------------------------------------- */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 2.5rem 0 1.5rem;
}

.grid-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  filter: grayscale(0.15);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.grid-gallery img:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1;
}

.grid-gallery img:nth-child(8) {
  grid-column: span 2;
}

.grid-gallery img:hover {
  filter: grayscale(0);
  transform: scale(1.02);
}

.concerts-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding: 1rem 0 4.5rem;
}

.concert {
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  text-align: center;
}

.concert h3 {
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
}

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

.concert img {
  width: min(100%, 320px);
  margin: 1.1rem auto 0;
  border-radius: 12px;
}

.concert a {
  font-size: 1.3rem;
}

@media (max-width: 768px) {
  .grid-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 120px;
  }

  .concerts-section {
    grid-template-columns: 1fr;
  }
}

/* Contact
-------------------------------------------------------------- */
.contact {
  padding: 0 0 4.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.info-item .icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem;
}

.info-item h3 {
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
}

.info-item p,
.info-item a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.info-item a:hover {
  color: var(--accent);
}

.info-item .social-links {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.2rem;
}

.info-item .social-links a {
  color: var(--text);
  font-size: 1.25rem;
}

.organizer-card {
  margin-bottom: 2.5rem;
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 22%, transparent), transparent 42%),
    var(--bg-card);
}

@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer
-------------------------------------------------------------- */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: #09090b;
  text-align: center;
}

.footer h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.footer h3 .bi-spotify {
  color: #1db954;
}

.footer p {
  max-width: 36rem;
  margin: 0 auto 1.4rem;
  color: var(--text-muted);
  font-style: italic;
}

.footer iframe {
  display: block;
  width: 100%;
  max-width: 720px;
  height: 360px;
  margin: 1.4rem auto;
  border: 0;
  border-radius: 12px;
}

.footer .social-links {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
}

.footer .social-links a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.footer .social-links a:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.copyright {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.copyright strong {
  color: var(--text);
}

/* Scroll top
-------------------------------------------------------------- */
.scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 999;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  color: #fff;
  transform: translateY(-3px);
}

@media (max-width: 767px) {
  .scroll-top {
    bottom: 5rem;
  }
}
