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

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

:root {
  --bg: #141b2c;
  --text: #ffffff;
  --accent: #e8b923;
  --muted: #dadada;
  --font-stampa: "stamparegular", serif;
  --font-sawton: "Sawton Circular", system-ui, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sawton);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.75;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: var(--bg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  height: 32px;
  width: auto;
}

.brand span {
  font-family: var(--font-stampa);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-link {
  font-size: 1rem;
}

main {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

main video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video--portrait {
  display: none;
}

@media (max-width: 767px) {
  .hero-video--landscape {
    display: none;
  }

  .hero-video--portrait {
    display: block;
  }
}

.next-stop {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  background-color: var(--bg);
  border: 4px solid var(--accent);
  padding: 1.5rem 2.5rem;
  text-align: center;
}

.next-stop p {
  margin: 0;
}

.next-stop__title {
  font-family: var(--font-stampa);
  font-size: 1.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.next-stop__date {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
}

.next-stop__location {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background-color: var(--bg);
  font-size: 0.875rem;
}

footer .instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

footer .instagram svg {
  width: 1em;
  height: 1em;
}

.legal {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.legal__content {
  max-width: 40rem;
  width: 100%;
}

.legal__content h1 {
  font-family: var(--font-stampa);
  font-size: 1.75rem;
  font-weight: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

.legal__content p {
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.legal__content a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--muted);
  background-color: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form button {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--accent);
  background-color: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

.contact-form button:hover {
  opacity: 0.75;
}

@media (max-width: 480px) {
  header {
    padding: 0.75rem 1rem;
  }

  .brand img {
    height: 28px;
  }

  .brand span {
    font-size: 0.875rem;
  }

  .next-stop {
    bottom: 1rem;
    padding: 1rem 1.25rem;
    width: calc(100% - 2rem);
  }

  .next-stop__title {
    font-size: 1.25rem;
  }

  .next-stop__date {
    font-size: 1rem;
  }

  .next-stop__location {
    font-size: 0.8125rem;
  }
}
