:root {
  color-scheme: dark;
  --ink: #171e1c;
  --paper: #faf2e4;
  --gold: #f2d394;
  --gutter: clamp(24px, 5.5vw, 100px);
  --serif: Georgia, "Times New Roman", serif;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 1rem/1.5 "Trebuchet MS", sans-serif;
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.travel-hero {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  grid-template-rows: auto 1fr 104px;
  min-block-size: max(700px, calc(100svh - 56px));
  isolation: isolate;
}

.site-brand {
  grid-area: 1 / 1 / 2 / -1;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-inline: var(--gutter);
  padding-block: 22px;
  border-block-end: 1px solid rgb(250 242 228 / 27%);
}

.site-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.site-brand-logo img {
  display: block;
  inline-size: clamp(50px, 5vw, 64px);
  block-size: auto;
  flex: none;
}

.brand-name {
  font: 600 1.25rem/1.1 var(--serif);
}

.brand-name small,
.brand-location,
.hero-region,
.destination small {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-name small {
  display: block;
  margin-block-start: 5px;
  font-family: "Trebuchet MS", sans-serif;
}

.brand-location {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-intro {
  grid-area: 2 / 1;
  z-index: 1;
  align-self: center;
  padding: 52px 16px 42px var(--gutter);
}

.hero-region {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2vw, 14px);
  margin: 0 0 20px;
}

.hero-region::before {
  content: "";
  flex: 0 1 32px;
  block-size: 1px;
  background: var(--gold);
}

.hero-region span {
  opacity: 0.7;
}

.hero-intro h1 {
  margin: 0;
  font: 400 clamp(2.65rem, 5.25vw, 6rem)/1.03 var(--serif);
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-intro em {
  display: block;
  color: var(--gold);
}

.hero-description {
  max-inline-size: 35ch;
  margin: 22px 0 28px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.site-brand-contact {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-block-size: 56px;
  max-inline-size: 100%;
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--gold);
  color: #211b13;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

.site-brand-contact small {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
}

.site-brand-contact svg {
  flex: none;
}

.site-brand-contact:hover {
  transform: translateY(-2px);
  background: #ffe6b2;
}

.destination {
  position: relative;
  grid-row: 1 / -1;
  display: flex;
  align-items: flex-end;
  min-inline-size: 0;
  margin: 0;
  padding-block: 32px;
  background: #2e3934;
}

.destination img,
.destination::after {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
}

.destination img {
  object-fit: cover;
}

.destination::after {
  content: "";
  pointer-events: none;
}

.destination--bromo {
  grid-column: 1;
  padding-inline: var(--gutter) 18px;
}

.destination--bromo img {
  object-position: 51% 50%;
}

.destination--bromo::after {
  background:
    linear-gradient(90deg, rgb(12 22 22 / 85%), rgb(12 22 22 / 67%) 58%, rgb(12 22 22 / 22%)),
    linear-gradient(0deg, rgb(12 22 22 / 90%), transparent 25%, transparent 68%, rgb(12 22 22 / 56%));
}

.destination--borobudur {
  grid-column: 2;
  padding-inline: clamp(24px, 3vw, 54px) var(--gutter);
  border-inline-start: 1px solid rgb(250 242 228 / 25%);
}

.destination--borobudur img {
  object-position: 53% 50%;
}

.destination--borobudur::after {
  background: linear-gradient(0deg, rgb(16 24 22 / 94%), rgb(16 24 22 / 12%) 35%, transparent 60%, rgb(16 24 22 / 80%));
}

.destination figcaption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font: 400 clamp(1.2rem, 2.1vw, 1.65rem)/1.1 var(--serif);
}

.destination small {
  display: block;
  margin-block-end: 5px;
  font-family: "Trebuchet MS", sans-serif;
}

.destination-number {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  block-size: 40px;
  border: 1px solid rgb(242 211 148 / 60%);
  border-radius: 50%;
  color: var(--gold);
  font: 0.8rem/1 "Trebuchet MS", sans-serif;
}

.photo-credits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
  min-block-size: 56px;
  padding-inline: var(--gutter);
  border-block-start: 1px solid rgb(250 242 228 / 18%);
  color: #c6c3b8;
  font-size: 0.78rem;
}

.photo-credits a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  color: inherit;
  text-underline-offset: 3px;
}

.photo-credits a:hover {
  color: var(--gold);
}

@media (max-width: 767px) {
  .travel-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    min-block-size: auto;
  }

  .site-brand {
    padding-block: 16px;
  }

  .brand-location {
    display: none;
  }

  .hero-intro {
    padding: clamp(72px, 12svh, 120px) var(--gutter) 134px;
  }

  .hero-intro h1 {
    font-size: clamp(2.1rem, 9vw, 4.25rem);
  }

  .destination {
    grid-column: 1;
    padding: 24px var(--gutter);
  }

  .destination--bromo {
    grid-row: 1 / 3;
  }

  .destination--bromo img {
    object-position: 48% 50%;
  }

  .destination--bromo::after {
    background:
      linear-gradient(90deg, rgb(12 22 22 / 72%), rgb(12 22 22 / 42%)),
      linear-gradient(0deg, rgb(12 22 22 / 92%), transparent 26%, transparent 76%, rgb(12 22 22 / 66%));
  }

  .destination--borobudur {
    grid-row: 3;
    min-block-size: clamp(255px, 64vw, 420px);
    border-inline-start: 0;
    border-block-start: 1px solid rgb(250 242 228 / 25%);
  }

  .destination--borobudur::after {
    background: linear-gradient(0deg, rgb(16 24 22 / 94%), transparent 60%);
  }

  .photo-credits {
    padding-block: 8px;
  }

  .photo-credits > span {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-brand-contact {
    transition: none;
  }

  .site-brand-contact:hover {
    transform: none;
  }
}
