/* Islandwide Psychic Fairs — modern redesign */
:root {
  --indigo-950: #1a1030;
  --indigo-900: #2a1848;
  --indigo-800: #3d2466;
  --indigo-700: #4f2f85;
  --purple-600: #6b3fa0;
  --purple-400: #a78bdb;
  --lavender: #c9b8e8;
  --cream: #faf6f0;
  --cream-dark: #f0e8dc;
  --gold: #d4a574;
  --gold-light: #e8c9a0;
  --text: #1f1630;
  --text-muted: #5a4d6e;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(26, 16, 48, 0.12);
  --shadow-sm: 0 2px 10px rgba(26, 16, 48, 0.08);
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 80% at 10% -10%, rgba(167, 139, 219, 0.25), transparent 50%),
    radial-gradient(ellipse 100% 60% at 100% 0%, rgba(212, 165, 116, 0.18), transparent 45%),
    linear-gradient(180deg, #f7f2fb 0%, var(--cream) 40%, #f3efe8 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--indigo-800); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--indigo-900);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--indigo-950), var(--indigo-800));
  box-shadow: 0 2px 16px rgba(26, 16, 48, 0.35);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream);
  text-decoration: none;
}
.brand:hover { color: var(--gold-light); }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.brand-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  min-width: 0;
  max-width: min(52vw, 14rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 480px) {
  .brand-text { max-width: none; overflow: visible; white-space: normal; }
}
.brand-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.75;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  min-height: 44px;
  min-width: 44px;
  font-size: 0.9rem;
  cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: rgba(255,255,255,0.12); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}
.site-nav a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255,255,255,0.12);
  color: var(--gold-light);
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; }
  .site-header { position: sticky; }
  .header-inner { padding: 0.65rem 1rem; gap: 0.75rem; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    width: 100%;
    background: var(--indigo-900);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0.75rem 1rem 1rem;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.25rem; }
  .site-nav a { display: block; padding: 0.85rem 1rem; min-height: 44px; }
  .main { padding: 1.25rem 1rem 2.5rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .paypal-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .schedule-list li { flex-direction: column; gap: 0.2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .site-footer { padding: 1.5rem 1rem; }
}

/* Layout */
.main { max-width: var(--max); margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }
.page-hero {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem 1rem 0.5rem;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  color: var(--indigo-900);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}
.page-hero .lede {
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 auto;
  font-size: 1.1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--indigo-900);
  margin: 0 0 1rem;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(61, 36, 102, 0.08);
  padding: 1.35rem 1.5rem;
}
.card + .card { margin-top: 1rem; }
.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card-grid .card { margin-top: 0; height: 100%; }
.card h2, .card h3 {
  font-family: var(--font-serif);
  color: var(--indigo-900);
  margin: 0 0 0.5rem;
}
.card .price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--purple-600);
}

/* Hero home */
.hero {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 2.25rem;
}
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; }
}
.hero-copy h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 600;
  color: var(--indigo-900);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}
.hero-copy p { margin: 0 0 1rem; color: var(--text-muted); }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--indigo-800), var(--purple-600));
  color: white;
  box-shadow: 0 4px 14px rgba(79, 47, 133, 0.35);
}
.btn-primary:hover { color: white; }
.btn-secondary {
  background: transparent;
  border-color: var(--indigo-800);
  color: var(--indigo-800);
}
.btn-secondary:hover { background: rgba(61, 36, 102, 0.06); color: var(--indigo-900); }

.hero-visual {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--indigo-900);
}
.hero-visual img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  max-height: 520px;
}
.hero-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(26, 16, 48, 0.82);
  color: var(--cream);
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  font-size: 0.85rem;
  backdrop-filter: blur(6px);
}

/* Schedule */
.schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.schedule-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--cream-dark);
}
.schedule-list li:last-child { border-bottom: none; }
.schedule-date {
  font-weight: 700;
  color: var(--indigo-800);
  min-width: 7.5rem;
}
.schedule-place { color: var(--text-muted); }

/* Reader list */
.reader-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.reader-list li {
  background: var(--cream);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--purple-400);
}
.reader-list a { font-weight: 700; text-decoration: none; }
.reader-list a:hover { text-decoration: underline; }
.reader-specialty { color: var(--text-muted); font-size: 0.95rem; }

