@font-face {
  font-family: "Pinyon Script";
  src: url("/fonts/pinyonscript.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Archivo Narrow";
  src: url("/fonts/archivonarrow.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Baskervville;
  src: url("/fonts/baskervville.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f0eee4;
  --ink: #202c4f;
  --copy: #34405b;
  --muted: #525a6d;
  --rule: #a5a5aa;
  --button-pink: #e9cbd5;
  --button-hover: #dfbac9;
  --button-ink: #fff;
  --button-border: #986b7d;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --narrow: "Archivo Narrow", "Arial Narrow", sans-serif;
  --serif: "Baskervville", Baskerville, Georgia, serif;
  --paper-surface:
    radial-gradient(ellipse at 53% 29%, #fffdf450, transparent 64%),
    url("/images/ivory-weave.webp") repeat;
  background: var(--paper-surface);
  background-color: var(--paper);
  background-blend-mode: normal, multiply;
  color: var(--ink);
  font: 17px/1.45 var(--serif);
}
* { box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: transparent;
  isolation: isolate;
}
.paper-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--paper-surface);
  background-color: var(--paper);
  background-blend-mode: normal, multiply;
  pointer-events: none;
}
h1, h2, h3, p, figure { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }

.page {
  width: min(100% - 48px, 740px);
  margin-inline: auto;
  height: 100dvh;
  display: grid;
  align-content: center;
  padding-block: 12px;
  font-family: var(--serif);
  text-transform: uppercase;
  text-shadow: .18px 0 currentColor;
  -webkit-text-size-adjust: 100%;
}
.letterhead, footer { background: transparent; }
.letterhead { text-align: center; }
.letterhead h1 { margin-inline: auto; width: min(100%, 740px, 89dvh); }
.letterhead img { mix-blend-mode: multiply; }
.beauty-signature {
  position: relative;
  display: block;
  margin: -.51em auto 0;
  font: 400 clamp(28px, 5.2vw, 50px)/1 var(--script);
  text-transform: lowercase;
}
.intro-copy {
  margin: 12px auto 0;
  font-size: clamp(15px, 3.1vw, 27px);
  line-height: 1.14;
  letter-spacing: .025em;
  text-wrap: balance;
}
#consultations { width: min(100%, 480px); margin: clamp(14px, 3svh, 32px) auto 0; }
#consultation-heading {
  font: 400 clamp(17px, 3svh, 23px)/1.15 var(--serif);
  letter-spacing: .055em;
  text-align: center;
  margin-bottom: 4px;
}
#services { list-style: none; padding: 0; margin: 0; }
.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(6px, 2.4vw, 24px);
  min-height: 52px;
  padding-block: 3px;
}
.product-card + .product-card { border-top: 1px solid #202c4f2b; }
.service-title { font: 400 clamp(17px, 3.6vw, 22px)/1.1 var(--serif);
  letter-spacing: .035em; margin: 0; }
.product-scope { color: var(--ink); font: 400 clamp(12px, 2.6vw, 14px)/1.2 var(--serif); }
.price { font: 400 clamp(13px, 3.4vw, 17px)/1 var(--serif); white-space: nowrap; }

.action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--button-border);
  padding: 8px 14px;
  background:
    linear-gradient(115deg, #fff3 0%, transparent 48%, #72506012 100%),
    url("/images/ivory-weave.webp") 40% 55% / 240px 60px;
  background-color: var(--button-pink);
  background-blend-mode: normal, multiply;
  box-shadow: inset 0 0 0 2px #fff3, 0 0 0 1px #986b7d26;
  color: var(--button-ink);
  text-decoration: none;
  font: 400 .83rem/1.18 var(--serif);
  text-transform: uppercase;
  letter-spacing: .025em;
  text-shadow: 0 1px 1px #762348, 0 0 1px #762348, .45px 0 currentColor;
  border-radius: 2px 4px 3px 4px;
}
.action:hover { background-color: var(--button-hover); }
.ink-definitions { position: absolute; pointer-events: none; }
.letterhead img, .beauty-signature, .intro-copy, #consultation-heading,
.service-title, .product-scope, .price, .preview-label, footer nav > *,
dialog h2, dialog h3, dialog p, dialog li, dialog label, dialog legend,
dialog .action:not(.checkout-stamp), dialog .text-link {
  filter: url("#feather-ink");
}
:is(.service-cta, .checkout-stamp) {
  position: relative;
  width: 55px;
  min-height: 48px;
  margin-block: 1px;
  padding: 12px 4px 3px;
  border: 0;
  border-radius: 50%;
  color: #874c65;
  background: transparent;
  box-shadow: none;
  text-shadow: .15px 0 currentColor;
  font-size: .68rem;
  transform: rotate(-10deg);
}
.product-card:nth-child(even) .service-cta { transform: rotate(8deg); }
:is(.service-cta, .checkout-stamp):hover { background-color: #e9cbd552; }
.stamp-seal {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 55px;
  height: 55px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: url("#feather-ink");
}
.stamp-seal circle {
  fill: #e9cbd533;
  stroke: #a66982;
  stroke-width: 1.25;
  stroke-dasharray: 29 1 19 1 28 2 70 1;
}
.stamp-seal text { fill: currentColor; font: 9px var(--serif); letter-spacing: .8px; }
.stamp-label { position: relative; filter: url("#feather-ink"); }
.preview-label { font: 400 .76rem/1.2 var(--serif);
  text-transform: uppercase; color: var(--muted); }
#booking-state { margin-top: 8px; text-align: center; font: 400 .69rem/1.2 var(--serif); }
footer { margin-top: clamp(4px, 1.4svh, 16px); text-align: center; color: var(--muted); }
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 15px; }
footer nav > * { display: inline-flex; align-items: center; min-height: 44px; font: 400 .69rem/1 var(--serif);
  text-transform: uppercase; }
