/* ==========================================================================
   Cardinal Star Healing — public design system
   --------------------------------------------------------------------------
   Every color, font and radius comes from the CSS variables printed by
   includes/theme.php (<style id="csh-theme">) and the data-* attributes on
   <html> (data-corners, data-buttons, data-shadow, data-decor, data-motion,
   data-header, data-logo, data-hero, data-hero-align, data-eyebrow, data-mode, and the
   structural dimensions in section 14: data-hero-layout, data-nav, data-cards, data-frame,
   data-divider, data-texture, data-headings, data-density, data-button-case, data-motion-style).
   Nothing in this file hard-codes a brand value, so a Theme Studio change
   restyles every page at once.

   Contents
     1. Tokens (fallbacks) and reset
     2. Typography
     3. Layout: wrap, section, bands, grids, columns, stacks
     4. Announcement bar, header, navigation (desktop + slide-down mobile)
     5. Hero
     6. Buttons
     7. Forms
     8. Cards, tiles, media, quotes, meta lists
     9. Eyebrow, badges, dividers, accordion, notices, lists, tables
    10. Footer
    11. Decor (stars / glow), reveal-on-scroll, motion
    12. Utilities
    13. Print
    14. Theme dimensions: hero/nav layouts, card styles, photo frames, dividers, textures,
        heading styles, density, button case, motion style (end of file)
   Breakpoints: 640px (sm), 900px (md), 1200px (lg)
   ========================================================================== */

/* 1. Tokens (used only if the theme <style> is missing) and reset
   -------------------------------------------------------------------------- */
/* :where() gives these zero specificity, so the theme's own :root block always wins. */
:where(:root) {
  --bg: #FAF7F8; --surface: #FFFFFF; --surface-2: #F8F8F8; --ink: #1D1E20; --ink-rgb: 29, 30, 32;
  --primary: #B76969; --primary-rgb: 183, 105, 105; --accent: #C41E3A; --accent-rgb: 196, 30, 58;
  --secondary: #977AA3; --dark: #3A2C2C; --dark-rgb: 58, 44, 44; --dark-2: #2D2222; --dark-3: #664141;
  --tint: #F3E3F2; --tint-2: #ECD4E2; --on-primary: #FFFFFF; --on-secondary: #FFFFFF; --on-accent: #FFFFFF;
  --on-dark: #FFFFFF; --on-dark-muted: #C8C4C4; --on-tint: #1D1E20; --muted: #717072; --muted-2: #999A9B;
  --line: #E8E9E9; --line-strong: #C0C0C1; --link: #895353; --focus: #B76969;
  --primary-soft: #F5EAEA; --primary-tint: #FAF5F5; --primary-strong: #975A5A; --primary-hover: #9D5A5A; --secondary-soft: #F0ECF2;
  --secondary-strong: #786281; --secondary-hover: #82698C; --accent-text: #C41E3A; --accent-soft: #F8E4E7; --input-bg: #F6F6F6; --input-border: #BFC6D1;
  --danger: #B42318; --danger-soft: #FBE4E4; --success: #1E6B33; --success-soft: #E4F1E6; --warn: #7A4D00; --warn-soft: #FBF0D9;
  --radius: 999px; --radius-sm: 999px; --radius-input: 10px; --radius-card: 16px;
  --shadow-card: 0 8px 28px rgba(58, 44, 44, .07); --shadow-hover: 0 18px 40px rgba(58, 44, 44, .13);
  --font-display: 'Lora', Georgia, serif; --font-body: 'DM Sans', system-ui, sans-serif; --heading-weight: 500;
  --base-size: 1.0625rem; --logo-h: 56px; --hero-overlay: .45; --hero-min: 72vh; --announce-bg: #3A2C2C; --announce-fg: #FFFFFF;

  /* Layout scale (8px based) */
  --wrap: 72rem; --wrap-narrow: 46rem; --wrap-wide: 84rem; --gutter: 1rem;
  --section-y: clamp(4rem, 8vw, 7rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head-h: calc(var(--logo-h) + 1.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--base-size); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
main { flex: 1 0 auto; width: 100%; outline: none; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; }
ul, ol { padding-left: 1.25rem; }
[hidden] { display: none !important; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--primary-soft); color: var(--ink); }
.icon { flex: none; vertical-align: middle; }
.star { width: 1em; height: 1em; color: var(--accent); flex: none; vertical-align: -.1em; }

.skip {
  position: absolute; left: -999px; top: .5rem; z-index: 200;
  background: var(--primary); color: var(--on-primary); padding: .6rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip:focus { left: .5rem; }

/* 2. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .display {
  font-family: var(--font-display); font-weight: var(--heading-weight); line-height: 1.12;
  margin: 0 0 .6em; letter-spacing: -.005em; text-wrap: balance; overflow-wrap: anywhere;
}
h1, .h1 { font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.5rem); line-height: 1.08; }
h2, .h2 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
h3, .h3 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.6rem); line-height: 1.25; }
h4, .h4 { font-size: 1.2rem; line-height: 1.3; }
h5 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; }
.display { font-size: clamp(3rem, 2rem + 4.5vw, 5rem); line-height: 1.02; letter-spacing: .02em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); line-height: 1.6; color: var(--muted); }
.lead-serif { font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); color: var(--ink); }
.first-big::first-letter { font-size: 1.45em; line-height: .9; }
.prose { max-width: 60ch; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p + p { margin-top: -.1em; }
.prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li + li { margin-top: .35em; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .15s var(--ease), text-decoration-color .15s var(--ease); }
a:hover { color: var(--primary-strong); }
small, .small { font-size: .9rem; }
.muted { color: var(--muted); }
.serif { font-family: var(--font-display); }
.sans { font-family: var(--font-body); }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; letter-spacing: .12em; }
strong, b { font-weight: 700; }
blockquote { margin: 0; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }

/* 3. Layout
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.wrap-wide { max-width: var(--wrap-wide); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-sm { padding-top: calc(var(--section-y) * .6); padding-bottom: calc(var(--section-y) * .6); }
.section-xs { padding-top: calc(var(--section-y) * .4); padding-bottom: calc(var(--section-y) * .4); }
.section-flush-top { padding-top: 0; }
.section-flush-bottom { padding-bottom: 0; }
.section-head { max-width: 44rem; margin: 0 auto 2.75rem; text-align: center; }
.section-head.is-left { margin-left: 0; text-align: left; }
.section-head .eyebrow { justify-content: center; }
.section-head.is-left .eyebrow { justify-content: flex-start; }
.section-head h1, .section-head h2, .section-head h3 { margin-bottom: .6em; }
.section-head .lead { margin: 0; }

/* Full-bleed colored bands. Use together with .section for padding. */
.band { position: relative; }
.band-surface { background: var(--surface); }
.band-soft { background: var(--surface-2); }
.band-tint { background: var(--tint); color: var(--on-tint); }
.band-tint .muted, .band-tint .lead { color: var(--on-tint); opacity: .78; }
.band-dark { background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%); color: var(--on-dark); }
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4, .band-dark p { color: inherit; }
.band-dark .muted, .band-dark .lead { color: var(--on-dark-muted); }
.band-dark a:not(.btn) { color: inherit; }
.band-dark .eyebrow { color: var(--on-dark); }
.band-dark .eyebrow .star { color: var(--accent); }
.band-dark .input, .band-dark select, .band-dark textarea { background: #fff; color: #1D1E20; border-color: transparent; }
.band-primary { background: var(--primary); color: var(--on-primary); }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.grid-gap-sm { gap: .75rem; }
.grid-gap-lg { gap: clamp(2rem, 4vw, 3rem); }
.cols { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cols-start { align-items: start; }
.stack > * + * { margin-top: var(--stack, 1rem); }
.stack-sm { --stack: .5rem; }
.stack-lg { --stack: 2rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.cluster-center { justify-content: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.center { margin-left: auto; margin-right: auto; text-align: center; }
.measure { max-width: 60ch; }
.measure-center { max-width: 60ch; margin-left: auto; margin-right: auto; }

/* 4. Announcement bar, header, navigation
   -------------------------------------------------------------------------- */
.announce {
  background: var(--announce-bg); color: var(--announce-fg);
  text-align: center; font-family: var(--font-display); font-size: .78rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; padding: .6rem 0; line-height: 1.4;
}
.announce .wrap { padding-left: 3rem; padding-right: 3rem; }

.site-head {
  position: sticky; top: 0; z-index: 60;
  background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), transform .3s var(--ease);
}
body.is-scrolled .site-head { box-shadow: 0 6px 28px rgba(var(--dark-rgb), .08); }
.site-head-in {
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; align-items: center; gap: .75rem;
  min-height: var(--head-h); padding-top: .5rem; padding-bottom: .5rem;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; justify-self: center; min-width: 0; color: inherit; text-decoration: none; }
.brand-logo { display: block; height: calc(var(--logo-h) * .86); width: auto; max-width: 11rem; object-fit: contain; }
.brand-mark { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary-soft); }
.brand-mark .star { width: 1.4rem; height: 1.4rem; }
.brand-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: var(--heading-weight); line-height: 1.1; white-space: nowrap; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
  border: 0; background: transparent; border-radius: 50%; color: inherit; padding: 0;
  transition: background .15s var(--ease);
}
.nav-toggle:hover { background: var(--primary-soft); }
.nav-toggle-bars { position: relative; display: block; width: 1.4rem; height: 1rem; }
.nav-toggle-bars span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s var(--ease), top .25s var(--ease); }
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: calc(50% - 1px); }
.nav-toggle-bars span:nth-child(3) { top: calc(100% - 2px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: calc(50% - 1px); transform: rotate(-45deg); }

/* Mobile: the nav is a panel that slides down under the header. */
.site-nav {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 59;
  background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px rgba(var(--dark-rgb), .14);
  padding: .5rem var(--gutter) 1.5rem; max-height: calc(100vh - var(--head-h)); overflow-y: auto;
}
html.js .site-nav { opacity: 0; visibility: hidden; transform: translateY(-.6rem); pointer-events: none; transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s; }
html.js .site-nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
html:not(.js) .nav-toggle { display: none; }
.nav { list-style: none; margin: 0; padding: 0; }
.nav li { border-bottom: 1px solid var(--line); }
.nav-link {
  display: block; padding: .9rem .25rem; color: inherit; text-decoration: none;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; letter-spacing: .01em;
}
.nav-link[aria-current="page"] { color: var(--primary-strong); }
.nav-extra { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; padding-top: 1.25rem; }
.nav-book { width: 100%; }
.head-actions { display: flex; align-items: center; gap: .75rem; justify-self: end; }
.head-actions .social-head, .head-actions .head-book { display: none; }
.head-actions .head-book-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  color: inherit; text-decoration: none; transition: background .15s var(--ease), color .15s var(--ease);
}
.head-book-icon:hover { background: var(--primary-soft); color: var(--primary-strong); }
body.nav-open { overflow: hidden; }

