/*
  Countdown de sharefestival.org hasta la publicación de la web 2027.

  Colores, tipos y botón son los de la web nueva (`src/app/globals.css`,
  `ui/button.tsx`). Van copiados a propósito: este proyecto de Vercel no
  comparte ni un fichero con la web nueva, para que no se pueda filtrar nada.
*/

@font-face {
  font-family: 'Barlow';
  src: url('/assets/fonts/Barlow-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: 'PP Neue Montreal';
  src: url('/assets/fonts/PPNeueMontreal-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'PP Neue Montreal Mono';
  src: url('/assets/fonts/PPNeueMontrealMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --background: oklch(0.551 0.121 238.7); /* #0B7AB0 */
  --foreground: oklch(1 0 0);
  --primary: oklch(0.865 0.069 346.1); /* #F5C1DC */
  --primary-foreground: oklch(0.205 0 0);
}

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

html {
  background: var(--background);
}

body {
  position: relative;
  min-height: 100svh;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'PP Neue Montreal', ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Degradados del hero de la home (Figma 437:3607 y 437:3608). */
.glows {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.glow {
  position: absolute;
  background-size: cover;
  opacity: 0.9;
}

.glow-orange {
  top: 0;
  right: 0;
  aspect-ratio: 402 / 432;
  width: min(402px, 70vw);
  background-image: url('/assets/img/cartel-orange-sm.webp');
}

.glow-pink {
  bottom: 0;
  left: 0;
  aspect-ratio: 554 / 593;
  width: min(554px, 85vw);
  background-image: url('/assets/img/cartel-pink.webp');
}

main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6svh, 4rem);
  min-height: 100svh;
  /* Abajo deja sitio al pie, que va superpuesto. */
  padding: 1.5rem 1rem 3.5rem;
}

.logo {
  margin: 0;
}

.logo img {
  display: block;
  width: clamp(10rem, 44vw, 15rem);
  height: auto;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 3.5vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.countdown li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/*
  Display/XXL del Figma, escalado al ancho: nueve cifras no caben a 200px. Sin
  el tracking de -4%: en Black las cifras seguidas se tocan.
*/
.value {
  font-family: 'Barlow', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.5rem, min(13.5vw, 30svh), 12.5rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 0.8;
}

/* Paragraph/Caption del Figma. */
.unit {
  font-family: 'PP Neue Montreal Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* Button default / lg del Figma (5:39). */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.25rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 150ms;
}

.button:hover {
  opacity: 0.9;
}

.button:focus-visible {
  outline: 3px solid var(--foreground);
  outline-offset: 2px;
}

/* Pie con el correo de contacto: Paragraph/Caption, al fondo y centrado. */
.legal {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1rem;
  font-family: 'PP Neue Montreal Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-align: center;
}

.legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  opacity: 0.85;
}

.legal a:hover {
  opacity: 1;
}

.legal a:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .countdown li {
    gap: 1rem;
  }

  .unit {
    font-size: 1rem;
  }
}

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