:root {
  color-scheme: light;
  --white: #ffffff;
  --ink: #141414;
  --brown: #3b2a1f;
  --light-brown: #a8896b;
  --tube-brown: #b8987a;
  --silver: #bfc1c3;
  --line: rgba(168, 137, 107, 0.38);
  --serif: "Cormorant Garamond", serif;
  --khmer: "Moulpali", serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--white); }
body {
  min-width: 320px;
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 5px;
}
.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 9px 13px;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--brown);
  border: 1px solid var(--brown);
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  width: min(1320px, 100%);
  min-height: 82px;
  margin: 0 auto;
  padding: 14px clamp(18px, 4.5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-logo {
  flex: 0 0 auto;
  color: var(--brown);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.header-logo em {
  color: var(--light-brown);
  font-weight: 500;
}
.header-logo[aria-current="page"]::after {
  content: "";
  display: block;
  width: 100%;
  margin-top: 7px;
  border-bottom: 1px solid var(--light-brown);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(7px, 1.2vw, 16px);
  color: var(--brown);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.site-nav a {
  padding: 4px 0;
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  color: var(--light-brown);
  box-shadow: inset 0 -1px 0 var(--light-brown);
}
.nav-divider {
  color: var(--light-brown);
  font-size: 15px;
}

.page-width {
  width: min(1160px, calc(100% - 64px));
  margin-right: auto;
  margin-left: auto;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--brown);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  color: var(--brown);
  font-family: var(--serif);
  font-weight: 400;
}

.home-hero {
  min-height: min(760px, calc(100svh - 82px));
  padding-top: clamp(46px, 7vw, 100px);
  padding-bottom: clamp(46px, 7vw, 100px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
  grid-template-rows: auto 1fr;
  align-items: center;
  column-gap: clamp(24px, 6vw, 92px);
}
.home-brand { grid-column: 1; grid-row: 1; align-self: end; }
.full-logo {
  position: relative;
  width: min(100%, 570px);
  aspect-ratio: 620 / 380;
  color: var(--brown);
}
.logo-parcelle {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--brown);
  font-size: clamp(88px, 12vw, 142px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.9;
  white-space: nowrap;
}
.logo-khmere {
  position: absolute;
  top: 16%;
  left: 50%;
  transform: translateX(-38%);
  color: var(--light-brown);
  font-size: clamp(76px, 10.8vw, 128px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.9;
  white-space: nowrap;
  -webkit-text-stroke: 4px var(--white);
  paint-order: stroke fill;
}
.logo-perfumery {
  position: absolute;
  top: 76%;
  left: 0;
  width: 100%;
  color: var(--brown);
  font-size: clamp(12px, 1.8vw, 16px);
  font-weight: 600;
  letter-spacing: 0.48em;
  line-height: 1;
  text-align: center;
}
.home-tube {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: center;
  align-self: center;
  width: min(100%, 330px);
  margin: 0;
}
.home-tube .tube-art { width: 100%; }
.tube-illustration {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
.tube-illustration text {
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  text-anchor: middle;
}
.tube-illustration .tube-top-label,
.tube-illustration .tube-bottom-heading,
.tube-illustration .tube-bottom-detail {
  font-weight: 600;
}
.tube-illustration .tube-top-label { font-size: 12px; letter-spacing: 3.2px; }
.tube-illustration .tube-brand { font-size: 26px; font-weight: 600; }
.tube-illustration .tube-khmere { font-size: 24px; font-style: italic; font-weight: 500; }
.tube-illustration .tube-khmer {
  font-family: var(--khmer);
  font-size: 23px;
  font-weight: 400;
}
.tube-illustration .tube-bottom-heading { font-size: 11px; letter-spacing: 2px; }
.tube-illustration .tube-bottom-detail { font-size: 9px; letter-spacing: 0.55px; }
.home-details {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  padding: 24px 0 0 5px;
}
.home-details .eyebrow { margin-bottom: 10px; }
.home-details h2 {
  margin: 0;
  font-size: clamp(37px, 5vw, 58px);
  line-height: 1;
}
.khmer-name {
  margin: 5px 0 12px;
  color: var(--brown);
  font-family: var(--khmer);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.2;
}
.scent-line {
  margin: 15px 0 19px;
  font-size: 19px;
  line-height: 1.4;
}
.quiet-link {
  display: inline-block;
  padding-bottom: 3px;
  color: var(--brown);
  border-bottom: 1px solid var(--light-brown);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.quiet-link span { padding-left: 7px; color: var(--light-brown); }

.story-page {
  min-height: calc(100svh - 222px);
  padding-top: clamp(95px, 18vh, 190px);
  padding-bottom: clamp(95px, 18vh, 190px);
}
.story-page h1, .collection-heading h1 {
  margin: 0 0 16px;
  font-size: clamp(54px, 8vw, 88px);
  line-height: 0.95;
}
.story-page > p:last-child {
  margin: 0;
  font-size: 20px;
}

.product-page { padding-top: clamp(32px, 5vw, 68px); padding-bottom: 92px; }
.product-hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(390px, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.product-visual {
  width: min(100%, 520px);
  justify-self: center;
  margin: 0;
}
.product-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 0.78;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 53% 87%, rgba(64, 52, 39, 0.12), transparent 40%),
    linear-gradient(180deg, #f5f4f1 0%, #f3f2ef 73%, #e6e4df 73.2%, #f8f7f5 73.5%, #f8f7f5 100%);
}
.product-carton {
  position: absolute;
  z-index: 1;
  left: 9%;
  bottom: 7%;
  width: 43%;
  height: 77%;
  filter: drop-shadow(8px 14px 12px rgba(48, 39, 28, 0.13));
}
.product-tube {
  position: absolute;
  z-index: 2;
  right: 3%;
  bottom: 4%;
  width: 49%;
  height: 93%;
  transform: none;
  filter: drop-shadow(10px 13px 12px rgba(48, 39, 28, 0.18));
}
.product-tube .tube-illustration { height: 100%; }
.product-intro { max-width: 560px; }
.product-intro .eyebrow { margin-bottom: 12px; }
.product-intro h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 68px);
  line-height: 1;
}
.product-intro .khmer-name { margin-bottom: 20px; }
.product-type, .product-size, .key-notes, .launch-line {
  margin: 0 0 14px;
  font-size: 18px;
}
.product-type { color: var(--brown); }
.product-size { margin-bottom: 25px; }
.key-notes span:first-child {
  color: var(--brown);
  font-weight: 600;
}
.launch-line { max-width: 445px; margin-top: 22px; }
.product-story, .scent-section {
  max-width: 850px;
  margin: 75px 0 0;
  padding-top: 27px;
  border-top: 1px solid var(--line);
}
.product-story h2, .scent-section h2 {
  margin: 0 0 19px;
  font-size: 36px;
  line-height: 1.1;
}
.origin-line {
  margin: 0 0 12px;
  color: var(--brown);
  font-size: 19px;
}
.story-copy p { margin: 0; font-size: 18px; line-height: 1.65; }
.scent-pyramid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.scent-layer { padding: 18px 20px 0 0; }
.scent-layer + .scent-layer {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.scent-layer h3 {
  margin: 0 0 12px;
  color: var(--brown);
  font-size: 16px;
}
.scent-layer ul { margin: 0; padding: 0; list-style: none; }
.scent-layer li { margin: 0 0 7px; font-size: 17px; }

.collection-page { min-height: calc(100svh - 222px); padding-top: clamp(70px, 12vh, 130px); padding-bottom: 90px; }
.collection-heading { margin-bottom: clamp(42px, 7vw, 80px); }
.collection-heading .eyebrow { margin-bottom: 14px; }
.collection-heading h1 { margin-bottom: 0; }
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 4vw, 50px);
}
.collection-card {
  min-width: 0;
  padding: 16px 12px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.collection-card .tube-art {
  width: min(100%, 205px);
  height: clamp(190px, 28vw, 300px);
  margin: 0 auto 15px;
}
.collection-card .tube-illustration { height: 100%; }
.collection-card h2 {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.15;
  text-align: center;
}

.site-footer {
  width: min(1320px, 100%);
  min-height: 92px;
  margin: 0 auto;
  padding: 21px clamp(18px, 4.5vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--brown);
}
.footer-brand {
  justify-self: start;
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
}
.site-footer p, .footer-contact {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
.footer-contact { justify-self: end; text-decoration-color: var(--light-brown); text-underline-offset: 4px; }

@media (max-width: 700px) {
  .site-header { min-height: 70px; gap: 9px; padding: 12px 16px; }
  .header-logo { font-size: clamp(16px, 4.7vw, 22px); }
  .site-nav { gap: 6px; font-size: clamp(12px, 3.3vw, 14px); }
  .nav-divider { font-size: 13px; }
  .page-width { width: calc(100% - 36px); }
  .home-hero {
    min-height: unset;
    padding-top: 42px;
    padding-bottom: 50px;
    grid-template-columns: minmax(0, 1.08fr) minmax(128px, 0.92fr);
    grid-template-rows: auto 1fr;
    align-items: center;
    gap: 14px 8px;
  }
  .home-brand { grid-column: 1 / -1; grid-row: 1; }
  .full-logo { width: min(100%, 340px); }
  .logo-parcelle { font-size: clamp(76px, 23vw, 108px); }
  .logo-khmere {
    top: 17%;
    font-size: clamp(64px, 18vw, 88px);
    -webkit-text-stroke-width: 3px;
  }
  .logo-perfumery { top: 76%; font-size: clamp(10px, 3vw, 13px); letter-spacing: 0.42em; }
  .home-tube {
    grid-column: 2;
    grid-row: 2;
    width: min(100%, 190px);
    margin: 0 auto;
  }
  .home-details { grid-column: 1; grid-row: 2; padding: 0; }
  .home-details .eyebrow { font-size: 12px; }
  .home-details h2 { font-size: clamp(29px, 8vw, 38px); }
  .home-details .khmer-name { font-size: 37px; }
  .home-details .scent-line { font-size: 16px; }
  .home-details .quiet-link { font-size: 14px; }
  .product-page { padding-top: 30px; padding-bottom: 65px; }
  .product-hero { min-height: unset; grid-template-columns: 1fr; gap: 32px; }
  .product-visual { width: min(100%, 480px); }
  .product-intro { width: 100%; }
  .product-intro h1 { font-size: clamp(42px, 11vw, 58px); }
  .product-story, .scent-section { margin-top: 53px; }
  .scent-layer { padding-right: 10px; }
  .scent-layer + .scent-layer { padding-left: 12px; }
  .scent-layer li { font-size: 16px; }
  .collection-page { min-height: calc(100svh - 190px); padding-top: 70px; padding-bottom: 70px; }
  .collection-grid { gap: 8px; }
  .collection-card { padding: 12px 5px 14px; }
  .collection-card img { height: clamp(150px, 50vw, 220px); margin-bottom: 12px; }
  .collection-card h2 { font-size: clamp(14px, 4vw, 19px); }
  .site-footer { min-height: 82px; grid-template-columns: 1fr auto; gap: 8px 15px; padding: 18px; }
  .footer-brand { font-size: 18px; }
  .site-footer p { grid-column: 1; grid-row: 2; font-size: 13px; }
  .footer-contact { grid-column: 2; grid-row: 1 / span 2; font-size: 14px; }
}

@media (max-width: 370px) {
  .site-header { gap: 7px; padding-right: 12px; padding-left: 12px; }
  .header-logo { font-size: 16px; }
  .site-nav { gap: 4px; font-size: 12px; }
  .nav-divider { font-size: 12px; }
  .page-width { width: calc(100% - 28px); }
  .collection-card h2 { font-size: 13px; }
}

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