/* The «Brevemente» page: the site's loading screen standing still, with two lines under it. Colours are the site's
   olive-700 (ground), cream (marks) and olive-100/200 (the quieter text), the same pairs the loader uses. */
@font-face {
  font-family: Dosis;
  src: url("/fonts/Dosis-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("/fonts/Poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ground: #465637;
  --mark: #faf7f1;
  --quiet: #e5eae0;
  --faint: #cfd7c9;
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  /* The loader's sizes, a little larger where there is room. */
  --s: 1;
  color-scheme: dark;
}
@media (min-width: 640px) {
  :root {
    --s: 1.3;
  }
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--ground);
}
body {
  color: var(--mark);
  font-family: Poppins, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(48px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
}
.centre {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(2.75rem * var(--s));
  text-align: center;
}

/* The loader's mark: the horse over the logo's stars, TROIA and «Restaurante & Hotel», spaced as in the original. */
.mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(1rem * var(--s));
}
.horse,
.stars,
.name,
.rh {
  display: block;
  background-color: currentColor;
}
.horse {
  width: calc(88px * var(--s));
  height: calc(88px * var(--s));
  mask: url("/brand/horse.svg") center / contain no-repeat;
  /* Breathes as on the loader: 100 % to 70 % and back in 1.2 s. */
  animation: breathe 600ms var(--ease-in-out) infinite alternate;
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(168px * var(--s));
}
.stars {
  width: calc(64.3px * var(--s));
  aspect-ratio: 3.9886;
  mask: url("/brand/logo-stars.svg") center / contain no-repeat;
}
.name {
  width: calc(160.6px * var(--s));
  aspect-ratio: 5.2246;
  margin-top: calc(15.6px * var(--s));
  mask: url("/brand/wordmark-troia.svg") center / contain no-repeat;
}
.rh {
  width: calc(168px * var(--s));
  aspect-ratio: 6.7593;
  margin-top: calc(12.2px * var(--s));
  mask: url("/brand/logo-rh.svg") center / contain no-repeat;
}
@keyframes breathe {
  to {
    opacity: 0.7;
  }
}

.words {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}
h1 {
  margin: 0;
  /* Dosis caps, as the site's font-caps, spaced wider for a single word. */
  font-family: Dosis, system-ui, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  /* The tracking trails the last letter: pull it back so the word sits centred. */
  margin-right: -0.2em;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.1;
}
p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--quiet);
}

.complaints {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 0.75rem;
  color: var(--faint);
  text-underline-offset: 3px;
}
.complaints:hover {
  color: var(--mark);
}
.complaints:focus-visible {
  outline: 2px solid var(--faint);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .horse {
    animation: none;
  }
}
