/* Past the Havens 2.0 — foundation prototype. Originals remain untouched in Drive. */
:root {
  color-scheme: dark;
  --page: #000;
  --focus: #f0e7ce;
  --copy-ink: #080705;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page); }
/* Section snapping follows desktop-style input, not a narrow browser width. */
@media (hover: hover) and (pointer: fine) {
  html { scroll-snap-type: y mandatory; }
  .scene { scroll-snap-align: start; scroll-snap-stop: always; }
}
body { margin: 0; background: var(--page); min-width: 320px; }
/* Chrome may focus a #hash target. Do not outline an entire section. */
.scene:focus { outline: none; }
img { max-width: 100%; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 1000; top: .75rem; left: .75rem; background: #fff; color: #111; padding: .8rem 1rem; border-radius: .2rem; text-decoration: none; font: 700 1rem/1.3 system-ui, sans-serif; transform: translateY(-180%); }
.skip-link:focus-visible { transform: none; outline: 3px solid var(--focus); }
.scene { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: clamp(1rem, 2.4svh, 2.4rem) 0; background: var(--page); }
.artboard { position: relative; container-type: inline-size; width: min(90vw, 155svh); aspect-ratio: 16 / 9; flex: none; isolation: isolate; }
.visual-stage { position: absolute; inset: 0; aspect-ratio: 16 / 9; }
.base-art { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.landing-navigation, .book-navigation { position: absolute; inset: 0; pointer-events: none; }
.landing-link, .book-tab, .monogram-link { position: absolute; display: block; pointer-events: auto; cursor: pointer; text-decoration: none; background: transparent; }
.landing-link:hover, .book-tab:hover, .monogram-link:hover { cursor: pointer; }
.landing-link:focus-visible, .book-tab:focus-visible, .monogram-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: .3rem; background: rgba(255,255,255,.08); z-index: 10; }
/* Native title tooltips remain; no large CSS-generated hover labels. */
/* Translate the whole selected TAB (paper art plus clickable link) together. */
.book-tab { transition: transform 220ms ease-out; }
.book-tab img { display: block; position: absolute; max-width: none; height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none; }
/* Active section: ~40% of tab's own hit-box width inward, no other visual effect. */
.book-tab.is-active { transform: translateX(-40%); z-index: 2; }
.paper-content { overscroll-behavior-y: contain; position: absolute; left: 36.9%; top: 23.5%; width: 28.6%; max-height: 52%; overflow: hidden; color: var(--copy-ink); text-align: left; font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; }
/* Stronger, near-black ink against the user-authored weathered paper. */
.paper-content h2 { margin: 0 0 .42em; font-size: clamp(1.3rem, 2.85cqw, 3.25rem); line-height: 1.05; font-weight: 700; }
/* An intentionally left-anchored, slightly irregular three-quarter-width rule.
   This is a separate divider, NOT a text underline. */
.paper-content h2::after {
  content: "";
  display: block;
  width: 75%;
  height: 1.5px;
  margin-top: .31em;
  background: linear-gradient(90deg, #100e0d 0%, #100e0d 94%, rgba(16,14,13,.58) 100%);
  transform: rotate(-.22deg);
  transform-origin: left center;
}
.paper-content p { margin: 0 0 .85em; font-size: clamp(1.1rem, 1.62cqw, 1.85rem); line-height: 1.45; font-weight: 600; }
.paper-content .preview-note { margin-top: 1.5em; font-size: clamp(1rem, 1.45cqw, 1.7rem); font-style: italic; font-weight: 600; }
.mobile-navigation { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
/* Phone-size viewports use the mobile reader regardless of pointer type.
   This also keeps Chrome Responsive mode consistent with real phones. */
@media (max-width: 600px) {
  .mobile-navigation { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .5rem; position: sticky; top: 0; z-index: 100; padding: .6rem .5rem; background: rgba(0,0,0,.96); border-bottom: 1px solid #555; }
  .mobile-navigation a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .45rem .65rem; border-radius: 3px; text-decoration: none; font: 600 1.08rem/1.3 'Cormorant Garamond', Georgia, serif; color: #e6e1d9; }
  .mobile-navigation a[aria-current="location"] { text-decoration: underline; text-underline-offset: .35em; }
  .mobile-navigation a:focus-visible { outline: 3px solid var(--focus); }
  .scene { min-height: auto; padding: 1rem 0 2rem; scroll-margin-top: 7.5rem; }
  .landing { min-height: 70svh; }
  .artboard { width: 96vw; }
  .interior .artboard { aspect-ratio: auto; }
  .interior .visual-stage { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 9; }
  .interior .paper-content { position: relative; top: auto; left: auto; width: min(92vw, 38rem); max-height: none; overflow: visible; margin: .25rem auto 0; padding: 1.2rem 1.35rem; background: #777572; color: var(--copy-ink); border: 1px solid #777; }
  .paper-content h2 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .paper-content p { font-size: clamp(1.125rem, 4.9vw, 1.3rem); }
  .paper-content .preview-note { font-size: clamp(1rem, 4.4vw, 1.18rem); }
}

/* Narrow desktop WINDOWS retain their layered, art-directed layout. */
@media (min-width: 601px) and (max-width: 760px) and (hover: hover) and (pointer: fine) {
  .paper-content h2 { font-size: clamp(.85rem, 2.85cqw, 1.3rem); }
  .paper-content p { font-size: clamp(.775rem, 1.7cqw, 1.08rem); line-height: 1.3; }
  .paper-content .preview-note { font-size: clamp(.7rem, 1.55cqw, 1rem); }
}


/* V10 reading-area alignment; scroll behavior carried forward from V9. */
/* V9 long-page exploration: keep all established art, color, type sizes and layout.
   The Music paper alone is scrollable; it never grows beyond the original paper. */
#music .long-paper-content {
  height: 52%;
  max-height: 52%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: .38rem;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(25,20,18,.65) transparent;
}
#music .long-paper-content::-webkit-scrollbar { width: 7px; }
#music .long-paper-content::-webkit-scrollbar-track { background: transparent; }
#music .long-paper-content::-webkit-scrollbar-thumb { background: rgba(25,20,18,.65); border-radius: 5px; }
#music .long-paper-content:focus-visible { outline: 2px solid rgba(25,20,18,.65); outline-offset: 2px; }
#music .music-group-heading { margin: 1.15em 0 .48em; font-weight: 700; }
#music .music-detail { display:block; font-size: .9em; font-style: italic; font-weight: 600; margin-top: .08em; }
@media (max-width: 600px) {
  #music .long-paper-content { height: auto; max-height: none; overflow: visible; padding-right: 1.35rem; scrollbar-width: auto; }
}

/* V12 — real copy preview on the established V11 paper.
   Every paper section owns its own wheel/keyboard scrolling, as V11's
   pointer-location handler expects. No artwork or geometry is altered. */
.interior .paper-content {
  height: 52%;
  max-height: 52%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: .38rem;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(25,20,18,.65) transparent;
}
.interior .paper-content::-webkit-scrollbar { width: 7px; }
.interior .paper-content::-webkit-scrollbar-track { background: transparent; }
.interior .paper-content::-webkit-scrollbar-thumb { background: rgba(25,20,18,.65); border-radius: 5px; }
.interior .paper-content:focus-visible { outline: 2px solid rgba(25,20,18,.65); outline-offset: 2px; }
/* Ink-style links, not bright modern UI buttons. */
.paper-content a {
  color: var(--copy-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: .055em;
  text-underline-offset: .15em;
  overflow-wrap: anywhere;
}
.paper-content a:hover { text-decoration-thickness: .10em; }
.paper-content a:focus-visible { outline: 2px solid #201a17; outline-offset: 3px; }
.paper-content .contact-address { margin-top: 1.1em; }
.paper-content .support-area { margin: 1.0em 0 1.18em; }
.paper-content .support-group-label { margin: 0 0 .35em; font-weight: 700; }
.paper-content .support-links { list-style: none; padding: 0; margin: 0; }
.paper-content .support-links li { margin: 0 0 .28em; padding: .12em 0 .26em; }
.paper-content .support-links a {
  font-size: clamp(1.1rem,1.62cqw,1.85rem);
  line-height: 1.45;
  display: inline-block;
  min-height: 1.45em;
}
.paper-content .support-note {
  display: block;
  font-size: clamp(1rem,1.45cqw,1.7rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.32;
}
.paper-content .support-closing { margin: 1em 0 0; }
@media (max-width: 600px) {
  .interior .paper-content { height: auto; max-height: none; overflow: visible; padding-right: 1.35rem; }
  .paper-content .support-links a { font-size: clamp(1.125rem,4.9vw,1.3rem); }
  .paper-content .support-note { font-size: clamp(1rem,4.4vw,1.18rem); }
}
@media (min-width: 601px) and (max-width: 760px) and (hover: hover) and (pointer: fine) {
  .paper-content .support-links a { font-size: clamp(.775rem,1.7cqw,1.08rem); }
  .paper-content .support-note { font-size: clamp(.7rem,1.55cqw,1rem); }
}

/* V13: approved Support-page wording; preserve the established ink/link design. */
.paper-content h3.support-group-label,
.paper-content h3.section-subheading {
  font-family: inherit;
  color: inherit;
  font-size: clamp(1.1rem, 1.62cqw, 1.85rem);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 .35em;
}
.paper-content .support-link-row { margin: .1em 0 .65em; }
.paper-content .support-closing { margin: .7em 0 0; }
@media (min-width: 601px) and (max-width: 760px) and (hover: hover) and (pointer: fine) {
  .paper-content h3.support-group-label,
.paper-content h3.section-subheading { font-size: clamp(.775rem, 1.7cqw, 1.08rem); }
}
@media (max-width: 600px) {
  .paper-content h3.support-group-label,
.paper-content h3.section-subheading { font-size: clamp(1.125rem, 4.9vw, 1.3rem); }
}

/* V14: Music/Events use the exact approved Support h3 font family, scale, weight and line-height.
   Original Support text and styles are intentionally preserved. */

/* V16: Contact directory — inline monochrome brand vectors to avoid
   file:// SVG-mask loading failures in Chrome; existing geometry retained.
   Text labels and unfilled link rows remain accessible. */
.paper-content .contact-welcome { margin-bottom: .72em; }
.paper-content .contact-address { margin: 0 0 .76em; }
.paper-content .social-directory { list-style: none; margin: 0; padding: 0; }
.paper-content .social-directory li { margin: 0; padding: 0; }
.paper-content .social-directory a {
  display: flex;
  align-items: center;
  gap: .55em;
  width: 100%;
  min-height: 2em;
  padding: .13em .1em;
  font-size: clamp(1.1rem, 1.62cqw, 1.85rem);
  line-height: 1.25;
  text-decoration: none;
  box-sizing: border-box;
}
.paper-content .social-directory .social-name {
  text-decoration: underline;
  text-decoration-thickness: .055em;
  text-underline-offset: .15em;
}
.paper-content .social-directory a:hover .social-name,
.paper-content .social-directory a:focus-visible .social-name { text-decoration-thickness: .11em; }
.paper-content .social-icon {
  display: block;
  flex: 0 0 auto;
  width: clamp(16px, .85em, 24px);
  height: clamp(16px, .85em, 24px);
  color: #201a17;
  fill: currentColor;
}
@media (min-width: 601px) and (max-width: 760px) and (hover: hover) and (pointer: fine) {
  .paper-content .social-directory a { font-size: clamp(.775rem, 1.7cqw, 1.08rem); }
}
@media (max-width: 600px) {
  .paper-content .social-directory a { font-size: clamp(1.125rem, 4.9vw, 1.3rem); min-height: 44px; }
}
