/* Shared finishing rules for the existing Cormorant / Inter design. */
:root {
  --bg: #05050b;
  --text: rgba(255, 255, 255, 0.96);
  --ice: rgba(224, 242, 255, 0.94);
  --lavender: rgba(209, 213, 255, 0.90);
  --muted: rgba(209, 213, 255, 0.82);
  --border: rgba(209, 213, 255, 0.15);
  --section-pad: clamp(4rem, 7vw, 6.5rem);
  --container-px: 2rem;
}
h2.label, h2.section-label, #session-heading, #final-heading {
  font-family: 'Cormorant', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  color: var(--accent);
}
.contact { padding: var(--section-pad) 0; text-align: center; }
.contact h2 { line-height: 1.2; text-wrap: balance; }
.advisory-contact { text-align: center; }
.advisory-contact .contact-note {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.8;
  text-wrap: pretty;
}
.advisory-contact .footer-copy { text-align: center; }
.details-content p + p { margin-top: 1.4rem; }
.details-content .package-booking {
  margin-top: 1.8rem;
  font-size: 0.94rem;
  line-height: 1.75;
}
.details-content .package-booking--fine-print { font-size: 0.875rem; }
.offerings-section { padding-bottom: 0; }
.offerings-section + section { border-top: 0; }
.advisory-wrap { padding-top: 0; padding-bottom: 0; }
.footer-copy { opacity: 0.85; line-height: 2; margin-top: 5rem; text-align: center; }
.footer-copy a { color: inherit; font-size: inherit; text-decoration: none; }
.footer-copy a:hover { color: var(--accent); text-decoration: underline; }
.site-footer p, .site-footer a { color: var(--muted); font-size: 0.62rem; letter-spacing: 0.35em; line-height: 2; }
.site-footer p { opacity: 0.85; }
.footer-icons { gap: 0.5rem; }
.footer-icon { min-width: 44px; min-height: 44px; padding: 0.75rem; }
.footer-icon svg { width: 22px; height: 22px; }
.reader-reviews { color: var(--lavender); text-underline-offset: 4px; }
.reader-reviews:hover { color: var(--accent); }
/* Center the book presentation; keep longer mobile copy easy to follow. */
@media (max-width: 768px) {
  .book-info .book-description {
    max-width: 55ch;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
}
a, button, summary { touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
nav a[aria-current="page"] { color: var(--ice); }
nav .logo { white-space: nowrap; line-height: 1.2; }
nav .nav-right { gap: 0.25rem; }
/* The legal pages use the same navigation type and spacing as the main pages. */
nav.site-nav { width: min(1040px, calc(100% - var(--container-px) * 2)); max-width: none; padding: 2.2rem 0; }
nav.site-nav .logo { font-size: 1.4rem; font-weight: 300; letter-spacing: 0.02em; color: var(--ice); padding: 0.5rem 0.25rem; }
nav.site-nav .links { gap: 0.25rem; }
nav.site-nav .links a { font-size: 0.72rem; letter-spacing: 0.25em; line-height: 1.6; padding: 0.5rem 0.75rem; color: var(--lavender); }
nav.site-nav .links a.cta { color: var(--accent); border-color: rgba(183,164,255,0.35); margin-left: 0.5rem; padding: 0.5rem 0.75rem; }
nav.site-nav .links a:not(.cta) { display: block; }
nav.site-nav .cta-short { display: none; }
.confirmation-page { font-weight: 300; }
.confirmation-page .btn { padding: 1.05rem 2.8rem; border-color: rgba(183,164,255,0.35); border-radius: 2px; color: var(--accent); letter-spacing: 0.25em; font-weight: 400; line-height: 1.6; }
.sigil { flex-shrink: 0; }
.slot-link, .book-link { min-height: 44px; display: inline-flex; align-items: center; }
.btn { max-width: 100%; white-space: normal; }
.book-banner .container {
  width: min(1040px, calc(100% - 6rem));
  padding: 0;
  gap: 1rem;
  text-align: center;
}
.book-banner-text { line-height: 1.4; text-wrap: balance; }
.book-banner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 0.65rem;
  line-height: 1.4;
  letter-spacing: 0.18em;
  padding: 0.65rem 1rem;
}
.book-banner-close { right: 0.5rem; width: 44px; height: 44px; z-index: 30; }
body:has(.book-banner) { padding-bottom: 6rem; }
@media (max-width: 950px) {
  :root { --container-px: 1.5rem; }
  nav .nav-right, nav.site-nav .links { gap: 0.15rem; }
  nav:has(.nav-inner):not(.scrolled), nav.site-nav { padding-top: 1.8rem; padding-bottom: 1.8rem; }
}
@media (max-width: 600px) {
  :root { --container-px: 1rem; --section-pad: clamp(3rem, 6vw, 4rem); }
  nav:has(.nav-inner):not(.scrolled), nav.site-nav { padding-top: 1.4rem; padding-bottom: 1.4rem; }
  nav.site-nav .logo { font-size: 1.15rem; }
  nav.site-nav .links { gap: 0; }
  nav.site-nav .links a { font-size: 0.6rem; letter-spacing: 0.15em; padding: 0.5rem 0.4rem; }
  nav.site-nav .links a.cta { margin-left: 0.25rem; padding: 0.45rem 0.6rem; }
  nav.site-nav .cta-full { display: none; }
  nav.site-nav .cta-short { display: inline; }
  nav .logo { font-size: 1.15rem; }
  nav .nav-right { gap: 0; }
  h2.label, h2.section-label, .contact h2, #session-heading, #final-heading { font-size: 2.5rem; }
  .hero h1 { overflow-wrap: normal; }
  .contact-note { max-width: 34ch; }
  .slot-link, .book-link { line-height: 1.7; }
  .footer-icon { padding: 0.75rem; }
  .footer-icon svg { width: 20px; height: 20px; }
  .book-banner .container { gap: 0.5rem; }
  body:has(.book-banner) { padding-bottom: 9rem; }
}
/* Keep all four navigation destinations usable on narrow phones. */
@media (max-width: 374px) {
  nav .nav-inner, nav.site-nav { flex-wrap: wrap; justify-content: center; gap: 0.35rem; }
  nav .logo { text-align: center; width: 100%; padding: 0; }
  nav.site-nav .logo { padding: 0; }
  nav .nav-right { width: 100%; justify-content: center; }
  nav.site-nav .links { width: 100%; justify-content: center; }
  nav, nav:has(.nav-inner):not(.scrolled), nav.site-nav { padding-top: 0.8rem; padding-bottom: 0.8rem; }
  nav.scrolled { padding-top: 0.55rem; padding-bottom: 0.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .marquee { animation: none !important; overflow-x: auto; }
}

/* About portrait follows the homepage's quiet violet atmosphere. */
.about-portrait {
  position: fixed;
  top: 4.5rem;
  right: 0;
  width: min(62vw, 860px);
  height: min(100vw, 1100px);
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(rgba(30, 20, 61, 0.68), rgba(30, 20, 61, 0.68)), url('/james-about-portrait.jpg') center 14% / cover no-repeat;
  background-blend-mode: color;
  filter: grayscale(55%) contrast(1.08) brightness(1.15);
  opacity: 0.30;
  -webkit-mask-image: radial-gradient(ellipse 52% 48% at 48% 34%, black 22%, transparent 76%);
  mask-image: radial-gradient(ellipse 52% 48% at 48% 34%, black 22%, transparent 76%);
}
@media (max-width: 768px) {
  .about-portrait {
    top: 4.5rem;
    width: 100%;
    height: 760px;
    background-position: center 12%;
    opacity: 0.24;
    -webkit-mask-image: radial-gradient(ellipse 65% 48% at 48% 34%, black 15%, transparent 78%);
    mask-image: radial-gradient(ellipse 65% 48% at 48% 34%, black 15%, transparent 78%);
  }
}

/* Keep the portrait in view on short phone screens after rotation. */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 1024px) {
  .about-portrait {
    top: 1.25rem;
    width: min(52vw, 100vh);
    width: min(52vw, 100svh);
    height: 150vh;
    height: 150svh;
    background-position: center top;
  }
  .book-banner .container {
    flex-direction: row;
    gap: 0.75rem;
  }
}
