:root {
  color-scheme: dark;
  font-family: Georgia, "Times New Roman", serif;
  background: #030201;
  color: #f6dfac;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  min-height: 100svh;
  background-color: #030201;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.18)),
    url("background.webp");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.page {
  width: min(100%, 1600px);
  height: 100svh;
  margin: 0 auto;
  padding: clamp(1rem, 2.5vh, 2rem) clamp(0.75rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vh, 1.5rem);
  overflow: hidden;
}

.hero {
  width: min(96vw, 1180px);
  max-height: 38svh;
  text-align: center;
}

.logo {
  display: block;
  width: 100%;
  max-height: 31svh;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(219, 146, 46, 0.32));
  transition: transform 220ms ease, filter 220ms ease;
}

.logo:hover {
  transform: scale(1.025);
  filter: drop-shadow(0 0 28px rgba(219, 146, 46, 0.44));
}

.tagline {
  margin: clamp(0.4rem, 1.2vw, 1rem) 0 0;
  font-size: clamp(0.78rem, 1.35vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  line-height: 1.5;
  text-transform: uppercase;
  color: #e6c47d;
  text-shadow: 0 0 14px rgba(231, 172, 77, 0.55);
}

.links {
  width: min(72%, 790px);
  height: min(42svh, 390px);
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: clamp(0.5rem, 1.8vw, 1.6rem);
}

.link-card {
  position: relative;
  width: 92%;
  height: 92%;
  min-height: 0;
  justify-self: center;
  align-self: center;
  display: grid;
  place-items: center;
  isolation: isolate;
  user-select: none;
  transition: transform 220ms ease, filter 220ms ease;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: 17% 18%;
  z-index: -2;
  border-radius: 44%;
  background: radial-gradient(circle, rgba(115, 66, 21, 0.18), transparent 72%);
}

.link-card .frame {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 11px rgba(207, 126, 32, 0.2));
}

.link-card .social-icon {
  position: relative;
  z-index: 1;
  width: clamp(2rem, 3.4vw, 3.2rem);
  height: clamp(2rem, 3.4vw, 3.2rem);
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(216, 181, 107, 0.55));
}

.link-card:hover {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.email {
  margin-top: -3.2rem;
  color: #e8c783;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.95rem, 1.45vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(219, 146, 46, 0.42), 0 1px 2px #000;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.email:hover {
  color: #f8d995;
  text-shadow: 0 0 18px rgba(219, 146, 46, 0.6);
}

@media (max-width: 860px) {
  body {
    background-attachment: scroll;
  }

  .links {
    width: min(94%, 700px);
    height: 43svh;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1fr;
    gap: 0;
  }

  .link-card .social-icon {
    width: clamp(1.8rem, 5vw, 2.7rem);
    height: clamp(1.8rem, 5vw, 2.7rem);
  }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .logo,
  .link-card {
    transition: none;
  }

  .logo:hover,
  .link-card:hover {
    transform: none;
    filter: none;
  }
}

@media (max-width: 480px) {
  .page {
    justify-content: flex-start;
    gap: 0;
    padding: 0.35rem 0.4rem;
  }

  .hero {
    width: min(100%, 540px);
    max-height: 27svh;
  }

  .logo {
    max-height: 20svh;
  }

  .tagline {
    padding-inline: 1rem;
    letter-spacing: 0.28em;
  }

  .links {
    width: min(58vw, 220px);
    height: 60svh;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .link-card .social-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .email {
    margin-top: 0.2rem;
    font-size: 0.82rem;
    letter-spacing: 0.09em;
  }
}
