/* ------------------------------------------------------------------
   REVEAL: the pages around the sales page (sign-up, thank-you, calendar,
   terms, 404). Loaded after reveal.css, which gives the fonts, colours,
   buttons, the script and eyebrow styles and the 21 dots.
   The same evening light as the hero: a warm ground, the veil's gold,
   one framed photograph, the order written on dusk like the invitation.
   Class names used by signup/checkout.js keep the names they have on the
   Sacred Thresholds sign-up page (field, has-error, code-*, express,
   pay-button, mock-*, terms-dialog ...): only their look is REVEAL's.
   ------------------------------------------------------------------ */

.page {
  --pad: clamp(1.25rem, 3vw, 2.5rem);
  --field-line: #D8C8BE;                 /* field borders: bark softened toward the paper */
  --danger: #8B221E;                     /* 4.5:1 and more on every light ground here */
  --muted: #6A5C57;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--glow);
  position: relative; isolation: isolate;
}
/* the hero's light, behind everything */
.page::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: min(100%, 70rem); z-index: -1; pointer-events: none;
  background:
    radial-gradient(52% 38rem at 78% 9rem, #FFFFFF 0%, rgba(255, 255, 255, .8) 36%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(40% 30rem at 0% 22rem, rgba(232, 207, 174, .4) 0%, rgba(232, 207, 174, 0) 100%);
}
.page main { flex: 1 0 auto; }
.page a:not(.btn) { color: var(--rose-text); text-underline-offset: 3px; }
.page a:not(.btn):hover { color: var(--rose-btn-hover); }
.page [hidden] { display: none !important; }
.page :focus-visible { outline: 2px solid var(--rose-btn); outline-offset: 3px; border-radius: 2px; }
.small { font-size: .88rem; line-height: 1.6; color: var(--muted); }
.ph {
  display: inline; padding: .05em .4em; border: 1px dashed var(--rose); border-radius: 3px;
  background: rgba(199, 146, 136, .12); color: var(--rose-text); font-size: .92em; font-weight: 500;
}

/* ---------- header: the logo and the way back ---------- */
.page-head { padding: calc(1rem + env(safe-area-inset-top, 0px)) 0 1rem; }
.page-head__inner { max-width: calc(1400px + var(--gutter-l) + var(--gutter-r)); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.page-head .logo { display: block; line-height: 0; flex: none; }
.page-head .logo img { width: clamp(128px, 12vw, 172px); height: auto; }
.page-head__back, .back-link {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px;
  font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-decoration: none; white-space: nowrap;
}
.page .page-head__back, .page .back-link { color: var(--ink); }
.page-head__back:hover, .back-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.page-head__back svg, .back-link svg, .btn svg { width: 1em; height: 1em; flex: none; }
@media (max-width: 520px) { .hide-sm { display: none; } }

/* ---------- footer ---------- */
.page-foot { margin-top: clamp(4rem, 9vw, 7rem); background: var(--dusk); color: var(--on-dark-soft); padding-block: 2.2rem calc(2.2rem + env(safe-area-inset-bottom, 0px)); font-size: .82rem; letter-spacing: .04em; line-height: 1.7; }
.page-foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2.5rem; }
.page-foot .logo { display: block; line-height: 0; }
.page-foot .logo img { width: 140px; height: auto; }
.page-foot__text { display: grid; gap: .2rem; }
.page .page-foot a { color: var(--on-dark); }
.page .page-foot a:hover { color: var(--rose-soft); }
.page .page-foot :focus-visible { outline-color: var(--rose-soft); }

/* ---------- the crown: what this page is ---------- */
.crown { display: grid; justify-items: start; gap: 1.1rem; }
.crown h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 300; color: var(--bark); }
.crown .script { margin-bottom: -.5rem; }
/* the name, set as on the sales page: light capitals, widely spaced */
.crown__mark { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: .3em; line-height: 1; color: var(--rose-deep); margin-right: -.3em; }
.crown__sub { font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.4; color: var(--ink); max-width: 30rem; text-wrap: pretty; }
.crown__when {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--bark);
}
/* "It's time to REVEAL." as the sign-up page's title */
.page .lockup { display: grid; justify-items: start; gap: 0; }
.page .lockup .lockup__script { font-family: var(--font-script); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: .9; color: var(--rose-deep); }
.page .lockup .lockup__mark { font-family: var(--font-display); font-weight: 300; font-size: clamp(3.4rem, 8.4vw, 6.4rem); letter-spacing: .14em; line-height: .95; color: var(--bark); margin-left: -.04em; }

