/*
Theme Name: Krümel-Con
Theme URI: https://example.local/kruemel-com
Author: D.B. Webdesign
Author URI: https://example.local
Description: Custom launch theme for the returning Krümel-Con anime and manga convention in Vienna.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: kruemel-com
*/

:root {
  --kc-black: #111111;
  --kc-ink: #191919;
  --kc-panel: #242424;
  --kc-paper: #f6f3ea;
  --kc-muted: #b8b8b8;
  --kc-blue: #9bb3ff;
  --kc-lime: #d3ff4f;
  --kc-red: #ff5a43;
  --kc-line: rgba(255, 255, 255, 0.16);
  --kc-radius: 8px;
  --kc-max: 1600px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--kc-black);
  color: var(--kc-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.kc-intro-running {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input {
  font: inherit;
}

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

.kc-site {
  min-height: 100vh;
  overflow: hidden;
}

.kc-container {
  width: min(calc(100% - 32px), var(--kc-max));
  margin: 0 auto;
}

.kc-preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #050505;
  color: var(--kc-paper);
  animation: kc-intro-out 620ms ease 2.85s forwards;
}

.kc-preloader__inner {
  display: grid;
  gap: 0.2em;
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(3.2rem, 13vw, 11rem);
  font-weight: 950;
  line-height: 0.82;
  letter-spacing: 0;
}

.kc-preloader__word {
  opacity: 0;
  transform: translateY(0.35em) scale(0.96);
  filter: blur(12px);
  animation: kc-word-in 720ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.kc-preloader__word:nth-child(2) {
  color: var(--kc-blue);
  animation-delay: 460ms;
}

.kc-preloader__word:nth-child(3) {
  animation-delay: 920ms;
}

.kc-preloader::before,
.kc-preloader::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.kc-preloader::before {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.07), rgba(255,255,255,0.07) 1px, transparent 1px, transparent 4px),
    radial-gradient(circle at center, transparent 0 42%, rgba(155,179,255,0.18) 43% 44%, transparent 46%);
  mix-blend-mode: screen;
  opacity: 0.35;
}

.kc-preloader::after {
  background: linear-gradient(90deg, var(--kc-blue) 0 52%, var(--kc-red) 52% 100%);
  transform: translateY(100%);
  animation: kc-wipe 780ms cubic-bezier(0.76, 0, 0.24, 1) 2.28s forwards;
}

@keyframes kc-word-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes kc-wipe {
  0% { transform: translateY(100%); }
  48% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

@keyframes kc-intro-out {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.kc-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.kc-header.is-scrolled {
  background: rgba(17, 17, 17, 0.82);
  border-color: var(--kc-line);
  backdrop-filter: blur(16px);
}

.kc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.kc-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  text-transform: uppercase;
  line-height: 0.9;
}

.kc-logo__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--kc-paper);
  border-radius: 50%;
  background: var(--kc-paper);
  color: var(--kc-black);
  font-size: 0.92rem;
}

.kc-logo__text {
  display: grid;
}

.kc-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(246, 243, 234, 0.78);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.kc-nav a:hover {
  color: var(--kc-paper);
}

.kc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--kc-paper);
  color: var(--kc-black);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 0.82rem;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.kc-button:hover {
  transform: translateY(-2px);
}

.kc-button--ghost {
  background: rgba(246, 243, 234, 0.08);
  border-color: var(--kc-line);
  color: var(--kc-paper);
}

.kc-button--dark {
  background: var(--kc-black);
  color: var(--kc-paper);
}

.kc-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 116px 0 66px;
  isolation: isolate;
}

