@import 'tailwindcss'; @plugin 'daisyui' { themes: light --default; } /* Admin primary/secondary come from the site's colours (Site design → Colors) via $shared/theme, rendered in the root layout's with an automatically readable text colour. */ /* Hint text under form fields: DaisyUI's .label is nowrap, which stretched fields to fit long hints. */ .fieldset .label { white-space: normal; } /* Site design → Style sets the --site-* variables (siteStyleVars in $shared/theme) on the public site and the admin preview; without them (the admin's own pages) every token below is its usual value. Corners, shadows and widths are scaled here, so blocks just use rounded-xl, shadow-sm, max-w-6xl… Buttons and chips use rounded-button (a pill when Round); dots and avatars stay rounded-full. */ @theme { --font-sans: var(--site-font-body, 'DM Sans Variable', ui-sans-serif, system-ui, sans-serif); --font-serif: var(--site-font-heading, 'Playfair Display Variable', Georgia, serif); --radius-lg: calc(0.5rem * var(--site-corners, 1)); --radius-xl: calc(0.75rem * var(--site-corners, 1)); --radius-2xl: calc(1rem * var(--site-corners, 1)); --radius-card: calc(1.25rem * var(--site-corners, 1)); --radius-panel: calc(2rem * var(--site-corners, 1)); --radius-button: var(--site-button-radius, 9999px); --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / calc(0.1 * var(--site-shadow, 1))), 0 1px 2px -1px rgb(0 0 0 / calc(0.1 * var(--site-shadow, 1))); --shadow-md: 0 4px 6px -1px rgb(0 0 0 / calc(0.1 * var(--site-shadow, 1))), 0 2px 4px -2px rgb(0 0 0 / calc(0.1 * var(--site-shadow, 1))); --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / calc(0.1 * var(--site-shadow, 1))), 0 4px 6px -4px rgb(0 0 0 / calc(0.1 * var(--site-shadow, 1))); --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / calc(0.1 * var(--site-shadow, 1))), 0 8px 10px -6px rgb(0 0 0 / calc(0.1 * var(--site-shadow, 1))); --container-3xl: calc(48rem * var(--site-width, 1)); --container-6xl: calc(72rem * var(--site-width, 1)); --container-7xl: calc(80rem * var(--site-width, 1)); --color-warm: var(--color-bg, #faf8f5); --color-charcoal: var(--color-heading, #2c2c2c); --color-sage: var(--color-primary, #8a9a7b); --color-sage-dark: color-mix(in srgb, var(--color-primary, #8a9a7b) 80%, #000); --color-terracotta: var(--color-accent, #c9825f); } @keyframes shrink { from { scale: 0 1; } to { scale: 1 1; } } .delete-fill { position: absolute; inset: 0; background: transparent; transform-origin: left; } .delete-fill.animating { animation: shrink 1s ease-in-out forwards; background: var(--error, #f43f5e); } .btn.delete-holding { color: white !important; } .btn.delete-holding .text-error { color: white !important; } :root { --fg-heading: var(--color-heading, #2c2c2c); --fg-subheading: var(--color-subheading, #4a4a4a); --fg-body: var(--color-text, #2c2c2c); background: var(--color-bg, #faf8f5); color: var(--fg-body); font-family: var(--font-sans); /* Site design → Style → Text size; rem-sized spacing grows with it. */ font-size: var(--site-text-size, 100%); } /* ── Foreground colour utilities (set per-block via BackgroundWrapper) ── */ .text-fg-body { color: var(--fg-body, #2c2c2c); } .text-fg-body\/85 { color: color-mix(in srgb, var(--fg-body, #2c2c2c) 85%, transparent); } .text-fg-body\/80 { color: color-mix(in srgb, var(--fg-body, #2c2c2c) 80%, transparent); } .text-fg-body\/75 { color: color-mix(in srgb, var(--fg-body, #2c2c2c) 75%, transparent); } .text-fg-body\/70 { color: color-mix(in srgb, var(--fg-body, #2c2c2c) 70%, transparent); } .text-fg-body\/60 { color: color-mix(in srgb, var(--fg-body, #2c2c2c) 60%, transparent); } .text-fg-heading { color: var(--fg-heading, #2c2c2c); } .text-fg-subheading { color: var(--fg-subheading, #4a4a4a); } .text-fg-subheading\/85 { color: color-mix(in srgb, var(--fg-subheading, #4a4a4a) 85%, transparent); } .text-fg-subheading\/80 { color: color-mix(in srgb, var(--fg-subheading, #4a4a4a) 80%, transparent); } .text-fg-subheading\/75 { color: color-mix(in srgb, var(--fg-subheading, #4a4a4a) 75%, transparent); } .text-fg-subheading\/70 { color: color-mix(in srgb, var(--fg-subheading, #4a4a4a) 70%, transparent); } .text-fg-subheading\/60 { color: color-mix(in srgb, var(--fg-subheading, #4a4a4a) 60%, transparent); } body { min-height: 100vh; margin: 0; background: radial-gradient(circle at top left, rgba(var(--color-accent-rgb, 201, 130, 95), 0.1), transparent 36rem), var(--color-bg, #faf8f5); } h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--fg-heading, #2c2c2c); } .prose-wellness p { margin: 0.75rem 0; line-height: 1.8; } .prose-wellness h2 { margin: 1.25rem 0 0.5rem; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; } .prose-wellness h3 { margin: 1rem 0 0.5rem; font-size: 1.6rem; } .prose-wellness ul { list-style: disc; padding-left: 1.5rem; } /* The visual editor wraps list items in

. */ .prose-wellness li > p { margin: 0; } .prose-wellness ol { list-style: decimal; padding-left: 1.5rem; } /* Pull quote: a "Quote" in the visual editor. */ .prose-wellness blockquote { margin: 0.75rem 0; padding-left: 1.25rem; border-left: 3px solid var(--color-primary, #8a9a7b); font-family: var(--font-serif); font-size: 1.35rem; font-style: italic; } .prose-wellness.text-center blockquote { border-left: 0; padding-left: 0; } .prose-wellness hr { margin: 2rem 0; border-color: color-mix(in srgb, currentColor 20%, transparent); } .prose-wellness a { color: color-mix(in srgb, var(--color-primary, #8a9a7b) 90%, #000); text-decoration: underline; text-underline-offset: 3px; } /* ── Scroll-reveal animations ── */ /* Kept short: blocks fading in while someone scrolls are what slows scrolling down. */ .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1); } .reveal-visible { opacity: 1; transform: translateY(0); } /* ── Hero fade-in stagger ── */ .animate-fade-in { opacity: 0; transform: translateY(12px); animation: fadeInUp 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards; } @keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } } /* ── Smooth scroll ── */ html { scroll-behavior: smooth; } /* No animations on devices that can't keep up (scrollReveal.ts adds .plain-motion to ) or for people whose device asks for less motion. */ html.plain-motion .reveal, html.plain-motion .animate-fade-in { opacity: 1; transform: none; transition: none; animation: none; } @media (prefers-reduced-motion: reduce) { .reveal, .animate-fade-in { opacity: 1; transform: none; transition: none; animation: none; } html { scroll-behavior: auto; } } /* Visual editor (RichTextEditor): roughly how the site shows text, sized for the sidebar. */ .rich-text h2 { font-size: 1.5rem; font-weight: 700; margin: 0.75rem 0 0.25rem; } .rich-text h3 { font-size: 1.2rem; font-weight: 700; margin: 0.75rem 0 0.25rem; } .rich-text p { margin: 0.4rem 0; } .rich-text ul { list-style: disc; padding-left: 1.5rem; } .rich-text ol { list-style: decimal; padding-left: 1.5rem; } .rich-text blockquote { border-left: 3px solid var(--color-primary); padding-left: 1rem; font-style: italic; } .rich-text hr { margin: 1rem 0; border-color: var(--color-base-300); } .rich-text a { text-decoration: underline; } .rich-text > :first-child { margin-top: 0; } .rich-text li > p { margin: 0; }