:root {
  --cream: #fbf6ea;
  --paper: #fffdf8;
  --ink: #29241f;
  --muted: #766c62;
  --rust: #9f4736;
  --yellow: #e6b957;

  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2 {
  overflow-wrap: break-word;
}


/* HEADER */

.site-header {
  padding: 30px 6vw 10px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
}


/* HERO */

.hero {
  width: min(1180px, 88vw);
  min-height: 760px;
  margin: 0 auto;
  padding: 50px 0 110px;

  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 90px;
  align-items: center;
}

.hero-image-wrap {
  position: relative;

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

.sun {
  position: absolute;

  width: 430px;
  height: 430px;
  max-width: 90%;

  border-radius: 50%;
  background: var(--yellow);
}

.hero-image {
  position: relative;

  width: min(410px, 88%);
  aspect-ratio: 1 / 1;
  height: auto;

  object-fit: cover;

  border: 12px solid var(--paper);

  box-shadow:
    0 28px 70px rgba(74, 52, 33, 0.18);

  transform: rotate(-2deg);
}

.hero-copy {
  width: 100%;
  min-width: 0;
}

.label {
  margin: 0 0 16px;

  color: var(--rust);

  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;

  font-family: var(--serif);
  font-size: clamp(3.5rem, 6vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
}

h1 span {
  color: var(--rust);
}

.blurb {
  width: 100%;
  max-width: 590px;
  margin-top: 34px;

  color: #625950;

  font-size: 1.02rem;
  line-height: 1.8;
}

.blurb p:first-child {
  color: var(--ink);

  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.buy-button {
  display: inline-block;

  margin-top: 26px;
  padding: 15px 26px;

  border-radius: 999px;

  background: var(--rust);
  color: white;

  text-decoration: none;
  font-weight: 600;

  box-shadow:
    0 8px 20px rgba(94, 49, 38, 0.18);

  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.buy-button:hover {
  transform: translateY(-2px);
  background: #803426;
}


/* GALLERY */

.gallery {
  padding: 100px 6vw;

  background: var(--paper);

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.gallery img {
  width: 100%;
  height: 460px;

  object-fit: cover;

  box-shadow:
    0 12px 35px rgba(43, 35, 28, 0.10);
}

.gallery img:nth-child(2) {
  transform: translateY(35px);
}


/* CLOSING SECTION */

.closing {
  width: min(1100px, 86vw);
  margin: 0 auto;
  padding: 145px 0 125px;

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

.closing-image-wrap {
  width: 100%;
  min-width: 0;
}

.closing-image-wrap img {
  width: 100%;
  height: auto;
  max-height: none;

  object-fit: contain;

  box-shadow:
    20px 20px 0 var(--yellow);
}

.closing-copy {
  width: 100%;
  max-width: 470px;
  min-width: 0;
}

.small-star {
  margin: 0 0 10px;

  color: var(--rust);

  font-size: 1.8rem;
}

.closing h2 {
  margin: 0;

  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5.3rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.closing-copy p:last-child {
  margin-top: 22px;

  color: var(--muted);

  font-size: 1.05rem;
  line-height: 1.75;
}


/* FOOTER */

footer {
  padding: 45px 20px;

  text-align: center;

  background: var(--ink);
  color: #eee8df;
}

footer p {
  margin: 4px 0;

  font-size: 0.87rem;
}

.copyright {
  color: #aaa198;

  font-size: 0.76rem;
}


/* TABLET */

@media (max-width: 950px) {

  .hero {
    width: min(92vw, 760px);

    grid-template-columns: 1fr;
    gap: 55px;

    padding-top: 50px;
    padding-bottom: 85px;
  }

  .hero-image-wrap {
    order: 1;
  }

  .hero-copy {
    order: 2;
  }

  .hero-image {
    width: min(440px, 80%);
    aspect-ratio: 1 / 1;
  }

  .blurb {
    max-width: 100%;
  }

  .closing {
    width: min(90vw, 760px);

    grid-template-columns: 1fr;
    gap: 65px;
  }

  .closing-copy {
    max-width: 100%;
  }
}


/* MOBILE */

@media (max-width: 700px) {

  .site-header {
    padding: 20px 18px 6px;
  }

  .brand {
    font-size: 1.25rem;
  }


  /* HERO */

  .hero {
    width: calc(100% - 28px);
    max-width: none;
    min-height: auto;

    margin: 0 auto;

    padding: 30px 0 62px;

    display: grid;
    grid-template-columns: minmax(0, 1fr);

    gap: 36px;
  }

  .hero-image-wrap {
    width: 100%;
    min-width: 0;

    order: 1;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    order: 2;
  }

  .sun {
    width: 250px;
    height: 250px;
  }

  .hero-image {
    width: min(78vw, 330px);
    aspect-ratio: 1 / 1;
    height: auto;

    border-width: 8px;

    object-fit: cover;

    transform: none;
  }

  .label {
    margin-bottom: 10px;

    font-size: 0.72rem;
  }

  h1 {
    width: 100%;
    max-width: 100%;

    font-size: clamp(2.65rem, 12vw, 3.45rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
  }

  .blurb {
    width: 100%;
    max-width: 100%;

    margin-top: 23px;

    font-size: 0.96rem;
    line-height: 1.65;
  }

  .blurb p {
    max-width: 100%;
  }

  .blurb p:first-child {
    font-size: 1.18rem;
    line-height: 1.45;
  }

  .buy-button {
    display: block;

    width: 100%;

    margin-top: 24px;

    padding: 15px 20px;

    text-align: center;
  }


  /* GALLERY */

  .gallery {
    padding: 48px 12px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;
  }

  .gallery img {
    width: 100%;
    height: 210px;

    object-fit: cover;

    transform: none !important;

    box-shadow:
      0 8px 24px rgba(43, 35, 28, 0.10);
  }

  .gallery img:first-child {
    grid-column: span 2;

    height: 300px;
  }


  /* CLOSING */

  .closing {
    width: calc(100% - 28px);
    max-width: none;

    margin: 0 auto;

    padding: 75px 0 70px;

    display: grid;
    grid-template-columns: minmax(0, 1fr);

    gap: 42px;
  }

  .closing-image-wrap {
    width: 100%;
    min-width: 0;
  }

  .closing-image-wrap img {
    width: calc(100% - 12px);
    height: auto;
    max-height: none;

    margin-right: 12px;

    object-fit: contain;

    box-shadow:
      12px 12px 0 var(--yellow);
  }

  .closing-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .closing h2 {
    width: 100%;
    max-width: 100%;

    font-size: clamp(2.8rem, 13vw, 3.8rem);
    line-height: 1;
  }

  .closing-copy p:last-child {
    width: 100%;
    max-width: 100%;

    font-size: 1rem;
    line-height: 1.65;
  }


  /* FOOTER */

  footer {
    padding: 32px 18px;
  }

  footer p {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;

    line-height: 1.5;
  }
}


/* VERY SMALL PHONES */

@media (max-width: 400px) {

  h1 {
    font-size: 2.55rem;
  }

  .gallery img {
    height: 175px;
  }

  .gallery img:first-child {
    height: 250px;
  }

  .closing h2 {
    font-size: 2.7rem;
  }
}
