:root {
  --black: #111111;
  --white: #f7f6f2;
  --cream: #eeece5;
  --grey: #77736c;
  --line: #d5d2ca;
  --accent: #d8ff3e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: "DM Sans", sans-serif;
  line-height: 1.5;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =========================
   HEADER
========================= */

.header {
  height: 82px;
  padding: 0 5vw;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid var(--line);

  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(12px);
}

.logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.logo span {
  font-weight: 400;
  margin-left: 5px;
}

.nav {
  display: flex;
  gap: 38px;
}

.nav a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.nav a:hover {
  opacity: .5;
}

.cart-button {
  border: 1px solid var(--black);
  background: transparent;

  padding: 10px 16px;

  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cart-button span {
  margin-left: 7px;
}

.mobile-menu {
  display: none;

  border: 0;
  background: transparent;

  font-size: 22px;
}


/* MOBILE NAV */

.mobile-nav {
  display: none;

  padding: 25px 5vw;

  border-bottom: 1px solid var(--line);

  background: var(--white);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;

  text-transform: uppercase;
  font-size: 13px;
}


/* =========================
   HERO
========================= */

.hero {
  min-height: calc(100vh - 82px);

  padding: 7vw 5vw;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;

  align-items: center;
}

.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
}

.hero h1 {
  margin-top: 24px;

  font-size: clamp(58px, 8vw, 120px);

  line-height: .88;
  letter-spacing: -.065em;
  font-weight: 500;
}

.hero h1 em,
.intro h2 em,
.final-cta h2 em {
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

.hero-description {
  max-width: 390px;

  margin-top: 38px;

  font-size: 16px;
  color: var(--grey);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 30px;

  margin-top: 35px;

  padding: 16px 20px;

  background: var(--black);
  color: var(--white);

  font-size: 11px;
  letter-spacing: .12em;

  transition: .25s;
}

.primary-button:hover {
  background: #333;
  transform: translateY(-2px);
}

.primary-button span {
  font-size: 18px;
}

.hero-image {
  position: relative;
}

.photo-frame {
  width: 100%;
  aspect-ratio: .78;

  overflow: hidden;

  background: #ddd;
}

.photo-frame img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 1s ease;
}

.photo-frame:hover img {
  transform: scale(1.03);
}

.image-caption {
  display: block;

  margin-top: 12px;

  font-size: 9px;
  letter-spacing: .15em;
  color: var(--grey);
}


/* =========================
   INTRO
========================= */

.intro {
  padding: 10vw 5vw;

  background: var(--cream);

  border-top: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;

  gap: 10vw;

  margin-top: 55px;
}

.intro h2 {
  font-size: clamp(42px, 5.5vw, 82px);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 500;
}

.intro-text {
  padding-top: 10px;
  max-width: 420px;
}

.intro-text p {
  margin-bottom: 25px;

  font-size: 17px;
  color: var(--grey);
}


/* =========================
   PRINT SECTION
========================= */

.print-section {
  padding: 9vw 5vw;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;

  padding-bottom: 35px;

  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin-top: 12px;

  font-size: clamp(40px, 5vw, 70px);

  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 500;
}

.section-number {
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--grey);
}


/* =========================
   BUILDER
========================= */

.print-builder {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 7vw;

  padding-top: 55px;
}

.upload-box {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 600px;

  border: 1px dashed #aaa;
  background: #e9e7e0;

  cursor: pointer;

  overflow: hidden;

  position: relative;

  transition: .25s;
}

.upload-box:hover {
  border-color: var(--black);
  background: #e3e1da;
}

.upload-icon {
  width: 55px;
  height: 55px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 25px;

  border: 1px solid var(--black);

  border-radius: 50%;

  font-size: 25px;
}

.upload-placeholder {
  text-align: center;
}

.upload-box h3 {
  font-size: 18px;
  font-weight: 500;
}

.upload-box p {
  margin-top: 10px;

  font-size: 12px;
  line-height: 1.8;

  color: var(--grey);
}