.kc-hero-memories {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.kc-memory {
  position: absolute;
  display: grid;
  place-items: end start;
  width: clamp(116px, 12vw, 210px);
  aspect-ratio: 4 / 5;
  padding: 12px;
  border: 8px solid rgba(246, 243, 234, 0.9);
  background:
    linear-gradient(180deg, transparent 0 45%, rgba(17,17,17,0.78) 100%),
    radial-gradient(circle at 50% 34%, rgba(246,243,234,0.28), transparent 30%),
    repeating-linear-gradient(45deg, rgba(246,243,234,0.08) 0 2px, transparent 2px 12px),
    linear-gradient(135deg, rgba(155,179,255,0.5), rgba(255,90,67,0.34), #1a1a1a);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  color: rgba(246, 243, 234, 0.82);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.42;
  filter: saturate(0.85);
  animation: kc-memory-float 9s ease-in-out infinite;
}

.kc-memory--one {
  top: 18%;
  left: 7%;
  transform: rotate(-11deg);
}

.kc-memory--two {
  top: 12%;
  right: 10%;
  transform: rotate(9deg);
  animation-delay: -2s;
}

.kc-memory--three {
  right: 22%;
  bottom: 16%;
  transform: rotate(-5deg);
  animation-delay: -4s;
}

.kc-memory--four {
  left: 18%;
  bottom: 12%;
  transform: rotate(7deg);
  animation-delay: -6s;
}

.kc-memory--five {
  top: 48%;
  right: 4%;
  transform: rotate(-13deg);
  animation-delay: -7.5s;
}

.kc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(17,17,17,0.14), var(--kc-black) 92%),
    linear-gradient(90deg, rgba(17,17,17,0.98), rgba(17,17,17,0.3), rgba(17,17,17,0.98)),
    repeating-linear-gradient(90deg, rgba(246,243,234,0.035) 0 1px, transparent 1px 74px),
    radial-gradient(circle at 22% 70%, rgba(246,243,234,0.18), transparent 11%),
    radial-gradient(circle at 42% 67%, rgba(246,243,234,0.12), transparent 9%),
    radial-gradient(circle at 62% 69%, rgba(246,243,234,0.15), transparent 10%),
    radial-gradient(circle at 78% 72%, rgba(246,243,234,0.1), transparent 8%),
    linear-gradient(180deg, #282828, #101010 66%);
}

.kc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 35%, rgba(155,179,255,0.2), transparent 34%);
}

.kc-hero__content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.kc-kicker {
  display: inline-flex;
  margin-bottom: 46px;
  gap: 10px;
  align-items: center;
  color: var(--kc-blue);
  font-size: 0.83rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kc-kicker::before,
.kc-kicker::after {
  content: "";
  width: 20px;
  height: 2px;
  background: currentColor;
}

.kc-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(4rem, 11vw, 10.5rem);
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kc-hero p {
  max-width: 620px;
  margin: 0 auto 30px;
  color: rgba(246, 243, 234, 0.78);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.kc-hero__actions,
.kc-section__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.kc-meta-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(246, 243, 234, 0.64);
  font-size: 0.78rem;
  text-transform: uppercase;
  pointer-events: none;
}

.kc-section {
  position: relative;
  padding: clamp(72px, 10vw, 132px) 0;
}

.kc-section--blue {
  background: var(--kc-blue);
  color: var(--kc-black);
}

.kc-section--paper {
  background: var(--kc-paper);
  color: var(--kc-black);
}

.kc-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 380px);
  gap: 32px;
  align-items: end;
  margin-bottom: 38px;
}

.kc-section__head h2 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kc-section__head p {
  margin: 0;
  color: rgba(246, 243, 234, 0.68);
}

.kc-section--blue .kc-section__head p,
.kc-section--paper .kc-section__head p {
  color: rgba(17, 17, 17, 0.68);
}

.kc-video-card {
  width: min(760px, 100%);
  margin: 0 auto;
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(155,179,255,0.88), rgba(211,255,79,0.3)),
    repeating-linear-gradient(0deg, rgba(17,17,17,0.16) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 52% 48%, rgba(17,17,17,0.68), rgba(17,17,17,0.28) 34%, transparent 35%),
    linear-gradient(135deg, #3d3d3d, #161616);
  border: 1px solid var(--kc-line);
  overflow: hidden;
}

