/* =========================================
   GLOBAL
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

:root {
  --beige: #E2C6AC;
  --charcoal: #3F4042;
  --black: #000;
  --white: #fff;
  --paper: #fbf8f4;
  --muted: #6e6e6e;
  --line: #d8d0c9;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--paper);
  font-family: Poppins, Arial, sans-serif;
  line-height: 1.65;
}

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


/* =========================================
   HEADER
   ========================================= */

.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: auto;
  padding: 0 28px;
  background: var(--paper);
}

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

.brand img {
  display: block;
  height: 58px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
}

nav a {
  color: var(--charcoal);
}

nav a:hover {
  opacity: .65;
}

.nav-cta {
  border: 1px solid var(--charcoal);
  padding: 9px 15px;
}


/* =========================================
   TYPOGRAPHY
   ========================================= */

h1,
h2,
h3 {
  font-family: Poppins, Arial, sans-serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.035em;
  margin: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(45px, 6vw, 76px);
}

h2 {
  font-size: clamp(39px, 5vw, 64px);
}

h1,
h2 {
  color: var(--charcoal);
}

h1 span,
h2 span {
  color: #8d6b52;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .16em;
  color: #777;
}

.lead {
  max-width: 570px;
  margin: 27px 0 32px;
  font-size: 16px;
  color: var(--muted);
}


/* =========================================
   HERO
   ========================================= */

.hero {
  min-height: 650px;
  max-width: var(--max);
  margin: auto;
  padding: 65px 28px 90px;
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 70px;
  align-items: center;
}


/* =========================================
   HERO IMAGE
   ========================================= */

.hero-art {
  min-height: 500px;
  position: relative;
  overflow: hidden;
  background: #ddd;
}

.hero-art img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
}


/* =========================================
   BUTTONS
   ========================================= */

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 0 20px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  transition: .2s;
}

.primary {
  background: var(--charcoal);
  color: #fff;
}

.secondary {
  border: 1px solid var(--charcoal);
  background: transparent;
}

.button:hover {
  transform: translateY(-2px);
}


/* =========================================
   INTRO
   ========================================= */

.intro {
  background: var(--beige);
  padding: 105px 28px;
  text-align: center;
}

.intro h2 span {
  display: inline-block;
  color: #fff;
}

.section-lead {
  max-width: 650px;
  margin: 24px auto 62px;
  color: var(--charcoal);
  font-size: 16px;
}


/* =========================================
   VALUES
   ========================================= */

.values {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: left;
  gap: 50px;
}

.values article {
  border-top: 1px solid rgba(63, 64, 66, .5);
  padding-top: 17px;
}

.number {
  font-size: 10px;
  letter-spacing: .15em;
}

.values h3 {
  font-size: 25px;
  margin: 15px 0 7px;
}

.values p {
  font-size: 14px;
  margin: 0;
  max-width: 310px;
}


/* =========================================
   TORCHLIGHT
   ========================================= */

.torchlight {
  max-width: var(--max);
  margin: auto;
  padding: 65px 28px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 12px;
}

.section-heading > p {
  max-width: 300px;
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}


/* =========================================
   LOCATION GRID
   ========================================= */

.locations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}


/* =========================================
   LOCATION CARD
   ========================================= */

.location {
  position: relative;
  min-height: 305px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  outline: none;
  color: #fff;
  background: #222;
}


/* =========================================
   LOCATION IMAGE
   ========================================= */

.location-image {
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image: var(--location-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform: scale(1);
  opacity: 1;

  transition:
    transform 1.2s ease,
    filter .6s ease;
}

.location-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: 0.35s ease all;
  width: 100%;
}


/* =========================================
   DISCOVERED IMAGE
   ========================================= */

.location-discovered {
  position: absolute;
  inset: 0;

  z-index: 1;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0;
  pointer-events: none;

  transition: opacity .7s ease;
}


/* =========================================
   DARK OVERLAY
   ========================================= */

.location::after {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 2;

  background: rgba(0, 0, 0, .55);

  pointer-events: none;

  /* Invisible until the description is actually visible */
  opacity: 0;

  transition: opacity .55s ease;
}

/* Darken only while the description is open */
.location.is-open::after {
  opacity: 1;
}


/* =========================================
   LOCATION CONTENT
   ========================================= */

.location-content {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  z-index: 4;

  padding: 0 28px 20px;

  pointer-events: none;

  /* text-shadow for increased readability */
  text-shadow: 0px 0px 4px #000;
}


/* =========================================
   LOCATION TITLE
   ========================================= */

.location h3 {
  position: relative;

  z-index: 5;

  margin: 0;

  color: #fff;

  font-size: 24px;

  line-height: 1.1;

  transform: translateY(0);

  opacity: 1;

  transition:
    opacity .3s ease,
    transform .55s cubic-bezier(.22, 1, .36, 1);
}


/* =========================================
   LOCATION DESCRIPTION
   ========================================= */

.location-description {
  position: absolute;

  left: 28px;
  right: 28px;

  bottom: 58px;

  max-width: 430px;

  margin: 0;

  opacity: 0;

  transform: translateY(22px);

  transition:
    opacity .4s ease .05s,
    transform .55s cubic-bezier(.22, 1, .36, 1);

  pointer-events: none;
}

.location-description p {
  margin: 0;

  color: rgba(255, 255, 255, .94);

  font-size: 12px;

  line-height: 1.65;
}

/**
 * Classes for changing the location cards to a "revealed" state
 * Revealed cards have a darker text background, and a different image
 */
.is-revealed .location-image img {
  opacity: 1;
}

