/* Candace Nadine Breen — site styles */
:root {
  --paper: #faf5ee;
  --paper-2: #f3eadf;
  --sand: #e8dccb;
  --ink: #2a1f2b;
  --ink-soft: #5b4d57;
  --plum: #2b1a31;
  --plum-2: #3a2442;
  --clay: #8a5448;
  --gold: #b07f33;
  --gold-light: #dcb878;
  --cream: #f6ead8;
  --line: rgba(42, 31, 43, .14);
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(43, 26, 49, .45);
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Jost', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--plum); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; color: var(--plum); letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
em.accent, .accent { font-style: italic; color: var(--clay); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--plum); color: var(--cream); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--plum); color: var(--cream); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--cream); }
.section--dark a:not(.btn) { color: var(--gold-light); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; font: 500 .78rem/1 var(--sans);
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2em;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.section--dark .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--gold-light); }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 44em; }
.section--dark .lede { color: rgba(246, 234, 216, .8); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }

/* Ornament */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 0 auto 1.5em; }
.ornament::before, .ornament::after { content: ''; height: 1px; width: 64px; background: currentColor; opacity: .55; }
.ornament svg { width: 22px; height: 22px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.6em; border-radius: 999px; border: 1px solid transparent;
  font: 500 .86rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--plum); color: var(--cream); }
