:root {
  color-scheme: light;
  --sage: #516f5f;
  --sage-dark: #3e574a;
  --sage-soft: #789184;
  --cream: #f4f1eb;
  --paper: #e8e8e5;
  --ink: #fbf7f0;
  --text: #284036;
  --line: rgb(255 255 255 / 42%);
  --shadow: 0 24px 70px rgb(25 36 31 / 22%);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--sage);
}

body {
  margin: 0;
  background: var(--sage);
  color: var(--ink);
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgb(81 111 95 / 88%);
  border-bottom: 1px solid rgb(255 255 255 / 20%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: .04em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 22px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.main-nav a {
  text-decoration: none;
}

.cart-toggle {
  position: relative;
  min-height: 38px;
  padding: 0 42px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  letter-spacing: .04em;
}

.cart-toggle span {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--text);
  font-size: 12px;
  transform: translateY(-50%);
}

.hero,
.section {
  min-height: 100svh;
  padding: clamp(64px, 8vw, 110px) clamp(20px, 6vw, 90px);
  scroll-margin-top: 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(34px, 8vw, 120px);
  background: var(--paper);
  color: var(--text);
}

.hero-copy {
  align-self: center;
}

.eyebrow,
.new-label {
  margin: 0 0 30px;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: .08em;
}

.eyebrow.light {
  color: rgb(255 255 255 / 78%);
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  line-height: .92;
  letter-spacing: 0;
}

h1 {
  max-width: 330px;
  font-size: clamp(76px, 9vw, 132px);
}

h2 {
  font-size: clamp(54px, 7vw, 112px);
}

h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(31px, 3.5vw, 52px);
  font-weight: 400;
  line-height: 1;
}

.hero-device {
  position: relative;
  padding: 28px 28px 46px;
  border: 16px solid #050505;
  border-bottom-width: 28px;
  border-radius: 30px 30px 10px 10px;
  background: #0a0a0a;
  box-shadow: var(--shadow);
}

.hero-device::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -48px;
  width: min(88vw, 820px);
  height: 20px;
  border-radius: 0 0 22px 22px;
  background: #777;
  transform: translateX(-50%);
}

.laptop-screen {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  background: var(--sage);
  color: var(--ink);
}

.laptop-screen img {
  width: 130px;
  opacity: .9;
}

.laptop-screen p {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 4.5vw, 68px);
}

.laptop-screen span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
}

.about,
.summary,
.custom-section,
.thanks {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(34px, 7vw, 100px);
}

.about p,
.custom-section p,
.thanks p,
.section-heading p,
.collection-heading p {
  max-width: 640px;
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.7;
}

.signature {
  width: 150px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
}

.portrait {
  margin: 0;
  justify-self: center;
}

.portrait img {
  width: min(520px, 78vw);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px 0 0;
  box-shadow: var(--shadow);
}

.summary-list {
  margin: 24px 0 0;
  padding-left: 20px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.8;
}

.summary {
  overflow: hidden;
}

.summary-art {
  position: relative;
  min-height: 520px;
}

.summary-art img {
  position: absolute;
  width: min(250px, 42vw);
  box-shadow: var(--shadow);
}

.summary-art img:nth-child(1) {
  right: 130px;
  top: 20px;
  transform: rotate(-8deg);
}

.summary-art img:nth-child(2) {
  right: 30px;
  top: 160px;
  transform: rotate(7deg);
}

.summary-art img:nth-child(3) {
  right: 190px;
  top: 250px;
  transform: rotate(-3deg);
}

.collections-section {
  background: var(--sage-dark);
}

.section-heading {
  max-width: 940px;
  margin-bottom: 56px;
}

.collection {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.collection-heading {
  display: grid;
  grid-template-columns: minmax(230px, 420px) minmax(260px, 1fr);
  gap: 28px 60px;
  align-items: end;
  margin-bottom: 34px;
}

.collection-heading h2 {
  grid-row: span 2;
}

.collection-heading .eyebrow {
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.product-card {
  min-height: 100%;
  display: grid;
  grid-template-rows: 260px 1fr;
  width: 100%;
  padding: 0;
  border: 0;
  background: rgb(244 241 235 / 97%);
  color: var(--text);
  box-shadow: 0 16px 40px rgb(24 32 28 / 16%);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgb(24 32 28 / 24%);
  outline: 0;
}

.product-image {
  display: grid;
  place-items: center;
  padding: 14px;
  background: #f7f3ed;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-content {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.price {
  margin: 0;
  font-weight: 600;
}

.details-link {
  width: fit-content;
  margin-top: 6px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.custom-section {
  grid-template-columns: 1fr;
  min-height: auto;
}

.custom-heading {
  max-width: 860px;
}

.custom-heading h2 {
  font-size: clamp(52px, 7vw, 96px);
}

.custom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.custom-grid article {
  background: rgb(244 241 235 / 97%);
  color: var(--text);
  box-shadow: 0 16px 40px rgb(24 32 28 / 14%);
}

.custom-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.custom-grid h3,
.custom-grid p {
  padding: 0 20px;
}

.custom-grid h3 {
  margin-top: 20px;
}

.custom-grid p {
  font-size: 15px;
  line-height: 1.6;
  padding-bottom: 20px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 18px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
}

.thanks-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 14px;
}

.thanks-collage img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--cream);
}