.upload-button {
  display: inline-block;

  margin-top: 25px;

  padding: 12px 16px;

  background: var(--black);
  color: white;

  font-size: 10px;
  letter-spacing: .1em;
}

.preview-image {
  display: none;

  width: 100%;
  height: 100%;

  object-fit: contain;
}


/* =========================
   OPTIONS
========================= */

.options {
  padding-top: 5px;
}

.option-group {
  margin-bottom: 45px;
}

.option-group > label,
.quantity-row label {
  display: block;

  margin-bottom: 15px;

  font-size: 10px;
  font-weight: 600;

  letter-spacing: .16em;
  color: var(--grey);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 8px;
}

.option {
  padding: 20px 13px;

  background: transparent;

  border: 1px solid var(--line);

  display: flex;
  flex-direction: column;
  gap: 7px;

  text-align: left;

  transition: .2s;
}

.option span {
  font-size: 14px;
}

.option small {
  font-size: 11px;
  color: var(--grey);
}

.option:hover,
.option.active {
  background: var(--black);
  color: white;
  border-color: var(--black);
}

.option.active small {
  color: #bbb;
}


/* PAPER */

.paper-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paper {
  display: flex;
  align-items: center;
  gap: 15px;

  width: 100%;

  padding: 15px;

  text-align: left;

  border: 1px solid var(--line);
  background: transparent;
}

.paper.active {
  border-color: var(--black);
}

.paper-swatch {
  width: 42px;
  height: 42px;

  display: block;

  border: 1px solid #ccc;
}

.lustre {
  background: linear-gradient(
    135deg,
    #f5f4ee,
    #d8d6ce
  );
}

.gloss {
  background: linear-gradient(
    135deg,
    white,
    #aaa
  );
}

.matte {
  background: #dedbd1;
}

.paper strong {
  display: block;

  font-size: 13px;
  font-weight: 500;
}

.paper small {
  display: block;

  margin-top: 3px;

  color: var(--grey);
  font-size: 11px;
}


/* QUANTITY */

.quantity-row {
  display: flex;
  justify-content: space-between;
  align-items: end;

  padding: 25px 0;

  border-top: 1px solid var(--line);
}

.quantity {
  display: flex;
  align-items: center;

  border: 1px solid var(--line);
}

.quantity button {
  width: 42px;
  height: 42px;

  border: 0;
  background: transparent;

  font-size: 18px;
}

.quantity span {
  min-width: 40px;

  text-align: center;

  font-size: 13px;
}

.price {
  text-align: right;
}

.price span {
  display: block;

  margin-bottom: 5px;

  font-size: 9px;
  letter-spacing: .15em;
  color: var(--grey);
}

.price strong {
  font-size: 27px;
  font-weight: 500;
}


/* ADD CART */

.add-cart {
  width: 100%;

  padding: 19px;

  border: 0;

  background: var(--black);
  color: white;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 11px;
  letter-spacing: .15em;

  transition: .25s;
}

.add-cart:hover {
  background: #333;
}

.add-cart span {
  font-size: 20px;
}


/* =========================
   HOW IT WORKS
========================= */

.how-section {
  padding: 9vw 5vw;

  background: var(--cream);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  margin-top: 60px;

  border-top: 1px solid var(--line);
}

.step {
  padding: 25px 25px 25px 0;

  border-right: 1px solid var(--line);
}

.step:not(:first-child) {
  padding-left: 25px;
}

.step:last-child {
  border-right: 0;
}

.step > span {
  font-size: 10px;
  color: var(--grey);
}

.step h3 {
  margin-top: 70px;

  font-size: 25px;
  font-weight: 500;

  letter-spacing: -.04em;
}

.step p {
  max-width: 200px;

  margin-top: 12px;

  font-size: 13px;
  color: var(--grey);
}


/* =========================
   FINAL CTA
========================= */

.final-cta {
  padding: 12vw 5vw;

  text-align: center;
}

.final-cta h2 {
  margin-top: 25px;

  font-size: clamp(55px, 9vw, 130px);

  line-height: .85;
  letter-spacing: -.065em;

  font-weight: 500;
}

