:root {
  --background: #ffffff;
  --text: #111111;
  --muted: #6e625b;
  --line: #ece6e0;
  --deep-brown: #3a080a;
  --pink: #f9c9d6;
  --green: #c7eec0;
  --coffee: #c8a98a;
  --soft-pink: #fff4f7;
  --soft-green: #f5fff3;
  --max: 1680px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 104px;
  padding: 18px clamp(18px, 3vw, 54px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}

.nav-right {
  justify-content: flex-end;
}

.site-header nav a {
  position: relative;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--deep-brown);
}

.site-header nav a::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 700;
  line-height: 0.95;
  color: var(--deep-brown);
  text-align: center;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 104px);
  background: var(--background);
}

.hero-image-wrap {
  align-self: start;
  width: 100%;
  background: #f7efe9;
}

.hero-image {
  width: 100%;
  height: min(68vh, 760px);
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: clamp(20px, 3vw, 52px);
  align-items: end;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 70px) clamp(18px, 3vw, 54px);
}

.hero-copy h1 {
  max-width: 930px;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(48px, 6.2vw, 118px);
  font-weight: 600;
  line-height: 0.92;
  color: var(--text);
}

.hero-copy p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--text);
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--text);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--deep-brown);
}

.button-secondary {
  background: #ffffff;
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--soft-pink);
}

.shop {
  width: 100%;
  padding: clamp(54px, 7vw, 112px) clamp(12px, 2.5vw, 36px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto clamp(24px, 3vw, 46px);
  width: min(100%, var(--max));
}

.section-heading p,
.section-label,
.product-category {
  margin: 0;
  color: var(--coffee);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-heading h2,
.about-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(38px, 4.2vw, 76px);
  font-weight: 600;
  line-height: 0.98;
  color: var(--text);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.3vw, 20px);
  width: 100%;
}

.product-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  animation: cardIn 420ms ease both;
  animation-delay: var(--delay);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.product-card:hover,
.product-card:focus-within {
  border-color: var(--coffee);
  box-shadow: 0 16px 40px rgba(58, 8, 10, 0.08);
  transform: translateY(-3px);
}

.product-card a {
  display: grid;
  min-height: 100%;
  padding: clamp(14px, 1.4vw, 22px);
}

.product-image-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  margin: 14px 0 18px;
  background:
    linear-gradient(145deg, rgba(249, 201, 214, 0.28), rgba(199, 238, 192, 0.16)),
    #ffffff;
  border-radius: 4px;
  overflow: hidden;
}

.product-image-frame img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  transition: transform 220ms ease;
}

.product-card:hover .product-image-frame img,
.product-card:focus-within .product-image-frame img {
  transform: scale(1.035);
}

.product-info {
  display: grid;
  gap: 12px;
  align-self: end;
}

.product-title {
  min-height: 3.9em;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 1.7vw, 34px);
  font-weight: 600;
  line-height: 1.06;
  color: var(--text);
}

.product-price {
  color: var(--deep-brown);
  font-size: 14px;
  font-weight: 700;
}

.product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 2px;
  background: var(--text);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background 180ms ease;
}

.product-card:hover .product-link,
.product-card:focus-within .product-link {
  background: var(--deep-brown);
}

.load-error {
  grid-column: 1 / -1;
  padding: 36px;
  border: 1px solid var(--line);
  text-align: center;
}

.about {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 86px);
  align-items: center;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 128px) clamp(18px, 3vw, 54px);
  border-top: 1px solid var(--line);
}

.about-media {
  position: relative;
  background: var(--soft-green);
  border-radius: 6px;
  overflow: hidden;
}

.about-media::before {
  position: absolute;
  inset: 16px auto auto 16px;
  width: 72px;
  height: 72px;
  border-top: 12px solid var(--pink);
  border-left: 12px solid var(--pink);
  content: "";
  z-index: 1;
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 24%;
}

.about-copy {
  max-width: 820px;
}

.about-copy h2 {
  margin: 12px 0 24px;
}

.about-copy p {
  margin: 0 0 18px;
  color: #2a2420;
  font-size: clamp(16px, 1.05vw, 19px);
  line-height: 1.75;
}

.about-copy .signoff {
  margin-top: 30px;
  color: var(--deep-brown);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 2.4vw, 44px);
  line-height: 1.12;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 30px clamp(18px, 3vw, 54px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--deep-brown);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-brand {
  justify-self: end;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--deep-brown);
  font-size: 24px;
  font-weight: 700;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
  }

  .nav-right {
    justify-content: center;
    flex-wrap: wrap;
    order: 2;
  }

  .brand {
    order: 1;
  }

  .hero {
    min-height: auto;
  }

  .hero-image {
    height: 48vh;
  }

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

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .about-media {
    max-width: 620px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 16px;
  }

  .brand {
    white-space: normal;
  }

  .nav-right {
    gap: 14px 20px;
  }

  .hero-image {
    height: 52vh;
    object-position: center;
  }

  .hero-copy {
    padding-top: 28px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

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

  .product-title {
    min-height: auto;
  }

  .about {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