.product-dialog {
  width: min(920px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  background: var(--cream);
  color: var(--text);
  box-shadow: 0 30px 90px rgb(0 0 0 / 38%);
}

.product-dialog::backdrop {
  background: rgb(22 32 28 / 72%);
  backdrop-filter: blur(6px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgb(40 64 54 / 24%);
  border-radius: 50%;
  background: rgb(244 241 235 / 86%);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.dialog-body {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(280px, 1fr);
}

.dialog-image {
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 24px;
  background: #f7f3ed;
}

.dialog-image img {
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: contain;
}

.dialog-content {
  padding: clamp(30px, 5vw, 58px);
}

.dialog-content h2 {
  font-size: clamp(48px, 6vw, 82px);
}

.dialog-eyebrow {
  margin-bottom: 16px;
  color: var(--sage);
}

.dialog-price {
  margin: 18px 0 22px;
  font-size: 22px;
  font-weight: 600;
}

.dialog-content ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
}

.dialog-note {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgb(40 64 54 / 20%);
  line-height: 1.6;
}

.add-cart-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.add-cart-form label,
.customer-grid label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.add-cart-form input,
.add-cart-form textarea,
.customer-grid input,
.customer-grid textarea {
  width: 100%;
  border: 1px solid rgb(40 64 54 / 24%);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  font: inherit;
  letter-spacing: 0;
  padding: 12px 13px;
  text-transform: none;
}

.add-cart-button,
.order-submit {
  min-height: 48px;
  border: 0;
  background: var(--sage-dark);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.order-submit:disabled {
  cursor: wait;
  opacity: .7;
}

.cart-dialog {
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 0;
  background: var(--cream);
  color: var(--text);
  box-shadow: 0 30px 90px rgb(0 0 0 / 38%);
}

.cart-dialog::backdrop {
  background: rgb(22 32 28 / 72%);
  backdrop-filter: blur(6px);
}

.cart-panel {
  display: grid;
  gap: 24px;
  padding: clamp(28px, 5vw, 58px);
}

.cart-panel h2 {
  font-size: clamp(52px, 7vw, 86px);
}

.cart-items {
  display: grid;
  gap: 14px;
  max-height: 340px;
  overflow: auto;
  padding-right: 6px;
}

.cart-empty {
  margin: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 14px;
  background: #fff;
}

.cart-item img {
  width: 92px;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--cream);
}

.cart-item h3 {
  font-size: 30px;
}

.cart-line-price {
  margin: 6px 0 10px;
  font-weight: 600;
}

.cart-item dl {
  display: grid;
  gap: 4px 10px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.cart-item dt {
  font-weight: 700;
}

.cart-item dd {
  margin: 0 0 6px;
}

.remove-item {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgb(40 64 54 / 20%);
  font-size: 20px;
}

.customer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.customer-grid .wide {
  grid-column: 1 / -1;
}

.cart-status {
  min-height: 24px;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .about,
  .summary,
  .custom-section,
  .thanks,
  .collection-heading {
    grid-template-columns: 1fr;
  }

  .hero-device {
    padding: 18px 18px 34px;
    border-width: 10px;
    border-bottom-width: 22px;
  }

  .laptop-screen {
    min-height: 260px;
  }

  .summary-art {
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .summary-art img,
  .summary-art img:nth-child(1),
  .summary-art img:nth-child(2),
  .summary-art img:nth-child(3) {
    position: static;
    width: 100%;
    transform: none;
  }

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

  .dialog-body {
    grid-template-columns: 1fr;
  }

  .dialog-image {
    min-height: 280px;
  }

  .customer-grid,
  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
  }
}

@media (max-width: 560px) {
  .main-nav {
    font-size: 11px;
    gap: 10px 14px;
  }

  .hero,
  .section {
    padding: 54px 18px;
  }

  .product-card {
    grid-template-rows: 220px 1fr;
  }
}