.social { display: flex; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.social a {
  display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  color: inherit; border: 1px solid transparent; transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
}
.social a:hover { background: var(--primary-soft); color: var(--primary-strong); transform: translateY(-1px); }

/* Header styles from the Theme Studio */
[data-header="dark"] .site-head { background: var(--dark); color: var(--on-dark); border-color: rgba(255, 255, 255, .08); }
[data-header="dark"] .nav-toggle:hover, [data-header="dark"] .head-book-icon:hover, [data-header="dark"] .social-head a:hover { background: rgba(255, 255, 255, .12); color: inherit; }
[data-header="dark"] .site-nav { background: var(--dark); color: var(--on-dark); border-color: rgba(255, 255, 255, .08); }
[data-header="dark"] .nav li { border-color: rgba(255, 255, 255, .1); }
[data-header="dark"] .nav-link[aria-current="page"] { color: inherit; }
[data-header="dark"] .nav-link::after { background: var(--on-dark); }

[data-header="transparent"] body.has-hero:not(.is-scrolled) .site-head {
  position: absolute; left: 0; right: 0; top: auto; background: transparent; color: #fff; border-color: transparent; box-shadow: none;
}
[data-header="transparent"] body.has-hero:not(.is-scrolled) .site-head .nav-toggle:hover,
[data-header="transparent"] body.has-hero:not(.is-scrolled) .site-head .head-book-icon:hover,
[data-header="transparent"] body.has-hero:not(.is-scrolled) .site-head .social-head a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
[data-header="transparent"] body.has-hero:not(.is-scrolled) .nav-link::after { background: #fff; }
[data-header="transparent"] body.has-hero:not(.is-scrolled) .nav-link[aria-current="page"] { color: #fff; }
[data-header="transparent"] body.has-hero:not(.is-scrolled) .head-book { background: #fff; color: #1D1E20; border-color: #fff; }
[data-header="transparent"] body.has-hero.is-scrolled .site-head { position: fixed; top: 0; animation: head-in .35s var(--ease); }
[data-header="transparent"] body.has-hero .hero:first-child .hero-in { padding-top: calc(var(--head-h) + 3rem); }
[data-header="transparent"] body.has-hero.has-announce .hero:first-child .hero-in { padding-top: calc(var(--head-h) + 3rem); }
/* 2.7 (review: hero-dark-white-text): over an image-less hero (site.js adds has-hero-dark) the floating header
   takes the hero's own text color (--hero-fg = --on-dark) instead of white, so a pale "Footer & dark blocks"
   color keeps the menu readable; the Book pill flips with the hero's light button. */
[data-header="transparent"] body.has-hero.has-hero-dark:not(.is-scrolled) .site-head { color: var(--hero-fg, var(--on-dark)); }
[data-header="transparent"] body.has-hero.has-hero-dark:not(.is-scrolled) .site-head .nav-toggle:hover,
[data-header="transparent"] body.has-hero.has-hero-dark:not(.is-scrolled) .site-head .head-book-icon:hover,
[data-header="transparent"] body.has-hero.has-hero-dark:not(.is-scrolled) .site-head .social-head a:hover { background: rgba(var(--hero-fg-rgb, 255, 255, 255), .16); color: var(--hero-fg, var(--on-dark)); }
[data-header="transparent"] body.has-hero.has-hero-dark:not(.is-scrolled) .nav-link::after { background: var(--hero-fg, var(--on-dark)); }
[data-header="transparent"] body.has-hero.has-hero-dark:not(.is-scrolled) .nav-link[aria-current="page"] { color: var(--hero-fg, var(--on-dark)); }
[data-header="transparent"] body.has-hero.has-hero-dark:not(.is-scrolled) .head-book { background: var(--hero-btn-bg, #fff); color: var(--hero-btn-fg, #1D1E20); border-color: var(--hero-btn-bg, #fff); }
/* 2.7 (review: transparent-header-flash-overlap): a flash notice printed before the hero is the first thing in
   <main>; it takes the floating header's height itself, so the notice is not hidden under the header and the
   hero after it keeps its ordinary padding. */
[data-header="transparent"] body.has-hero .flash-stack:first-child { padding-top: calc(var(--head-h) + 1.25rem); }
@keyframes head-in { from { transform: translateY(-100%); } to { transform: none; } }

/* 5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; display: grid; align-items: center; overflow: hidden;
  min-height: var(--hero-min); color: #fff; background: var(--dark);
}
.hero-short { --hero-min: 44vh; }
.hero-tall { --hero-min: 72vh; }
.hero-full { --hero-min: 100vh; --hero-min: 100svh; }
.hero-auto { --hero-min: 0; }
.hero-media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
html.js[data-motion="on"] .hero-tone-photo .hero-media { animation: hero-zoom 1.8s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: none; } }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, calc(var(--hero-overlay) * .8)) 0%, rgba(0, 0, 0, var(--hero-overlay)) 45%, rgba(0, 0, 0, calc(var(--hero-overlay) + .18)) 100%);
}
.hero-tone-dark .hero-overlay { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, calc(var(--hero-overlay) * .5)) 100%); }
.hero-tone-tint { color: var(--on-tint); background: var(--tint); }
.hero-tone-light { color: var(--ink); background: transparent; }
.hero-tone-tint, .hero-tone-light { --hero-min: 0; }
.hero-in { position: relative; z-index: 1; padding-top: clamp(3.5rem, 9vw, 7rem); padding-bottom: clamp(3.5rem, 9vw, 7rem); text-align: center; width: 100%; }
.hero-tone-tint .hero-in, .hero-tone-light .hero-in { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero-align-left .hero-in { text-align: left; }
.hero-align-left .hero-lead { margin-left: 0; }
.hero-align-left .hero-actions { justify-content: flex-start; }
.hero-align-left .hero-eyebrow { justify-content: flex-start; }
.hero-eyebrow { justify-content: center; margin-bottom: 1.25rem; }
.hero-eyebrow .star { color: var(--accent); }
/* Two classes (.hero-tone-* .hero-eyebrow) so this wins over the later, single-class .eyebrow { color: var(--accent) }:
   accent red over the dark overlay is near-invisible. Tint/light heroes keep the accent like every other eyebrow. */
.hero-tone-photo .hero-eyebrow, .hero-tone-dark .hero-eyebrow { color: #fff; }
.hero-tone-photo .hero-eyebrow .star, .hero-tone-dark .hero-eyebrow .star { color: #fff; opacity: .9; }
/* 2.7 (review: hero-dark-white-text): an image-less hero is painted with the "Footer & dark blocks" color, so
   its text, eyebrow and stars use the color derived for that fill (--hero-fg = --on-dark, as the footer does)
   instead of hard-coded white: a pale choice in the Studio stays readable. Photo heroes keep white over
   their darkening overlay. */
.hero-tone-dark { color: var(--hero-fg, var(--on-dark)); }
.hero-tone-dark .hero-eyebrow, .hero-tone-dark .hero-eyebrow .star, .hero-tone-dark .hero-decor .star { color: var(--hero-fg, var(--on-dark)); }
.hero-title { margin: 0; font-size: clamp(2.75rem, 2rem + 4.2vw, 5rem); line-height: 1.04; letter-spacing: .03em; text-shadow: 0 2px 24px rgba(0, 0, 0, .18); }
.hero-tone-tint .hero-title, .hero-tone-light .hero-title { text-shadow: none; font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.75rem); letter-spacing: 0; }
.hero-title-1, .hero-title-2 { display: block; }
.hero-title-2 { font-size: .72em; letter-spacing: .09em; margin-top: .12em; }
.hero-lead {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 1rem + .9vw, 1.55rem); line-height: 1.5;
  max-width: 40rem; margin: 1.5rem auto 0; opacity: .96;
}
.hero-tone-tint .hero-lead, .hero-tone-light .hero-lead { opacity: .85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.25rem; }
.hero-decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; display: none; }
.hero-decor .star { position: absolute; color: #fff; opacity: .35; width: 1.1rem; height: 1.1rem; }
.hero-decor .star:nth-child(1) { left: 8%; top: 18%; width: .8rem; height: .8rem; }
.hero-decor .star:nth-child(2) { right: 10%; top: 24%; width: 1.3rem; height: 1.3rem; opacity: .28; }
.hero-decor .star:nth-child(3) { left: 16%; bottom: 20%; width: .6rem; height: .6rem; }
.hero-tone-tint .hero-decor .star { color: var(--accent); opacity: .5; }
[data-decor="stars"] .hero-decor { display: block; }
html.js[data-motion="on"] .hero-decor .star { animation: twinkle 4s ease-in-out infinite; }
.hero-decor .star:nth-child(2) { animation-delay: 1.3s; }
.hero-decor .star:nth-child(3) { animation-delay: 2.1s; }
@keyframes twinkle { 0%, 100% { opacity: .18; transform: scale(.9); } 50% { opacity: .5; transform: scale(1.1); } }
[data-decor="glow"] .hero-tone-dark::after, [data-decor="glow"] .hero-tone-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 20% 0%, rgba(var(--primary-rgb), .35), transparent 70%), radial-gradient(50% 50% at 85% 100%, rgba(var(--accent-rgb), .22), transparent 70%);
}
html.js[data-motion="on"] .hero-in > * { animation: rise .8s var(--ease) both; }
html.js[data-motion="on"] .hero-in > :nth-child(2) { animation-delay: .1s; }
html.js[data-motion="on"] .hero-in > :nth-child(3) { animation-delay: .2s; }
html.js[data-motion="on"] .hero-in > :nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .7rem 1.6rem; border: 1.5px solid transparent; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.2; letter-spacing: .01em;
  text-align: center; text-decoration: none; cursor: pointer; white-space: nowrap; color: inherit; background: transparent;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: default; transform: none !important; box-shadow: none !important; }
.btn-sm { min-height: 2.5rem; padding: .45rem 1.1rem; font-size: .92rem; }
.btn-lg { min-height: 3.5rem; padding: .9rem 2.2rem; font-size: 1.06rem; }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 2.75rem; min-height: 2.75rem; padding: 0; border-radius: 50%; }

.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover, var(--primary-strong)); border-color: var(--primary-hover, var(--primary-strong)); color: var(--on-primary); box-shadow: 0 10px 24px rgba(var(--primary-rgb), .3); }
.btn-secondary { background: var(--secondary); border-color: var(--secondary); color: var(--on-secondary); }
.btn-secondary:hover { background: var(--secondary-hover, var(--secondary-strong)); border-color: var(--secondary-hover, var(--secondary-strong)); color: var(--on-secondary); box-shadow: 0 10px 24px rgba(var(--dark-rgb), .18); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn-ghost, .btn-quiet { background: transparent; border-color: transparent; color: var(--link); }
.btn-ghost:hover, .btn-quiet:hover { background: var(--primary-soft); color: var(--primary-strong); }
.btn-light, .btn-white { background: #fff; border-color: #fff; color: #1D1E20; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.btn-light:hover, .btn-white:hover { background: #fff; color: #1D1E20; box-shadow: 0 14px 32px rgba(0, 0, 0, .26); }
.btn-dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.btn-dark:hover { background: var(--dark-2); border-color: var(--dark-2); color: var(--on-dark); }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-link { min-height: 0; padding: .2rem 0; border: 0; border-radius: 0; color: var(--link); text-decoration: underline; text-underline-offset: .2em; }
.btn-link:hover { color: var(--primary-strong); transform: none; }
.hero .btn-outline, .band-dark .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .7); }
.hero .btn-outline:hover, .band-dark .btn-outline:hover { background: #fff; border-color: #fff; color: #1D1E20; }
.hero-tone-tint .btn-outline, .hero-tone-light .btn-outline, .band-tint .btn-outline { color: var(--on-tint); border-color: currentColor; }
.hero-tone-tint .btn-outline:hover, .band-tint .btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* Button style from the Theme Studio */
[data-buttons="outline"] .btn-primary { background: transparent; color: var(--primary-strong); border-color: var(--primary); }
[data-buttons="outline"] .btn-primary:hover { background: var(--primary); color: var(--on-primary); }
[data-buttons="outline"] .btn-secondary { background: transparent; color: var(--secondary-strong); border-color: var(--secondary); }
[data-buttons="outline"] .btn-secondary:hover { background: var(--secondary); color: var(--on-secondary); }
[data-buttons="outline"] .band-dark .btn-primary, [data-buttons="outline"] .hero .btn-primary { color: #fff; }
/* 2.7 (review: hero-dark-white-text): buttons on an image-less hero follow its text color; the "light" button
   is white on a dark fill and flips to the ink on a pale one (--hero-btn-bg/--hero-btn-fg from csh_theme_vars()). */
.hero-tone-dark .btn-outline { color: var(--hero-fg, var(--on-dark)); border-color: currentColor; }
.hero-tone-dark .btn-outline:hover { background: var(--hero-fg, var(--on-dark)); border-color: var(--hero-fg, var(--on-dark)); color: var(--dark); }
.hero-tone-dark .btn-light, .hero-tone-dark .btn-white, .hero-tone-dark .btn-light:hover, .hero-tone-dark .btn-white:hover { background: var(--hero-btn-bg, #fff); border-color: var(--hero-btn-bg, #fff); color: var(--hero-btn-fg, #1D1E20); }
[data-buttons="outline"] .hero-tone-dark .btn-primary { color: var(--hero-fg, var(--on-dark)); }
[data-buttons="soft"] .btn-primary { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary-strong); box-shadow: none; }
[data-buttons="soft"] .btn-primary:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
[data-buttons="soft"] .btn-secondary { background: var(--secondary-soft); border-color: var(--secondary-soft); color: var(--secondary-strong); }
[data-buttons="soft"] .btn-secondary:hover { background: var(--secondary); border-color: var(--secondary); color: var(--on-secondary); }

/* 7. Forms
   -------------------------------------------------------------------------- */
.field { margin: 0 0 1.25rem; }
.field > label, .label, legend.label { display: block; font-weight: 600; font-size: .95rem; margin: 0 0 .45rem; }
.label-optional { font-weight: 400; color: var(--muted); }
.req { color: var(--accent-text, var(--accent)); }
.input, textarea, select,
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="password"],
input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"] {
  display: block; width: 100%; min-height: 3rem; padding: .75rem 1rem;
  background: var(--input-bg); color: var(--ink); border: 1px solid var(--input-border); border-radius: var(--radius-input);
  font-size: 1rem; line-height: 1.4; -webkit-appearance: none; appearance: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
.input::placeholder, textarea::placeholder, input::placeholder { color: var(--muted-2); opacity: 1; }
.input:focus, textarea:focus, select:focus, input:not([type="checkbox"]):not([type="radio"]):focus {
  outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .22);
}
textarea { min-height: 8rem; resize: vertical; }
select:not([multiple]) {
  padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1rem;
}
.input-sm { min-height: 2.5rem; padding: .45rem .85rem; font-size: .95rem; }
.is-invalid, .input[aria-invalid="true"], input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
.is-invalid:focus, [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .18); }
.field-error { display: flex; gap: .35rem; align-items: flex-start; color: var(--danger); font-size: .9rem; font-weight: 500; margin: .45rem 0 0; }
.field-error .icon { margin-top: .1rem; }
.field-error:empty { display: none; }
.hint { display: block; color: var(--muted); font-size: .9rem; margin: .4rem 0 0; }
.check, .radio { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input, .radio input, input[type="checkbox"], input[type="radio"] { width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; flex: none; accent-color: var(--primary); cursor: pointer; }
.check + .check, .radio + .radio { margin-top: .6rem; }
/* A check row placed straight inside a .field keeps its row layout (.field > label would make it a bold block). */
.field > label.check, .field > label.radio { display: flex; font-weight: 400; }
.form-grid { display: grid; gap: 0 1.25rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .5rem; }
.form-note { font-size: .95rem; margin: .75rem 0 0; }
.form-note.is-ok { color: var(--success); font-weight: 500; }
.form-note.is-error { color: var(--danger); font-weight: 500; }
.band-dark .form-note.is-ok { color: var(--on-dark); }
.input-group { display: flex; flex-direction: column; gap: .6rem; }
.input-group .input { flex: 1; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-card); }

/* 8. Cards, tiles, media, quotes, meta
   -------------------------------------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: .75rem;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card > * { margin-top: 0; margin-bottom: 0; }
.card-hover:hover, a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
a.card { text-decoration: none; }
.card-accent { border-top: 4px solid var(--card-accent, var(--primary)); }
.card-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; background: var(--card-accent, var(--primary)); flex: none; }
.card-title { font-size: 1.35rem; line-height: 1.25; }
.card-tagline { font-family: var(--font-display); font-style: italic; color: var(--muted); }
.card-body { flex: 1; }
.card-foot { margin-top: auto; padding-top: .75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.card-pad-0 { padding: 0; overflow: hidden; }
.card-media { aspect-ratio: 3 / 2; background: var(--dark) center / cover no-repeat; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media + .card-inner, .card-inner { padding: 1.25rem; }
.card-sm { padding: 1rem 1.1rem; gap: .5rem; }
.card-tint { background: var(--tint); color: var(--on-tint); border-color: transparent; }
.card-dark { background: linear-gradient(160deg, var(--dark), var(--dark-2)); color: var(--on-dark); border-color: transparent; }
.card-dark .muted { color: var(--on-dark-muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.panel-head { padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--line); }
.panel-body { padding: 1.5rem; }

/* Photo tile with a white label bottom-left (the home page's three tiles). */
.tile {
  position: relative; display: block; isolation: isolate; overflow: hidden; aspect-ratio: 3 / 2;
  border-radius: var(--radius-card); background: var(--dark); color: #fff; text-decoration: none;
  box-shadow: var(--shadow-card); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tile-media { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; transition: transform .8s var(--ease); }
.tile-media img, .tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .32) 62%, rgba(0, 0, 0, .78) 100%); transition: opacity .3s var(--ease); }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(1.1rem, 3vw, 1.6rem); }
.tile-title { display: block; font-family: var(--font-display); font-weight: var(--heading-weight); font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); line-height: 1.15; margin: 0 0 .35rem; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .3); } /* block: the label always sits under the title */
.tile-label { display: inline-flex; align-items: center; gap: .4rem; color: #fff; font-size: .95rem; font-weight: 500; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.tile-label .icon { transition: transform .25s var(--ease); }
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); color: #fff; }
.tile:hover .tile-media { transform: scale(1.05); }
.tile:hover .tile-label .icon { transform: translateX(3px); }
.tile-tall { aspect-ratio: 4 / 5; }
.tile-wide { aspect-ratio: 16 / 9; }