footer button, .text-link {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
}
footer a, footer button, .text-link { text-decoration: underline; text-underline-offset: 4px; }
.text-link { font: 400 .78rem/1.2 var(--serif); text-transform: uppercase; }

dialog {
  width: min(100% - 28px, 640px);
  max-height: calc(100dvh - 28px);
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: clamp(22px, 5vw, 45px);
}
dialog::backdrop { background: rgb(27 30 48 / .6); }
.dialog-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--rule);
}
.service-dialog-art {
  width: clamp(95px, 23vw, 142px);
  height: 85px;
  margin: -9px auto 10px;
}
.intake-art {
  height: 100px;
  margin-top: 15px;
  background: url("/images/lotus-canopy.webp") center 43% / cover;
  mix-blend-mode: multiply;
}
.policy-art {
  height: 26px;
  max-width: 220px;
  margin: 0 auto 14px;
  background: url("/images/lotus-paper-garden.webp") center 68% / 110px auto repeat-x;
  mask-image: linear-gradient(90deg, transparent, black 18%, black 82%, transparent);
}
dialog h2 { font-size: clamp(44px, 7vw, 65px); text-align: center; }
dialog p, dialog li { color: var(--copy); }
#service-dialog > p { max-width: 50ch; margin-inline: auto; text-align: center; }
#service-dialog > .action:not([hidden]) { display: flex; width: fit-content; margin-inline: auto; }
#intake-heading { text-align: center; }
dialog p + p, dialog p + .action { margin-top: 13px; }
dialog .action + .action, #hosted-test-checkout { margin-top: 7px; }
h3 { font: 400 clamp(38px, 6vw, 52px)/1.05 var(--script); margin: 30px 0 10px; }
#intake { margin-top: 25px; border-top: 1px solid var(--rule); }
form { margin-top: 16px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 400 18px/1.15 var(--serif); text-transform: uppercase; margin: 14px 0 8px; }
label { display: block; margin: 0 0 14px; font: 600 1rem/1.3 var(--narrow); }
input:not([type=checkbox]), textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-top: 5px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: #fffdfa;
  padding: 8px 10px;
  font-size: 1rem;
}
textarea { min-height: 82px; resize: vertical; }
.fields, .budget { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.check { display: flex; gap: 10px; align-items: baseline; }
.check input { accent-color: var(--ink); }
.product { margin-bottom: 14px; padding: 0 12px 12px; border: 1px solid var(--rule); }
.product legend { padding-inline: 5px; }
#add-product { margin-bottom: 18px; }
.muted { color: var(--muted); font-size: .87rem; }
#intake-status:not(:empty) { margin-top: 12px; }

dialog {
  font-family: var(--serif);
  background: var(--paper) url("/images/ivory-weave.webp") repeat;
  background-blend-mode: multiply;
}
dialog h2 {
  font: 400 clamp(23px, 5vw, 37px)/1.1 var(--serif);
  text-transform: uppercase;
  margin-bottom: 15px;
}
dialog p, dialog li { font-size: .84rem; text-transform: uppercase; }
#intake-heading { font: 400 1.2rem/1.2 var(--serif); text-transform: uppercase; }
label { font-family: var(--serif); }
.service-dialog-art img {
  width: min(100%, 210px);
  max-height: 140px;
  object-fit: contain;
  margin: 0 auto 18px;
  mix-blend-mode: multiply;
}
#service-includes { width: fit-content; max-width: 100%; margin-inline: auto; padding-left: 1.25em; }
[hidden] { display: none !important; }
@media (max-height: 640px) {
  .letterhead h1 { max-width: min(100%, 51svh); }
}
@media (max-width: 420px) {
  .page { width: calc(100% - 36px); }
  .fields { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .page { width: calc(100% - 24px); }

}

@media (max-height: 560px) {
  .page { padding-block: 7px; }
  .letterhead h1 { max-width: min(100%, 57dvh); }
  .beauty-signature { font-size: 25px; }
  .intro-copy { margin-top: 7px; font-size: clamp(13px, 3vw, 18px); }
  #consultations { margin-top: 9px; }
  footer { margin-top: 0; }
}
@media (max-height: 455px) {
  .page { width: min(100% - 20px, 860px); }
  .page main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px; }
  .letterhead h1 { max-width: 100%; }
  #consultations { margin-top: 0; }
  .product-card { min-height: 45px; padding-block: 0; }
  .service-cta { min-height: 44px; }
  .stamp-seal { width: 45px; height: 45px; }
  .product-scope { font-size: 10px; }
  footer nav > * { min-height: 28px; }
}

:root { --floral-height: clamp(47px, 10dvh, 92px); }
body::after {
  --floral-tile-width: calc(var(--floral-height) * 760 / 380);
  content: "";
  position: fixed;
  inset: auto 0 0 calc(-1 * var(--floral-tile-width));
  height: var(--floral-height);
  pointer-events: none;
  background: url("/images/floral-border.webp") left bottom / var(--floral-tile-width) 100% repeat-x;
  filter: saturate(.55);
  opacity: .64;
  mix-blend-mode: multiply;
}
.page {
  padding-top: max(7px, env(safe-area-inset-top));
  padding-right: env(safe-area-inset-right);
  padding-bottom: calc(max(var(--floral-height), env(safe-area-inset-bottom)) + 5px);
  padding-left: env(safe-area-inset-left);
}
@media (max-height: 560px) {
  :root { --floral-height: clamp(25px, 7dvh, 39px); }
}

/* Multiply keeps the ink washes on the paper without visible photo edges. */
.lotus-wash {
  position: absolute;
  left: -5vw;
  width: clamp(230px, 36vw, 590px);
  aspect-ratio: 4 / 3;
  background: center / contain no-repeat;
  mix-blend-mode: multiply;
  filter: saturate(.48) contrast(.94) brightness(1.04);
  opacity: .2;
}
.lotus-float {
  top: 5dvh;
  left: 0;
  width: min(43vw, 320px);
  background-image: url("/images/lotus-petal.webp");
  transform: translateX(2vw);
  opacity: .15;
}
.lotus-float:nth-child(2) {
  top: 34dvh;
  background-image: url("/images/lotus-wash-blooms.webp");
  transform: translateX(67vw);
}
.lotus-float:nth-child(3) {
  top: 55dvh;
  width: min(35vw, 250px);
  transform: translateX(38vw);
}
.lotus-bloom {
  bottom: 0;
  left: max(-6vw, -55px);
  width: clamp(190px, 34vw, 480px);
  aspect-ratio: 780 / 675;
  transform-origin: 52% 96%;
}
.lotus-blossom, .lotus-bud {
  position: absolute;
  inset: 0;
  background: center / contain no-repeat;
}
.lotus-blossom {
  background-image: url("/images/lotus-stem.webp");
  transform-origin: 52% 64%;
}
.lotus-bud {
  inset: 6% 15% 30%;
  background-image: url("/images/lotus-petal.webp");
  opacity: 0;
}
.page { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .lotus-bloom { animation: lotus-sway 12s ease-in-out infinite; }
  .lotus-blossom { animation: lotus-open 21s ease-in-out both; }
  .lotus-bud { animation: lotus-bud-fade 21s ease-in-out both; }
}
@keyframes lotus-sway {
  0%, 100% { transform: rotate(-2deg); }
  26% { transform: rotate(3deg); }
  51% { transform: rotate(1deg); }
  76% { transform: rotate(-4deg); }
}
@keyframes lotus-open {
  0%, 10% { transform: scaleX(.62) scaleY(.87); opacity: .25; }
  38% { opacity: .65; }
  100% { transform: none; opacity: 1; }
}
@keyframes lotus-bud-fade {
  0%, 12% { opacity: 1; transform: scale(.76); }
  70%, 100% { opacity: 0; transform: scale(1.02); }
}

@media (prefers-reduced-motion: no-preference) {
  body::after {
    will-change: transform;
    animation: fleur-scroll 26s linear infinite;
  }
}
@keyframes fleur-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(var(--floral-tile-width)); }
}