.kc-video-card::before,
.kc-video-card::after {
  content: "";
  position: absolute;
  background: var(--kc-blue);
  z-index: -1;
}

.kc-video-card::before {
  width: 42%;
  height: 44%;
  left: -12%;
  bottom: 18%;
}

.kc-video-card::after {
  width: 34%;
  height: 46%;
  right: -10%;
  top: 14%;
}

.kc-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 50%;
  background: var(--kc-paper);
  color: var(--kc-black);
  font-weight: 950;
  cursor: pointer;
}

.kc-play::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 19px solid currentColor;
  transform: translateX(3px);
}

.kc-archive-slider {
  overflow: hidden;
  touch-action: pan-x;
  border: 1px solid var(--kc-line);
  background:
    linear-gradient(90deg, rgba(17,17,17,0.9), transparent 14%, transparent 86%, rgba(17,17,17,0.9)),
    rgba(255, 255, 255, 0.03);
}

.kc-archive-track {
  display: flex;
  width: max-content;
  animation: kc-archive-scroll 34s linear infinite;
}

.kc-archive-slider:hover .kc-archive-track {
  animation-play-state: paused;
}

.kc-archive-slide {
  position: relative;
  width: min(72vw, 360px);
  min-height: 430px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: var(--kc-paper);
  background:
    linear-gradient(180deg, transparent 0 42%, rgba(17,17,17,0.9) 100%),
    radial-gradient(circle at 50% 32%, rgba(246,243,234,0.3), transparent 26%),
    repeating-linear-gradient(45deg, rgba(246,243,234,0.08) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, rgba(155,179,255,0.5), rgba(255,90,67,0.34), #181818);
  border-right: 1px solid var(--kc-line);
  scroll-snap-align: start;
}

.kc-archive-slide:nth-child(2n) {
  background:
    linear-gradient(180deg, transparent 0 42%, rgba(17,17,17,0.9) 100%),
    radial-gradient(circle at 58% 26%, rgba(211,255,79,0.26), transparent 25%),
    repeating-linear-gradient(0deg, rgba(246,243,234,0.08) 0 1px, transparent 1px 8px),
    linear-gradient(135deg, #222222, rgba(155,179,255,0.48), #151515);
}

.kc-archive-slide__year {
  position: absolute;
  top: 18px;
  left: 18px;
  color: var(--kc-lime);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.kc-archive-slide h3 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  line-height: 1;
  text-transform: uppercase;
}

.kc-archive-slide p {
  margin: 0;
  color: rgba(246, 243, 234, 0.72);
}

@keyframes kc-archive-scroll {
  to {
    transform: translateX(-50%);
  }
}

@keyframes kc-memory-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -24px;
  }
}

.kc-day-grid,
.kc-ticket-grid,
.kc-speaker-grid {
  display: grid;
  gap: 18px;
}

.kc-day-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kc-day {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--kc-line);
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}

.kc-day__number {
  display: block;
  margin-bottom: auto;
  color: var(--kc-blue);
  font-size: clamp(7rem, 16vw, 14rem);
  line-height: 0.74;
  font-weight: 950;
}

.kc-day h3,
.kc-ticket h3 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  line-height: 1;
}

.kc-day p,
.kc-ticket p {
  margin: 0 0 18px;
  color: rgba(246, 243, 234, 0.68);
}

.kc-speaker-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.kc-speaker {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: rgba(17, 17, 17, 0.12);
  border: 1px solid rgba(17, 17, 17, 0.18);
}

.kc-speaker__avatar {
  width: 86px;
  height: 86px;
  margin-bottom: auto;
  border-radius: 50%;
  background: var(--kc-paper);
  color: var(--kc-black);
  display: grid;
  place-items: center;
  font-size: 2.8rem;
  font-weight: 950;
}

.kc-speaker h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.kc-speaker p {
  margin: 0;
  font-size: 0.86rem;
}