.figure { margin: 0; }
.figure img { width: 100%; height: auto; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.figure figcaption { margin-top: .75rem; text-align: center; color: var(--muted); font-size: .95rem; }
.figure-portrait img, .img-portrait { aspect-ratio: 4 / 5; object-fit: cover; }
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.img-round { border-radius: var(--radius-card); }
.img-fallback { display: block; width: 100%; min-height: 14rem; border-radius: var(--radius-card); }
.frame { background: var(--surface); padding: .7rem; border-radius: var(--radius-card); box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.frame img, .frame .img-fallback { display: block; width: 100%; border-radius: calc(var(--radius-card) - .45rem); box-shadow: none; }
.frame figcaption { padding: .9rem .4rem .3rem; text-align: center; }
.frame .caption-name { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 .25rem; }
.frame .caption-quote { font-style: italic; color: var(--muted); font-size: .95rem; margin: 0; }
.avatar { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: var(--shadow-card); background: var(--surface-2); }
.avatar-sm { width: 2.5rem; height: 2.5rem; border-width: 2px; }
.avatar-lg { width: 6rem; height: 6rem; }
.avatar-xl { width: 8rem; height: 8rem; }
.cutout { display: block; max-height: 22rem; width: auto; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }

/* Testimonial */
.quote { position: relative; padding-left: 3.25rem; }
.quote-mark { position: absolute; left: 0; top: -.15rem; width: 2.4rem; height: 2.4rem; color: var(--accent); opacity: .35; }
.quote-text { font-family: var(--font-display); font-style: italic; font-size: clamp(1.08rem, 1rem + .5vw, 1.3rem); line-height: 1.65; margin: 0; }
.quote-cite { display: flex; align-items: center; gap: .5rem; margin-top: 1.1rem; font-style: normal; font-weight: 600; font-size: .95rem; color: var(--muted); }
.quote-cite .star { width: .85em; height: .85em; }
.quote-card { padding-left: clamp(1.25rem, 3vw, 1.75rem); }
.quote-card .quote-mark { position: static; width: 2rem; height: 2rem; margin-bottom: -.25rem; }
.quote-lg { padding-left: 0; text-align: center; max-width: 48rem; margin: 0 auto; }
.quote-lg .quote-mark { position: static; display: block; margin: 0 auto .75rem; width: 3rem; height: 3rem; }
.quote-lg .quote-text { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem); }
.quote-lg .quote-cite { justify-content: center; margin-top: 1.5rem; }
.band-dark .quote-cite { color: var(--on-dark-muted); }

/* Meta rows (length · where · price) */
.meta { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem 1.25rem; margin: 0; padding: 0; font-size: .95rem; font-weight: 500; }
.meta li { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; }
.meta .icon { color: var(--primary); }
.meta-stack { flex-direction: column; gap: .55rem; }
.meta-stack li { align-items: flex-start; }
.meta-stack .icon { margin-top: .15rem; }
.price { font-family: var(--font-display); font-size: 1.45rem; font-weight: var(--heading-weight); line-height: 1; }
.price-sm { font-size: 1.1rem; }

/* 9. Eyebrow, badges, dividers, accordion, notices, lists, tables
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem;
  font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text, var(--accent));
}
.eyebrow .star { width: .95em; height: .95em; }
[data-eyebrow="normal"] .eyebrow { text-transform: none; letter-spacing: .01em; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.05rem; }
[data-decor="none"] .eyebrow .star, [data-decor="none"] .divider .star { display: none; }

.badge {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .85rem; border-radius: var(--radius-sm);
  background: var(--primary-soft); color: var(--primary-strong); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; white-space: nowrap;
}
.badge .star, .badge .icon { width: .9em; height: .9em; }
.badge-accent { background: var(--accent); color: var(--on-accent); }
.badge-secondary { background: var(--secondary-soft); color: var(--secondary-strong); }
.badge-dark { background: var(--dark); color: var(--on-dark); }
.badge-outline { background: transparent; border: 1px solid currentColor; }
.badge-ok { background: var(--success-soft); color: var(--success); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: .92rem; font-weight: 500; }

.divider { display: flex; align-items: center; gap: 1rem; margin: 2.5rem 0; color: var(--line-strong); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.divider .star { width: 1rem; height: 1rem; color: var(--accent); }
.divider-sm { margin: 1.25rem 0; }

.accordion { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.accordion + .accordion { margin-top: .75rem; }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.3;
  transition: background .15s var(--ease);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: var(--surface-2); }
.accordion summary::after {
  content: ""; flex: none; width: .55rem; height: .55rem; margin: 0 .35rem .2rem 0;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); transition: transform .25s var(--ease);
}
.accordion[open] summary::after { transform: rotate(-135deg); margin-bottom: -.2rem; }
.accordion-body { padding: 0 1.25rem 1.25rem; }
.accordion-body > :first-child { margin-top: 0; }
.accordion-body > :last-child { margin-bottom: 0; }
.accordion-group .accordion { border-radius: 0; border-width: 0 0 1px; box-shadow: none; }
.accordion-group .accordion + .accordion { margin-top: 0; }
.accordion-group .accordion:first-child { border-radius: var(--radius-card) var(--radius-card) 0 0; }
.accordion-group .accordion:last-child { border-radius: 0 0 var(--radius-card) var(--radius-card); border-bottom-width: 1px; }
.accordion-group { border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.accordion-plain { border: 0; border-radius: 0; background: transparent; border-top: 1px solid var(--line); }
.accordion-plain summary { padding-left: 0; padding-right: 0; }
.accordion-plain summary:hover { background: transparent; color: var(--primary-strong); }
.accordion-plain .accordion-body { padding-left: 0; padding-right: 0; }

.notice {
  display: flex; gap: .75rem; align-items: flex-start; margin: 0 0 1.25rem; padding: .9rem 1.1rem;
  background: var(--primary-tint); border: 1px solid var(--primary-soft); border-radius: var(--radius-input); color: var(--ink);
}
.notice > .icon { flex: none; margin-top: .15rem; color: var(--primary); }
.notice > div { flex: 1; min-width: 0; }
.notice p { margin: 0; }
.notice p + p { margin-top: .4rem; }
.notice-ok { background: var(--success-soft); border-color: transparent; color: var(--success); }
.notice-ok > .icon { color: var(--success); }
.notice-error { background: var(--danger-soft); border-color: transparent; color: var(--danger); font-weight: 500; }
.notice-error > .icon { color: var(--danger); }
.notice-warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.notice-warn > .icon { color: var(--warn); }
.flash-stack { padding-top: 1.25rem; }
.flash-stack .notice:last-child { margin-bottom: 0; }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-stars { list-style: none; margin: 0 0 1.1em; padding: 0; }
.list-stars li { position: relative; padding-left: 1.6rem; margin: 0 0 .6rem; }
.list-stars li::before { content: "\2726"; position: absolute; left: 0; top: .05em; color: var(--accent); font-size: .95em; }
.list-check { list-style: none; margin: 0 0 1.1em; padding: 0; }
.list-check li { position: relative; padding-left: 1.75rem; margin: 0 0 .6rem; }
.list-check li::before { content: ""; position: absolute; left: .1rem; top: .45em; width: .5rem; height: .25rem; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.list-links { list-style: none; margin: 0; padding: 0; }
.list-links li + li { border-top: 1px solid var(--line); }
.list-links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem .25rem; color: inherit; text-decoration: none; transition: background .15s var(--ease), padding .15s var(--ease); }
.list-links a:hover { color: var(--primary-strong); padding-left: .5rem; }
.list-links .icon-chevron, .list-links .icon-next { color: var(--muted-2); }

.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 600; color: var(--muted); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
dl.dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.25rem; margin: 0; }
dl.dl dt { font-weight: 600; color: var(--muted); }
dl.dl dd { margin: 0; }

/* 10. Footer
   -------------------------------------------------------------------------- */
.site-foot {
  position: relative; overflow: hidden; margin-top: auto;
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%); color: var(--on-dark);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
}
[data-decor="glow"] .site-foot::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 100% 0%, rgba(var(--primary-rgb), .28), transparent 70%); }
.foot-decor { position: absolute; inset: 0; pointer-events: none; display: none; }
.foot-decor .star { position: absolute; color: #fff; opacity: .16; }
.foot-decor .star:nth-child(1) { right: 5%; top: 6%; width: 1.3rem; height: 1.3rem; }
.foot-decor .star:nth-child(2) { right: 11%; top: 16%; width: .6rem; height: .6rem; }
[data-decor="stars"] .foot-decor { display: block; }
.site-foot-in { position: relative; display: grid; gap: 2.5rem 2rem; }
.foot-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: var(--heading-weight); line-height: 1.2; margin: 0 0 .4rem; }
.foot-tagline { margin: 0 0 1.25rem; color: var(--on-dark-muted); }
.social-foot a { border-color: rgba(255, 255, 255, .28); color: inherit; }
.social-foot a:hover { background: #fff; color: var(--dark); border-color: #fff; }
.foot-label { font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0 0 .9rem; }
.foot-col p { margin: 0 0 .6rem; }
.foot-email { color: inherit; font-weight: 500; }
.foot-contact-text { color: var(--on-dark-muted); max-width: 22rem; }
.foot-location { display: flex; align-items: center; gap: .45rem; color: var(--on-dark-muted); }
.foot-connect-text { color: var(--on-dark-muted); max-width: 26rem; }
.foot-form { display: grid; gap: .75rem; max-width: 26rem; margin-top: 1rem; }
.foot-form .input { background: #fff; color: #1D1E20; border-color: transparent; }
.foot-form .input:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.foot-submit { justify-self: start; }
.foot-form .form-note { margin: 0; }
.foot-bottom {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; align-items: center;
  margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .86rem; color: var(--on-dark-muted);
}
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; }
.foot-links a { color: inherit; text-decoration: none; }
.foot-links a:hover { color: var(--on-dark); text-decoration: underline; }

/* 11. Decor, reveal-on-scroll, motion
   -------------------------------------------------------------------------- */
.stars-bg { position: relative; }
.stars-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, .55) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .5) 0 1.2px, transparent 2.4px),
    radial-gradient(circle at 56% 64%, rgba(255, 255, 255, .45) 0 .9px, transparent 2px),
    radial-gradient(circle at 88% 76%, rgba(255, 255, 255, .5) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 82%, rgba(255, 255, 255, .4) 0 .8px, transparent 2px);
  background-size: 100% 100%;
}
[data-decor="stars"] .stars-bg::before { opacity: .6; }
[data-decor="glow"] .band-dark::after, [data-decor="glow"] .card-dark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(60% 60% at 10% 0%, rgba(var(--primary-rgb), .3), transparent 70%);
}
[data-decor="glow"] .band-dark > *, [data-decor="glow"] .card-dark > * { position: relative; z-index: 1; }

.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js[data-motion="on"] .reveal:not(.is-visible) { opacity: 0; transform: translateY(18px); animation: reveal-fallback 0s 2.5s forwards; }
.reveal-stagger > * { transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js[data-motion="on"] .reveal-stagger:not(.is-visible) > * { opacity: 0; transform: translateY(16px); animation: reveal-fallback 0s 2.5s forwards; }
.reveal-stagger > :nth-child(2) { transition-delay: .08s; }
.reveal-stagger > :nth-child(3) { transition-delay: .16s; }
.reveal-stagger > :nth-child(4) { transition-delay: .24s; }
.reveal-stagger > :nth-child(5) { transition-delay: .32s; }
.reveal-stagger > :nth-child(6) { transition-delay: .4s; }
.reveal-stagger > :nth-child(n+7) { transition-delay: .48s; }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .hero-media { animation: none !important; transform: none !important; }
}

/* 12. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.relative { position: relative; }
.w-full { width: 100%; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-sm { gap: .5rem; }
.gap { gap: 1rem; }
.gap-lg { gap: 2rem; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: .5rem !important; } .mt-2 { margin-top: 1rem !important; } .mt-3 { margin-top: 1.5rem !important; } .mt-4 { margin-top: 2rem !important; } .mt-5 { margin-top: 3rem !important; } .mt-6 { margin-top: 4rem !important; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .5rem !important; } .mb-2 { margin-bottom: 1rem !important; } .mb-3 { margin-bottom: 1.5rem !important; } .mb-4 { margin-bottom: 2rem !important; } .mb-5 { margin-bottom: 3rem !important; } .mb-6 { margin-bottom: 4rem !important; }
.pt-0 { padding-top: 0 !important; } .pb-0 { padding-bottom: 0 !important; }
.hide-mobile { display: none !important; }
.radius { border-radius: var(--radius-card); }
.shadow { box-shadow: var(--shadow-card); }
.text-primary { color: var(--primary-strong); }
.text-accent { color: var(--accent-text, var(--accent)); }
.bg-surface { background: var(--surface); }
.bg-tint { background: var(--tint); color: var(--on-tint); }
.lockup { display: inline-block; max-width: min(100%, 22rem); height: auto; }
/* csh_lockup_html(): the lockup PNG has dark "Cardinal Star" lettering baked in, so on a dark page background
   (html[data-mode="dark"], switched live by the Theme Studio preview) the bird-only logo with the business name
   typeset beneath it is shown instead. */
