:root {
  --fg: #ffffff;
  --fg-muted: rgba(255, 255, 255, 0.72);
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.18);
  --link-bg: rgba(255, 255, 255, 0.1);
  --link-bg-hover: rgba(255, 255, 255, 0.18);
  --link-border: rgba(255, 255, 255, 0.22);
  --overlay: rgba(0, 0, 0, 0.45);
  --radius: 1.25rem;
  --radius-link: 0.875rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--fg);
  background: #0a0a0a url("assets/background.jpg") center / cover no-repeat fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, var(--overlay) 60%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card {
  width: 100%;
  max-width: 26rem;
  padding: 2.25rem 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tagline {
  margin: 0.5rem 0 1.75rem;
  font-size: 1rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.9rem 1.25rem;
  color: var(--fg);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  background: var(--link-bg);
  border: 1px solid var(--link-border);
  border-radius: var(--radius-link);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.link:hover,
.link:focus-visible {
  background: var(--link-bg-hover);
  border-color: rgba(255, 255, 255, 0.32);
}

.link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.link:active {
  transform: translateY(1px);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

@media (min-width: 600px) {
  .card {
    padding: 2.75rem 2.25rem;
  }

  h1 {
    font-size: 2.75rem;
  }
}

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

  .link:active {
    transform: none;
  }
}
