/* Temporary "coming soon" page. Colors and fonts from docs/marca/arxius-oficials/10-Web/variables.css */

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('/fonts/figtree-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('/fonts/figtree-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url('/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url('/fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --preminia-grafit: #1c2126;
  --preminia-blanc-fred: #f4f6f6;
  --preminia-blau-preminia-clar: #6c90dd;
  --preminia-blau-accio-clar: #6a9cdc;
  --preminia-gris: #8b959c;
  --preminia-font-titulars: 'Schibsted Grotesk', Arial, sans-serif;
  --preminia-font-text: 'Figtree', Arial, sans-serif;
  color-scheme: dark;
}

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

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--preminia-grafit);
  color: var(--preminia-blanc-fred);
  font-family: var(--preminia-font-text);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.logo img {
  display: block;
  width: 13rem;
  height: auto;
}

header {
  display: flex;
  justify-content: center;
}

/* Centered composition: the official M4 animation leads into the text, which settles in
   while the pieces fit together around the blue one (about 2.2 s in total). */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

main > :not(.mosaic) {
  animation: settle 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.2s both;
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.descriptor {
  margin: 0 0 1rem;
  color: var(--preminia-blau-preminia-clar);
  font-weight: 600;
  font-size: 1.25rem;
}

h1 {
  margin: 0 0 1.5rem;
  font-family: var(--preminia-font-titulars);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.central {
  margin: 0 0 2rem;
}

.status {
  margin: 0;
  color: var(--preminia-gris);
  font-size: 0.9375rem;
  font-weight: 600;
}

.mosaic {
  display: block;
  width: 100%;
  max-width: 34rem;
  margin: 0 0 3rem;
}

.mosaic img {
  display: block;
  width: 100%;
  height: auto;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--preminia-gris);
  font-size: 0.875rem;
}

footer p {
  margin: 0;
}

footer ul {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

footer a {
  color: var(--preminia-blau-accio-clar);
  font-weight: 600;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer a[aria-current='page'] {
  color: var(--preminia-blanc-fred);
}

a:focus-visible {
  outline: 2px solid var(--preminia-blau-accio-clar);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  main > :not(.mosaic) {
    animation: none;
  }
}

@media (max-width: 40rem) {
  body {
    font-size: 1.0625rem;
  }
  .page {
    padding: 1.5rem 1rem;
    gap: 2.5rem;
  }
  .logo img {
    width: 10.5rem;
  }
  h1 {
    font-size: 2.125rem;
  }
  .mosaic {
    margin-bottom: 2rem;
  }
  .descriptor {
    font-size: 1.125rem;
  }
}
