@font-face {
  font-family: "Dream Avenue";
  src: url("/assets/Dream-Avenue_RGZXAzkU9HlmrlkESX0fQ.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url("/assets/treatments/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url("/assets/Montserrat-Medium_33GCvLpo0jrvPHdYGAcC-.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --linen: #eee5da;
  --paper: #f8f2eb;
  --cacao: #554137;
  --ink: #44392f;
  --muted: #706157;
  --button: #725a43;
  --button-hover: #5e4937;
  --rule: #d4c5b6;
  --display: "Dream Avenue", Georgia, serif;
  --body: Montserrat, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 36px;
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--cacao); color: var(--paper); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 5px; }
button { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; }

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-back, .icon-up { transform: rotate(180deg); }

a:focus-visible, button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

.page-width {
  width: min(1180px, calc(100% - 96px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 4;
  padding: 10px 18px;
  background: var(--paper);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  top: 0;
  inset-inline: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid rgba(248, 242, 235, 0.3);
  color: var(--paper);
}

.back-link, .header-link {
  display: inline-flex;
  min-height: 44px;
  gap: 10px;
  align-items: center;
  justify-self: start;
  font-size: 12px;
  text-decoration: none;
}

.header-link { justify-self: end; }
.back-link:hover, .header-link:hover { text-decoration: underline; }

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  text-decoration: none;
}

.brand img { filter: brightness(0) invert(1); }

.scene-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(680px, 88svh, 900px);
  align-items: center;
  overflow: hidden;
  padding: 164px 0 144px;
  background: var(--cacao);
  color: var(--paper);
}

.scene-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.scene-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(35, 27, 22, 0.73), rgba(35, 27, 22, 0.49) 48%, rgba(35, 27, 22, 0.13));
  content: "";
  pointer-events: none;
}

.scene-copy { position: relative; z-index: 2; text-align: center; }

