:root {
  --bg: #f3eee6;
  --text: #111111;
  --muted: #4e4944;
  --black: #111111;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: "DM Sans", Arial, sans-serif;
}

img,
svg {
  display: block;
}

/* =========================================================
   DESKTOP / LAPTOP
   ========================================================= */

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg);
}

.desktop-bg {
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image: url("assets/hero.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.mobile-image {
  display: none;
}

.content {
  position: relative;
  z-index: 1;

  width: 50%;
  min-height: 100vh;
  min-height: 100svh;

  margin-left: auto;
  padding: 42px 56px 38px;

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

.content-inner {
  width: min(100%, 640px);
  margin: 0 auto;
  text-align: center;
}

.logo {
  width: min(340px, 68%);
  height: auto;
  margin: 0 auto 52px;
}

h1 {
  margin: 0;

  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 3.15vw, 64px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 610px;
  margin: 32px auto 0;

  color: var(--muted);
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.55;
  font-weight: 300;
}

.lead-second {
  margin-top: 12px;
}

.instagram-button {
  width: min(100%, 540px);
  min-height: 68px;

  margin: 34px auto 0;
  padding: 0 25px;

  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  align-items: center;
  column-gap: 18px;

  background: var(--black);
  color: var(--white);
  text-decoration: none;

  transition: opacity .2s ease, transform .2s ease;
}

.instagram-button:hover {
  opacity: .92;
}

.instagram-button:active {
  transform: translateY(1px);
}

.button-label {
  display: block;
  width: 100%;
  text-align: center;
  color: var(--white);
  font-size: 15px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: .15em;
  white-space: nowrap;
}

.icon-instagram,
.icon-arrow {
  fill: none;
  stroke: var(--white);
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.icon-instagram {
  width: 28px;
  height: 28px;
  stroke-width: 1.7;
}

.ig-dot {
  fill: var(--white);
  stroke: none;
}

.icon-arrow {
  width: 30px;
  height: 30px;
  stroke-width: 2.1;
}

.thanks {
  margin-top: 45px;
}

.thanks p {
  margin: 0;

  font-size: 13px;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: .30em;
}

.icon-heart {
  width: 30px;
  height: 30px;
  margin: 17px auto 0;

  fill: none;
  stroke: var(--text);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   SMALLER LAPTOPS
   ========================================================= */

@media (max-width: 1400px) and (min-width: 901px) {
  .content {
    width: 49%;
    padding-inline: 38px;
  }

  .content-inner {
    width: min(100%, 570px);
  }

  .logo {
    width: min(300px, 66%);
    margin-bottom: 38px;
  }

  h1 {
    font-size: clamp(44px, 3vw, 58px);
    line-height: 0.99;
    font-weight: 500;
  }

  .lead {
    margin-top: 26px;
    font-size: 16px;
  }

  .instagram-button {
    min-height: 64px;
    margin-top: 29px;
  }

  .thanks {
    margin-top: 32px;
  }
}

/* =========================================================
   TABLET / MOBILE
   On small screens the banner is shown separately above the text.
   ========================================================= */

@media (max-width: 900px) {
  .page {
    min-height: 100svh;
    overflow: visible;
  }

  .desktop-bg {
    display: none;
  }

  .mobile-image {
    display: block;
    width: 100%;
    height: clamp(330px, 56vw, 470px);
    overflow: hidden;
    background: var(--bg);
  }

  .mobile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* Focus on the woman + dog in the wide source banner */
    object-position: 24% center;
  }

  .content {
    width: 100%;
    min-height: auto;
    margin-left: 0;
    padding: 44px 28px 72px;
    background: var(--bg);
  }

  .content-inner {
    width: min(100%, 640px);
  }

  .logo {
    width: min(270px, 66%);
    margin-bottom: 28px;
  }

  h1 {
    font-size: clamp(39px, 6.2vw, 50px);
    line-height: 1;
    font-weight: 500;
    letter-spacing: -0.025em;
  }

  .lead {
    max-width: 580px;
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.55;
  }

  .lead-second {
    margin-top: 11px;
  }

  .instagram-button {
    margin-top: 25px;
  }

  .thanks {
    margin-top: 37px;
  }
}

/* =========================================================
   PHONES
   ========================================================= */

@media (max-width: 600px) {
  .mobile-image {
    height: 60vw;
    min-height: 270px;
    max-height: 340px;
  }

  .mobile-image img {
    object-position: 23% center;
  }

  .content {
    padding: 36px 18px 64px;
  }

  .logo {
    width: min(225px, 68%);
    margin-bottom: 24px;
  }

  h1 {
    font-size: clamp(34px, 9.3vw, 42px);
    line-height: 1;
    font-weight: 500;
    letter-spacing: -0.025em;
  }

  .lead {
    margin-top: 19px;
    font-size: 15px;
    line-height: 1.55;
  }

  .lead-second {
    margin-top: 10px;
  }

  .instagram-button {
    min-height: 60px;
    margin-top: 23px;
    padding: 0 17px;
    grid-template-columns: 24px minmax(0, 1fr) 24px;
    column-gap: 12px;
  }

  .button-label {
    font-size: 11.5px;
    line-height: 1.15;
    letter-spacing: .105em;
    white-space: nowrap;
    text-align: center;
  }

  .icon-instagram {
    width: 24px;
    height: 24px;
  }

  .icon-arrow {
    width: 25px;
    height: 25px;
  }

  .thanks {
    margin-top: 34px;
  }

  .thanks p {
    font-size: 11px;
    line-height: 1.75;
    letter-spacing: .22em;
  }

  .icon-heart {
    width: 27px;
    height: 27px;
    margin-top: 14px;
  }
}

/* Very narrow phones */
@media (max-width: 380px) {
  .content {
    padding-inline: 15px;
  }

  h1 {
    font-size: 32px;
  }

  .instagram-button {
    padding-inline: 15px;
  }

  .button-label {
    font-size: 10.5px;
    letter-spacing: .09em;
  }
}