#service-dialog > .checkout-stamp:not([hidden]) {
  width: 94px;
  min-height: 94px;
  padding: 20px 13px 6px;
  margin-block: 14px;
  text-align: center;
  font-size: .73rem;
  transform: rotate(-6deg);
}
.checkout-stamp .stamp-seal { width: 100%; height: 100%; }
.checkout-stamp:disabled { opacity: .65; cursor: wait; }

@media (prefers-reduced-motion: no-preference) {
  .signature-intro .service-cta {
    animation-delay: .25s;
  }
  .signature-intro .product-card:nth-child(2) .service-cta { animation-delay: .68s; }
  .signature-intro .product-card:nth-child(3) .service-cta { animation-delay: 1.11s; }
  .signature-intro .product-card:nth-child(4) .service-cta { animation-delay: 1.54s; }
  .signature-intro .service-cta::before,
  .signature-intro .service-cta::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 55px;
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
    animation-delay: inherit;
  }
  .signature-intro .service-cta::before {
    background: #885d70;
    mix-blend-mode: multiply;
    animation-name: postmark-press;
    animation-duration: .62s;
    animation-fill-mode: both;
  }
  .signature-intro .service-cta::after {
    box-shadow: inset 0 1px 3px #7259638c, 0 1px 1px #fff9;
    animation-name: paper-impression;
    animation-duration: .62s;
    animation-fill-mode: both;
  }
  .signature-intro .service-cta:is(:focus-visible, :active),
  .signature-intro .service-cta:is(:focus-visible, :active)::before,
  .signature-intro .service-cta:is(:focus-visible, :active)::after { animation: none; }
  .signature-intro .service-cta:is(:focus-visible, :active)::before,
  .signature-intro .service-cta:is(:focus-visible, :active)::after { opacity: 0; }
}
@keyframes postmark-press {
  0% { opacity: 0; transform: translate(-39%, -75%) scale(1.42); filter: blur(6px); }
  18% { opacity: .24; transform: translate(-44%, -64%) scale(1.22); filter: blur(3px); }
  38% { opacity: .46; transform: translate(-50%, -50%) scale(.97, .9); filter: blur(.7px); }
  55% { opacity: .26; transform: translate(-50%, -51%) scale(1); filter: blur(1px); }
  100% { opacity: 0; transform: translate(-54%, -72%) scale(1.19); filter: blur(5px); }
}
@keyframes paper-impression {
  0%, 27% { opacity: 0; transform: translate(-50%, -50%) scale(.96); }
  40% { opacity: .55; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.04); }
}
@media (prefers-reduced-motion: no-preference) {
  .signature-intro .service-cta > * {
    animation: stamp-ink-transfer .62s linear both;
    animation-delay: inherit;
  }
  .signature-intro .service-cta:is(:focus-visible, :active) > * { animation: none; }
}
@keyframes stamp-ink-transfer {
  0%, 27% { opacity: 0; }
  39% { opacity: .82; }
  61%, 100% { opacity: 1; }
}

@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .letterhead img, .beauty-signature, .intro-copy, #consultation-heading,
  .service-title, .product-scope, .price, .preview-label, footer nav > *,
  .stamp-seal, .stamp-label {
    filter: none;
  }
  .lotus-wash, body::after {
    filter: none;
    mix-blend-mode: normal;
  }
  .lotus-wash {
    mix-blend-mode: multiply;
    opacity: .12;
  }
  .lotus-float:nth-child(3) { display: none; }
  .signature-intro .service-cta::before {
    mix-blend-mode: normal;
    animation-name: mobile-postmark-press;
  }
}
@keyframes mobile-postmark-press {
  0% { opacity: 0; transform: translate(-39%, -75%) scale(1.42); }
  20% { opacity: .17; }
  38% { opacity: .42; transform: translate(-50%, -50%) scale(.97, .9); }
  100% { opacity: 0; transform: translate(-54%, -72%) scale(1.19); }
}