.scene-copy h1 {
  max-width: 1162px;
  margin-inline: auto;
  font-size: clamp(64px, 7.2vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.scene-copy h1 span { display: block; }
.scene-copy h1 span:last-child { font-size: 0.5em; }
.scene-copy > p { max-width: 703px; margin: 28px auto 0; font-size: 16px; line-height: 1.85; }

.scene-button {
  display: inline-flex;
  min-height: 54px;
  gap: 34px;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding: 14px 23px;
  border-radius: 3px;
  background: var(--button);
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.scene-button:hover { background: var(--button-hover); transform: translateY(-2px); }
.scene-button:active { transform: translateY(1px); }
.product {
  display: grid;
  width: min(1256px, calc(100% - 96px));
  grid-template-columns: minmax(0, 550px) minmax(0, 530px);
  justify-content: space-between;
  gap: clamp(44px, 7vw, 172px);
  align-items: center;
  padding: 100px 0 106px;
}

.product-image-wrap {
  overflow: hidden;
  border-radius: 48% 48% 3px 3px;
  background: #d6c8b6;
}

.product-image {
  width: 100%;
  aspect-ratio: 0.9;
  object-fit: cover;
  object-position: 54% center;
}

.product-title {
  margin-left: -3px;
  font-size: clamp(66px, 7.1vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.product-subtitle {
  margin-top: 25px;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.2;
}

.product-description { max-width: 550px; margin-top: 10px; font-size: 15px; }

.purchase { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--rule); }

.product-price {
  display: flex;
  max-width: 344px;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.product-price p { font-size: 17px; }
.product-price small { color: var(--muted); font-size: 10px; }
.product-price > span { color: var(--muted); font-size: 12px; }

.checkout-button {
  display: flex;
  width: min(100%, 344px);
  min-height: 56px;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 0;
  border-radius: 3px;
  background: var(--button);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  transition: background-color 180ms ease, transform 180ms ease;
}

.checkout-button:not(:disabled):hover { background: var(--button-hover); transform: translateY(-1px); }
.checkout-button:not(:disabled):active { transform: translateY(1px); }
.checkout-button:disabled { background: #d8c0b7; color: var(--ink); cursor: not-allowed; }

.checkout-dialog {
  width: min(520px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  padding: clamp(24px, 5vw, 38px);
  border: 0;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 70px rgba(35, 27, 22, 0.25);
}

.checkout-dialog::backdrop { background: rgba(35, 27, 22, 0.65); }
.checkout-dialog-header { display: flex; align-items: start; gap: 20px; }
.checkout-dialog-header h2 { flex: 1; font-size: clamp(32px, 5vw, 42px); line-height: 1.1; }
.checkout-dialog-close { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 32px; line-height: 1; cursor: pointer; }
.checkout-options { display: grid; gap: 12px; margin-top: 28px; }
.checkout-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 16px 18px; border-radius: 3px; background: var(--button); color: #fff; font-size: 14px; line-height: 1.5; text-decoration: none; }
.checkout-option:hover { background: var(--button-hover); }
.checkout-option:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.checkout-note {
  margin-top: 11px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.checkout-button:not(:disabled) + .checkout-note {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.invoice-note {
  margin-top: 20px;
  font-size: 12px;
}

.invoice-note a {
  text-decoration-color: var(--rule);
}

.invoice-note a:hover, .contact-link:hover { text-decoration-color: var(--ink); }

.ritual {
  display: grid;
  max-width: 1800px;
  grid-template-columns: 1.03fr 1fr;
  margin-inline: auto;
  background: var(--paper);
}

.ritual-visual { position: relative; min-height: 720px; overflow: hidden; }
.ritual-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.ritual-copy { width: min(100%, 720px); padding: clamp(48px, 5.8vw, 88px); }

h2 { font-size: clamp(40px, 4.1vw, 56px); line-height: 1.08; letter-spacing: -0.015em; }
.ritual-intro > p, .details-intro > p { max-width: 535px; margin-top: 24px; color: var(--muted); font-size: 14px; }
.details-intro > p { max-width: 425px; }

.ritual-steps {
  display: grid;
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.ritual-steps li { display: grid; grid-template-columns: 24px 1fr; gap: 18px; padding: 21px 0; border-top: 1px solid var(--rule); }
.ritual-steps li:last-child { padding-bottom: 0; }
.step-number { padding-top: 5px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ritual-steps h3 { margin-bottom: 8px; font-size: 29px; line-height: 1.2; }
.ritual-steps p { max-width: 493px; color: var(--muted); font-size: 14px; line-height: 1.65; }

.product-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  padding: 102px 0 108px;
}

.details-checkout { margin-top: 24px; }
.contact-link { display: inline-flex; min-height: 44px; gap: 18px; align-items: center; margin-top: 16px; font-size: 12px; text-decoration-color: var(--rule); }
.detail-list { margin: 0; }
.detail-list > div { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 23px 0; border-top: 1px solid var(--rule); }
.detail-list > div:last-child { border-bottom: 1px solid var(--rule); }
.detail-list dt { font-size: 14px; }
.detail-list dd { margin: 0; color: var(--muted); font-size: 14px; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 34px;
  border-top: 1px solid var(--rule);
}

.footer-brand { font-family: var(--display); font-size: 28px; line-height: 1.2; text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.footer-links a { display: inline-flex; min-height: 44px; gap: 6px; align-items: center; font-size: 12px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links .icon { width: 16px; height: 16px; }
.site-footer > p { color: var(--muted); font-size: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .scene-copy { animation: scene-arrive 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .scene-image { animation: scene-settle 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
}

@keyframes scene-arrive {
  from { opacity: 0.6; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scene-settle {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}

@media (max-width: 900px) {
  .page-width { width: calc(100% - 56px); }
  .header-link { max-width: 150px; text-align: right; line-height: 1.6; }
  .scene-copy h1 { font-size: 78px; }
  .product { width: calc(100% - 56px); gap: 36px; padding: 76px 0 82px; }
  .product-subtitle { font-size: 26px; }
  .product-price { display: block; }
  .detail-list > div { grid-template-columns: 1fr; gap: 8px; }
  .ritual-copy { padding: 48px 36px; }
  .ritual-visual { min-height: 680px; }
}

@media (max-width: 760px) {
  .ritual { grid-template-columns: 1fr; }
  .ritual-visual { min-height: 0; aspect-ratio: 1.1; }
  .ritual-photo { object-position: center 53%; }
  .ritual-copy { width: min(100%, 620px); margin-inline: auto; padding: 48px 28px 54px; }
}

@media (max-width: 680px) {
  .page-width { width: calc(100% - 40px); }
  .site-header { grid-template-columns: 1fr auto; gap: 16px; padding: 19px 0; }
  .brand { font-size: 27px; }
  .brand img { width: 21px; height: auto; }
  .back-link { font-size: 12px; gap: 7px; }
  .header-link { display: none; }
  .scene-hero { min-height: min(800px, 94svh); padding: 152px 0 112px; }
  .scene-image { object-position: 51% center; }
  .scene-hero::after { background: linear-gradient(90deg, rgba(35, 27, 22, 0.69), rgba(35, 27, 22, 0.36)); }
  .scene-copy h1 { font-size: clamp(36px, 9.3vw, 62px); line-height: 1.03; }
  .scene-copy h1 span:first-child { font-size: clamp(44px, 12vw, 72px); }
  .scene-copy > p { max-width: 38ch; margin-top: 24px; font-size: 14px; }
  .scene-button { margin-top: 28px; }
  .product { width: calc(100% - 40px); grid-template-columns: 1fr; gap: 36px; padding: 56px 0 64px; }
  .product-image-wrap { max-width: 440px; margin-inline: auto; }
  .product-image { aspect-ratio: 0.96; }
  .product-title { font-size: clamp(64px, 16.8vw, 90px); }
  .product-title br { display: none; }
  .product-subtitle { margin-top: 18px; font-size: 29px; }
  .product-description { max-width: 48ch; font-size: 14px; }
  .purchase { margin-top: 24px; }
  .product-price { display: flex; }
  .ritual-visual { aspect-ratio: 0.94; }
  .ritual-copy { padding: 42px 20px 48px; }
  .product-details { grid-template-columns: 1fr; gap: 34px; padding: 56px 0 64px; }
  h2 { font-size: 46px; }
  .ritual-intro > p, .details-intro > p { max-width: 48ch; margin-top: 18px; }
  .ritual-steps { margin-top: 28px; }
  .ritual-steps li { gap: 14px; }
  .ritual-steps p { max-width: 45ch; }
  .product-details { gap: 24px; }
  .detail-list > div { grid-template-columns: 102px 1fr; gap: 14px; padding: 20px 0; }
  .site-footer { display: grid; gap: 12px; padding: 24px 0 30px; }
  .footer-links { gap: 4px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .checkout-button, .scene-button { transition: none; }
}