.lockup-image { display: block; width: 100%; max-width: 100%; height: auto; }
.lockup-stack { display: none; flex-direction: column; align-items: center; gap: 1rem; width: 100%; text-align: center; }
.lockup-stack .lockup-mark { display: block; width: min(100%, 13rem); height: auto; }
.lockup-name {
  display: block; font-family: var(--font-display); font-weight: var(--heading-weight); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  line-height: 1.15; letter-spacing: .12em; color: var(--ink);
}
html[data-mode="dark"] .lockup-image { display: none; }
html[data-mode="dark"] .lockup-stack, .lockup-stack.lockup-stack-only { display: inline-flex; }

/* 404 / coming soon */
.not-found-mark { display: flex; justify-content: center; align-items: flex-end; gap: .6rem; margin: 0 0 1.5rem; }
.not-found-mark .star { width: 1.5rem; height: 1.5rem; }
.not-found-mark .star:nth-child(1), .not-found-mark .star:nth-child(3) { width: .8rem; height: .8rem; opacity: .6; }
.not-found .lead { max-width: 36rem; margin-left: auto; margin-right: auto; }

/* 13. Print
   -------------------------------------------------------------------------- */
@media print {
  .announce, .nav-toggle, .site-nav, .head-actions, .site-foot .foot-form, .foot-decor, .hero-decor, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-head { position: static; border-bottom: 1px solid #ccc; box-shadow: none; }
  .hero { min-height: 0; color: #000; background: none; }
  .hero-media, .hero-overlay { display: none; }
  .hero-title { text-shadow: none; }
  .site-foot { background: none; color: #000; border-top: 1px solid #ccc; padding-top: 1rem; }
  /* 2.7 (review: print-band-dark): browsers drop backgrounds when printing, so the dark bands (the home
     "Kind words" band, the Learn call to action, dark cards and the quotes in them) print in black too. */
  .band-dark, .card-dark, .home-quote { background: none !important; color: #000 !important; border-color: #ccc !important; box-shadow: none; }
  .band-dark :is(h1, h2, h3, h4, p, li, .lead, .muted, .eyebrow, .eyebrow .star, .quote-text, .quote-cite, .quote-mark, a),
  .card-dark :is(h1, h2, h3, h4, p, li, .lead, .muted, a), .home-quote :is(.quote-text, .quote-cite, .quote-mark) { color: #000 !important; }
  .band-dark .btn, .home-review .btn-outline { color: #000 !important; border-color: #000 !important; background: none !important; }
  .stars-bg::before, .stars-bg::after, .band-dark::after, .card-dark::after { display: none !important; }
  .btn { border: 1px solid #000; color: #000; background: none; box-shadow: none; }
  a { color: #000; }
  .card, .tile, .panel { box-shadow: none; break-inside: avoid; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 480px) {
  .input-group { flex-direction: row; align-items: stretch; }
  .input-group .btn { flex: none; }
}

@media (min-width: 640px) {
  :root { --gutter: 1.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .hide-mobile { display: revert !important; }
  .hide-desktop-sm { display: none !important; }
  .announce { font-size: .8rem; }
}

@media (min-width: 900px) {
  :root { --gutter: 2rem; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3-2 { grid-template-columns: 3fr 2fr; }
  .cols-2-3 { grid-template-columns: 2fr 3fr; }
  .cols-1-2 { grid-template-columns: 1fr 2fr; }
  .cols-2-1 { grid-template-columns: 2fr 1fr; }
  .cols-reverse > :first-child { order: 2; }
  .site-foot-in { grid-template-columns: 1.4fr 1fr 1.25fr; }
  .foot-brand { grid-column: auto; }
  .hide-desktop { display: none !important; }

  /* Header: logo left, nav centred, socials + Book pill right. */
  .site-head-in { grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem; }
  .nav-toggle { display: none; }
  .brand { justify-self: start; }
  .brand-logo { height: var(--logo-h); max-width: 14rem; }
  html.js .site-nav, .site-nav {
    position: static; opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    background: transparent; border: 0; box-shadow: none; padding: 0; max-height: none; overflow: visible; color: inherit;
    display: flex; justify-content: center; transition: none;
  }
  .nav { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 2.2vw, 2rem); }
  .nav li { border: 0; }
  .nav-link { position: relative; padding: .5rem .1rem; font-family: var(--font-body); font-size: .95rem; font-weight: 500; letter-spacing: .01em; }
  .nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 2px; border-radius: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
  .nav-link[aria-current="page"] { color: inherit; }
  .site-nav .nav-extra { display: none; }
  .head-actions .social-head { display: flex; }
  .head-actions .head-book { display: inline-flex; }
  .head-actions .head-book-icon { display: none; }
  .hero-align-left .hero-in { padding-left: calc(var(--gutter) + 2rem); }
  .hero-decor .star:nth-child(1) { left: 12%; top: 22%; }
  .hero-decor .star:nth-child(2) { right: 14%; top: 28%; }
  .hero-decor .star:nth-child(3) { left: 22%; bottom: 24%; }
  .quote-card { padding-left: clamp(1.25rem, 3vw, 1.75rem); }
}

@media (min-width: 1200px) {
  .nav { gap: 2.25rem; }
  .site-head-in { gap: 2.5rem; }
}

/* Compact header on very small phones. */
@media (max-width: 379px) {
  .brand-logo { height: calc(var(--logo-h) * .72); }
  .announce { font-size: .7rem; letter-spacing: .12em; }
  .btn { padding-left: 1.2rem; padding-right: 1.2rem; }
}

/* >>> theme-dimensions >>> */
/* ==========================================================================
   14. Theme dimensions: layout and style beyond color and font
   --------------------------------------------------------------------------
   Each block reads one data-* attribute that includes/theme.php prints on
   <html> (and theme-preview.js switches live). The first value of every
   dimension is the original look and has NO rules here, so presets that use
   the defaults render exactly as before. Rules are prefixed with html[...] so
   they also beat the page stylesheets (pages.css, book.css) loaded later.

     data-hero-layout   overlay | split | framed | type
     data-nav           classic | centered | minimal
     data-cards         soft | outline | flat | glass | paper | tarot
     data-frame         rounded | arch | circle | polaroid | tarot | square
     data-divider       none | stars | moon | ornament | wave
     data-texture       none | grain | paper | constellation | linen | aurora
     data-headings      plain | flourish | smallcaps | underline | italic
     data-density       balanced | airy | compact
     data-button-case   normal | upper
     data-motion-style  rise | fade | float
     data-decor="moon"  crescent moons in the hero and footer (csh_moon())
   ========================================================================== */

/* Shared mask shapes (black on transparent), defined once. */
html {
  --m-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath d='M12 0c.8 7.2 4.8 11.2 12 12-7.2.8-11.2 4.8-12 12-.8-7.2-4.8-11.2-12-12 7.2-.8 11.2-4.8 12-12z'/%3E%3C/svg%3E");
  --m-flourish: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 18' width='140' height='18'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M6 9c12-6 26-6 40 0 8 3 14 3 18 0'/%3E%3Cpath d='M134 9c-12-6-26-6-40 0-8 3-14 3-18 0'/%3E%3C/g%3E%3Cpath transform='translate(65.92 4.92) scale(0.34)' d='M12 0c.8 7.2 4.8 11.2 12 12-7.2.8-11.2 4.8-12 12-.8-7.2-4.8-11.2-12-12 7.2-.8 11.2-4.8 12-12z'/%3E%3C/svg%3E");
  --m-wave-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' width='1440' height='40' preserveAspectRatio='none'%3E%3Cpath d='M0 24C180 6 360 0 540 10S900 38 1080 30 1340 8 1440 14V40H0z'/%3E%3C/svg%3E");
  --m-wave-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' width='1440' height='40' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V26C1260 34 1080 40 900 30S540 2 360 6 100 26 0 18z'/%3E%3C/svg%3E");
}

/* Small labels can use the font pair's accent face (the body font unless the pair names one,
   so this computes to the same family as before for every original pair). */
html .eyebrow, html .foot-label, html .service-kicker, html .book-owner, html .contact-email-label,
html .contact-detail dt, html .book-step-eyebrow, html .book-price-label, html .booking-dl dt, html .tz-label {
  font-family: var(--font-accent, var(--font-body));
}
html[data-eyebrow="normal"] .eyebrow { font-family: var(--font-display); }
/* Italic display text (leads, quotes, taglines) can use the pair's prose face; the display font otherwise. */
/* The contact email is in that face too, so an all-capitals display font never shows the address in capitals. */
html :is(.lead-serif, .card-tagline, .quote-text, .hero-lead, .book-intro, .book-tagline, .book-row-tagline, .reviews-note, .contact-email) {
  font-family: var(--font-prose, var(--font-display));
}

/* Moon decor: hidden unless the decoration is "moon". */
.decor-moon { display: none; }
html[data-decor="moon"] .hero-decor, html[data-decor="moon"] .foot-decor, html[data-decor="moon"] .about-plate-decor,
html[data-decor="moon"] .book-profile-stars { display: block; }
html[data-decor="moon"] .stars-bg::before { opacity: .45; }
html[data-decor="moon"] .decor-moon { display: block; position: absolute; color: #fff; opacity: .38; width: 1.6rem; height: 1.6rem; }
html[data-decor="moon"] .hero-decor .star:nth-child(2), html[data-decor="moon"] .hero-decor .star:nth-child(3) { display: none; }
html[data-decor="moon"] .hero-decor .decor-moon:nth-child(4) { right: 9%; top: 18%; width: 2.6rem; height: 2.6rem; transform: rotate(-18deg); }
html[data-decor="moon"] .hero-decor .decor-moon:nth-child(5) { left: 12%; bottom: 18%; width: 1.1rem; height: 1.1rem; opacity: .26; transform: rotate(30deg); }
html[data-decor="moon"] :is(.hero-tone-tint, .hero-tone-light) .decor-moon { color: var(--accent); opacity: .45; }
html[data-decor="moon"] .foot-decor .decor-moon { right: 6%; top: 10%; width: 2rem; height: 2rem; opacity: .16; }
html[data-decor="moon"] .foot-decor .star:nth-child(1) { right: 12%; top: 6%; }
html.js[data-motion="on"][data-decor="moon"] .hero-decor .decor-moon { animation: moon-drift 9s ease-in-out infinite; }
@keyframes moon-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* --------------------------------------------------------------------------
   14.1 Density: section padding, grid gutters, card padding
   -------------------------------------------------------------------------- */
html[data-density="airy"] { --section-y: clamp(5rem, 10vw, 9rem); }
html[data-density="compact"] { --section-y: clamp(2.75rem, 5.5vw, 4.5rem); }
html[data-density="airy"] .grid:not(.grid-gap-sm):not(.grid-gap-lg) { gap: clamp(1.75rem, 4vw, 3rem); }
html[data-density="compact"] .grid:not(.grid-gap-sm):not(.grid-gap-lg) { gap: clamp(.9rem, 2vw, 1.25rem); }
html[data-density="airy"] .cols { gap: clamp(2.5rem, 6vw, 5.5rem); }
html[data-density="compact"] .cols { gap: clamp(1.5rem, 4vw, 2.75rem); }
html[data-density="airy"] .card { padding: clamp(1.5rem, 3.5vw, 2.25rem); }
html[data-density="compact"] .card { padding: clamp(1rem, 2.5vw, 1.3rem); gap: .6rem; }
html[data-density="compact"] .card.card-pad-0 { padding: 0; }
html[data-density="compact"] .card-sm { padding: .85rem 1rem; }
html[data-density="airy"] .section-head { margin-bottom: 3.5rem; }
html[data-density="compact"] .section-head { margin-bottom: 1.75rem; }
html[data-density="compact"] .section-head h1, html[data-density="compact"] .section-head h2 { margin-bottom: .45em; }
html[data-density="airy"] .hero-in { padding-top: clamp(4.5rem, 11vw, 8.5rem); padding-bottom: clamp(4.5rem, 11vw, 8.5rem); }
html[data-density="compact"] .hero-in { padding-top: clamp(2.75rem, 7vw, 5rem); padding-bottom: clamp(2.75rem, 7vw, 5rem); }

/* --------------------------------------------------------------------------
   14.2 Button case
   -------------------------------------------------------------------------- */
html[data-button-case="upper"] .btn:not(.btn-link) { text-transform: uppercase; letter-spacing: .13em; font-size: .84rem; }
html[data-button-case="upper"] .btn-sm:not(.btn-link) { font-size: .76rem; letter-spacing: .12em; }
html[data-button-case="upper"] .btn-lg:not(.btn-link) { font-size: .9rem; }

/* --------------------------------------------------------------------------
   14.3 Heading style
   -------------------------------------------------------------------------- */
html[data-headings="smallcaps"] :is(h1, h2, h3, .h1, .h2, .h3, .display, .hero-title, .tile-title, .foot-name, .lockup-name) {
  font-variant-caps: small-caps; letter-spacing: .05em;
}
html[data-headings="smallcaps"] .hero-title { letter-spacing: .07em; }
html[data-headings="italic"] :is(h1, h2, h3, .h1, .h2, .h3, .display, .hero-title, .tile-title, .foot-name) { font-style: italic; letter-spacing: -.005em; }
html[data-headings="italic"] .hero-title { letter-spacing: .005em; }
/* Flourish and accent bar sit under the section headings (not under card titles or the booking steps). */
html:is([data-headings="flourish"], [data-headings="underline"]) :is(.section-head > h1, .section-head > h2, .home-intro-text > h2, .newsletter-body > h2,
  .newsletter-body > .newsletter-title, .text-center > h2, .contact-intro > h1, .not-found h1, .booking-head h1, .book-profile-title, .policy-section > h2)::after {
  content: ""; display: block; margin: .45em auto 0; background: var(--accent);
}
html[data-headings="flourish"] :is(.section-head > h1, .section-head > h2, .home-intro-text > h2, .newsletter-body > h2,
  .newsletter-body > .newsletter-title, .text-center > h2, .contact-intro > h1, .not-found h1, .booking-head h1, .book-profile-title, .policy-section > h2)::after {
  width: 8.75rem; height: 1.15rem; opacity: .85;
  -webkit-mask: var(--m-flourish) center / contain no-repeat; mask: var(--m-flourish) center / contain no-repeat;
}
html[data-headings="underline"] :is(.section-head > h1, .section-head > h2, .home-intro-text > h2, .newsletter-body > h2,
  .newsletter-body > .newsletter-title, .text-center > h2, .contact-intro > h1, .not-found h1, .booking-head h1, .book-profile-title, .policy-section > h2)::after {
  width: 3.25rem; height: 3px; border-radius: 3px; margin-top: .55em;
}
html:is([data-headings="flourish"], [data-headings="underline"]) :is(.section-head.is-left > h1, .section-head.is-left > h2, .home-intro-text > h2, .contact-intro > h1, .policy-section > h2)::after { margin-left: 0; }
@media (min-width: 900px) {
  html:is([data-headings="flourish"], [data-headings="underline"]) .newsletter-body > :is(h2, .newsletter-title)::after { margin-left: 0; }
}
/* No mask support: the flourish falls back to the plain bar. */
@supports not ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
  html[data-headings="flourish"] :is(.section-head > h1, .section-head > h2, .home-intro-text > h2, .newsletter-body > h2, .text-center > h2)::after { width: 3.25rem; height: 2px; }
}

/* --------------------------------------------------------------------------
   14.4 Card style (cards, form cards, panels, booking card, small detail boxes)
   -------------------------------------------------------------------------- */
html[data-cards="outline"][data-cards] :where(.card:not(.card-dark):not(.card-tint), .form-card, .panel, .learn-point, .contact-detail, .book-card, .accordion-group, .accordion:not(.accordion-plain):not(.accordion-group .accordion)) {
  box-shadow: none; border-color: rgba(var(--primary-rgb), .42);
}
html[data-cards="outline"] :is(.card-hover:hover, a.card:hover, .learn-point:hover) { box-shadow: none; border-color: var(--primary); }
html[data-cards="outline"] .accordion-group .accordion { border-color: rgba(var(--primary-rgb), .24); }
html[data-cards="outline"] .book-side { border-color: rgba(var(--primary-rgb), .24); }

html[data-cards="flat"][data-cards] :where(.card:not(.card-dark):not(.card-tint), .form-card, .panel, .learn-point, .contact-detail, .book-card, .accordion-group, .accordion:not(.accordion-plain):not(.accordion-group .accordion)) {
  box-shadow: none; border-color: transparent; background-color: var(--primary-tint);
}
html[data-cards="flat"] :is(.card-hover:hover, a.card:hover, .learn-point:hover) { box-shadow: none; background-color: var(--primary-soft); }
html[data-cards="flat"] :is(.service-card .card-foot, .accordion-group .accordion) { border-color: rgba(var(--ink-rgb), .1); }
html[data-cards="flat"] .book-side { background: transparent; border-color: rgba(var(--ink-rgb), .1); }
html[data-cards="flat"] .book-list { background: var(--surface); }

html[data-cards="glass"][data-cards] :where(.card:not(.card-dark):not(.card-tint), .form-card, .panel, .learn-point, .contact-detail, .book-card, .accordion-group, .accordion:not(.accordion-plain):not(.accordion-group .accordion)) {
  background-color: rgba(var(--surface-rgb), .58); border-color: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(14px) saturate(1.35); backdrop-filter: blur(14px) saturate(1.35);
  background-image: linear-gradient(140deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .08) 58%, rgba(var(--accent-rgb), .05));
  box-shadow: 0 10px 34px rgba(var(--dark-rgb), .09), inset 0 1px 0 rgba(255, 255, 255, .65);
}
html[data-cards="glass"][data-mode="dark"][data-cards] :where(.card:not(.card-dark):not(.card-tint), .form-card, .panel, .learn-point, .contact-detail, .book-card, .accordion-group, .accordion:not(.accordion-plain):not(.accordion-group .accordion)) {
  border-color: rgba(255, 255, 255, .12); box-shadow: 0 10px 34px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .08);
  background-color: rgba(var(--surface-rgb), .72);
  background-image: linear-gradient(140deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 60%);
}
html[data-cards="glass"] :is(.card-hover:hover, a.card:hover, .learn-point:hover) { box-shadow: 0 18px 44px rgba(var(--dark-rgb), .14), inset 0 1px 0 rgba(255, 255, 255, .7); }
html[data-cards="glass"] .book-side { background: rgba(var(--surface-2-rgb), .45); }
html[data-cards="glass"] .book-list { background: rgba(var(--surface-rgb), .5); }
html[data-cards="glass"] .accordion-group .accordion { background: transparent; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html[data-cards="glass"][data-cards] :where(.card:not(.card-dark):not(.card-tint), .form-card, .panel, .learn-point, .contact-detail, .book-card, .accordion-group, .accordion) { background-color: rgba(var(--surface-rgb), .95); }
}

/* Paper and tarot cards draw their inner border (and the tarot corner stars) with pseudo-elements. */
html:is([data-cards="paper"], [data-cards="tarot"])[data-cards] :where(.card:not(.card-dark):not(.card-tint), .form-card, .panel, .learn-point, .contact-detail, .book-card) { position: relative; }
html:is([data-cards="paper"], [data-cards="tarot"])[data-cards] :where(.card:not(.card-dark):not(.card-tint), .form-card, .panel, .learn-point, .contact-detail, .book-card)::after {
  content: ""; position: absolute; inset: 6px; z-index: 2; pointer-events: none;
  border: 1px solid rgba(var(--ink-rgb), .14); border-radius: max(2px, calc(var(--radius-card) - 6px));
}
html[data-cards="paper"][data-cards] :where(.card:not(.card-dark):not(.card-tint), .form-card, .panel, .learn-point, .contact-detail, .book-card, .accordion-group) {
  background-color: var(--surface); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.018 .4' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .27 0 0 0 0 .16 0 0 0 1.3 -.5'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23p)' opacity='.22'/%3E%3C/svg%3E"); background-size: 260px 260px;
  box-shadow: 0 1px 2px rgba(var(--dark-rgb), .07), 0 12px 28px rgba(var(--dark-rgb), .08);
}
html[data-cards="paper"][data-mode="dark"][data-cards] :where(.card:not(.card-dark):not(.card-tint), .form-card, .panel, .learn-point, .contact-detail, .book-card, .accordion-group) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.018 .4' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.3 -.5'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23p)' opacity='.12'/%3E%3C/svg%3E"); }
html[data-cards="paper"] .book-side { background-color: rgba(var(--ink-rgb), .03); }

html[data-cards="tarot"][data-cards] :where(.card:not(.card-dark):not(.card-tint), .form-card, .panel, .learn-point, .contact-detail, .book-card)::after {
  inset: 7px; border-color: rgba(var(--accent-rgb), .55); outline: 1px solid rgba(var(--accent-rgb), .3); outline-offset: 3px;
  border-radius: max(2px, calc(var(--radius-card) - 7px));
}
html[data-cards="tarot"][data-cards] :where(.card:not(.card-dark):not(.card-tint), .form-card, .panel, .learn-point, .contact-detail, .book-card)::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: var(--accent);
  -webkit-mask: var(--m-star) left 1px top 1px / 13px 13px no-repeat, var(--m-star) right 1px top 1px / 13px 13px no-repeat,
    var(--m-star) left 1px bottom 1px / 13px 13px no-repeat, var(--m-star) right 1px bottom 1px / 13px 13px no-repeat;
  mask: var(--m-star) left 1px top 1px / 13px 13px no-repeat, var(--m-star) right 1px top 1px / 13px 13px no-repeat,
    var(--m-star) left 1px bottom 1px / 13px 13px no-repeat, var(--m-star) right 1px bottom 1px / 13px 13px no-repeat;
}
@supports not ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
  html[data-cards="tarot"] :is(.card, .form-card, .panel, .learn-point, .contact-detail, .book-card)::before { display: none; }
}
html[data-cards="tarot"][data-cards] :where(.card:not(.card-dark):not(.card-tint), .form-card, .panel, .book-card) { box-shadow: 0 2px 4px rgba(var(--dark-rgb), .05), 0 14px 32px rgba(var(--dark-rgb), .1); }
html[data-cards="tarot"] :is(.learn-point, .contact-detail) { padding-left: 1.5rem; padding-right: 1.5rem; }

/* Coloured top borders (service colour, featured review, booking state) survive every card style. */
html[data-cards]:not([data-cards="soft"]) .card.card-accent { border-top-color: var(--card-accent, var(--primary)); }
html[data-cards]:not([data-cards="soft"]) .review-card.is-featured { border-top-color: var(--accent); }
html[data-cards]:not([data-cards="soft"]) .is-booking-live .booking-card { border-top-color: var(--primary); }
html[data-cards]:not([data-cards="soft"]) .is-booking-cancelled .booking-card { border-top-color: var(--line-strong); }
html[data-cards]:not([data-cards="soft"]) :is(.is-booking-pending, .is-booking-expired, .is-booking-paid_conflict, .is-booking-pay) .booking-card { border-top-color: var(--secondary); }

/* --------------------------------------------------------------------------
   14.5 Photo frames (portrait frames, photo tiles, figures; never the logo)
   -------------------------------------------------------------------------- */
/* Square */
html[data-frame="square"] :is(.tile, .frame, .figure img, .img-round, .frame img, .frame .img-fallback, .about-portrait .img-fallback) { border-radius: 0; }
html[data-frame="square"] .frame { padding: .55rem; }

/* Arch: a semicircle over the top (radii larger than the box are scaled down to half its width). */
html[data-frame="arch"] :is(.tile, .frame, .figure img, .img-round) { border-radius: 999px 999px 6px 6px; }
html[data-frame="arch"] :is(.frame img, .frame .img-fallback) { border-radius: 999px 999px 3px 3px; }
html[data-frame="arch"] .frame { padding: .65rem .65rem .65rem; }
html[data-frame="arch"] .tile-body { padding-bottom: clamp(1.25rem, 3vw, 1.9rem); text-align: center; }
html[data-frame="arch"] .tile-label { justify-content: center; }
html[data-frame="arch"] .tile::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .42) 58%, rgba(0, 0, 0, .82) 100%); }
@media (min-width: 900px) { html[data-frame="arch"] .home-tiles .tile { aspect-ratio: 3 / 4; } }

/* Circle: round portraits with a fine ring; tiles become round "orbs" with centred labels. */
html[data-frame="circle"] .frame { background: transparent; border: 0; box-shadow: none; padding: 9px; }
html[data-frame="circle"] :is(.frame img, .frame .img-fallback) {
  aspect-ratio: 1 / 1; height: auto; object-fit: cover; border-radius: 50%;
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px rgba(var(--accent-rgb), .45), var(--shadow-card);
}
html[data-frame="circle"] .frame figcaption { padding-top: 1.4rem; }
html[data-frame="circle"] :is(.figure img, .img-round) { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; }
html[data-frame="circle"] .tile { aspect-ratio: 1 / 1; border-radius: 50%; width: 100%; max-width: 24rem; margin-left: auto; margin-right: auto; }
html[data-frame="circle"] .tile::after { background: radial-gradient(circle at 50% 52%, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .5) 50%, rgba(0, 0, 0, .34) 100%); }
html[data-frame="circle"] :is(.tile-title, .tile-label) { text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
html[data-frame="circle"] .tile-body { top: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18%; }
html[data-frame="circle"] .tile::before {
  content: ""; position: absolute; inset: 9px; z-index: 2; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); pointer-events: none;
}
html[data-frame="circle"] .home-tiles .tile { aspect-ratio: 1 / 1; }

