/* Self-hosted (no requests to Google), latin subset, OFL licensed — see assets/fonts/OFL.txt */
@font-face {
  font-family: "Unbounded";
  src: url("assets/fonts/unbounded-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #121114;
  --text: #fff;
  --text-muted: rgba(255, 255, 255, 0.75);
  --accent: #e64120;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--gutter);
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

/* Blurred 24×16 preview of the photo (~120 bytes), shown while the real image loads */
.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/webp;base64,UklGRmgAAABXRUJQVlA4IFwAAACQAwCdASoYABAALplotFoiqCgoCACYSzgABc650FVNEFw3ct/AAP77a4FQMXdF/04OwxEravTTeU2xKx69Jqx0/WwFcS+c7q1DUxUqFnxbX+NS0RmwYfyg4QdwAA==") center / cover no-repeat;
  filter: blur(24px);
  transform: scale(1.1);
}

.bg__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Darken top and bottom edges so logo and text stay legible */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0) 28%,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.js .bg__img {
  opacity: 0;
  transition: opacity 0.8s ease;
  /* Safety net: reveal anyway if script.js never runs */
  animation: reveal 0s 4s forwards;
}

.js .bg__img.is-loaded {
  opacity: 1;
  animation: none;
}

@keyframes reveal {
  to {
    opacity: 1;
  }
}

/* ---------- Content ---------- */

.logo {
  display: block;
  width: clamp(150px, 16vw, 240px);
  height: auto;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.headline {
  margin: 0 0 clamp(1.5rem, 4vh, 3rem);
  font-family: "Unbounded", "Arial Black", sans-serif;
  font-weight: 300;
  font-size: clamp(2.25rem, 9vw, 10rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: center;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.note {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
  color: var(--text-muted);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.6;
}

.note p {
  margin: 0;
}

.note a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.note a:hover,
.note a:focus-visible {
  color: var(--accent);
}

/* Portrait phones: let "coming soon" break onto two big lines */
@media (max-aspect-ratio: 3/4) {
  .headline {
    font-size: clamp(2.25rem, 17vw, 6rem);
    line-height: 1.05;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .bg__img,
  .note a {
    transition: none;
  }
}