/* ---------- photographs: framed, and they only fade in ---------- */
.shot { margin: 0; overflow: hidden; border-radius: 2px; background: rgba(98, 84, 72, .08); }
.shot picture { display: block; width: 100%; height: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
html.js .shot img { opacity: 0; transition: opacity 1.5s var(--ease-soft); }
html.js .shot.in img { opacity: 1; }
@media (prefers-reduced-motion: reduce) { html.js .shot img { opacity: 1; transition: none; } }

/* =====================================================================
   SIGN-UP
   ===================================================================== */
.signup { padding-top: clamp(1.5rem, 4vw, 3.5rem); }
.signup__grid { display: grid; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
@media (min-width: 1000px) {
  .signup__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
  .signup__aside { position: sticky; top: 1.5rem; }
}
.signup__main { display: grid; gap: clamp(2rem, 4vw, 3rem); max-width: 38rem; }

/* the form sits on paper so fields, links and small text keep their contrast */
.form-card {
  background: rgba(253, 251, 248, .92);
  border: 1px solid var(--line);
  border-top: 1px solid var(--rose);
  border-radius: 3px;
  padding: clamp(1.4rem, 3vw, 2.4rem) var(--pad) clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: 0 30px 70px -50px rgba(98, 84, 72, .45);
}
.page form { display: grid; gap: 1.8rem; }
.page fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 1.2rem; min-width: 0; }
.page legend {
  display: block; width: 100%; padding: 0 0 .6rem; margin-bottom: 1.1rem;
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 1.75rem); line-height: 1.15; color: var(--bark);
  border-bottom: 1px solid var(--line);
}
.field { display: grid; gap: .4rem; }
.field label, .label { font-weight: 500; font-size: .98rem; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.hint { font-size: .88rem; line-height: 1.55; color: var(--muted); }
.page input[type=text], .page input[type=email], .page textarea {
  width: 100%; min-height: 3.1rem; padding: .75rem .9rem;
  font: inherit; font-size: max(16px, 1rem); line-height: 1.4; color: var(--ink);
  background: var(--white); border: 1px solid var(--field-line); border-radius: 3px;
  box-shadow: 0 1px 2px rgba(63, 53, 50, .04);
  transition: border-color .2s, box-shadow .2s;
}
.page textarea { min-height: 7rem; resize: vertical; }
.page input:focus, .page textarea:focus { outline: none; border-color: var(--rose-btn); box-shadow: 0 0 0 3px rgba(199, 146, 136, .35); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.field-error { color: var(--danger); font-weight: 600; font-size: .95rem; line-height: 1.5; }
.count { font-size: .85rem; color: var(--muted); text-align: right; }
.count.is-low { color: var(--rose-text); font-weight: 600; }
.email-suggest { font-size: .95rem; line-height: 1.55; }
.suggest-btn { font: inherit; font-weight: 600; color: var(--rose-text); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.suggest-actions { display: inline-flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin-left: .35rem; }
.suggest-btn.alt { font-weight: 500; color: var(--muted); }
.check { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; }
.check input { width: 1.4rem; height: 1.4rem; margin: .2rem 0 0; accent-color: var(--rose-btn); }
.check label { font-weight: 400; font-size: .97rem; line-height: 1.6; }
.field.has-error .check { padding-left: .9rem; border-left: 3px solid var(--danger); }

/* error summary */
.error-summary { padding: 1.1rem 1.3rem; border: 2px solid var(--danger); border-left-width: 6px; border-radius: 3px; background: var(--white); }
.error-summary h2 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; line-height: 1.3; letter-spacing: 0; color: var(--ink); margin-bottom: .4rem; }
.error-summary ul { list-style: disc; margin: 0; padding-left: 1.1rem; }
.page .error-summary a { color: var(--danger); font-weight: 600; }
.error-summary:focus { outline: 3px solid rgba(139, 34, 30, .4); outline-offset: 3px; }

/* payment */
.express { display: grid; gap: .8rem; }
/* while Stripe checks which one-tap buttons this browser offers: laid out, but off-screen */
.express.is-waiting { position: absolute; left: -10000px; top: auto; width: 30rem; opacity: 0; pointer-events: none; }
.wallets-debug { font: 12px/1.4 ui-monospace, monospace; white-space: pre-wrap; word-break: break-word; background: #fff; border: 1px dashed var(--gold); padding: .6rem; margin: 0; }
.express-label, .or { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.or { display: flex; align-items: center; gap: 1rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#payment-element { min-height: 1px; }
.payment-message { padding: .8rem 1rem; border-left: 4px solid var(--danger); border-radius: 0 3px 3px 0; background: #FBF0EE; color: var(--danger); font-weight: 600; line-height: 1.5; }
.pay-row { display: grid; gap: .9rem; }
/* codes: a quiet link that opens a small field; an applied code shows as one line with Remove */
.code-box { display: grid; gap: .6rem; }
.code-toggle, .code-remove {
  justify-self: start; font: inherit; font-size: .88rem; font-weight: 600; color: var(--rose-text);
  background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.code-panel { display: grid; gap: .4rem; }
.code-panel label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.code-row { display: flex; gap: .6rem; }
.code-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; }
.code-apply {
  flex: none; min-height: 3.1rem; padding: 0 1.3rem; border-radius: 3px; border: 1px solid var(--rose-btn);
  background: var(--white); color: var(--rose-btn);
  font: 600 .76rem var(--font-body); letter-spacing: .18em; text-transform: uppercase; cursor: pointer;
  transition: background-color .3s var(--ease-soft);
}
.code-apply:hover { background: #F7ECE9; }
.code-apply:disabled { cursor: progress; opacity: .75; }
.code-msg { font-size: .9rem; font-weight: 600; color: var(--danger); }
.code-applied {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; padding: .75rem .95rem;
  border-left: 2px solid var(--gold); background: rgba(232, 207, 174, .28); font-size: .9rem; color: var(--ink);
}
.code-applied span { font-weight: 600; }
.prepaid-label { font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.3; color: var(--rose-text); }
.prepaid-note { font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 1.9vw, 1.45rem); line-height: 1.4; color: var(--rose-text); }
.bot-check { display: flex; justify-content: center; }
.pay-button { width: 100%; min-height: 3.75rem; gap: .7em; font-size: .84rem; }
.pay-button .spinner { display: none; width: 1.1em; height: 1.1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.pay-button.is-busy .spinner { display: inline-block; }
.pay-button.is-busy, .pay-button:disabled { background: var(--rose-btn-hover); border-color: var(--rose-btn-hover); cursor: progress; }
@keyframes spin { to { transform: rotate(1turn); } }
.secure { display: flex; align-items: flex-start; gap: .5em; font-size: .85rem; line-height: 1.55; color: var(--muted); }
.secure svg { flex: none; width: 1em; height: 1em; margin-top: .25em; color: var(--rose-btn); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 420px) { .pay-button { font-size: .74rem; letter-spacing: .14em; padding-inline: 1rem; } }
@media (prefers-reduced-motion: reduce) { .pay-button .spinner { animation-duration: 2s; } }

/* the demo card form (?pay=mock), drawn to match Stripe's Payment Element on this design */
.mock-card { display: grid; gap: .9rem; }
.mock-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.mock-field { display: grid; gap: .35rem; font-size: .95rem; }
.mock-label { font-weight: 500; color: var(--ink); }
.mock-input-wrap { position: relative; display: block; }
.mock-input {
  width: 100%; min-height: 3.1rem; padding: .75rem .9rem; font: inherit; font-size: max(16px, 1rem); line-height: 1.4; color: var(--ink);
  background: var(--white); border: 1px solid var(--field-line); border-radius: 3px; box-shadow: 0 1px 2px rgba(63, 53, 50, .04); transition: border-color .2s, box-shadow .2s;
}
select.mock-input {
  appearance: none; -webkit-appearance: none; padding: .75rem 1.9rem .75rem .7rem; text-overflow: ellipsis;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239A5B50' stroke-width='1.6'/%3E%3C/svg%3E") right .65rem center no-repeat;
}
.mock-input::placeholder { color: #9A8F8B; }
.mock-input:focus { outline: none; border-color: var(--rose-btn); box-shadow: 0 0 0 3px rgba(199, 146, 136, .35); }
.mock-field.is-invalid .mock-input { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.mock-brand { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.mock-error { color: var(--danger); font-size: .88rem; font-weight: 600; }
.mock-hint { font-size: .85rem; color: var(--muted); line-height: 1.6; }
.mock-fill { font: inherit; color: var(--rose-text); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.mock-link-btn { width: 100%; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 3px; background: #00D66F; color: #011E0F; font: 700 1.25rem/1 var(--font-body); letter-spacing: -.01em; cursor: pointer; }
.mock-dialog { max-width: min(28rem, calc(100vw - 2rem)); padding: 0; border: 0; border-radius: 3px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px rgba(46, 37, 39, .35); }
.mock-dialog::backdrop { background: rgba(46, 37, 39, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.mock-dialog-inner { display: grid; gap: 1rem; padding: 1.6rem; border-top: 3px solid var(--rose); }
.mock-dialog h2 { font-size: 1.6rem; }
.mock-dialog-tag { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mock-dialog-card { font-weight: 600; }
.mock-dialog-actions { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; }
.mock-dialog-cancel { font: inherit; min-height: 44px; background: none; border: 0; color: var(--rose-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 420px) { .mock-row-2 { gap: .7rem; } }

/* ---------- the order: written on dusk, like the invitation ---------- */
.order { position: relative; isolation: isolate; overflow: hidden; border-radius: 3px; background: var(--dusk); color: var(--on-dark); box-shadow: 0 40px 80px -50px rgba(46, 37, 39, .8); }
.order__shot { aspect-ratio: 3 / 2; border-radius: 0; background: #3a2f31; }
.order__shot img { -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); }
.order__veil { position: absolute; inset: auto 0 0 0; height: 62%; z-index: -1; opacity: .5; }
.order__veil img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 100%; }
.order__veil::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--dusk) 0%, rgba(46, 37, 39, .5) 55%, rgba(46, 37, 39, .2) 100%); }
.order__body { display: grid; gap: 1.15rem; padding: clamp(.4rem, 1vw, .8rem) var(--pad) clamp(1.7rem, 3vw, 2.4rem); margin-top: -1.2rem; position: relative; }
.order .eyebrow { color: var(--gold-soft); font-family: var(--font-body); letter-spacing: .22em; }
.order__name { display: grid; gap: .55rem; }
.order__name strong { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 4.2vw, 3.4rem); letter-spacing: .14em; line-height: .95; }
.order__name span { font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); line-height: 1.7; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.order__lede { font-family: var(--font-display); font-size: clamp(1.25rem, 1.8vw, 1.4rem); line-height: 1.4; color: var(--on-dark); max-width: 24rem; }
.incl { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.incl li { position: relative; padding: .7rem 0 .7rem 1.6rem; border-bottom: 1px solid var(--line-dark); font-size: .98rem; line-height: 1.5; color: var(--on-dark); }
.incl li::before { content: ""; position: absolute; left: .15rem; top: 1.22em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-soft); box-shadow: 0 0 0 3px rgba(232, 207, 174, .16); }
.order-note { font-family: var(--font-script); font-size: clamp(2rem, 3vw, 2.4rem); line-height: 1; color: var(--rose-soft); margin-top: .2rem; }

/* ---------- Terms of Participation pop-up: the text comes from /terms-of-participation/ ---------- */
.terms-dialog { width: min(44rem, calc(100vw - 2rem)); max-height: min(88vh, 52rem); max-height: min(88dvh, 52rem); padding: 0; border: 0; border-radius: 3px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px rgba(46, 37, 39, .4); overflow: hidden; }
.terms-dialog[open] { display: flex; flex-direction: column; }
.terms-dialog::backdrop { background: rgba(46, 37, 39, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
html:has(.terms-dialog[open]) { overflow: hidden; }
.td-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem .9rem var(--pad, 1.5rem); border-top: 3px solid var(--rose); border-bottom: 1px solid var(--line); background: var(--blush); }
.td-head h2 { font-size: 1.6rem; color: var(--bark); }
.td-close { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.td-close:hover { background: rgba(255, 255, 255, .7); }
.td-close svg { width: 18px; height: 18px; }
.td-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: clamp(1.2rem, 2.6vw, 1.8rem) var(--pad, 1.5rem); }
.td-body:focus { outline: none; }
.td-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; padding: .9rem var(--pad, 1.5rem); border-top: 1px solid var(--line); }
.td-foot a { font-size: .88rem; }
.td-foot .btn { min-height: 2.75rem; padding: .55rem 1.6rem; font-size: .72rem; }

/* the terms' own markup: on their page and in the pop-up */
.terms, .terms section { display: grid; gap: .9rem; }
.terms { gap: clamp(1.6rem, 3vw, 2.2rem); font-size: 1rem; line-height: 1.7; }
.terms h2 { display: flex; align-items: baseline; gap: .7rem; font-size: clamp(1.45rem, 2.1vw, 1.7rem); line-height: 1.2; color: var(--bark); text-wrap: pretty; }
.terms h2 .n { font-family: var(--font-body); font-size: .58em; font-weight: 600; letter-spacing: .1em; color: var(--rose-text); min-width: 1.9em; }
.terms ul { list-style: disc; margin: 0; padding-left: 1.3em; display: grid; gap: .45rem; }
.terms li::marker { color: var(--rose); }
.terms-meta { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1.2rem; margin: 0; font-size: .9rem; padding: 1rem 1.2rem; background: rgba(243, 228, 224, .55); border-left: 2px solid var(--rose); }
.terms-meta dt { font-weight: 600; color: var(--ink); }
.terms-meta dd { margin: 0; }
.td-body .terms h2 { font-size: 1.3rem; }

/* =====================================================================
   THANK-YOU
   ===================================================================== */
.thanks { padding-top: clamp(1.5rem, 4vw, 3.5rem); }
.thanks__grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
@media (min-width: 1000px) {
  .thanks__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .thanks__shot { position: sticky; top: 1.5rem; }
}
.thanks__main { display: grid; gap: clamp(2rem, 4vw, 2.8rem); max-width: 38rem; }
.thanks__shot { aspect-ratio: 4 / 5; width: 100%; max-width: 30rem; justify-self: end; box-shadow: 0 40px 80px -50px rgba(98, 84, 72, .7); }
@media (max-width: 999px) { .thanks__shot { order: -1; aspect-ratio: 3 / 2; max-width: none; justify-self: stretch; } .thanks__shot img { object-position: 50% 22%; } }
.thanks .crown h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); }
.thanks .crown h1:focus { outline: none; }
.thanks .crown .script { font-size: clamp(3rem, 6vw, 4.2rem); }
.thanks .crown p:not(.script) { font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.4; color: var(--ink); }
.receipt { margin: 0; display: grid; background: rgba(253, 251, 248, .92); border: 1px solid var(--line); border-top: 1px solid var(--rose); border-radius: 3px; padding: .4rem clamp(1.1rem, 2.4vw, 1.6rem); }
.receipt > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem 1.5rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.receipt > div:last-child { border-bottom: 0; }
.receipt dt { font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--rose-text); line-height: 1.7; }
.receipt dd { margin: 0; font-size: 1rem; color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: lining-nums; }
.receipt #r-ref { font-size: .82rem; color: var(--muted); }
.next { display: grid; gap: 1.1rem; }
.next h2, .share label { font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.1rem); font-weight: 400; line-height: 1.15; color: var(--bark); }
.next ol { counter-reset: next; display: grid; border-top: 1px solid var(--line); }
.next li { counter-increment: next; display: grid; grid-template-columns: 2.6rem 1fr; align-items: baseline; padding: .95rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.next li::before { content: counter(next); font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: var(--rose-deep); font-variant-numeric: lining-nums; }
.actions { display: grid; justify-items: start; gap: 1rem; }
/* the calendar button opens a list of calendar apps (a native <details>) */
.cal { position: relative; width: 100%; }
.cal summary { list-style: none; width: fit-content; max-width: 100%; }
.cal summary::-webkit-details-marker { display: none; }
.cal[open] summary { background: var(--rose-btn-hover); border-color: var(--rose-btn-hover); }
.cal .cal-list { margin-top: .8rem; }
.cal-list { display: grid; background: rgba(253, 251, 248, .95); border: 1px solid var(--line); border-radius: 3px; }
.cal-list li + li { border-top: 1px solid var(--line); }
.page .cal-list a { display: grid; gap: .1rem; padding: .85rem 1.2rem; text-decoration: none; color: var(--ink); transition: background-color .25s; }
.page .cal-list a:hover { background: rgba(243, 228, 224, .6); color: var(--ink); }
.cal-list strong { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.2; color: var(--bark); }
.cal-list span { font-size: .84rem; color: var(--muted); }
.share { gap: 1.2rem; padding-top: clamp(1.6rem, 3vw, 2.2rem); border-top: 1px solid var(--rose); }
.share .field { gap: .55rem; }
.share .btn { justify-self: start; }
.share-sent { font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.35; color: var(--rose-text); padding-top: clamp(1.6rem, 3vw, 2.2rem); border-top: 1px solid var(--rose); }
.share-sent:focus { outline: none; }
.thanks .fail h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }

/* =====================================================================
   CALENDAR, 404: one centred column
   ===================================================================== */
.solo { padding-top: clamp(2rem, 6vw, 5rem); }
.solo__col { max-width: 36rem; margin-inline: auto; display: grid; gap: clamp(1.8rem, 4vw, 2.6rem); }
.solo .crown { justify-items: center; text-align: center; }
.solo .crown h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
.solo .crown p:not(.script) { font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.4; color: var(--ink); }
.solo .small { text-align: center; }
.solo__cta { display: grid; justify-items: center; gap: 1.2rem; }
.rose-mark--page { width: 46px; height: auto; margin-inline: auto; }
.notfound { min-height: 46vh; align-content: center; }

/* =====================================================================
   TERMS
   ===================================================================== */
.terms-page { padding-top: clamp(1.5rem, 4vw, 3.5rem); }
.terms-page__col { max-width: 46rem; margin-inline: auto; display: grid; gap: clamp(2rem, 4vw, 3rem); }
.terms-page .crown h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); }
.terms-page .crown__sub { font-size: 1rem; font-family: var(--font-body); color: var(--muted); }
.terms-card { display: grid; gap: clamp(1.8rem, 3.5vw, 2.6rem); background: rgba(253, 251, 248, .94); border: 1px solid var(--line); border-top: 1px solid var(--rose); border-radius: 3px; padding: clamp(1.4rem, 3.4vw, 3rem); box-shadow: 0 30px 70px -50px rgba(98, 84, 72, .45); }
.draft-note { padding: .9rem 1.1rem; border: 1px dashed var(--rose); border-radius: 3px; background: rgba(199, 146, 136, .1); font-size: .92rem; line-height: 1.6; color: var(--ink); }
.toc { display: grid; gap: .8rem; padding-bottom: clamp(1.4rem, 3vw, 2rem); border-bottom: 1px solid var(--line); }
.toc h2 { font-family: var(--font-body); font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--rose-text); line-height: 1.7; }
.toc ol { list-style: decimal; padding-left: 1.4em; display: grid; gap: .25rem .2rem; font-size: .95rem; }
@media (min-width: 640px) { .toc ol { display: block; columns: 2; column-gap: 2.5rem; } .toc li { break-inside: avoid; margin-bottom: .25rem; } }
.toc li::marker { color: var(--rose-text); font-variant-numeric: lining-nums; }
.page .toc a { color: var(--ink); text-decoration: none; }
.page .toc a:hover { text-decoration: underline; }
.terms section { scroll-margin-top: 1.5rem; }
.foot-back { display: grid; justify-items: center; gap: 1rem; padding-top: clamp(1.6rem, 3vw, 2.2rem); border-top: 1px solid var(--line); text-align: center; }
.foot-back p { font-family: var(--font-script); font-size: clamp(2.4rem, 4vw, 3rem); line-height: 1; color: var(--rose-deep); }
.foot-back .btn { gap: .6em; }
