/* RaeAnne Hadley's look for the platform's standalone pages (order confirmation, registration, newsletter and
   security-change confirmations, opt-out, short links). Site-owned: the engine emits the markup and links this
   file. Light and dark follow the visitor's choice, else the site's default, else the system, as the rest of the site does. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("/fonts/fraunces-latin-var.woff2?v=c00fac0ea5a3") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("/fonts/jost-latin-var.woff2?v=c00fac0ea5a3") format("woff2"); }
:root {
	color-scheme: light dark;
	--paper: #fff8f5;
	--paper-2: #ffffff;
	--ink: #2b1620;
	--ink-2: #6d4f5b;
	--accent: #5f1930;
	--accent-strong: #461123;
	--on-accent: #ffffff;
	--line: rgba(95, 25, 48, 0.12);
	--line-strong: rgba(95, 25, 48, 0.22);
	--shadow: 0 10px 30px rgba(95, 25, 48, 0.1), 0 2px 6px rgba(95, 25, 48, 0.05);
	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 24px;
	--font-ui: "Jost", "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
	--font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
	--logo: url("/media/logos/logo.webp");
}
/* Dark: the system's, unless the visitor chose light; or the visitor's choice (html[data-color-mode],
   set by the engine's colour-mode script). */
@media (prefers-color-scheme: dark) {
	:root:not([data-color-mode="light"]) {
		--paper: #1c1016;
		--paper-2: #26161e;
		--ink: #f8ece9;
		--ink-2: #d8bcc3;
		--accent: #eea0b2;
		--accent-strong: #f6c3cf;
		--on-accent: #2b1620;
		--line: rgba(248, 236, 233, 0.12);
		--line-strong: rgba(248, 236, 233, 0.22);
		--shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
		--logo: url("/media/logos/logo.dark.webp");
	}
}
:root[data-color-mode="dark"] {
	color-scheme: dark;
	--paper: #1c1016;
	--paper-2: #26161e;
	--ink: #f8ece9;
	--ink-2: #d8bcc3;
	--accent: #eea0b2;
	--accent-strong: #f6c3cf;
	--on-accent: #2b1620;
	--line: rgba(248, 236, 233, 0.12);
	--line-strong: rgba(248, 236, 233, 0.22);
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
	--logo: url("/media/logos/logo.dark.webp");
}
:root[data-color-mode="light"] { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; padding: clamp(1.5rem, 5vw, 3rem) 0 3rem; background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
/* The logo above the card, as in the site header. */
body::before { content: ""; display: block; width: min(680px, calc(100% - 36px)); height: 2.4rem; margin: 0 auto 1.25rem; background: var(--logo) left center / auto 100% no-repeat; }
.container, main { width: min(680px, calc(100% - 36px)); margin: 0 auto; padding: clamp(1.5rem, 5vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); box-shadow: var(--shadow); }
main .container { width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.eyebrow { margin: 0 0 0.75rem; color: var(--accent); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
h1 { margin: 0 0 1rem; font-family: var(--font-display); font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 500; line-height: 1.15; }
p { margin: 0 0 1rem; color: var(--ink-2); }
p strong, li strong { color: var(--ink); }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin: 0 0 0.4rem; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent-strong); }
form { display: grid; gap: 1rem; margin-top: 1.5rem; }
label { display: grid; gap: 0.5rem; font-weight: 600; }
input { width: 100%; min-height: 44px; padding: 0.7rem 0.9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); font: inherit; }
input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { width: max-content; min-height: 44px; padding: 0.7rem 1.5rem; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; cursor: pointer; }
button:hover { background: var(--accent-strong); }
[hidden] { display: none !important; }
/* The one question after a first payment (engine order-welcome): how they heard of the site, and the
   newsletter when they do not get it yet. */
