/* ============================================================
   Cabral Design Studio — system styles
   Change this file; every page follows.
   ============================================================ */

:root {
  --color-bg: #ffffff;
  --color-text: #000000;
  --font-body: Arial, Helvetica, sans-serif;
  --fade-duration: 5s;
  --type-lg: clamp(2.5rem, 8vw, 5rem);
  --line-gap: 0.15em;
}

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

html,
body {
  height: 100%;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* --- layout --- */

.stage {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- stack: vertical lines of type --- */

.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--line-gap);
  font-family: var(--font-body);
  font-size: var(--type-lg);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--color-text);
  opacity: 0;
}

.stack__line {
  display: block;
}

/* --- reaction: fade in / out once --- */

.is-alive {
  animation: fade var(--fade-duration) ease-in-out forwards;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