.btn--primary:hover { background: var(--clay); color: #fff; }
.btn--gold { background: var(--gold-light); color: var(--plum); }
.btn--gold:hover { background: var(--cream); color: var(--plum); }
.btn--ghost { border-color: currentColor; color: var(--plum); background: transparent; }
.btn--ghost:hover { background: var(--plum); color: var(--cream); border-color: var(--plum); }
.section--dark .btn--ghost, .hero .btn--ghost, .page-hero .btn--ghost, .band .btn--ghost { color: var(--cream); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover, .band .btn--ghost:hover { background: var(--cream); color: var(--plum); border-color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }
.text-link { font: 500 .85rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--clay); display: inline-flex; align-items: center; gap: .5em; }
.text-link svg { width: 1em; height: 1em; transition: transform .2s; }
.text-link:hover svg { transform: translateX(4px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 245, 238, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
/* Logo: original CB monogram + "Candace Breen" wordmark */
.brand { --logo: var(--plum); --logo-accent: var(--gold); display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--logo); }
.brand:hover { color: var(--logo); }
.brand-mark { width: 42px; height: 42px; flex: none; overflow: visible; transition: width .3s, height .3s; }
.brand-mark path { fill: currentColor; stroke: currentColor; stroke-width: .3; stroke-linejoin: round; }
.brand-mark .cb-c, .brand-mark .cb-top, .brand-mark .cb-bottom, .brand-mark .cb-mid { transform-box: view-box; transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), color .3s; }
.brand-mark .cb-c { transform-origin: 13px 19.5px; }
.brand-word { font: 400 1.62rem/1 'Times New Roman', Times, 'Liberation Serif', 'Noto Serif', serif; letter-spacing: .005em; white-space: nowrap; display: inline-flex; transition: font-size .3s; }
.brand-word span { display: inline-block; transition: color .3s; }

/* Hover / focus: the C turns, the B opens, letters ripple to gold */
.brand:hover .cb-c, .brand:focus-visible .cb-c { transform: rotate(-14deg); color: var(--logo-accent); }
.brand:hover .cb-top, .brand:focus-visible .cb-top { transform: translate(1.2px, -1px); }
.brand:hover .cb-bottom, .brand:focus-visible .cb-bottom { transform: translate(1.2px, 1px); }
.brand:hover .cb-mid, .brand:focus-visible .cb-mid { transform: translateX(2px); }
.brand:hover .brand-word span, .brand:focus-visible .brand-word span { animation: cb-wave .6s ease both; animation-delay: calc(var(--i) * 35ms); }
@keyframes cb-wave { 40% { transform: translateY(-4px); color: var(--logo-accent); } 100% { transform: none; } }

/* First visit in a session: the monogram draws itself, then the name writes in */
.intro .site-header .brand-mark path { fill-opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; animation: cb-draw 1.3s cubic-bezier(.65, 0, .35, 1) forwards, cb-fill .7s ease forwards; }
.intro .site-header .brand-mark .cb-c path { animation-delay: .1s, 1.05s; }
.intro .site-header .brand-mark .cb-top { animation-delay: .35s, 1.2s; }
.intro .site-header .brand-mark .cb-mid { animation-delay: .55s, 1.3s; }
.intro .site-header .brand-mark .cb-bottom { animation-delay: .6s, 1.35s; }
.intro .site-header .brand-word span { opacity: 0; animation: cb-letter .55s ease forwards; animation-delay: calc(.7s + var(--i) * 45ms); }
@keyframes cb-draw { to { stroke-dashoffset: 0; } }
@keyframes cb-fill { to { fill-opacity: 1; } }
@keyframes cb-letter { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }

/* Compact header after scrolling */
.site-header .wrap { transition: min-height .3s; }
.site-header.scrolled { --header-h: 62px; }
.site-header.scrolled .wrap { min-height: 62px; }
.site-header.scrolled .brand-mark { width: 34px; height: 34px; }
.site-header.scrolled .brand-word { font-size: 1.42rem; }
@media (max-width: 420px) { .brand-mark { width: 36px; height: 36px; } .brand-word { font-size: 1.4rem; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav li { position: relative; }
.nav a, .nav .nav-toggle-sub {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  font: 500 .9rem/1 var(--sans); letter-spacing: .04em; color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav .nav-toggle-sub:hover, .nav a[aria-current="page"] { color: var(--clay); }
.nav .nav-toggle-sub svg { width: 12px; height: 12px; transition: transform .2s; }
.nav .sub {
  list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 6px); left: -10px; min-width: 230px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav .sub a { display: block; padding: 10px 14px; border-radius: 10px; }
.nav .sub a:hover { background: var(--paper-2); }
.nav li.open > .sub, .nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1001px) { .nav li:hover > .sub { opacity: 1; visibility: visible; transform: none; } }
.nav li.open > .nav-toggle-sub svg { transform: rotate(180deg); }
.nav a.btn { margin-left: 10px; min-height: 42px; padding: .7em 1.4em; background: var(--plum); color: var(--cream); font-size: .8rem; letter-spacing: .14em; }
.nav a.btn:hover { background: var(--clay); color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; width: 46px; height: 46px; align-items: center; justify-content: center; color: var(--plum); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn svg + svg, .menu-btn[aria-expanded="true"] svg:first-of-type { display: none; }
.menu-btn[aria-expanded="true"] svg + svg { display: block; }

@media (max-width: 1000px) {
  /* backdrop-filter would make the header the containing block for the fixed menu */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h, 76px) 0 0 0; background: var(--paper); flex-direction: column; align-items: stretch;
    padding: 20px var(--gutter) 40px; overflow-y: auto; opacity: 0; transform: translateY(-10px); visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.is-open { opacity: 1; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a, .nav .nav-toggle-sub { width: 100%; justify-content: space-between; padding: 18px 4px; font-size: 1.05rem; border-radius: 0; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 12px 12px; display: none; min-width: 0; }
  .nav li.open > .sub { display: block; }
  .nav .sub a { padding: 12px 4px; font-size: 1rem; }
  .nav a.btn { margin: 24px 0 0; width: 100%; min-height: 52px; justify-content: center; border-radius: 999px; }
  body.nav-open { overflow: hidden; }
}

/* Home hero */
.hero { background: var(--plum); color: var(--cream); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 85% 20%, rgba(176, 127, 51, .22), transparent 60%),
              radial-gradient(700px 500px at 0% 100%, rgba(138, 84, 72, .35), transparent 60%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }
.hero h1 { color: var(--cream); font-weight: 500; }
.hero h1 em { color: var(--gold-light); font-weight: 500; }
.hero .lede { color: rgba(246, 234, 216, .82); font-size: clamp(1.1rem, 1.6vw, 1.3rem); margin-bottom: 2em; }
.hero-roles { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 2.4em 0 0; padding: 0; list-style: none; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(246, 234, 216, .62); }
.hero-roles li { display: flex; align-items: center; gap: 20px; }
.hero-roles li + li::before { content: '✦'; color: var(--gold-light); font-size: .7rem; letter-spacing: 0; }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-frame { position: relative; max-width: 460px; margin-left: auto; width: 100%; }
.arch-frame::before { content: ''; position: absolute; inset: -14px -14px 14px 14px; border: 1px solid rgba(220, 184, 120, .55); border-radius: 999px 999px 22px 22px; }
.arch-frame .moon { position: absolute; left: -34px; bottom: 54px; width: 92px; height: 92px; border-radius: 50%; background: var(--paper); color: var(--plum); display: grid; place-items: center; box-shadow: var(--shadow); text-align: center; font: 600 1.6rem/1 var(--serif); }
.arch-frame .moon small { display: block; font: 500 .55rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .arch-frame { max-width: 340px; margin: 10px auto 0; }
  .arch-frame .moon { left: -16px; }
}

/* Page hero */
.page-hero { position: relative; color: var(--cream); background: var(--plum); overflow: hidden; }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43, 26, 49, .92) 0%, rgba(43, 26, 49, .55) 60%, rgba(43, 26, 49, .25) 100%); }
.page-hero .wrap { position: relative; z-index: 1; padding-top: clamp(70px, 10vw, 140px); padding-bottom: clamp(60px, 8vw, 110px); }
.page-hero h1 { color: var(--cream); font-weight: 500; max-width: 14em; }
.page-hero p { color: rgba(246, 234, 216, .85); font-size: 1.2rem; max-width: 36em; margin: 0; }
.page-hero blockquote { margin: 0; font: italic 500 clamp(1.25rem, 2vw, 1.55rem)/1.4 var(--serif); color: rgba(246, 234, 216, .9); max-width: 34em; }
.page-hero cite { display: block; margin-top: .6em; font: 500 .78rem/1 var(--sans); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.crumbs { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.4em; }
.crumbs a { color: var(--gold-light); text-decoration: none; }
.crumbs span { color: rgba(246, 234, 216, .5); margin: 0 .5em; }

/* Credentials strip */
.strip { border-bottom: 1px solid var(--line); background: var(--paper-2); }
.strip ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.strip li { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; border-left: 1px solid var(--line); }
.strip strong { font: 600 1.7rem/1 var(--serif); color: var(--plum); }
.strip li > span { font-size: .82rem; letter-spacing: .06em; color: var(--ink-soft); line-height: 1.4; }
@media (max-width: 760px) { .strip ul { grid-template-columns: 1fr 1fr; } }

/* Featured book */
.feature { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.feature-cover { position: sticky; top: 110px; text-align: center; }
.feature-cover img { margin: 0 auto 28px; filter: drop-shadow(0 30px 30px rgba(43, 26, 49, .35)); max-width: 360px; width: 100%; }
.excerpt { font: 400 1.32rem/1.65 var(--serif); color: var(--ink); }
.excerpt .chapter + p::first-letter { float: left; font: 600 4.6rem/.8 var(--serif); color: var(--clay); padding: .08em .1em 0 0; }
.excerpt .pull { font: italic 500 clamp(1.6rem, 2.6vw, 2.1rem)/1.3 var(--serif); color: var(--plum); border-left: 2px solid var(--gold); padding: .2em 0 .2em 1em; margin: 1.4em 0; }
.chapter { font: 500 .8rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: .8em; }
.content-note { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); background: var(--paper-2); border-radius: 12px; padding: 14px 18px; margin-bottom: 2em; }
.content-note svg { width: 20px; height: 20px; flex: none; color: var(--clay); margin-top: 3px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature-cover { position: static; } .feature-cover img { max-width: 260px; } }

/* Bookshelf */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 44px; }
.filters button { font: 500 .82rem/1 var(--sans); letter-spacing: .08em; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; min-height: 44px; }
.filters button[aria-pressed="true"] { background: var(--plum); color: var(--cream); border-color: var(--plum); }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 44px 28px; }
.book-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.book-card[hidden] { display: none; }
.book-card .cover { position: relative; aspect-ratio: 3 / 4.2; margin-bottom: 16px; border-radius: var(--radius); background: radial-gradient(circle at 50% 60%, var(--sand), transparent 70%); transition: transform .3s; }
.book-card .cover img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; object-position: center bottom; filter: drop-shadow(0 16px 18px rgba(43, 26, 49, .3)); }
.book-card:hover .cover { transform: translateY(-6px); }
.book-card .genre { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.book-card h3 { font-size: 1.4rem; margin: .3em 0 0; }
.book-card:hover h3 { color: var(--clay); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }
.split .arch-frame { margin: 0 auto; max-width: 420px; }
.split .arch-frame::before { border-color: rgba(176, 127, 51, .5); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; gap: 20px; align-items: flex-start; }
.service img { width: 72px; height: 72px; border-radius: 50%; flex: none; object-fit: cover; }
.service h3 { font-size: 1.45rem; margin-bottom: .25em; }
.service p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { margin: 0; padding: 36px 30px 30px; border-radius: var(--radius); background: var(--plum-2); position: relative; display: flex; flex-direction: column; }
.quote::before { content: '“'; font: 600 5rem/1 var(--serif); color: var(--gold-light); position: absolute; top: 6px; left: 24px; opacity: .55; }
.quote p { font: italic 400 1.22rem/1.55 var(--serif); color: var(--cream); margin: 26px 0 22px; flex: 1; }
.quote cite { font: 500 .78rem/1 var(--sans); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; } }

