:root {
  --ink: #090c10;
  --paper: #f3eee4;
  --muted: #b8b5ae;
  --gold: #c9a461;
  --gold-light: #eed89e;
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  margin: 0;
  min-width: 280px;
  color: var(--paper);
  background: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: .75rem;
  left: .75rem;
  padding: .65rem .9rem;
  color: var(--ink);
  background: var(--gold-light);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: calc(100svh - 210px);
  overflow: hidden;
}

.hero__image,
.hero__shade {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.hero__image {
  inset: -2%;
  background: url("assets/barcelona-dark-network.png") center 50% / cover no-repeat;
  filter: brightness(1.12) saturate(1.24) contrast(1.04);
  transform: scale(1.025);
  animation: settle 2.2s cubic-bezier(.2,.7,.2,1) both;
}

.hero__shade {
  z-index: -1;
  background:
    radial-gradient(ellipse 52% 40% at 50% 36%, rgba(3,5,8,.04), rgba(3,5,8,.18) 88%),
    linear-gradient(180deg, rgba(3,5,8,.05), transparent 52%, rgba(3,5,8,.18));
}

.brand {
  width: min(88vw, 690px);
  margin-top: -1vh;
  text-align: center;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.85));
  animation: reveal 1.15s .1s cubic-bezier(.2,.7,.2,1) both;
}

.brand__logo {
  display: block;
  width: min(100%, 560px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.48));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.brand p {
  position: relative;
  display: inline-block;
  margin: .8rem 0 0;
  padding: 0 clamp(.7rem, 2vw, 1.35rem);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  font-weight: 400;
  letter-spacing: .02em;
  color: #f4ead3;
}

.brand__rule { width: 92px; height: 1px; margin: .25rem auto 1rem; background: var(--gold); opacity: .9; }

.footer {
  min-height: 210px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "contact" "legal" "copy";
  align-items: center;
  gap: .8rem 2rem;
  padding: 2rem clamp(1.25rem, 5vw, 5.5rem) 1.5rem;
  border-top: 1px solid #c49a5b;
  color: var(--muted);
  background: #0a0c10;
  font-size: .77rem;
  letter-spacing: .08em;
}

.footer__contact { grid-area: contact; justify-self: center; display: flex; align-items: center; gap: 1.4rem; color: #eee; font-size: .92rem; }
.footer__place,
.footer__mail { display: inline-flex; align-items: center; }
.footer__mail { color: #eee; }
.footer__legal { grid-area: legal; justify-self: center; }
.footer__copy { grid-area: copy; justify-self: center; opacity: .72; }

.footer a {
  text-decoration: none;
  transition: color .2s ease;
}

.footer a:hover,
.footer a:focus-visible { color: var(--gold-light); }

.footer__legal { display: flex; gap: .55rem; }
.footer__divider { width: 1px; height: 25px; background: rgba(201,164,97,.6); }
.footer__icon { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; margin-right: .55rem; color: #d4a348; }
.footer__icon--pin { width: 1.15rem; height: 1.15rem; }

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

@keyframes settle {
  from { opacity: .5; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1.025); }
}

@media (max-width: 720px) {
  .hero { min-height: calc(100svh - 220px); }
  .hero__image { background-position: 54% center; }
  .brand { margin-top: -2vh; }
  .brand__logo { width: min(90vw, 390px); }
  .brand p { line-height: 1.45; }
  .brand p::before, .brand p::after { display: none; }
  .footer {
    min-height: 220px;
    grid-template-columns: 1fr;
    grid-template-areas: "contact" "legal" "copy";
    justify-items: center;
    gap: .75rem;
    text-align: center;
  }
  .footer__contact { flex-direction: column; gap: .75rem; }
  .footer__divider { display: none; }
  .footer__legal { justify-self: center; }
}

@media (max-height: 620px) and (min-width: 721px) {
  .hero { min-height: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
