:root {
  --atp-blue: #5481c1;      /* the "T" in the ATP logo */
  --bg-blue: #1b3866;       /* fallback while the canvas loads */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg-blue);
  color: #fff;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.content {
  position: relative;
  z-index: 1;
  min-height: 100%;
  /* Three rows: equal space above and below keeps the logo at the exact center;
     the heading sits at the bottom of the top row, just above the logo. */
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  padding: 2rem 16px;
  text-align: center;
  pointer-events: none; /* let the mouse reach the canvas everywhere except the logo */
}

h1 {
  grid-row: 1;
  align-self: end;
  margin: 0 0 clamp(1.5rem, 5vh, 3.5rem);
  font-size: clamp(2rem, 6vw, 4.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  -webkit-text-stroke: 0.09em #000;
  paint-order: stroke fill;
  text-shadow: 0 2px 18px rgba(10, 25, 45, 0.85);
}

.logo-card {
  grid-row: 2;
  pointer-events: auto;
  display: block;
  width: min(640px, 100%);
  transition: transform 0.2s ease;
}

.logo-card:hover,
.logo-card:focus-visible {
  transform: translateY(-3px);
}

.logo-card:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 8px;
  border-radius: 6px;
}

.logo-card img {
  display: block;
  width: 100%;
  height: auto;
}

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