:root {
  --ivory: #fbfaf6;
  --paper: #fffefb;
  --ink: #22231f;
  --muted: #77766f;
  --gold: #b6914f;
  --gold-deep: #876a37;
  --gold-pale: #e4d3ad;
  --lotus: #a86f7d;
  --lotus-pale: #ead7db;
  --leaf: #456b61;
  --leaf-pale: #dce7e1;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", Arial, sans-serif;
  --khmer: "Noto Serif Khmer", "Khmer OS", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 3% 19%, rgba(234, 215, 219, 0.72), transparent 25rem),
    radial-gradient(circle at 92% 83%, rgba(220, 231, 225, 0.84), transparent 28rem),
    linear-gradient(135deg, var(--paper), var(--ivory) 54%, #f8f5ee);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(182, 145, 79, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 145, 79, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 92%);
}

a {
  color: inherit;
}

.page-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100% - 48px, 1480px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 22px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 112px;
  border-bottom: 1px solid rgba(135, 106, 55, 0.22);
  animation: reveal-down 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
}

.brand-name {
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1;
}

.brand-khmer {
  color: var(--gold);
  font-family: var(--khmer);
  font-size: 1rem;
  line-height: 1.45;
}

.edition,
.eyebrow,
.arrival-label,
.side-note,
.site-footer {
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.edition {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(470px, 0.84fr);
  align-items: center;
  gap: clamp(28px, 5vw, 96px);
  min-height: calc(100svh - 190px);
  padding: clamp(48px, 7vh, 96px) 0 clamp(32px, 4vh, 58px);
}

.hero-copy {
  z-index: 2;
  max-width: 760px;
  padding-left: clamp(0px, 3vw, 46px);
  animation: reveal-up 1100ms 130ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  color: var(--leaf);
  font-size: 0.74rem;
  font-weight: 500;
}

.eyebrow span {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--lotus);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.65rem, 7.2vw, 7.35rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.87;
  text-wrap: balance;
}

h1 em {
  display: inline-block;
  margin-top: 0.16em;
  color: var(--gold-deep);
  font-weight: 400;
}

.arrival {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: clamp(40px, 7vh, 78px);
}

.arrival-rule {
  width: clamp(54px, 7vw, 102px);
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--lotus));
}

.arrival div {
  display: grid;
  gap: 5px;
}

.arrival-label {
  color: var(--muted);
  font-size: 0.68rem;
}

.arrival strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.product-gallery {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  width: 100%;
  min-height: clamp(500px, 69vh, 760px);
  animation: soften-in 1300ms 240ms ease-out both;
}

.photo-frame {
  position: absolute;
  inset: 2% 7% 5%;
  overflow: hidden;
  z-index: -1;
  border: 1px solid rgba(182, 145, 79, 0.62);
  border-radius: 999px 999px 26px 26px;
  background: var(--paper);
  box-shadow: 0 35px 90px rgba(86, 68, 38, 0.17), 0 8px 24px rgba(86, 68, 38, 0.08);
}

.photo-frame::before {
  position: absolute;
  inset: 13px;
  z-index: 2;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: inherit;
}

.photo-frame::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%, rgba(182, 145, 79, 0.08));
}

.photo-crop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.campaign-image {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: block;
  width: 128%;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
}

.side-note {
  position: absolute;
  z-index: 2;
  top: 48%;
  margin: 0;
  color: rgba(77, 74, 67, 0.7);
  font-size: 0.61rem;
  font-weight: 500;
  writing-mode: vertical-rl;
}

.side-note-left {
  left: 2.5%;
  transform: rotate(180deg);
}

.side-note-right {
  right: 2.5%;
}

.site-footer {
  min-height: 78px;
  border-top: 1px solid rgba(135, 106, 55, 0.18);
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 500;
}

.site-footer p {
  margin: 0;
}

.site-footer [lang="km"] {
  font-family: var(--khmer);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.inquiry {
  display: flex;
  align-items: baseline;
  gap: 14px;
  text-transform: none;
  letter-spacing: 0;
}

.inquiry span {
  color: var(--muted);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.inquiry a {
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-decoration-color: rgba(135, 106, 55, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.inquiry a:hover,
.inquiry a:focus-visible {
  color: var(--lotus);
  text-decoration-color: currentColor;
}

@keyframes reveal-down {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soften-in {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@media (max-width: 1020px) {
  .page-shell {
    width: min(100% - 24px, 820px);
    padding-inline: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 64px;
  }

  .hero-copy {
    max-width: 720px;
    padding-left: 2vw;
  }

  h1 {
    font-size: clamp(4rem, 11vw, 6.5rem);
  }

  .arrival {
    margin-top: 42px;
  }

  .product-gallery {
    width: min(100%, 620px);
    min-height: 670px;
    margin: 0 auto;
  }

  .campaign-image {
    width: 132%;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: 100%;
    padding-inline: 20px;
  }

  .site-header {
    min-height: 88px;
  }

  .brand {
    gap: 9px;
  }

  .brand-name {
    font-size: 1.25rem;
    letter-spacing: 0.19em;
  }

  .brand-khmer {
    font-size: 0.86rem;
  }

  .edition {
    display: none;
  }

  .hero {
    min-height: auto;
    gap: 44px;
    padding: 52px 0 30px;
  }

  .hero-copy {
    padding: 0 4px;
    text-align: center;
  }

  .eyebrow {
    justify-content: center;
    margin-bottom: 24px;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
  }

  .eyebrow span {
    display: none;
  }

  h1 {
    font-size: clamp(3.15rem, 16vw, 4.7rem);
    line-height: 0.91;
  }

  .arrival {
    justify-content: center;
    margin-top: 34px;
  }

  .arrival-rule {
    width: 52px;
  }

  .arrival div {
    text-align: left;
  }

  .product-gallery {
    width: calc(100% + 8px);
    min-height: min(137vw, 570px);
    margin-left: -4px;
  }

  .photo-frame {
    inset-inline: 2%;
    inset-block: 1% 5%;
  }

  .campaign-image {
    width: 158%;
  }

  .side-note-left {
    left: -2px;
  }

  .side-note-right {
    right: -2px;
  }

  .site-footer {
    min-height: 96px;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    padding-block: 18px;
  }

  .inquiry {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
  }
}

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