@font-face {
  font-family: "Marcellus SC";
  src: url("../fonts/marcellus-sc.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Arrus BT";
  src: url("../fonts/arrus-bold.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #ffffff;
  --deep: #043c4c;
  --deep-hover: #184f61;
  --gold: #bc9a67;
  --gold-soft: rgba(188, 154, 103, 0.52);
  --shadow: rgba(0, 0, 0, 0.28);
  --page-pad: clamp(16px, 4vw, 40px);
  --content-width: 424px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--deep);
  color: var(--ink);
  font-family: "Marcellus SC", Georgia, serif;
  text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  margin: 0;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  content: "";
}

body::before {
  z-index: -2;
  background-image: url("../img/background-mobile.webp");
  background-position: center 42%;
  background-size: cover;
  background-repeat: no-repeat;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 60, 76, 0.78) 0%, rgba(4, 60, 76, 0.26) 32%, rgba(4, 60, 76, 0.44) 100%),
    rgba(0, 0, 0, 0.08);
}

a {
  color: inherit;
}

.page-shell {
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto auto 1fr;
}

.top-bar {
  display: grid;
  min-height: 42px;
  margin: 0;
  padding: 8px var(--page-pad);
  place-items: center;
  color: var(--gold);
  background: var(--deep);
  font-family: "Arrus BT", Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
}

.brand-header {
  display: flex;
  justify-content: center;
  padding: clamp(22px, 5vw, 36px) var(--page-pad) clamp(12px, 3vw, 20px);
}

.brand-logo {
  width: min(68vw, 240px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px var(--shadow));
}

.link-stage {
  display: grid;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(24px, 7vh, 84px) var(--page-pad) max(28px, env(safe-area-inset-bottom));
  align-content: center;
  gap: clamp(24px, 5vh, 44px);
  justify-items: center;
  overflow-x: hidden;
}

.link-card {
  display: flex;
  width: 100%;
  justify-content: center;
}

.button-list {
  display: grid;
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  gap: 16px;
}

.primary-link {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px 12px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: var(--deep);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  color: var(--ink);
  font-family: "Arrus BT", Georgia, serif;
  font-size: clamp(0.82rem, 2.9vw, 0.92rem);
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.primary-link:hover,
.primary-link:focus-visible {
  border-color: var(--gold-soft);
  background: var(--deep-hover);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
  outline: none;
}

.primary-link:active {
  transform: translateY(0);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social-links a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(188, 154, 103, 0.34);
  border-radius: 50%;
  background: rgba(4, 60, 76, 0.54);
  color: var(--gold);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: var(--deep);
  color: var(--ink);
  transform: translateY(-1px);
  outline: none;
}

.social-links svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links path {
  fill: currentColor;
  stroke: none;
}

.tagline {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(1rem, 3.9vw, 1.18rem);
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  body::before {
    background-image: url("../img/background-desktop.webp");
    background-position: center 43%;
  }

  .top-bar {
    min-height: 40px;
  }

  .brand-header {
    justify-content: center;
    padding-inline: var(--page-pad);
  }

  .brand-logo {
    width: 144px;
  }

  .link-stage {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    padding-top: clamp(56px, 10vh, 118px);
    padding-bottom: clamp(36px, 8vh, 72px);
  }

  .link-card,
  .social-links,
  .tagline {
    grid-column: 1;
  }
}

@media (max-width: 380px) {
  .primary-link {
    padding-inline: 18px;
    font-size: 0.76rem;
  }
}

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