/* Polaroid: a white mat with a thicker bottom, a slight tilt that straightens on hover. */
html[data-frame="polaroid"] .frame {
  border-radius: 3px; padding: .75rem .75rem 2.75rem; background: var(--surface);
  box-shadow: 0 2px 4px rgba(var(--dark-rgb), .08), 0 16px 34px rgba(var(--dark-rgb), .16);
  transform: rotate(-1.6deg); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
html[data-frame="polaroid"] .frame + .frame { transform: rotate(1.4deg); }
html[data-frame="polaroid"] .frame:hover { transform: rotate(0); }
html[data-frame="polaroid"] :is(.frame img, .frame .img-fallback) { border-radius: 1px; }
html[data-frame="polaroid"] .frame figcaption { padding: 1.1rem .5rem 0; margin-bottom: -1.25rem; }
html[data-frame="polaroid"] .tile {
  --mat: .7rem; --mat-b: 4.1rem;
  border-radius: 3px; background: var(--surface); color: var(--ink); overflow: hidden;
  box-shadow: 0 2px 4px rgba(var(--dark-rgb), .08), 0 16px 34px rgba(var(--dark-rgb), .15);
  transform: rotate(-1.4deg);
}
html[data-frame="polaroid"] .tile:nth-child(2n) { transform: rotate(1.2deg); }
html[data-frame="polaroid"] .tile:nth-child(3n) { transform: rotate(-.6deg); }
html[data-frame="polaroid"] .tile:hover { transform: rotate(0) translateY(-4px); color: var(--ink); }
html[data-frame="polaroid"] .tile-media { inset: var(--mat) var(--mat) var(--mat-b); }
html[data-frame="polaroid"] .tile:hover .tile-media { transform: none; }
html[data-frame="polaroid"] .tile::after { display: none; }
html[data-frame="polaroid"] .tile-body { height: var(--mat-b); display: flex; flex-direction: column; justify-content: center; padding: .35rem 1rem .5rem; }
html[data-frame="polaroid"] .tile-title { color: var(--ink); text-shadow: none; font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); margin: 0; }
html[data-frame="polaroid"] .tile-label { color: var(--link); font-size: .86rem; }
html[data-frame="polaroid"] :is(.figure img, .img-round) { border-radius: 2px; border: .6rem solid var(--surface); border-bottom-width: 2.25rem; transform: rotate(-1.2deg); }

