/* ==========================================================================
   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).
   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
   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: #F7F3F4; --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: #664343;
  --tint: #F3E3F2; --tint-2: #EEDCEE; --on-primary: #FFFFFF; --on-secondary: #FFFFFF; --on-accent: #FFFFFF;
  --on-dark: #FFFFFF; --on-dark-muted: #D8CFCF; --on-tint: #1D1E20; --muted: #6B6468; --muted-2: #9A9497;
  --line: #E9E3E5; --line-strong: #CFC6C9; --link: #B76969; --focus: #B76969;
  --primary-soft: #F5E9E9; --primary-tint: #FAF3F3; --primary-strong: #9B5555; --secondary-soft: #F0EAF3;
  --secondary-strong: #7E6689; --accent-soft: #F8E4E8; --input-bg: #F4F4F4; --input-border: #BFC6D0;
  --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); }
@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; }
.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-strong); border-color: 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-strong); border-color: 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; }
[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); }
.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; }
.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);
}
.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-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-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); }
.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; }
  .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; }
}
