@import url('fonts.css');

:root {
  --red: #DE2B29;
  --white: #FFFFFF;

  /* Headline metrics (Humane Bold): "BREVEMENTE" advance = 2.244em,
     cap-height = 0.700em, tracking = -0.0465em  ->  width = 1.8255 x font-size */
  --headline-size: min(40vw, 74vh);
  --tracking: -1.4px;
}

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

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

body {
  background-color: var(--red);
  color: var(--white);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

/* ---------------------------------------------------------------- stage */

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

/* Background image + red wash */
.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(222, 43, 41, 0.20) 0%, rgba(222, 43, 41, 0.5) 100%),
    url('../assets/imagemFundo.png') lightgray 50% / cover no-repeat;
}

/* ------------------------------------------------------------- headline */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero__tagline {
  margin: 0 0 0.35em;
  font-size: clamp(0.875rem, 1.3vw, 1.625rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.2;
  color: #F9F9F9;
}

.hero__title {
  margin: 0;
  font-family: 'Humane', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: var(--headline-size);
  line-height: 0.9;
  letter-spacing: var(--tracking);
  text-indent: calc(var(--tracking) * -1); /* offset trailing tracking, keeps it optically centred */
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

/* --------------------------------------------------------------- footer */

.footer {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 4vh, 2.75rem);
  transform: translateX(-50%);
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: clamp(0.8125rem, 1.05vw, 1.25rem);
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 0.25s ease;
}

.footer__link:hover,
.footer__link:focus-visible {
  opacity: 1;
}

.footer__icon {
  width: 1.35em;
  height: 1.35em;
  flex: none;
}

/* ------------------------------------------------------------ portrait */

@media (orientation: portrait) {
  :root {
    --headline-size: 48vw;
  }

  .hero__tagline {
    margin-bottom: 0.6em;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