/* Testimonials */
.testimonials {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .testimonials { grid-template-columns: 1fr 1fr; }
}
.testimonial {
  background: linear-gradient(145deg, #fff, var(--cream));
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(61, 36, 102, 0.08);
  font-style: italic;
  color: var(--text-muted);
}
.testimonial cite {
  display: block;
  margin-top: 0.65rem;
  font-style: normal;
  font-weight: 700;
  color: var(--indigo-800);
  font-size: 0.9rem;
}

/* PayPal forms */
.paypal-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(61, 36, 102, 0.1);
}
.paypal-panel h3 {
  font-family: var(--font-serif);
  margin: 0 0 1rem;
  color: var(--indigo-900);
}
.paypal-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .paypal-grid { grid-template-columns: 1fr 1fr; }
}
.paypal-panel form table { width: 100%; border-collapse: collapse; }
.paypal-panel form td {
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--text);
}
.paypal-panel select,
.paypal-panel input[type="text"] {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(61, 36, 102, 0.25);
  border-radius: 8px;
  font: inherit;
  background: var(--cream);
}
.paypal-panel input[type="image"] {
  margin-top: 0.75rem;
  cursor: pointer;
}

/* Flyer pages */
.flyer-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(61, 36, 102, 0.08);
}
.flyer-card img { width: 100%; }
.flyer-stack { display: flex; flex-direction: column; gap: 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* Gallery */
.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin: 1.5rem 0;
}
.gallery figure {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(61, 36, 102, 0.08);
}
.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.gallery figcaption {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.gallery.wide img { aspect-ratio: 16/10; }
.prose { max-width: 42rem; }
.prose p { margin: 0 0 1rem; }
.quote-block {
  border-left: 4px solid var(--gold);
  padding: 0.75rem 0 0.75rem 1.15rem;
  margin: 1rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.quote-block strong { font-style: normal; color: var(--indigo-800); }

.two-col {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .two-col { grid-template-columns: 1fr 1fr; align-items: start; }
}
.three-col {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.pill {
  display: inline-block;
  background: rgba(107, 63, 160, 0.1);
  color: var(--indigo-800);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.15rem;
}
.note {
  background: rgba(212, 165, 116, 0.18);
  border: 1px solid rgba(212, 165, 116, 0.45);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
}
.contact-big {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--indigo-900);
}
.contact-big a { text-decoration: none; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Footer */
.site-footer {
  background: var(--indigo-950);
  color: rgba(255,255,255,0.75);
  padding: 2rem 1.25rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: var(--gold-light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; }
.disclaimer {
  width: 100%;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* Clickable homepage flyer + native <dialog> lightbox */
.flyer-open {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
  text-align: left;
}
.flyer-open img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  max-height: 520px;
  transition: transform 0.25s ease;
}
@media (max-width: 820px) {
  .flyer-open img {
    max-height: 70vh;
    aspect-ratio: auto;
    object-fit: contain;
    background: var(--indigo-900);
  }
  .flyer-hint {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }
}
.flyer-open:hover img,
.flyer-open:focus-visible img {
  transform: scale(1.03);
}
.flyer-hint {
  position: absolute;
  right: 0.85rem;
  top: 0.85rem;
  background: rgba(26, 16, 48, 0.78);
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.95;
  z-index: 1;
}
.flyer-open:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

dialog.lightbox {
  border: 0;
  padding: 0.5rem;
  margin: auto;
  width: min(1200px, 98vw);
  max-width: 98vw;
  max-height: 96vh;
  max-height: 96dvh;
  background: transparent;
  color: inherit;
  overflow: auto;
  overscroll-behavior: contain;
}
dialog.lightbox::backdrop {
  background: rgba(15, 10, 28, 0.92);
}
dialog.lightbox[open] {
  display: block;
}
.lightbox-toolbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.5rem;
  z-index: 2;
}
.lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--indigo-950);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.lightbox-close:hover {
  background: var(--gold-light);
}
.lightbox-close:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
/* Upscale the flyer so small print is readable; scroll inside the dialog if needed */
dialog.lightbox img {
  display: block;
  width: min(1100px, 160vw);
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  background: #fff;
}
@media (max-width: 820px) {
  dialog.lightbox {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
    padding: 0.35rem;
    border-radius: 0;
  }
  dialog.lightbox img {
    width: min(1100px, 200vw);
  }
}

/* Extra-small screens */
@media (max-width: 400px) {
  .brand-mark { width: 36px; height: 36px; }
  .brand-text { font-size: 1.1rem; max-width: 46vw; }
  .page-hero h1, .hero-copy h1 { font-size: 1.75rem; }
  .paypal-panel { padding: 1.1rem; }
  .paypal-panel select,
  .paypal-panel input[type="text"] { font-size: 1rem; }
}

.hero-schedule{margin:1rem 0;padding:1rem 1.25rem}
.hero-schedule .section-title{font-size:1.35rem;margin:0 0 .25rem}
.hero-schedule .schedule-list{margin:.5rem 0 0}

#book-lightbox img{width:min(700px,92vw)!important;max-width:none}
#book-open{position:relative;display:inline-block}

/* ---- Quality pass 2026-10-07 ---- */
.card p:last-child { margin-bottom: 0; }
.card.prose { margin-left: auto; margin-right: auto; }
.disclaimer { margin-bottom: 0; }
.copyright { width: 100%; margin: 0; font-size: 0.85rem; opacity: 0.7; }
/* Show the whole flyer (no cropping); the badge sits under it instead of covering the flyer's small print */
.hero-visual .flyer-open img { aspect-ratio: auto; object-fit: contain; max-height: none; height: auto; }
.hero-badge { position: static; display: block; border-radius: 0; text-align: center; backdrop-filter: none; background: var(--indigo-900); }
/* Show the whole book cover (it was cropped to 4:5 on desktop) */
#book-open img { aspect-ratio: auto; object-fit: contain; max-height: none; height: auto; }
/* Reader types: two columns on phones so the list isn't nine screens tall */
@media (max-width: 820px) {
  .readers-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .readers-grid .card { padding: 1rem; }
  .readers-grid h3 { font-size: 1.15rem; line-height: 1.2; }
  .readers-grid .muted { font-size: 0.92rem; line-height: 1.45; }
}
@media (max-width: 340px) { .readers-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .flyer-open img { transition: none; }
  .btn:hover, .flyer-open:hover img, .flyer-open:focus-visible img { transform: none; }
}
/* 404 page */
.notfound { text-align: center; max-width: 36rem; margin: 0 auto; }
.notfound .hero-cta { justify-content: center; }

/* Click-to-enlarge photos */
img.zoomable { cursor: zoom-in; transition: transform .15s ease, box-shadow .15s ease; }
img.zoomable:hover { transform: scale(1.02); }
img.zoomable:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
dialog.photo-lightbox img { max-width: 94vw; }
.lightbox-caption { color: #fff; text-align: center; margin: .75rem auto 0; max-width: 60ch; font-size: 1rem; }
@media (max-width: 820px) { dialog.photo-lightbox img { width: 100% !important; max-width: 100%; } }
@media (prefers-reduced-motion: reduce) { img.zoomable { transition: none; } img.zoomable:hover { transform: none; } }

/* "Among them will be" cards: small gold icon badges */
.reader-card { position: relative; overflow: hidden; text-align: center; padding-top: 1.25rem; border-top: 3px solid var(--gold); transition: transform .15s ease, box-shadow .15s ease; }
.reader-card::after { content: "\2726"; position: absolute; top: .4rem; right: .6rem; color: var(--gold); opacity: .35; font-size: .9rem; }
.reader-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(42, 24, 72, .12); }
.reader-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 0 auto .6rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--purple-600), var(--indigo-900)); color: var(--gold-light); box-shadow: 0 0 0 3px rgba(212, 165, 116, .25); }
.reader-icon svg { width: 28px; height: 28px; }
.reader-card h3 { margin-top: 0; }
@media (max-width: 600px) { .reader-icon { width: 44px; height: 44px; } .reader-icon svg { width: 24px; height: 24px; } }
@media (prefers-reduced-motion: reduce) { .reader-card { transition: none; } .reader-card:hover { transform: none; } }
