/*
Theme Name: Ferreira Home
Description: A focused landing page for the Ferreira family sites.
Version: 1.0.0
Text Domain: ferreira-home
*/

:root {
  --paper: #f3efe4;
  --ink: #17201c;
  --line: rgba(255, 255, 255, 0.34);
  --adventure: #28533f;
  --family: #8f493f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

.site-header {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(22px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}

.site-name {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0;
}

.site-note {
  margin: 0;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.destinations {
  display: grid;
  min-height: 100svh;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.destination {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(120px, 16vh, 180px) clamp(24px, 5vw, 72px) clamp(42px, 7vh, 76px);
  color: var(--paper);
  text-decoration: none;
  isolation: isolate;
}

.destination::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-color: var(--fallback);
  background-image: var(--image);
  background-position: center;
  background-size: cover;
  content: "";
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.destination::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(12, 17, 14, 0.42);
  content: "";
  transition: background-color 350ms ease;
}

.destination--adventure {
  --fallback: var(--adventure);
  --image: none;
}

.destination--family {
  --fallback: var(--family);
  --image: none;
  border-left: 1px solid var(--line);
}

.destination__content {
  width: min(100%, 34rem);
}

.destination__eyebrow {
  display: block;
  margin-bottom: 14px;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.destination h2 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.92;
}

.destination p {
  max-width: 29rem;
  margin: 22px 0 26px;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
}

.destination__action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.destination:hover::before,
.destination:focus-visible::before {
  transform: scale(1.035);
}

.destination:hover::after,
.destination:focus-visible::after {
  background: rgba(12, 17, 14, 0.28);
}

.destination:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: -8px;
}

@media (max-width: 760px) {
  .site-header {
    position: fixed;
    padding: 18px 20px;
    background: rgba(23, 32, 28, 0.82);
  }

  .site-note {
    display: none;
  }

  .destinations {
    grid-template-columns: 1fr;
  }

  .destination {
    min-height: 76svh;
    padding: 100px 24px 42px;
  }

  .destination--family {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .destination::before {
    transition: none;
  }
}