.order-welcome { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.order-welcome h2 { margin: 0 0 0.75rem; font-size: 1.15rem; line-height: 1.3; }
.order-welcome-form { display: grid; gap: 0.75rem; }
.order-welcome-newsletter { display: flex; align-items: center; gap: 0.6rem; text-transform: none; letter-spacing: 0; font-weight: 500; }
.order-welcome-newsletter input { width: 1.15rem; min-height: 0; height: 1.15rem; padding: 0; accent-color: var(--accent); }
.order-welcome-note { margin: -0.25rem 0 0; font-size: 0.85rem; }
.order-welcome-status { min-height: 1.2em; margin: 0; font-size: 0.9rem; }
.order-welcome-status:empty { display: none; }
.order-welcome-thanks { margin: 0; color: var(--ink); font-weight: 600; }

/* Short-link interstitial (/l/NAME). A campaign's own colours arrive as --short-link-accent, -background and -text. */
.short-link-page body { display: grid; place-items: center; padding: 0; background: var(--short-link-background, var(--paper)); color: var(--short-link-text, var(--ink)); }
.short-link-page body::before { display: none; }
main.short-link-card { width: min(30rem, calc(100% - 36px)); margin: 0; padding: 2rem; border: 1px solid color-mix(in srgb, currentColor 20%, transparent); border-radius: var(--radius-lg); box-shadow: none; background: transparent; }
.short-link-card p { margin: 1rem 0 0; color: inherit; }
.short-link-form button { width: 100%; border: 0; background: var(--short-link-accent, var(--ink)); color: var(--short-link-background, var(--paper)); }

/* Mask the short-link password without presenting it to browsers as a login password. */
.secret-input { -webkit-text-security: disc; }
.secret-input-scope { display: contents; }

/* The account set-up after a first payment (engine onboarding): a dialog that cannot be dismissed, over the
   thank-you page. How they heard of the site, then their password. */
.onboarding-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; overflow-y: auto; background: rgba(43, 22, 32, 0.5); }
.onboarding-open { overflow: hidden; }
.onboarding-dialog { width: min(520px, 100%); padding: clamp(1.5rem, 5vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); color: var(--ink); box-shadow: var(--shadow); }
.onboarding-dialog h2 { margin: 0 0 0.75rem; }
.onboarding-progress { margin: 0 0 0.5rem; color: var(--accent); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.onboarding-form { display: grid; gap: 1rem; margin-top: 0.5rem; }
.onboarding-form .field { display: grid; gap: 0.5rem; }
.onboarding-intro { margin: 0; }
.onboarding-check { display: flex; align-items: center; gap: 0.6rem; text-transform: none; letter-spacing: 0; font-weight: 500; }
.onboarding-check input { width: 1.15rem; min-height: 0; height: 1.15rem; padding: 0; accent-color: var(--accent); }
.onboarding-note { margin: -0.25rem 0 0; font-size: 0.85rem; }
.onboarding-form .form-status { min-height: 1.2em; margin: 0; font-size: 0.9rem; }
.onboarding-form .form-status:empty { display: none; }
.onboarding-form input[readonly] { opacity: 0.75; }
.onboarding-dialog h2 { font-family: var(--font-display); }

/* Members-area hand-off (/members, on the way to the members host): only the logo, in the middle of the
   viewport. If the page is still there after 5 seconds the logo links to the front page and the continue link
   fades in below it, placed out of the flow so the logo does not move. */
.member-handoff-page body { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 0; }
.member-handoff-page body::before { display: none; }
main.member-handoff { position: relative; width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.member-handoff-logo { display: block; height: 2.8rem; max-width: 80vw; aspect-ratio: 560 / 119; background: var(--logo) center / contain no-repeat; }
.member-handoff-logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 10px; }
.member-handoff-continue { position: absolute; top: calc(100% + 2.75rem); left: 50%; transform: translateX(-50%); white-space: nowrap; font-weight: 600; opacity: 0; transition: opacity 0.6s ease; }
.member-handoff-continue:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.member-handoff.is-revealed .member-handoff-continue { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .member-handoff-continue { transition: none; } }
