:root {
  color-scheme: dark;

  /* Colours sampled directly from the ParadiseRP logo. */
  --navy-deep: #00102a;
  --navy: #002149;
  --navy-light: #012f63;
  --cyan: #57e0fb;
  --cyan-soft: #a9efee;
  --orange: #faa10d;
  --orange-deep: #f27a0a;
  --red: #c61d0b;
  --white: #f5fbe4;
  --muted: #9ab4c7;
  --line: rgba(169, 239, 238, 0.16);
  --content-width: 760px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--navy-deep);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 33, 73, 0.9), transparent 32rem),
    var(--navy-deep);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

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

.hub {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 46px 0 34px;
}

.hero {
  display: grid;
  justify-items: center;
  text-align: center;
}

.logo {
  width: min(300px, 78vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.28));
}

.hero h1 {
  margin: 4px 0 0;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 9px 0 0;
  color: var(--cyan-soft);
  font-size: 0.94rem;
}

.logo-line {
  width: 72px;
  height: 4px;
  margin-top: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--orange), var(--red));
}

.documents {
  margin-top: 38px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.75rem;
}

.document-list {
  display: grid;
  gap: 10px;
}

.document-link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding: 14px 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--navy);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.document-link::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--orange), var(--red));
}

.document-link:hover,
.document-link:focus-visible {
  border-color: rgba(87, 224, 251, 0.55);
  background: var(--navy-light);
  transform: translateY(-1px);
}

.document-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.document-copy {
  min-width: 0;
}

.document-copy strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.document-copy span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-arrow {
  color: var(--orange);
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 150ms ease, color 150ms ease;
}

.document-link:hover .document-arrow,
.document-link:focus-visible .document-arrow {
  color: var(--cyan);
  transform: translateX(2px);
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  color: var(--white);
}

.empty-state span {
  display: block;
  margin-top: 5px;
  font-size: 0.82rem;
}

.privacy-note {
  margin: 16px 2px 0;
  color: var(--muted);
  font-size: 0.74rem;
  text-align: center;
}

.footer {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.72rem;
}

.footer span:first-child {
  color: var(--cyan-soft);
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 11px 15px;
  border: 1px solid rgba(250, 161, 13, 0.4);
  border-radius: 10px;
  color: var(--white);
  background: #071c37;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 560px) {
  .hub {
    padding-top: 28px;
  }

  .logo {
    width: min(250px, 78vw);
  }

  .documents {
    margin-top: 30px;
  }

  .document-link {
    min-height: 64px;
    padding: 13px 15px;
    border-radius: 10px;
  }

  .document-copy span {
    white-space: normal;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
  }
}

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