/* Tarot: a tall card proportion with a fine inner border. */
html[data-frame="tarot"] .frame { max-width: 24rem; margin-left: auto; margin-right: auto; padding: .55rem; }
html[data-frame="tarot"] :is(.frame img, .frame .img-fallback) { aspect-ratio: 2 / 3; height: auto; object-fit: cover; outline: 1px solid rgba(255, 255, 255, .8); outline-offset: -9px; }
html[data-frame="tarot"] .tile, html[data-frame="tarot"] .home-tiles .tile { aspect-ratio: 4 / 5; outline: 1px solid rgba(255, 255, 255, .78); outline-offset: -10px; }
html[data-frame="tarot"] .tile::before {
  content: ""; position: absolute; inset: 14px; z-index: 2; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: max(2px, calc(var(--radius-card) - 12px));
}
html[data-frame="tarot"] .tile-body { padding: 1.75rem 1.75rem 2rem; text-align: center; }
html[data-frame="tarot"] .tile-label { justify-content: center; }
html[data-frame="tarot"] :is(.figure img, .img-round) { aspect-ratio: 2 / 3; object-fit: cover; outline: 1px solid rgba(255, 255, 255, .8); outline-offset: -9px; }
@media (min-width: 900px) { html[data-frame="tarot"] .tile, html[data-frame="tarot"] .home-tiles .tile { aspect-ratio: 3 / 5; } }
@media (min-width: 640px) and (max-width: 899px) { html[data-frame="tarot"] .home-tiles .tile { aspect-ratio: 3 / 4; } }

/* --------------------------------------------------------------------------
   14.6 Hero layout (photo and dark heroes; the pastel/plain heroes keep their look)
   -------------------------------------------------------------------------- */
/* Split: text on a panel, the photo in a frame beside it (stacked on phones). */
html[data-hero-layout="split"] .hero:is(.hero-tone-photo, .hero-tone-dark) {
  --hero-pad: clamp(1rem, 3vw, 2rem);
  grid-template-columns: minmax(0, 1fr); align-items: stretch; min-height: 0;
  background: var(--tint); color: var(--on-tint);
}
html[data-hero-layout="split"] .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-media {
  position: relative; inset: auto; z-index: 0; grid-row: 1; height: clamp(15rem, 62vw, 22rem);
  margin: var(--hero-pad) var(--gutter) 0; border-radius: calc(var(--radius-card) * 1.25);
  box-shadow: var(--shadow-card);
}
html[data-hero-layout="split"] .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-overlay { display: none; }
html[data-hero-layout="split"] .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-in { grid-row: 2; padding-top: clamp(2rem, 6vw, 3rem); padding-bottom: clamp(2.5rem, 7vw, 3.5rem); }
html[data-hero-layout="split"] .hero-short:is(.hero-tone-photo, .hero-tone-dark) .hero-media { height: clamp(12rem, 48vw, 17rem); }
@media (min-width: 900px) {
  html[data-hero-layout="split"] .hero:is(.hero-tone-photo, .hero-tone-dark) {
    grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, calc(var(--wrap) * .52)) minmax(0, calc(var(--wrap) * .48)) minmax(var(--gutter), 1fr);
    min-height: min(var(--hero-min), 46rem); align-items: center;
  }
  html[data-hero-layout="split"] .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-in {
    grid-column: 2; grid-row: 1; max-width: none; padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem) var(--gutter); text-align: left;
  }
  html[data-hero-layout="split"] .hero:is(.hero-tone-photo, .hero-tone-dark) :is(.hero-eyebrow, .hero-actions) { justify-content: flex-start; }
  html[data-hero-layout="split"] .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-lead { margin-left: 0; }
  html[data-hero-layout="split"] .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-media {
    grid-column: 3; grid-row: 1; align-self: stretch; height: auto; min-height: 22rem; margin: clamp(2rem, 4vw, 3.25rem) var(--gutter) clamp(2rem, 4vw, 3.25rem) 0;
  }
  html[data-hero-layout="split"] .hero-short:is(.hero-tone-photo, .hero-tone-dark) .hero-media { min-height: 16rem; }
  html[data-hero-layout="split"] .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-title { font-size: clamp(2.6rem, 1.6rem + 3vw, 4.4rem); }
}
/* The split photo takes the theme's photo-frame shape. */
html[data-hero-layout="split"][data-frame="square"] .hero .hero-media { border-radius: 0; }
html[data-hero-layout="split"][data-frame="arch"] .hero .hero-media { border-radius: 999px 999px 6px 6px; }
html[data-hero-layout="split"][data-frame="circle"] .hero .hero-media {
  border-radius: 50%; aspect-ratio: 1 / 1; height: auto; width: min(100% - 2 * var(--gutter), 20rem); justify-self: center;
  box-shadow: 0 0 0 8px var(--surface), 0 0 0 9px rgba(var(--accent-rgb), .45), var(--shadow-hover);
  margin-top: calc(var(--hero-pad) + 9px);
}
html[data-hero-layout="split"][data-frame="polaroid"] .hero .hero-media {
  border-radius: 3px; border: .8rem solid var(--surface); border-bottom-width: 3rem; transform: rotate(1.6deg);
  box-shadow: 0 18px 40px rgba(var(--dark-rgb), .22);
}
html[data-hero-layout="split"][data-frame="tarot"] .hero .hero-media {
  width: min(100% - 2 * var(--gutter), 17rem); height: auto; aspect-ratio: 3 / 5; justify-self: center;
  outline: 1px solid rgba(255, 255, 255, .8); outline-offset: -10px; box-shadow: var(--shadow-hover);
}
@media (min-width: 900px) {
  html[data-hero-layout="split"][data-frame="circle"] .hero .hero-media { width: min(100%, 30rem); align-self: center; margin: clamp(2rem, 4vw, 3.25rem) 0; }
  html[data-hero-layout="split"][data-frame="tarot"] .hero .hero-media { width: min(100%, 21rem); align-self: center; min-height: 0; }
  html[data-hero-layout="split"][data-frame="arch"] .hero .hero-media { min-height: 26rem; }
}

/* Framed: the photo is inset in a large frame with page margin around it; text stays on the photo. */
html[data-hero-layout="framed"] .hero:is(.hero-tone-photo, .hero-tone-dark) {
  --fx: max(var(--gutter), calc((100% - var(--wrap-wide)) / 2)); --ft: clamp(.75rem, 2.2vw, 1.5rem); --fb: clamp(.75rem, 2.2vw, 1.5rem);
  --mat: 0px; --mat-b: 0px; --frame-r: calc(var(--radius-card) * 1.6);
  background: transparent;
}
html[data-hero-layout="framed"] .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-media { inset: var(--ft) var(--fx) var(--fb); border-radius: var(--frame-r); box-shadow: var(--shadow-card); }
html[data-hero-layout="framed"] .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-overlay {
  inset: calc(var(--ft) + var(--mat)) calc(var(--fx) + var(--mat)) calc(var(--fb) + var(--mat-b));
  border-radius: max(0px, calc(var(--frame-r) - var(--mat)));
}
html[data-hero-layout="framed"][data-decor="glow"] .hero:is(.hero-tone-photo, .hero-tone-dark)::after { inset: var(--ft) var(--fx) var(--fb); border-radius: var(--frame-r); }
html[data-hero-layout="framed"] .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-decor { inset: var(--ft) var(--fx) var(--fb); }
html[data-hero-layout="framed"] .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-in { padding-left: calc(var(--fx) + 1.5rem); padding-right: calc(var(--fx) + 1.5rem); max-width: none; }
html[data-hero-layout="framed"] .hero:is(.hero-tone-photo, .hero-tone-dark).hero-align-left .hero-in { padding-left: calc(var(--fx) + clamp(1.5rem, 5vw, 4rem)); }
html[data-hero-layout="framed"] .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-in { padding-top: calc(var(--ft) + clamp(3rem, 8vw, 6rem)); padding-bottom: calc(var(--fb) + clamp(3rem, 8vw, 6rem) + var(--mat-b)); }
html[data-hero-layout="framed"][data-frame="square"] .hero { --frame-r: 0px; }
html[data-hero-layout="framed"][data-frame="circle"] .hero { --frame-r: clamp(2.5rem, 9vw, 7rem); }
html[data-hero-layout="framed"][data-frame="arch"] .hero:is(.hero-tone-photo, .hero-tone-dark) :is(.hero-media, .hero-overlay) {
  border-radius: 50% 50% var(--radius-card) var(--radius-card) / clamp(8rem, 34vw, 20rem) clamp(8rem, 34vw, 20rem) var(--radius-card) var(--radius-card);
}
html[data-hero-layout="framed"][data-frame="arch"][data-decor="glow"] .hero:is(.hero-tone-photo, .hero-tone-dark)::after {
  border-radius: 50% 50% var(--radius-card) var(--radius-card) / clamp(8rem, 34vw, 20rem) clamp(8rem, 34vw, 20rem) var(--radius-card) var(--radius-card);
}
html[data-hero-layout="framed"][data-frame="arch"] .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-in { padding-top: calc(var(--ft) + clamp(5rem, 14vw, 9rem)); }
html[data-hero-layout="framed"][data-frame="polaroid"] .hero { --mat: .9rem; --mat-b: 3.5rem; --frame-r: 4px; }
html[data-hero-layout="framed"][data-frame="polaroid"] .hero .hero-media { border: var(--mat) solid var(--surface); border-bottom-width: var(--mat-b); box-shadow: 0 18px 44px rgba(var(--dark-rgb), .2); }
html[data-hero-layout="framed"][data-frame="tarot"] .hero .hero-overlay { outline: 1px solid rgba(255, 255, 255, .7); outline-offset: -12px; }
html[data-hero-layout="framed"][data-frame="tarot"] .hero .hero-overlay::before {
  content: ""; position: absolute; inset: 17px; border: 1px solid rgba(255, 255, 255, .35); border-radius: max(2px, calc(var(--frame-r) - 15px));
}
html[data-hero-layout="framed"] .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-decor .star:nth-child(1) { left: 6%; }
/* Small phones: less inner padding and a title that scales with the screen, so wide display faces never split a word. */
@media (max-width: 479px) {
  html[data-hero-layout="framed"] .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-in,
  html[data-hero-layout="framed"] .hero:is(.hero-tone-photo, .hero-tone-dark).hero-align-left .hero-in { padding-left: calc(var(--fx) + 1rem); padding-right: calc(var(--fx) + 1rem); }
  html[data-hero-layout="framed"] .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-title { font-size: min(clamp(2.75rem, 2rem + 4.2vw, 5rem), 12vw); }
}

/* Typographic: no photo, a big title on the page background with the decor motif behind it. */
html[data-hero-layout="type"] .hero:is(.hero-tone-photo, .hero-tone-dark) {
  background: transparent; color: var(--ink); min-height: calc(var(--hero-min) * .82);
}
html[data-hero-layout="type"] .hero:is(.hero-tone-photo, .hero-tone-dark) :is(.hero-media, .hero-overlay) { display: none; }
html[data-hero-layout="type"] .hero:is(.hero-tone-photo, .hero-tone-dark)::after { display: none; }
html[data-hero-layout="type"] .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-title {
  font-size: clamp(3rem, 1.4rem + 6.6vw, 7rem); line-height: .98; text-shadow: none; letter-spacing: .01em;
}
html[data-hero-layout="type"] .hero-short:is(.hero-tone-photo, .hero-tone-dark) .hero-title { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5rem); }
html[data-hero-layout="type"] .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-lead { opacity: .9; }
html[data-hero-layout="type"] .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-decor { display: block; }
html[data-hero-layout="type"] .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-decor::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(78vw, 36rem); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: var(--accent); opacity: .07;
  -webkit-mask: var(--m-star) center / contain no-repeat; mask: var(--m-star) center / contain no-repeat;
}
html[data-hero-layout="type"] .hero-align-left:is(.hero-tone-photo, .hero-tone-dark) .hero-decor::before { left: 78%; }
html[data-hero-layout="type"] .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-decor::after {
  content: ""; position: absolute; left: 50%; bottom: clamp(1rem, 3vw, 2rem); width: min(60%, 24rem); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .55), transparent);
}
html[data-hero-layout="type"][data-decor="none"] .hero .hero-decor .star, html[data-hero-layout="type"][data-decor="glow"] .hero .hero-decor .star { display: none; }

