@import url("../fonts/index.css");

:root {
  --ink: #000000;
  --paper: #f4f1ea;
  --signal: #e30613;
  --muted: rgba(244, 241, 234, 0.58);
}

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

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

body {
  font-family: "Lato", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: clamp(2.5rem, 8vw, 5rem) 1.5rem;
  text-align: center;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid rgba(192, 192, 192, 0.8);
  pointer-events: none;
}

.hero::before {
  top: 1.5rem;
  left: 1.5rem;
  border-right: 0;
  border-bottom: 0;
}

.hero::after {
  bottom: 1.5rem;
  right: 1.5rem;
  border-left: 0;
  border-top: 0;
}

.hero__stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      ellipse 70% 42% at 50% 38%,
      rgba(227, 6, 19, 0.22),
      transparent 62%
    ),
    radial-gradient(ellipse 90% 70% at 50% 100%, #0a0a0a, var(--ink) 70%);
}

.hero__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__logo {
  width: min(82vw, 42rem);
  animation: rise 1s ease both;
}

.hero__logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.hero__line {
  width: min(12rem, 40vw);
  height: 1px;
  margin: 2.25rem 0 2rem;
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
  animation: rise 1s ease 0.12s both;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  list-style: none;
  animation: rise 1s ease 0.24s both;
}

.phone {
  font-family: "Magra", sans-serif;
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--signal);
  text-decoration: none;
}

.phone:hover,
.phone:focus-visible {
  color: var(--paper);
}

.email {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--paper);
  text-decoration: none;
}

.email:hover,
.email:focus-visible {
  color: var(--signal);
}

.address {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.zip,
.city {
  text-transform: uppercase;
}

a:focus-visible {
  outline: 1px solid var(--signal);
  outline-offset: 4px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo,
  .hero__line,
  .contact {
    animation: none;
  }
}