.kc-feature {
  min-height: 520px;
  display: grid;
  align-items: end;
  padding: clamp(24px, 5vw, 54px);
  background:
    linear-gradient(90deg, rgba(17,17,17,0.22), rgba(17,17,17,0.86)),
    radial-gradient(circle at 22% 28%, rgba(255,90,67,0.62), transparent 20%),
    radial-gradient(circle at 62% 48%, rgba(155,179,255,0.28), transparent 23%),
    repeating-linear-gradient(90deg, rgba(246,243,234,0.06) 0 2px, transparent 2px 88px),
    linear-gradient(135deg, #3a1714, #171717 56%, #101010);
  border: 1px solid var(--kc-line);
}

.kc-feature__panel {
  width: min(430px, 100%);
  margin-left: auto;
}

.kc-feature h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.kc-feature p {
  color: rgba(246, 243, 234, 0.72);
}

.kc-ticket-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kc-ticket-grid--single {
  width: min(520px, 100%);
  margin: 0 auto;
  grid-template-columns: 1fr;
}

.kc-ticket {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 24px;
  background: #ffffff;
  color: var(--kc-black);
  border: 1px solid rgba(17, 17, 17, 0.14);
}

.kc-ticket p {
  color: rgba(17, 17, 17, 0.62);
}

.kc-ticket__price {
  margin-top: auto;
  font-size: 2.2rem;
  font-weight: 950;
}

.kc-info-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 36px;
  align-items: center;
  padding: clamp(24px, 5vw, 52px);
  background: var(--kc-panel);
  border: 1px solid var(--kc-line);
}

.kc-info-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.kc-info-panel p {
  color: rgba(246, 243, 234, 0.66);
}

.kc-info-list {
  display: grid;
  gap: 12px;
}

.kc-info-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--kc-line);
  background: rgba(255, 255, 255, 0.05);
}

.kc-info-list strong,
.kc-info-list span {
  display: block;
}

.kc-info-list strong {
  text-transform: uppercase;
}

.kc-info-list span {
  color: rgba(246, 243, 234, 0.68);
  text-align: right;
}

.kc-footer {
  padding: 48px 0 22px;
  background: var(--kc-black);
  border-top: 1px solid var(--kc-line);
}

.kc-footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 42px;
}

.kc-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 24px;
  color: rgba(246, 243, 234, 0.68);
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 800;
}

.kc-footer__wordmark {
  font-size: clamp(3rem, 12vw, 10rem);
  font-weight: 950;
  text-transform: uppercase;
  line-height: 0.78;
  letter-spacing: 0;
}

.kc-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(246, 243, 234, 0.54);
  font-size: 0.8rem;
}

@media (max-width: 880px) {
  .kc-nav {
    display: none;
  }

  .kc-section__head,
  .kc-info-panel,
  .kc-footer__top {
    grid-template-columns: 1fr;
  }

  .kc-day-grid,
  .kc-ticket-grid {
    grid-template-columns: 1fr;
  }

  .kc-speaker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kc-meta-strip {
    position: static;
    margin-top: 54px;
  }

  .kc-footer__links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .kc-header__inner {
    min-height: 66px;
  }

  .kc-hero {
    padding-top: 94px;
  }

  .kc-hero h1 {
    font-size: clamp(3.4rem, 22vw, 6rem);
  }

  .kc-kicker {
    margin-bottom: 54px;
  }

  .kc-memory {
    width: 110px;
    border-width: 6px;
    opacity: 0.28;
  }

  .kc-memory--three,
  .kc-memory--five {
    display: none;
  }

  .kc-speaker-grid {
    grid-template-columns: 1fr;
  }

  .kc-archive-slide {
    width: 82vw;
    min-height: 360px;
  }

  .kc-archive-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .kc-archive-track {
    animation: none;
  }

  .kc-info-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
  }

  .kc-info-list span {
    text-align: left;
  }

  .kc-day {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kc-preloader,
  .kc-preloader__word,
  .kc-preloader::after,
  .kc-archive-track,
  .kc-memory {
    animation: none;
  }
}