/* Split and type heroes sit on light (or theme) colors: text, eyebrow, stars and buttons follow the theme. */
html:is([data-hero-layout="split"], [data-hero-layout="type"]) .hero:is(.hero-tone-photo, .hero-tone-dark) :is(.hero-eyebrow, .hero-eyebrow .star) { color: var(--accent); opacity: 1; }
html:is([data-hero-layout="split"], [data-hero-layout="type"]) .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-title { text-shadow: none; }
html:is([data-hero-layout="split"], [data-hero-layout="type"]) .hero:is(.hero-tone-photo, .hero-tone-dark) .hero-decor :is(.star, .decor-moon) { color: var(--accent); }
html:is([data-hero-layout="split"], [data-hero-layout="type"]) .hero:is(.hero-tone-photo, .hero-tone-dark) :is(.btn-light, .btn-white) {
  background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 10px 24px rgba(var(--primary-rgb), .25);
}
html:is([data-hero-layout="split"], [data-hero-layout="type"]) .hero:is(.hero-tone-photo, .hero-tone-dark) :is(.btn-light, .btn-white):hover {
  background: var(--primary-hover, var(--primary-strong)); border-color: var(--primary-hover, var(--primary-strong)); color: var(--on-primary);
}
html:is([data-hero-layout="split"], [data-hero-layout="type"])[data-buttons="outline"] .hero:is(.hero-tone-photo, .hero-tone-dark) :is(.btn-light, .btn-white) {
  background: transparent; color: var(--primary-strong); border-color: var(--primary); box-shadow: none;
}
html:is([data-hero-layout="split"], [data-hero-layout="type"])[data-buttons="outline"] .hero:is(.hero-tone-photo, .hero-tone-dark) :is(.btn-light, .btn-white):hover { background: var(--primary); color: var(--on-primary); }
html:is([data-hero-layout="split"], [data-hero-layout="type"])[data-buttons="soft"] .hero:is(.hero-tone-photo, .hero-tone-dark) :is(.btn-light, .btn-white) {
  background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary-strong); box-shadow: none;
}
html:is([data-hero-layout="split"], [data-hero-layout="type"]) .hero:is(.hero-tone-photo, .hero-tone-dark) .btn-outline { color: inherit; border-color: currentColor; }
html:is([data-hero-layout="split"], [data-hero-layout="type"]) .hero:is(.hero-tone-photo, .hero-tone-dark) .btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }
html:is([data-hero-layout="split"], [data-hero-layout="type"])[data-buttons="outline"] .hero .btn-primary { color: var(--primary-strong); }
/* The Learn hero's accent pill and the Reviews hero title keep working on light. */
html[data-hero-layout="split"] .hero-tone-photo .hero-title-2, html[data-hero-layout="type"] .hero-tone-photo .hero-title-2 { opacity: .92; }
/* Non-overlay heroes: the photo eases in instead of zooming (the frame itself must not grow). */
html.js[data-motion="on"]:not([data-hero-layout="overlay"]) .hero-tone-photo .hero-media { animation: hero-frame-in 1.1s var(--ease) both; }
@keyframes hero-frame-in { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   14.7 Navigation layout
   -------------------------------------------------------------------------- */
/* Centered: the logo on its own row, socials left and the Book pill right, links on a row beneath. */
@media (min-width: 900px) {
  html[data-nav="centered"] .site-head-in {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "social brand book" "nav nav nav";
    row-gap: .3rem; padding-top: .85rem; padding-bottom: 0;
  }
  html[data-nav="centered"] .brand { grid-area: brand; justify-self: center; }
  html[data-nav="centered"] .head-actions { display: contents; }
  html[data-nav="centered"] .head-actions .social-head { grid-area: social; justify-self: start; }
  html[data-nav="centered"] .head-actions .head-book { grid-area: book; justify-self: end; }
  html[data-nav="centered"] .site-nav { grid-area: nav; border-top: 1px solid var(--line); padding: .2rem 0 .25rem; }
  html[data-nav="centered"][data-header="dark"] .site-nav { border-top-color: rgba(255, 255, 255, .1); }
  html[data-nav="centered"] .nav { gap: clamp(1.25rem, 3vw, 2.75rem); }
  html[data-nav="centered"] .nav-link { font-size: .86rem; letter-spacing: .14em; text-transform: uppercase; padding: .7rem .1rem; }
  html[data-nav="centered"] .nav-link::after { bottom: .35rem; height: 1px; }
}

/* Minimal: logo, Book pill and a menu button at every width; the links live in a slide-out panel. */
html[data-nav="minimal"] .site-head-in { grid-template-columns: minmax(0, 1fr) auto auto; gap: .6rem; }
html[data-nav="minimal"] .brand { order: -1; justify-self: start; max-width: 100%; }
html[data-nav="minimal"] .brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
html[data-nav="minimal"] .head-actions { order: 1; }
html[data-nav="minimal"] .nav-toggle { order: 2; display: inline-flex; position: relative; z-index: 62; }
html[data-nav="minimal"] .head-actions .social-head, html[data-nav="minimal"] .head-actions .head-book-icon { display: none; }
html[data-nav="minimal"] .head-actions .head-book { display: inline-flex; }
html[data-nav="minimal"] .site-nav, html.js[data-nav="minimal"] .site-nav {
  position: fixed; top: 0; right: 0; bottom: 0; left: auto; z-index: 61; display: block;
  width: min(23rem, 88vw); max-height: none; height: 100vh; height: 100dvh; overflow-y: auto;
  padding: calc(var(--head-h) + .75rem) 1.75rem 2rem; border: 0; border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(var(--dark-rgb), .2); justify-content: flex-start;
}
html[data-nav="minimal"]:not([data-header="dark"]) .site-nav { background: var(--surface); color: var(--ink); }
html.js[data-nav="minimal"] .site-nav { opacity: 1; visibility: hidden; transform: translateX(104%); pointer-events: none; transition: transform .38s var(--ease), visibility 0s linear .38s; }
html.js[data-nav="minimal"] .site-nav.is-open { visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
html:not(.js)[data-nav="minimal"] .site-nav { position: static; width: auto; height: auto; box-shadow: none; border: 0; padding: .5rem 0 1rem; grid-column: 1 / -1; }
html:not(.js)[data-nav="minimal"] .nav-toggle { display: none; }
html[data-nav="minimal"] body.nav-open .site-head::after {
  content: ""; position: fixed; inset: 0; z-index: 60; background: rgba(var(--dark-rgb), .38); pointer-events: none;
}
html[data-nav="minimal"] .site-nav .nav { display: block; }
html[data-nav="minimal"] .site-nav .nav li { border-bottom: 1px solid var(--line); }
html[data-nav="minimal"][data-header="dark"] .site-nav .nav li { border-color: rgba(255, 255, 255, .1); }
html[data-nav="minimal"] .site-nav .nav-link { display: block; padding: .95rem .25rem; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .01em; text-transform: none; }
html[data-nav="minimal"] .site-nav .nav-link::after { display: none; }
html[data-nav="minimal"] .site-nav .nav-link[aria-current="page"] { color: var(--primary-strong); }
html[data-nav="minimal"][data-header="dark"] .site-nav .nav-link[aria-current="page"] { color: inherit; text-decoration: underline; text-underline-offset: .3em; }
html[data-nav="minimal"] .site-nav .nav-extra { display: flex; }
@media (max-width: 420px) {
  html[data-nav="minimal"] .head-actions .head-book { padding-left: .9rem; padding-right: .9rem; }
  html[data-nav="minimal"] .brand-logo { max-width: 8.5rem; }
}
@media (max-width: 359px) {
  html[data-nav="minimal"] .head-actions .head-book { display: none; }
  html[data-nav="minimal"] .head-actions .head-book-icon { display: inline-flex; }
}

/* A transparent header only floats over the classic overlay hero (site.js sets body.has-hero accordingly). */

/* --------------------------------------------------------------------------
   14.8 Background texture: a fixed, faint layer behind the page; the light
   bands turn slightly see-through so it shows everywhere evenly.
   -------------------------------------------------------------------------- */
html[data-texture="grain"] { --tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.5 -.45'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E"); --tex-size: 220px 220px; --tex-o: .2; }
html[data-texture="paper"] { --tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.05 .08' numOctaves='5' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.5 -.5'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23p)'/%3E%3C/svg%3E"); --tex-size: 320px 320px; --tex-o: .1; }
html[data-texture="constellation"] { --tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cg fill='none' stroke='%23000' stroke-width='.7' stroke-opacity='.55'%3E%3Cpolyline points='40,60 95,40 150,78 128,140 70,120'/%3E%3Cpolyline points='300,50 350,92 410,70 468,118'/%3E%3Cpolyline points='230,230 275,290 240,352 320,330'/%3E%3Cpolyline points='60,330 110,400 60,470 150,455'/%3E%3Cpolyline points='390,380 440,430 500,410 470,488'/%3E%3C/g%3E%3Ccircle cx='40' cy='60' r='2.2'/%3E%3Ccircle cx='95' cy='40' r='1.5'/%3E%3Ccircle cx='150' cy='78' r='1.5'/%3E%3Ccircle cx='128' cy='140' r='2.2'/%3E%3Ccircle cx='70' cy='120' r='1.5'/%3E%3Ccircle cx='300' cy='50' r='2.2'/%3E%3Ccircle cx='350' cy='92' r='1.5'/%3E%3Ccircle cx='410' cy='70' r='1.5'/%3E%3Ccircle cx='468' cy='118' r='2.2'/%3E%3Ccircle cx='230' cy='230' r='2.2'/%3E%3Ccircle cx='275' cy='290' r='1.5'/%3E%3Ccircle cx='240' cy='352' r='1.5'/%3E%3Ccircle cx='320' cy='330' r='2.2'/%3E%3Ccircle cx='60' cy='330' r='2.2'/%3E%3Ccircle cx='110' cy='400' r='1.5'/%3E%3Ccircle cx='60' cy='470' r='1.5'/%3E%3Ccircle cx='150' cy='455' r='2.2'/%3E%3Ccircle cx='390' cy='380' r='2.2'/%3E%3Ccircle cx='440' cy='430' r='1.5'/%3E%3Ccircle cx='500' cy='410' r='1.5'/%3E%3Ccircle cx='470' cy='488' r='2.2'/%3E%3Ccircle cx='190' cy='20' r='1' opacity='.8'/%3E%3Ccircle cx='20' cy='200' r='1' opacity='.8'/%3E%3Ccircle cx='500' cy='250' r='1' opacity='.8'/%3E%3Ccircle cx='330' cy='180' r='1' opacity='.8'/%3E%3Ccircle cx='200' cy='480' r='1' opacity='.8'/%3E%3Ccircle cx='12' cy='500' r='1' opacity='.8'/%3E%3Ccircle cx='260' cy='120' r='1' opacity='.8'/%3E%3Ccircle cx='430' cy='260' r='1' opacity='.8'/%3E%3C/svg%3E"); --tex-size: 520px 520px; --tex-o: .2; }
html[data-texture="linen"] { --tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Crect width='6' height='1'/%3E%3Crect width='1' height='6' opacity='.7'/%3E%3C/svg%3E"); --tex-size: 6px 6px; --tex-o: .04; }
html[data-mode="dark"][data-texture="grain"] { --tex-o: .14; }
html[data-mode="dark"][data-texture="constellation"] { --tex-o: .3; }
@supports ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
  html:is([data-texture="grain"], [data-texture="paper"], [data-texture="constellation"], [data-texture="linen"]) body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: var(--ink); opacity: var(--tex-o);
    -webkit-mask: var(--tex) 0 0 / var(--tex-size) repeat; mask: var(--tex) 0 0 / var(--tex-size) repeat;
  }
  html:is([data-texture="grain"], [data-texture="paper"], [data-texture="constellation"], [data-texture="linen"]) .band-surface { background-color: rgba(var(--surface-rgb), .7); }
  html:is([data-texture="grain"], [data-texture="paper"], [data-texture="constellation"], [data-texture="linen"]) .band-soft { background-color: rgba(var(--surface-2-rgb), .72); }
  html:is([data-texture="grain"], [data-texture="paper"], [data-texture="constellation"], [data-texture="linen"]) .band-tint { background-color: rgba(var(--tint-rgb), .86); }
  html:is([data-texture="grain"], [data-texture="paper"], [data-texture="constellation"], [data-texture="linen"]) .book-stage { background: transparent; }
}
/* Aurora: a soft multicolour glow, no mask needed. */
html[data-texture="aurora"] body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 38% at 8% 6%, rgba(var(--primary-rgb), .22), transparent 72%),
    radial-gradient(38% 42% at 94% 14%, rgba(var(--accent-rgb), .15), transparent 72%),
    radial-gradient(46% 40% at 72% 96%, rgba(var(--secondary-rgb), .18), transparent 72%),
    radial-gradient(40% 36% at 18% 82%, rgba(var(--tint-rgb), .95), transparent 72%),
    radial-gradient(30% 30% at 50% 45%, rgba(var(--accent-rgb), .06), transparent 70%);
}
html[data-texture="aurora"] .band-surface { background-color: rgba(var(--surface-rgb), .5); }
html[data-texture="aurora"] .band-soft { background-color: rgba(var(--surface-2-rgb), .45); }
html[data-texture="aurora"] .band-tint { background-color: rgba(var(--tint-rgb), .62); }
html[data-texture="aurora"] .book-stage { background: transparent; }
html[data-texture="aurora"][data-hero-layout="split"] .hero:is(.hero-tone-photo, .hero-tone-dark) { background-color: rgba(var(--tint-rgb), .6); }

/* --------------------------------------------------------------------------
   14.9 Section dividers. Stars, moons and the ornament sit centred in the top
   padding of a section that follows another; the wave cuts soft edges where
   a coloured band meets its neighbours.
   -------------------------------------------------------------------------- */
html[data-divider="stars"] { --div: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' width='120' height='24'%3E%3Cpath transform='translate(25.44 7.44) scale(0.38)' d='M12 0c.8 7.2 4.8 11.2 12 12-7.2.8-11.2 4.8-12 12-.8-7.2-4.8-11.2-12-12 7.2-.8 11.2-4.8 12-12z'/%3E%3Cpath transform='translate(50.40 2.40) scale(0.8)' d='M12 0c.8 7.2 4.8 11.2 12 12-7.2.8-11.2 4.8-12 12-.8-7.2-4.8-11.2-12-12 7.2-.8 11.2-4.8 12-12z'/%3E%3Cpath transform='translate(85.44 7.44) scale(0.38)' d='M12 0c.8 7.2 4.8 11.2 12 12-7.2.8-11.2 4.8-12 12-.8-7.2-4.8-11.2-12-12 7.2-.8 11.2-4.8 12-12z'/%3E%3Ccircle cx='6' cy='12' r='1.6'/%3E%3Ccircle cx='114' cy='12' r='1.6'/%3E%3C/svg%3E"); --div-w: 6.5rem; --div-h: 1.3rem; }
html[data-divider="moon"] { --div: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 24' width='160' height='24'%3E%3Cpath d='M14 5 A7 7 0 1 1 14 19 A3.8500000000000005 7 0 1 0 14 5Z'/%3E%3Cpath d='M46 5 A7 7 0 0 1 46 19Z'/%3E%3Ccircle cx='46' cy='12' r='6.4' fill='none' stroke='%23000' stroke-opacity='.45' stroke-width='1.2'/%3E%3Ccircle cx='80' cy='12' r='8'/%3E%3Cpath d='M114 5 A7 7 0 0 0 114 19Z'/%3E%3Ccircle cx='114' cy='12' r='6.4' fill='none' stroke='%23000' stroke-opacity='.45' stroke-width='1.2'/%3E%3Cpath d='M146 5 A7 7 0 1 0 146 19 A3.8500000000000005 7 0 1 1 146 5Z'/%3E%3Ccircle cx='30' cy='12' r='1.2'/%3E%3Ccircle cx='63' cy='12' r='1.2'/%3E%3Ccircle cx='97' cy='12' r='1.2'/%3E%3Ccircle cx='130' cy='12' r='1.2'/%3E%3C/svg%3E"); --div-w: 9rem; --div-h: 1.35rem; }
html[data-divider="ornament"] { --div: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 24' width='320' height='24'%3E%3Cdefs%3E%3ClinearGradient id='l' x1='0' x2='1'%3E%3Cstop offset='0' stop-opacity='0'/%3E%3Cstop offset='1'/%3E%3C/linearGradient%3E%3ClinearGradient id='r' x1='0' x2='1'%3E%3Cstop offset='0'/%3E%3Cstop offset='1' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='0' y='11.4' width='118' height='1.2' fill='url(%23l)'/%3E%3Crect x='202' y='11.4' width='118' height='1.2' fill='url(%23r)'/%3E%3Cpath d='M124 12c6-6 14-7 22-1-8 5-16 5-22 1z'/%3E%3Cpath d='M196 12c-6-6-14-7-22-1 8 5 16 5 22 1z'/%3E%3Cpath transform='translate(152.56 4.56) scale(0.62)' d='M12 0c.8 7.2 4.8 11.2 12 12-7.2.8-11.2 4.8-12 12-.8-7.2-4.8-11.2-12-12 7.2-.8 11.2-4.8 12-12z'/%3E%3Ccircle cx='120' cy='12' r='1.5'/%3E%3Ccircle cx='200' cy='12' r='1.5'/%3E%3C/svg%3E"); --div-w: min(20rem, 72%); --div-h: 1.5rem; }
@supports ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
  html:is([data-divider="stars"], [data-divider="moon"], [data-divider="ornament"]) main > .section + .section:not(.section-flush-top):not(.hero) > .wrap:first-child::before {
    content: ""; display: block; width: var(--div-w); height: var(--div-h); max-width: 100%;
    margin: calc(var(--div-k, .5) * -1 * var(--section-y) - var(--div-h) / 2) auto calc(var(--div-k, .5) * var(--section-y) - var(--div-h) / 2);
    background: var(--accent); opacity: .78;
    -webkit-mask: var(--div) center / contain no-repeat; mask: var(--div) center / contain no-repeat;
  }
  html:is([data-divider="stars"], [data-divider="moon"], [data-divider="ornament"]) main > .section.section-sm { --div-k: .3; }
  html:is([data-divider="stars"], [data-divider="moon"], [data-divider="ornament"]) main > .section.section-xs { --div-k: .2; }
  html:is([data-divider="stars"], [data-divider="moon"], [data-divider="ornament"]) main > .band-dark > .wrap:first-child::before { background: var(--on-dark); opacity: .55; }
  html:is([data-divider="stars"], [data-divider="moon"], [data-divider="ornament"]) main > .band-primary > .wrap:first-child::before { background: var(--on-primary); opacity: .6; }

  /* Wave: light bands show the page background; coloured bands get soft wavy edges. */
  html[data-divider="wave"] { --wave-h: clamp(14px, 2.6vw, 34px); }
  html[data-divider="wave"] main > .band-surface { background-color: transparent; }
  html[data-divider="wave"] main > .section + :is(.band-soft, .band-tint, .band-dark, .band-primary) {
    -webkit-mask: var(--m-wave-top) top / 100% var(--wave-h) no-repeat, linear-gradient(#000 0 0) 0 calc(var(--wave-h) - 1px) / 100% calc(100% - var(--wave-h) + 1px) no-repeat;
    mask: var(--m-wave-top) top / 100% var(--wave-h) no-repeat, linear-gradient(#000 0 0) 0 calc(var(--wave-h) - 1px) / 100% calc(100% - var(--wave-h) + 1px) no-repeat;
  }
  html[data-divider="wave"] main > :is(.band-soft, .band-tint, .band-dark, .band-primary):not(.newsletter):has(+ .section) {
    -webkit-mask: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--wave-h) + 1px) no-repeat, var(--m-wave-bottom) bottom / 100% var(--wave-h) no-repeat;
    mask: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--wave-h) + 1px) no-repeat, var(--m-wave-bottom) bottom / 100% var(--wave-h) no-repeat;
  }
  html[data-divider="wave"] main > .section + :is(.band-soft, .band-tint, .band-dark, .band-primary):not(.newsletter):has(+ .section) {
    -webkit-mask: var(--m-wave-top) top / 100% var(--wave-h) no-repeat, linear-gradient(#000 0 0) 0 calc(var(--wave-h) - 1px) / 100% calc(100% - 2 * var(--wave-h) + 2px) no-repeat, var(--m-wave-bottom) bottom / 100% var(--wave-h) no-repeat;
    mask: var(--m-wave-top) top / 100% var(--wave-h) no-repeat, linear-gradient(#000 0 0) 0 calc(var(--wave-h) - 1px) / 100% calc(100% - 2 * var(--wave-h) + 2px) no-repeat, var(--m-wave-bottom) bottom / 100% var(--wave-h) no-repeat;
  }
  /* The footer gets a wave too, cut into its top edge. */
  html[data-divider="wave"] .site-foot {
    -webkit-mask: var(--m-wave-top) top / 100% var(--wave-h) no-repeat, linear-gradient(#000 0 0) 0 calc(var(--wave-h) - 1px) / 100% calc(100% - var(--wave-h) + 1px) no-repeat;
    mask: var(--m-wave-top) top / 100% var(--wave-h) no-repeat, linear-gradient(#000 0 0) 0 calc(var(--wave-h) - 1px) / 100% calc(100% - var(--wave-h) + 1px) no-repeat;
  }
}

/* --------------------------------------------------------------------------
   14.10 Motion style (all of it is switched off by data-motion="off" and by
   prefers-reduced-motion, like the original reveal)
   -------------------------------------------------------------------------- */
html.js[data-motion="on"][data-motion-style="fade"] .reveal:not(.is-visible),
html.js[data-motion="on"][data-motion-style="fade"] .reveal-stagger:not(.is-visible) > * { transform: none; }
html[data-motion-style="fade"] .reveal { transition-duration: .9s; }
html[data-motion-style="fade"] .reveal-stagger > * { transition-duration: .8s; }
html.js[data-motion="on"][data-motion-style="fade"] .hero-in > * { animation-name: fade-in; animation-duration: 1s; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

html.js[data-motion="on"][data-motion-style="float"] .reveal:not(.is-visible) { transform: translate3d(0, 34px, 0) scale(.985); }
html.js[data-motion="on"][data-motion-style="float"] .reveal-stagger:not(.is-visible) > * { transform: translate3d(0, 40px, 0) scale(.98); }
html[data-motion-style="float"] .reveal { transition-duration: 1.2s; transition-timing-function: cubic-bezier(.16, 1, .3, 1); }
html[data-motion-style="float"] .reveal-stagger > * { transition-duration: 1.15s; transition-timing-function: cubic-bezier(.16, 1, .3, 1); }
html[data-motion-style="float"] .reveal-stagger > :nth-child(2) { transition-delay: .14s; }
html[data-motion-style="float"] .reveal-stagger > :nth-child(3) { transition-delay: .28s; }
html[data-motion-style="float"] .reveal-stagger > :nth-child(4) { transition-delay: .42s; }
html[data-motion-style="float"] .reveal-stagger > :nth-child(5) { transition-delay: .56s; }
html[data-motion-style="float"] .reveal-stagger > :nth-child(n+6) { transition-delay: .66s; }
html.js[data-motion="on"][data-motion-style="float"] .hero-in > * { animation-name: float-in; animation-duration: 1.4s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
html.js[data-motion="on"][data-motion-style="float"] .hero-in > :nth-child(2) { animation-delay: .18s; }
html.js[data-motion="on"][data-motion-style="float"] .hero-in > :nth-child(3) { animation-delay: .36s; }
html.js[data-motion="on"][data-motion-style="float"] .hero-in > :nth-child(4) { animation-delay: .54s; }
@keyframes float-in { from { opacity: 0; transform: translate3d(0, 30px, 0); } to { opacity: 1; transform: none; } }
html.js[data-motion="on"][data-motion-style="float"] .hero-decor .star { animation: twinkle-float 7s ease-in-out infinite; }
@keyframes twinkle-float { 0%, 100% { opacity: .2; translate: 0 0; } 50% { opacity: .5; translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) {
  html[data-frame="polaroid"] :is(.frame, .tile) { transition: none; }
  .decor-moon, .hero-decor .star { animation: none !important; translate: none !important; }
}

/* --------------------------------------------------------------------------
   14.11 Small fixes so every combination stays tidy
   -------------------------------------------------------------------------- */
/* Outline buttons on the dark footer and dark bands read in the light text color. */
html[data-buttons="outline"] :is(.site-foot, .band-dark, .card-dark) :is(.btn-primary, .btn-secondary) { color: var(--on-dark); border-color: rgba(255, 255, 255, .6); }
html[data-buttons="outline"] :is(.site-foot, .band-dark, .card-dark) .btn-primary:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
html[data-buttons="outline"] :is(.site-foot, .band-dark, .card-dark) .btn-secondary:hover { background: var(--secondary); border-color: var(--secondary); color: var(--on-secondary); }
/* Glass, paper and tarot cards: the white newsletter/footer inputs are unaffected; inputs inside cards stay solid. */
html:is([data-cards="glass"], [data-cards="flat"]) :is(.form-card, .book-card) :is(.input, input[type="text"], input[type="email"], input[type="tel"], textarea, select) { background-color: var(--input-bg); }
/* Square image frames inside round theme corners: the newsletter fallback keeps its shape. */
@media print {
  body::before { display: none !important; }
  .site-foot, main > .section { -webkit-mask: none !important; mask: none !important; }
}
/* <<< theme-dimensions <<< */

/* 2.4 Amy's email, bot-protected (includes/layout.php csh_email_link_html, assets/js/site.js)
   The served HTML holds no address: site.js fills the link and shows the Copy button.
   Variants: inline (inside a sentence), lg (the contact page), foot (the footer), button.
   -------------------------------------------------------------------------- */
.email-protect { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; max-width: 100%; vertical-align: baseline; }
.email-protect [hidden] { display: none !important; }
.email-protect-link { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.email-protect-link:hover { color: var(--primary-strong); text-decoration-thickness: 2px; }
.email-protect-link .icon { flex: none; color: var(--primary); }
.email-protect-text { overflow-wrap: break-word; min-width: 0; }
.email-copy {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 2.25rem; padding: .3rem .85rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink);
  font: inherit; font-size: .86rem; font-weight: 600; line-height: 1; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.email-copy:hover { border-color: var(--primary); color: var(--primary-strong); background: var(--primary-tint); }
.email-copy:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.email-copy .icon { flex: none; }
.email-copy.is-copied { border-color: var(--success); color: var(--success); background: var(--success-soft); }
.email-protect-spoken { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; overflow-wrap: anywhere; }
.email-protect-spoken .icon { flex: none; color: var(--primary); }
.email-protect-hint { display: block; flex-basis: 100%; margin-top: .2rem; font-size: .86rem; color: var(--muted); }

/* Inside a sentence: the link reads as text, the Copy button is a small round icon. */
.email-protect-inline { display: inline; }
.email-protect-inline .email-protect-link { display: inline; }
.email-protect-inline .email-copy { display: inline-flex; align-items: center; justify-content: center; min-height: 0; width: 1.35em; height: 1.35em; padding: 0; margin: 0 0 0 .25em; vertical-align: -.25em; line-height: 1; border-color: var(--line); }
.email-protect-inline .email-copy .icon { width: .85em; height: .85em; }

/* The contact page: the address set large in the display face, the Copy pill beside it. */
.email-protect-lg { gap: .75rem 1rem; }
.email-protect-lg .email-protect-link {
  /* --font-prose: a display face that is all capitals (Cinzel) would print the address in capitals */
  font-family: var(--font-prose, var(--font-display)); font-size: clamp(1.08rem, .95rem + .9vw, 1.6rem); color: var(--ink);
  text-decoration: none; padding-bottom: .2rem; border-bottom: 2px solid var(--primary-soft);
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.email-protect-lg .email-protect-link:hover { color: var(--primary-strong); border-color: var(--primary); }
.email-protect-lg .email-copy { min-height: 2.6rem; padding: .45rem 1.1rem; font-size: .92rem; }
.email-protect-lg .email-protect-spoken { font-family: var(--font-prose, var(--font-display)); font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); font-weight: 500; }

/* The dark footer. */
.email-protect-foot .email-protect-link { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: .1rem; }
.email-protect-foot .email-protect-link:hover { color: inherit; border-color: currentColor; }
.email-protect-foot .email-protect-link .icon { color: var(--on-dark-muted); }
.email-protect-foot .email-copy { min-height: 2rem; padding: .25rem .75rem; font-size: .8rem; background: transparent; color: inherit; border-color: rgba(255, 255, 255, .35); }
.email-protect-foot .email-copy:hover { background: #fff; color: var(--dark); border-color: #fff; }
.email-protect-foot .email-copy.is-copied { background: rgba(255, 255, 255, .14); color: inherit; border-color: rgba(255, 255, 255, .6); }
.email-protect-foot .email-copy:focus-visible { outline-color: #fff; }
.email-protect-foot .email-protect-spoken .icon { color: var(--on-dark-muted); }
.email-protect-foot .email-protect-hint { color: var(--on-dark-muted); }
.band-dark .email-protect-link { color: inherit; }
.band-dark .email-copy { background: transparent; color: inherit; border-color: rgba(255, 255, 255, .4); }

/* A pill button ("Email Amy") with the Copy button beside it. */
.email-protect-button .email-protect-link,
.email-protect-button .email-protect-link:hover { text-decoration: none; color: var(--on-primary); }
.email-protect-button .email-protect-link .icon { color: inherit; }

/* The newsletter forms' "one email to confirm" line. */
.newsletter-fine { display: flex; align-items: center; gap: .4rem; margin: .6rem 0 0; font-size: .86rem; color: var(--muted); }
.newsletter-fine .icon { flex: none; opacity: .8; }
.band-dark .newsletter-fine { color: var(--on-dark-muted); }

@media print {
  .email-copy { display: none !important; }
}