.is-open .location-description {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================
   DESKTOP HOVER
   ========================================= */

@media (hover: hover) and (pointer: fine) {

  /*
     Hover temporarily opens the card.
     The persistent .is-revealed state is
     still respected independently.
  */

  .location:hover .location h3 {
    opacity: 0;

    transform: translateY(12px);
  }

  .location:hover .location-description {
    opacity: 1;

    transform: translateY(0);
  }

  .location:hover .location-image {
    transform: scale(1.025);
  }
}


/* =========================================
   KEYBOARD ACCESSIBILITY
   ========================================= */

.location:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .9);
  outline-offset: -5px;
}


/* =========================================
   STORY
   ========================================= */

.story {
  background: var(--charcoal);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.story-art {
  min-height: 600px;
  position: relative;
  overflow: hidden;
  background: #ddd;
}

.story-art img {
  position: absolute;
  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.story-copy {
  padding: 90px clamp(35px, 7vw, 100px);
  align-self: center;
}

.story-copy .eyebrow {
  color: #d7d7d7;
}

.story-copy h2 {
  color: #fff;
}

.story-copy h2 span {
  color: var(--beige);
}

.story-copy p:not(.eyebrow):not(.signature) {
  color: #ddd;
  max-width: 520px;
  font-size: 14px;
}

.signature {
  font-size: 14px;
  letter-spacing: .06em;
  margin-top: 30px;
  color: var(--beige);
}


/* =========================================
   KICKSTARTER
   ========================================= */

.kickstarter {
  background: var(--beige);
  color: var(--charcoal);

  padding:
    92px
    max(28px, calc((100vw - var(--max)) / 2));

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 40px;
}

.kickstarter h2 span {
  color: #fff;
}

.kickstarter p:not(.eyebrow) {
  max-width: 540px;
  font-size: 14px;
}

.button.light {
  background: var(--charcoal);
  color: #fff;
  white-space: nowrap;
}


/* =========================================
   NEWSLETTER
   ========================================= */

.newsletter {
  background: #fff;
  color: #fff;

  padding: 92px max(28px, calc((100vw - var(--max)) / 2));

  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}

.newsletter-copy {
  max-width: 540px;
}

.newsletter-copy .eyebrow {
  color: #3F4042;
}

.newsletter-copy h2 {
  color: #8d6b52;
}

.newsletter-copy h2 span {
  color: var(--beige);
}

.newsletter-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin: 26px 0 0;
  color: #3F4042;
  font-size: 14px;
}

.newsletter-form {
  width: 100%;
  max-width: 540px;
  justify-self: end;

  background: #fff;
  color: var(--charcoal);
  padding: 32px;
  min-height: 220px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-form form {
  width: 100%;
  max-width: 460px;
}

/* =========================================
   NEWSLETTER — MOBILE
   ========================================= */

@media (max-width: 800px) {

  .newsletter {
    grid-template-columns: 1fr;
    padding: 72px 25px;
    gap: 35px;
  }

  .newsletter-copy,
  .newsletter-form {
    max-width: none;
  }

  .newsletter-form {
    padding: 25px 20px;
  }

}

/* =========================================
   FOOTER
   ========================================= */

footer {
  max-width: var(--max);
  margin: auto;

  padding: 58px 28px 32px;

  display: grid;

  grid-template-columns: 2fr 1fr;

  gap: 40px;
}

.footer-logo {
  display: block;

  height: 90px;

  width: auto;

  max-width: 190px;

  object-fit: contain;

  mix-blend-mode: multiply;
}

footer p {
  max-width: 430px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;

  flex-direction: column;

  gap: 8px;

  font-size: 14px;
  font-weight: 500;
}

.copyright {
  grid-column: 1 / -1;

  border-top: 1px solid var(--line);

  padding-top: 18px;

  margin-top: 18px;

  font-size: 9px;
}


/* =========================================
   TABLET / MOBILE
   ========================================= */

@media (max-width: 800px) {

  .site-header {
    height: auto;
    padding: 20px;
    align-items: center;
  }

  .brand img {
    height: 48px;
    width: auto;
    max-width: 160px;
  }

  nav {
    gap: 10px;
    font-size: 11px;
  }

  nav a:nth-child(1),
  nav a:nth-child(2) {
    display: none;
  }


  /* HERO */

  .hero {
    grid-template-columns: 1fr;

    padding: 55px 20px 70px;

    gap: 42px;
  }

  .hero-art {
    min-height: 450px;
  }

  .hero-art img {
    width: 100%;
    height: 450px;

    object-fit: cover;
    object-position: center;
  }


  /* VALUES */

  .values {
    grid-template-columns: 1fr;
    gap: 35px;
  }


  /* SECTIONS */

  .intro,
  .torchlight {
    padding: 40px 20px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 20px;
  }


  /* LOCATION GRID */

  .locations {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .location {
    min-height: 320px;
  }


  /* STORY */

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

  .story-art {
    min-height: 380px;
  }

  .story-copy {
    padding: 70px 25px;
  }


  /* KICKSTARTER */

  .kickstarter {
    padding: 72px 25px;
    display: block;
  }

  .kickstarter .button {
    margin-top: 20px;
  }


  /* FOOTER */

  footer {
    grid-template-columns: 1fr;
    padding: 48px 20px 25px;
  }

  .footer-logo {
    height: 85px;
  }
}


/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 480px) {

  .location {
    min-height: 280px;
  }

  .location-content {
    padding: 0 22px 18px;
  }

  .location h3 {
    font-size: 22px;
  }

  .location-description {
    left: 22px;
    right: 22px;

    bottom: 54px;
  }

  .location-description p {
    font-size: 11px;
  }

  .hero-art {
    min-height: 400px;
  }

  .hero-art img {
    height: 400px;
  }

  .brand img {
    height: 44px;
    max-width: 145px;
  }
}

