@font-face {
  font-family: "Minecraft Splash";
  src: url("./Minecraft.ttf") format("truetype");
  font-display: swap;
}

:root {
  --paper: #efe3c8;
  --paper-dark: #dbc79e;
  --ink: #17130d;
  --clay: #bf5a2b;
  --sun: #f0b44d;
  --moss: #65824f;
  --sky: #8eb8c8;
  --cream: #fff8ea;
  --line: #211a12;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Instrument Sans", sans-serif;
  color: var(--ink);
  background: #20170f;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 12, 8, 0.28), rgba(18, 12, 8, 0.58)),
    url("./titleBG.png") center center / cover no-repeat;
}

.site-bg::before,
.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
}

.site-bg::before {
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 31px,
      rgba(255, 248, 234, 0.05) 31px,
      rgba(255, 248, 234, 0.05) 32px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 31px,
      rgba(255, 248, 234, 0.05) 31px,
      rgba(255, 248, 234, 0.05) 32px
    );
  opacity: 0.28;
}

.site-bg::after {
  background:
    linear-gradient(180deg, rgba(255, 248, 234, 0.1), rgba(255, 248, 234, 0.06)),
    radial-gradient(circle at 10% 12%, rgba(142, 184, 200, 0.22), transparent 22%),
    radial-gradient(circle at 88% 14%, rgba(101, 130, 79, 0.18), transparent 18%);
}

.page-shell {
  width: min(1180px, calc(100% - 1.4rem));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 1rem 0;
}

.hero-card {
  border: 3px solid var(--line);
  box-shadow: 8px 8px 0 var(--line);
}

.brand-mark,
.hero-kicker,
.ticket-label,
.tag-row span,
.ticket-name,
.ticket-meta span {
  font-family: "IBM Plex Mono", monospace;
}

.poster-layout {
  display: grid;
  gap: 1.3rem;
}

.hero-logo-wrap {
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
  isolation: isolate;
}

.hero-logo {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  filter:
    drop-shadow(0 8px 0 rgba(33, 26, 18, 0.95))
    drop-shadow(0 20px 28px rgba(0, 0, 0, 0.35));
}

.hero-splash {
  position: absolute;
  top: 54%;
  right: -1%;
  color: #ffe54d;
  font-family: "Minecraft Splash", "Bungee", sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.35rem);
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow:
    2px 2px 0 #4c3400,
    4px 4px 0 rgba(0, 0, 0, 0.24);
  transform: rotate(-17deg);
  transform-origin: right center;
  animation: hero-splash-bounce 0.9s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 2;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 1rem;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 248, 234, 0.5), rgba(255, 248, 234, 0.36)),
    linear-gradient(135deg, rgba(142, 184, 200, 0.2), transparent 54%);
}

.hero-main,
.ip-ticket {
  position: relative;
  min-width: 0;
}

.hero-main {
  padding: clamp(1.2rem, 2vw, 2.2rem);
  background:
    linear-gradient(180deg, rgba(240, 180, 77, 0.22), transparent 50%),
    rgba(255, 248, 234, 0.86);
  border: 3px solid var(--line);
}

.hero-main::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 96px;
  height: 96px;
  background:
    linear-gradient(180deg, #80a85b 0 50%, #6f4c2e 50% 100%);
  border: 3px solid var(--line);
  box-shadow:
    -22px -18px 0 -3px rgba(255, 248, 234, 1),
    -22px -18px 0 0 var(--line),
    -44px 6px 0 -3px rgba(255, 248, 234, 1),
    -44px 6px 0 0 var(--line);
}

.hero-kicker,
.ticket-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 0.5rem;
  font-family: "Bungee", sans-serif;
  font-size: clamp(3.2rem, 11vw, 7rem);
  line-height: 0.93;
  letter-spacing: 0.02em;
  color: var(--clay);
  text-shadow: 4px 4px 0 var(--line);
}

.hero-text {
  max-width: 36rem;
  margin-top: 1.1rem;
  font-size: 1.12rem;
  line-height: 1.55;
}

.discord-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 1.4rem;
  padding: 0 1.35rem;
  overflow: hidden;
  color: var(--cream);
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #5865f2;
  border: 2px solid var(--line);
  box-shadow: 5px 5px 0 var(--line);
  isolation: isolate;
}

.discord-link::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.12) 45%,
    rgba(255, 255, 255, 0.82) 50%,
    rgba(255, 255, 255, 0.12) 55%,
    transparent 70%
  );
  transform: translateX(-160%) skewX(-18deg);
  animation: discord-shine 2.8s linear infinite;
  z-index: 0;
}

.discord-link span {
  position: relative;
  z-index: 1;
}

.discord-link:hover,
.discord-link:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--line);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--paper-dark);
  border: 2px solid var(--line);
}

.ip-ticket {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1.4rem;
  background: rgba(240, 180, 77, 0.9);
  border: 3px solid var(--line);
  clip-path: polygon(
    0 0,
    calc(100% - 20px) 0,
    100% 20px,
    100% 100%,
    24px 100%,
    0 calc(100% - 24px)
  );
}

.ticket-name {
  font-size: 0.96rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ip-ticket h2 {
  margin-top: 0.3rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.ticket-copy {
  margin-top: 0.35rem;
  font-size: 1rem;
  line-height: 1.45;
}

.ticket-meta {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.ticket-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 248, 234, 0.38);
  border: 2px solid var(--line);
}

.discord-widget {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.discord-widget iframe {
  display: block;
  width: 100%;
  max-width: 350px;
  height: 500px;
  border: 2px solid var(--line);
  box-shadow: 5px 5px 0 rgba(33, 26, 18, 0.5);
  background: #313338;
}

@keyframes discord-shine {
  0% {
    transform: translateX(-160%) skewX(-18deg);
  }

  100% {
    transform: translateX(160%) skewX(-18deg);
  }
}

@keyframes hero-splash-bounce {
  0% {
    transform: rotate(-17deg) scale(1);
  }

  100% {
    transform: rotate(-17deg) scale(1.07);
  }
}

@media (max-width: 960px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .ip-ticket {
    clip-path: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 0.8rem, 1180px);
    padding-top: 0.4rem;
  }

  .hero-logo {
    width: min(100%, 420px);
  }

  .hero-splash {
    top: 58%;
    right: 2%;
    font-size: clamp(0.82rem, 4vw, 1.1rem);
  }

  .hero-card,
  .hero-main,
  .ip-ticket {
    box-shadow: 5px 5px 0 var(--line);
  }

  .hero-main::after {
    display: none;
  }

  .discord-link {
    width: 100%;
  }
}
