/* ==========================================================================
   Fontit ja etusivun värilaatat. Ladataan kaikilla sivuilla viimeisenä
   (styles.css:n ja vitsit.css:n jälkeen). Muu ulkoasu ja animaatiot on styles.css:ssä.

   Fontit (Google Fonts), muuttujat styles.css:n :rootissa:
   - Ultra              --f-wordmark  isot sivuotsikot ja etusivun "Eelis Puro. Tekijä."
   - Alfa Slab One      --f-display   otsikot, hinnat ja numerot
   - Libre Franklin     --f-sans      leipäteksti ja napit
   ========================================================================== */

/* ---------- Fontit ---------- */
/* Otsikkofonteissa on vain yksi paino: ei selaimen keinolihavointia (font-weight 800/900) */
html { font-synthesis: none; }
h1, h2, h3, .logo { letter-spacing: 0; }
.logo { white-space: nowrap; }
.page-title { font-family: var(--f-wordmark); font-size: clamp(2.4rem, 11vw, 4.6rem); letter-spacing: -.01em; }
/* Alfa Slab One on leveämpi kuin vanha fontti: pitkä hinta mahtuu korttiin */
.ad-offer .now { font-size: clamp(2.2rem, 11vw, 3.4rem); }

/* ---------- Etusivu: värilaatat (ikonit /ikonit/*.svg) ---------- */
.tiles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 8px;
}
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  aspect-ratio: 1.12; padding: 14px 10px 16px;
  background: var(--c); color: #121212; text-decoration: none; text-align: center;
}
.tile img { width: 46%; max-width: 128px; height: auto; transition: transform .35s var(--ease-bounce); }
.tile b { font: 400 clamp(1.05rem, 4.6vw, 1.5rem)/1.1 var(--f-display); }
.tile:hover img { transform: scale(1.08) rotate(-3deg); }
.tile:focus-visible { outline: 3px solid #121212; outline-offset: -6px; border-radius: 0; }
.tile-pelit { --c: #f7da21; }
.tile-kauppa { --c: #e05c56; }
.tile-uutiset { --c: #6493e6; }
.tile-vitsit { --c: #b5e352; }
.tile-mina { --c: #00a2b3; }
.tile-mainos { --c: #b4a8ff; }
.tile-hero {
  grid-column: 1 / -1; aspect-ratio: auto; padding: 40px 16px 44px;
  background: #000; color: #fff;
}
.tile-hero h1 { margin: 0; font: 400 clamp(2.2rem, 11vw, 3.6rem)/1 var(--f-wordmark); }
.tile-hero h1 small { display: block; margin-bottom: .45em; font: 600 .78rem/1 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.tile-hero .v-slogan {
  margin: 4px 0 0; padding: 0; background: none; border: 0; box-shadow: none; transform: none; border-radius: 0;
  color: #fff; font: 400 clamp(3.4rem, 19vw, 6.6rem)/.95 var(--f-wordmark); letter-spacing: -.01em;
}
.tile-hero .name { color: inherit; background: none; padding: 0; animation: none; }

@media (min-width: 760px) {
  /* 4 × 2: [hero hero pelit kauppa] / [uutiset vitsit minä mainos] */
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile { aspect-ratio: auto; height: clamp(230px, 22vw, 330px); }
  .tile-hero { grid-column: span 2; padding: 20px 28px; }
  .tile-hero h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); }
  .tile-hero .v-slogan { font-size: clamp(4.2rem, 8vw, 7rem); }
  .tile img { width: 40%; }
  .tile b { font-size: 1.35rem; }
}
