/*
Theme Name: Luca Bro BaT
Theme URI: https://www.lucabrobat.fr/
Author: Luca Paul
Author URI: https://www.lucapaul.ro
Description: Tema minimala, o singura pagina, fara meniu. Logo, descriere scurta, email si retele sociale. Toate setarile sunt in Personalizare (Customizer).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: lucabrobat
*/

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--bg, #101826);
  color: var(--fg, #eef1f5);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent, #9db7d5);
  outline-offset: 4px;
  border-radius: 2px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Pagina ---------- */

.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  padding: 4rem 1.5rem 2rem;
  text-align: center;
}

.landing__brand { margin: 0; line-height: 0; }

.landing__brand img,
.landing__brand .custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(340px, 72vw);
  max-height: 38vh;
}

.landing__name {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.landing__tagline {
  margin: 0;
  max-width: 34ch;
  font-size: 1.0625rem;
  color: color-mix(in srgb, var(--fg, #eef1f5) 68%, transparent);
}

/* Email */
.landing__email {
  position: relative;
  display: inline-block;
  padding: 0.25rem 0;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.landing__email::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent, #9db7d5);
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.landing__email:hover::after,
.landing__email:focus-visible::after { transform: scaleX(1); }

/* Retele sociale */
.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid color-mix(in srgb, var(--fg, #eef1f5) 22%, transparent);
  border-radius: 50%;
  color: var(--fg, #eef1f5);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.social a:hover,
.social a:focus-visible {
  border-color: var(--accent, #9db7d5);
  color: var(--accent, #9db7d5);
}

.social svg { width: 20px; height: 20px; display: block; }

/* Footer */
.site-footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--fg, #eef1f5) 50%, transparent);
}

/* O singura aparitie la incarcare: logo-ul intra primul, restul dupa el */
@media (prefers-reduced-motion: no-preference) {
  .landing > * {
    opacity: 0;
    animation: lbb-in 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }
  .landing > *:nth-child(2) { animation-delay: 0.15s; }
  .landing > *:nth-child(3) { animation-delay: 0.3s; }
  .landing > *:nth-child(4) { animation-delay: 0.45s; }
}

@keyframes lbb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 480px) {
  .landing { gap: 1.875rem; padding-top: 3rem; }
}

.site-footer a { text-underline-offset: 3px; }
.site-footer a:hover { color: var(--accent, #9db7d5); }