/* Band (full-bleed image) */
.band { position: relative; color: var(--cream); overflow: hidden; background: var(--plum); }
.band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 18, 36, .55), rgba(30, 18, 36, .78)); }
.band .wrap { position: relative; z-index: 1; padding-top: clamp(90px, 12vw, 170px); padding-bottom: clamp(90px, 12vw, 170px); }
.band h2 { color: var(--cream); font-weight: 500; }
.band p { color: rgba(246, 234, 216, .88); font-size: 1.2rem; max-width: 34em; margin-left: auto; margin-right: auto; }

/* Donate */
.donate { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow); }
.donate-box { display: flex; align-items: center; gap: 22px; justify-content: center; flex-wrap: wrap; }
.donate-box figure { margin: 0; text-align: center; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.donate-box figure img { width: 128px; height: 128px; image-rendering: pixelated; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 6px; margin-bottom: 8px; }
@media (max-width: 760px) { .donate { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 620px) { .form .row, .form .row-3 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font: 500 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.field label .req { color: var(--clay); }
.field input, .field textarea, .field select {
  font: 400 1rem/1.4 var(--sans); color: var(--ink); width: 100%;
  background: #fffdf9; border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 127, 51, .18); }
.form fieldset { border: 0; padding: 0; margin: 10px 0 0; display: grid; gap: 16px; }
.form legend { font: 600 1.35rem/1.2 var(--serif); color: var(--plum); margin-bottom: 8px; padding: 0; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .95rem; padding: 0; border-radius: 10px; }
.form-status:not(:empty) { padding: 12px 16px; }
.form-status.ok { background: #e7efe2; color: #2f4a26; }
.form-status.err { background: #f6e3de; color: #7a2f22; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.section--tint .form-card { background: var(--paper); }

/* Genre page / book entries */
.book-entry { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; padding: clamp(48px, 7vw, 80px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.book-entry:last-child { border-bottom: 0; }
.book-entry:nth-child(even) { grid-template-columns: 1fr 340px; }
.book-entry:nth-child(even) .book-entry-cover { order: 2; }
.book-entry-cover { position: relative; background: radial-gradient(circle at 50% 55%, var(--sand), transparent 68%); border-radius: 50%; aspect-ratio: 1; }
.book-entry-cover img { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); object-fit: contain; filter: drop-shadow(0 26px 26px rgba(43, 26, 49, .35)); }
.book-entry h2 { margin-bottom: .15em; }
.book-entry .subtitle { font: italic 500 1.4rem/1.3 var(--serif); color: var(--clay); margin-bottom: .8em; }
.book-entry .byline { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1em; }
.book-entry .tagline { font: 500 1.35rem/1.45 var(--serif); color: var(--ink); }
.book-entry .note { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--clay); }
.book-entry .btn-row { margin-top: 1.6em; }
@media (max-width: 860px) {
  .book-entry, .book-entry:nth-child(even) { grid-template-columns: 1fr; }
  .book-entry:nth-child(even) .book-entry-cover { order: 0; }
  .book-entry-cover { max-width: 300px; margin: 0 auto; }
}
.genre-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.genre-nav a { display: block; text-decoration: none; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); color: var(--ink); transition: border-color .2s, transform .2s; }
.genre-nav a:hover { border-color: var(--gold); transform: translateY(-3px); }
.genre-nav strong { display: block; font: 600 1.5rem/1.2 var(--serif); color: var(--plum); margin-bottom: .3em; }
.genre-nav span { font-size: .95rem; color: var(--ink-soft); }
.genre-nav em { display: block; font-style: normal; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: 12px; }
@media (max-width: 860px) { .genre-nav { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .genre-nav { grid-template-columns: 1fr; } }

/* About */
.prose { font-size: 1.12rem; }
.prose p { margin-bottom: 1.25em; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose blockquote { margin: 1.6em 0; padding-left: 1.2em; border-left: 2px solid var(--gold); font: italic 500 1.45rem/1.45 var(--serif); color: var(--plum); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.facts svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 3px; }

/* Journal */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.post-card .thumb { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--plum); margin-bottom: 18px; position: relative; display: grid; place-items: center; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card .thumb img.contain { object-fit: contain; padding: 14px; background: var(--sand); }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .thumb .badge { position: absolute; left: 12px; top: 12px; display: inline-flex; gap: 6px; align-items: center; background: rgba(250, 245, 238, .94); color: var(--plum); border-radius: 999px; padding: 7px 12px; font: 500 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.post-card .thumb .badge svg { width: 13px; height: 13px; }
.post-card .thumb .audio-art { color: var(--gold-light); width: 72px; height: 72px; }
.post-card time { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.post-card h3 { font-size: 1.5rem; margin: .35em 0 .4em; }
.post-card:hover h3 { color: var(--clay); }
.post-card p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 44px; flex-wrap: wrap; }
.tabs a { padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font: 500 .85rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.tabs a[aria-current="page"] { background: var(--plum); color: var(--cream); border-color: var(--plum); }

.article-head { padding: clamp(56px, 8vw, 100px) 0 clamp(28px, 4vw, 44px); text-align: center; }
.article-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 16em; margin: 0 auto .4em; }
.article-head .meta { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.article-head .meta a { color: var(--gold); text-decoration: none; }
.article-figure { margin: 0 auto 48px; max-width: 980px; border-radius: 18px; overflow: hidden; }
.article-figure img { width: 100%; max-height: 560px; object-fit: cover; }
.article-figure.contain { background: var(--paper-2); padding: 30px; max-width: 560px; }
.article-figure.contain img { object-fit: contain; max-height: 460px; margin: 0 auto; width: auto; }
.article-body { padding-bottom: clamp(56px, 8vw, 100px); }
.article-body .prose > p:first-child { font-size: 1.25rem; }
.player { background: var(--plum); color: var(--cream); border-radius: 18px; padding: 26px; margin: 0 0 36px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.player svg.icon { width: 44px; height: 44px; color: var(--gold-light); flex: none; }
.player audio { flex: 1; min-width: 220px; width: 100%; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; margin: 0 0 36px; }
.video button, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button { padding: 0; cursor: pointer; background: #000; }
.video button img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .2s; }
.video button:hover img { opacity: .9; }
.video .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; background: rgba(250, 245, 238, .95); color: var(--plum); display: grid; place-items: center; }
.video .play svg { width: 32px; height: 32px; margin-left: 5px; }
.embed { margin: 0 0 36px; border-radius: 14px; overflow: hidden; }
.embed iframe { width: 100%; height: 122px; border: 0; display: block; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--line); padding-top: 32px; margin-top: 48px; }
.post-nav a { text-decoration: none; color: var(--ink); }
.post-nav small { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.post-nav span { font: 600 1.25rem/1.3 var(--serif); color: var(--plum); }
.post-nav .next { text-align: right; }

/* Footer */
.site-footer { background: #1e1224; color: rgba(246, 234, 216, .75); padding: 72px 0 32px; font-size: .95rem; }
.site-footer a { color: rgba(246, 234, 216, .85); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font: 500 .76rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.4em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer .brand { --logo: var(--cream); --logo-accent: var(--gold-light); margin-bottom: 18px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(246, 234, 216, .25); display: grid; place-items: center; }
.socials a:hover { border-color: var(--gold-light); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(246, 234, 216, .12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: rgba(246, 234, 216, .5); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }

/* ---------- Motion ---------- */

/* Hero: staggered entrance */
.hero .wrap > div:first-child > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero .wrap > div:first-child > :nth-child(1) { animation-delay: .15s; }
.hero .wrap > div:first-child > :nth-child(2) { animation-delay: .27s; }
.hero .wrap > div:first-child > :nth-child(3) { animation-delay: .39s; }
.hero .wrap > div:first-child > :nth-child(4) { animation-delay: .51s; }
.hero .wrap > div:first-child > :nth-child(5) { animation-delay: .63s; }
.hero .arch-frame { animation: arch-in 1.2s cubic-bezier(.2, .7, .2, 1) .2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes arch-in { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
.page-hero .wrap > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.page-hero .wrap > :nth-child(2) { animation-delay: .1s; }
.page-hero .wrap > :nth-child(3) { animation-delay: .2s; }
.page-hero .wrap > :nth-child(4) { animation-delay: .3s; }
.page-hero img.bg { animation: slow-zoom 14s ease-out both; }
@keyframes slow-zoom { from { transform: scale(1.08); } to { transform: none; } }

/* Hero: twinkling stars, floating moon badge, pointer parallax */
.sky { position: absolute; inset: 0; pointer-events: none; }
.sky i { position: absolute; left: var(--x); top: var(--y); font-style: normal; font-size: calc(14px * var(--s)); color: var(--gold-light); opacity: 0; animation: twinkle 4.5s ease-in-out var(--d) infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.6) rotate(0); } 50% { opacity: .75; transform: scale(1) rotate(45deg); } }
.arch-frame .moon { animation: float 6s ease-in-out 1.4s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero .arch { transform: translate3d(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 10px), 0); transition: transform .4s ease-out; }
.hero .arch img { transform: scale(1.06) translate3d(calc(var(--px, 0) * -8px), calc(var(--py, 0) * -8px), 0); transition: transform .4s ease-out; }
.hero .arch-frame::before { transform: translate3d(calc(var(--px, 0) * -6px), calc(var(--py, 0) * -6px), 0); transition: transform .4s ease-out; }

/* Buttons: soft shine on hover */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(1px) scale(.98); }

/* Book covers: 3D tilt toward the pointer */
.book-card .cover, .book-entry-cover { perspective: 800px; }
.book-card .cover img, .book-entry-cover img { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .4s; }
.book-card:hover .cover img, .book-entry-cover:hover img { filter: drop-shadow(0 26px 24px rgba(43, 26, 49, .4)); }
.book-card.pop { animation: pop .45s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--n, 0) * 40ms); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: none; } }

/* Services and genre tiles lift */
.service { transition: transform .3s, box-shadow .3s, border-color .3s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(176, 127, 51, .45); }
.service img { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.service:hover img { transform: rotate(-8deg) scale(1.08); }
.quote { transition: transform .3s, background .3s; }
.quote:hover { transform: translateY(-4px); background: #45294f; }

/* Reading progress on articles */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--gold), var(--clay)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

@media (prefers-reduced-motion: reduce) {
  .sky, .read-progress { display: none; }
  .hero .arch, .hero .arch img, .hero .arch-frame::before, .book-card .cover img, .book-entry-cover img { transform: none !important; }
}

/* ---------- Phone layout ---------- */
@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .btn { padding: .8em 1.25em; }

  /* Hero: roles repeat the eyebrow; keep stars clear of the text */
  .hero .eyebrow { font-size: .7rem; letter-spacing: .16em; }
  .hero-roles { display: none; }
  .sky i:not(:nth-child(4)):not(:nth-child(9)) { display: none; } /* only stars beside the portrait */

  /* Bookshelf: two covers per row, genre filters scroll sideways */
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .book-card .cover { margin-bottom: 12px; }
  .book-card h3 { font-size: 1.2rem; }
  .book-card .genre { font-size: .64rem; letter-spacing: .12em; }
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 32px; padding: 2px var(--gutter) 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; scroll-snap-align: start; }

  /* Testimonials: swipeable cards */
  .quotes { display: flex; overflow-x: auto; gap: 14px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px; scroll-snap-type: x mandatory; scrollbar-width: none; max-width: none; }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { flex: 0 0 86%; scroll-snap-align: center; }
  .swipe-hint { display: block; }

  /* Drop decorative images that only repeat what's above them */
  #order .split > :last-child, .donate-box figure { display: none; }

  .service { padding: 22px 20px; }
  .player { padding: 16px; }
  .player svg.icon { display: none; }
  .book-entry .btn-row .btn { flex: 1 1 auto; }
}
.swipe-hint { display: none; text-align: center; margin-top: 14px; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(246, 234, 216, .55); }
@media (max-width: 860px) {
  .book-entry-cover { width: 100%; }
}

/* Lining figures for display numbers (after `font` shorthands, which reset it) */
h1, h2, h3, h4, .strip strong, .arch-frame .moon, .post-card time, .article-head .meta { font-variant-numeric: lining-nums; }