.final-cta .primary-button {
  margin-top: 50px;
}


/* =========================
   FOOTER
========================= */

footer {
  padding: 50px 5vw 25px;

  background: var(--black);
  color: white;
}

.footer-top {
  display: flex;
  justify-content: space-between;

  padding-bottom: 80px;
}

.footer-logo {
  font-size: 30px;
  line-height: .85;
  letter-spacing: -.06em;
}

.footer-logo span {
  font-family: "Playfair Display", serif;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  font-size: 11px;
  color: #aaa;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;

  padding-top: 20px;

  border-top: 1px solid #333;

  font-size: 10px;
  color: #777;
}


/* =========================
   CART
========================= */

.cart-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,.4);

  opacity: 0;
  visibility: hidden;

  transition: .3s;

  z-index: 150;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;

  right: 0;
  top: 0;

  width: min(500px, 100%);

  height: 100vh;

  background: var(--white);

  z-index: 200;

  transform: translateX(100%);

  transition: .35s;

  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 30px;

  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.04em;
}

.cart-header button {
  border: 0;
  background: transparent;

  font-size: 30px;
}

.cart-items {
  flex: 1;

  padding: 30px;

  overflow-y: auto;
}

.empty-cart {
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--grey);

  font-size: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;

  gap: 15px;

  padding-bottom: 20px;
  margin-bottom: 20px;

  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 80px;
  height: 80px;

  object-fit: cover;

  background: #ddd;
}

.cart-item h4 {
  font-size: 14px;
  font-weight: 500;
}

.cart-item p {
  margin-top: 5px;

  font-size: 11px;
  color: var(--grey);
}

.remove-item {
  border: 0;
  background: transparent;

  font-size: 11px;
  text-decoration: underline;
}

.cart-footer {
  padding: 25px 30px 30px;

  border-top: 1px solid var(--line);
}

.cart-total {
  display: flex;
  justify-content: space-between;

  margin-bottom: 20px;
}

.cart-total span {
  font-size: 10px;
  letter-spacing: .15em;
}

.cart-total strong {
  font-size: 25px;
  font-weight: 500;
}

.checkout {
  width: 100%;

  padding: 17px;

  border: 0;

  background: var(--black);
  color: white;

  font-size: 11px;
  letter-spacing: .15em;
}


/* =========================
   TOAST
========================= */

.toast {
  position: fixed;

  left: 50%;
  bottom: 30px;

  transform: translate(-50%, 100px);

  padding: 13px 20px;

  background: var(--black);
  color: white;

  font-size: 11px;
  letter-spacing: .08em;

  opacity: 0;

  transition: .3s;

  z-index: 300;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 800px) {

  .header {
    height: 70px;
  }

  .nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-nav.open {
    display: block;
  }

  .cart-button {
    margin-left: auto;
    margin-right: 15px;
  }

  .hero {
    min-height: auto;

    padding-top: 70px;
    padding-bottom: 70px;

    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .hero h1 {
    font-size: clamp(55px, 17vw, 90px);
  }

  .photo-frame {
    aspect-ratio: 1 / 1.15;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .print-builder {
    grid-template-columns: 1fr;
  }

  .upload-box {
    min-height: 400px;
  }

  .option-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .step {
    border-bottom: 1px solid var(--line);
  }

  .step:nth-child(2) {
    border-right: 0;
  }

  .step:nth-child(3) {
    padding-left: 0;
    border-right: 1px solid var(--line);
  }

  .footer-top {
    flex-direction: column;
    gap: 50px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}


@media (max-width: 500px) {

  .header {
    padding: 0 20px;
  }

  .logo {
    font-size: 14px;
  }

  .hero,
  .intro,
  .print-section,
  .how-section,
  .final-cta {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero h1 {
    font-size: 57px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }

  .section-heading h2 {
    font-size: 45px;
  }

  .option-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step,
  .step:not(:first-child) {
    padding: 25px 0;

    border-right: 0;
  }

  .step h3 {
    margin-top: 30px;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

}