html, body {
  border: none;
  outline: none;
}

body {
  margin: 0;
  padding: 0;
}

/* =========================
   Variables + Base
   ========================= */
   :root {
    --bg: #ffffff;
    --ink: #111111;
    --muted: #666666;
    --accent: #1b4b8a;
    --card: #f6f7f9;
    --gold: #c9a227;
  }
  /* Simple reusable text styles */
.gold {
  color: var(--gold);
  font-weight: 400;
}
/* Make italic notes display in gold */
p em {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}


  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  
  /* =========================
     Body + Typography
     ========================= */
     body {
      background: url("images/Pearl_rays.png") center top / cover no-repeat fixed;
      background-color: var(--bg);
      color: var(--ink);
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, Helvetica, Arial, sans-serif;
      line-height: 1.6;
      font-size: 18px;
    
      /* ✨ Anchoring magic */
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }
    
    @media (max-width: 768px) {
      body { background-attachment: scroll; }
    }
    
    main { flex: 1; }
    
    
  
  .wrap {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* =========================
   Header
   ========================= */
.site-header {
  background: transparent;
  text-align: center;
  box-shadow: none;
  padding: 0; /* lift header upward */
}


.tag {
  margin: 2px 0 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-shadow: 0 1px 1px rgba(255,255,255,0.6);
}

/* --- Logo text --- */
.site-logo {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 0.04em;
  color: #000;
  margin: 0; /* remove h1’s default spacing */
  padding: 0.25em 0; /* smaller breathing space */
  text-transform: lowercase;
}

.site-logo .gold {
  color: #d8b65c;
  font-weight: 600; /* Slightly bolder to balance tone */
}

.tagline {
  margin: 0.25rem 0 0;
  font-size: 1.1rem;
  color: var(--muted);
}


  /* =========================
     Navigation
     ========================= */
  .site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(6px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 0.5rem 0.75rem;
  }
  
  .site-nav ul {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
  }
  
  .site-nav a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    color: #222;
    border-bottom: 2px solid transparent;
    transition: background 0.15s ease, color 0.15s ease;
  }
  
  .site-nav a:hover { background: rgba(201,162,39,0.15); }
  
  .site-nav a[aria-current="page"],
  .site-nav li > a.active {
    background: rgba(218,165,32,0.12);
    color: goldenrod;
    border-bottom-color: goldenrod;
  }
  
  .site-nav.is-stuck { box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
  
  /* Slim nav (Children only) */
  body.children .site-nav { padding: 0.3rem 0.6rem; }
  body.children .site-nav a { padding: 0.3rem 0.7rem; font-size: 0.95rem; }
  
  /* =========================
     Panels
     ========================= */
  .panel {
    background: url("images/Pearl_rays.png") center top / cover no-repeat, #f1ece3;
    background-blend-mode: overlay;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.05);
    padding: 16px 20px;
    margin: 18px 0;
    scroll-margin-top: 96px;
  }
  
  @supports (backdrop-filter: blur(4px)) {
    .panel {
      backdrop-filter: blur(3px);
      -webkit-backdrop-filter: blur(3px);
    }
  }
  
  .panel h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
  }

/* Order & Receipt layout refinements */
.order-page .panel,
.receipt-page .panel {
  max-width: 640px;
  margin: 2.5em auto;
  padding: 2em;
}
/* Tighter spacing inside the receipt block */
.receipt-panel div {
  line-height: 1.15 !important;
  margin-top: 0.05em !important;
  margin-bottom: 0.05em !important;
}

}
/* Keep a nice pause under the thank-you heading */
.receipt-panel h2 {
  margin-bottom: 0.8em;
}
/* Tighter spacing for receipt summary lines */
.receipt-panel strong {
  display: inline-block;
  margin-bottom: 0.1em;
}

.receipt-panel p,
.receipt-panel div,
.receipt-panel span {
  line-height: 1.25;
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}

  /* =========================
     Links
     ========================= */
  a {
    text-decoration-color: rgba(0,0,0,0.25);
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  a:hover {
    text-decoration-color: currentColor;
    background-color: #fef9e6;
    border-radius: 4px;
  }
  
  /* Mailto Links */
  a[href^="mailto:"] {
    letter-spacing: 1px;
    color: #b8860b;
    text-decoration: none;
  }
  a[href^="mailto:"]:hover {
    text-decoration: underline;
    color: #8b6a09;
  }
  
  /* =========================
     Cover Cards (Home Page)
     ========================= */
  .cover {
    position: relative;
    flex: 0 0 clamp(300px, 30vw, 340px);
    scroll-snap-align: start;
    margin: 0;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .cover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 16px;
    background: linear-gradient(to bottom,
      rgba(255,255,255,0.3),
      rgba(255,255,255,0.1),
      rgba(255,255,255,0));
    pointer-events: none;
    z-index: 2;
  }
  
  .cover img[src*="placeholder"],
  .score-frame img[src*="placeholder"] {
    filter: brightness(0.96);
  }
  
  .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .cover img:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  }
  
  .cover .hover-tag {
    position: absolute;                /* pins it over the image */
    bottom: 70px;                      /* vertical position */
    left: 50%;                         /* centred horizontally */
    transform: translateX(-50%);       /* perfect centre alignment */
    font-size: 1.4rem;                 /* medium text size */
    font-weight: 500;                  /* slightly lighter weight */
    font-family: "Georgia", serif;     /* classic typeface */
    color: rgba(191,161,74,0.35);      /* pale gold mist (very soft) */
    background: rgba(255,255,255,0.6); /* faint translucent pearl backdrop */
    padding: 0.3em 0.8em;              /* space around text */
    border-radius: 0.4em;              /* soft rounded corners */
    letter-spacing: 0.4px;             /* gentle spacing between letters */
    opacity: 0;                        /* hidden until hover */
    transition: opacity 0.4s ease, text-shadow 0.4s ease; /* soft fade */
    pointer-events: none;              /* prevents cursor blocking */
    text-shadow: 0 0 10px rgba(191,161,74,0.3); /* faint glow */
    white-space: nowrap;               /* keeps text on one line */
  }
  
  .cover:hover .hover-tag {
    opacity: 1;                        /* makes it appear */
    text-shadow: 0 0 20px rgba(191,161,74,0.4); /* adds gentle radiance */
  }
  
/* =========================
     Audio Player Notes
     ========================= */
     .note {
      font-size: 0.9rem;
      color: #777;
      margin-top: 0.4rem;
      font-style: italic;
    }
    .opus-left {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
    }
    
    .note {
      margin-top: 0.6rem;
      font-size: 0.9rem;
      color: #bfa14a; /* your pale gold mist */
      font-style: italic;
      text-align: center;
      max-width: 220px;
      line-height: 1.4;
    }
    
  
  /* =========================
     Score Cards (Choral & Children)
     ========================= */
  .score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    gap: 0.25rem;
    justify-content: center;
    margin-bottom: 2rem; /* matches opus-shepherd depth */
  }
  
  /* Single opus layout (for individual pieces) */
  .single-opus {
    margin-top: 2.5rem; /* add gentle breathing space above */
  }
  .single-opus .paypal-box {
    text-align: right;
  }
  
  .single-opus .price {
    padding: 0.6em 1.25em;   /* slightly narrower sides */
    min-width: 160px;        /* roughly matches audio player width */
    margin-right: 1rem;      /* gentle outward nudge */
  }
  
    
  
  .score-card { max-width: 340px; }
  
  .score-frame {
    position: relative;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 3 / 4;
    margin: 0.5rem auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .score-frame::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 24px;
    background: linear-gradient(to bottom,
      rgba(255,255,255,0.9),
      rgba(255,255,255,0.6),
      rgba(255,255,255,0));
    pointer-events: none;
    z-index: 2;
  }
  .score-frame:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  }
  
  /* =========================
     Opus Layout
     ========================= */
  .opus-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    justify-items: center;
    margin-top: 20px;
  }
  
  .panel .opus-layout {
    background: transparent;
    padding: 0;
  }
  
  @media (max-width: 900px) {
    .opus-layout, .panel .opus-layout {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
  }
  
/* =========================
   Sample Note (under cover image)
   ========================= */
   .sample-note {
    text-align: center;
    color: var(--gold);
    font-weight: 500;
    font-size: 0.95em;
    margin-top: -0.5em;
  }
  

  /* =========================
     About (Contact Page)
     ========================= */
  .about-hero {
  text-align: center;
}

  .about-hero img {
    max-width: 240px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    display: block;
    margin: 0 auto;
  }
  .about-hero .fineprint {
    color: var(--muted);
    margin-top: 8px;
    font-size: 0.9rem;
  }
  .about-text {
    margin-top: 16px;
    text-align: center;
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.5;
  }
  /* =========================
   Page-end spacing
   ========================= */

  /* Default baseline for all pages */
  .panel {
    margin-bottom: 3rem; /* baseline distance above footer */
    padding-bottom: 7;
  }

  /* Opus pages sit slightly lower, so lift them a little */
  body.opus-page .panel {
    margin-bottom: 5rem;
  }

  /* =========================
   Contact page spacing harmony
   ========================= */

  /* Upper panel (‘Contact’) — keep it snug */
  body.contact .panel:first-of-type {
    margin-bottom: 4rem !important; /* keeps top and bottom panels close */
    padding-bottom: 0;              /* removes excess internal space */
  }

  /* Lower panel (‘About Us’) — gentle breathing space before footer */
  body.contact .panel:last-of-type {
    margin-bottom: 0rem;   /* standard visual rhythm */
    padding-bottom: 0rem;  /* internal softness */
  }

  /* Footer — aligned with other pages, but lifted slightly
    so the dashed line sits lower, giving visible space below the panel */
  body.contact .site-footer {
    margin-top: 0rem;    /* shifts the dashed border line down */
    padding-top: 1.5rem;   /* keeps © in its comfortable position */
  }



/*
  .site-footer {
    outline: 1px dashed rgba(200,150,0,0.4);
  }
*/
  /* Lock footer height consistency */
.site-footer {
  margin-top: auto;    /* let flex push it to the bottom naturally */
  padding-top: 1.5rem; /* uniform space above the © text */
  padding-bottom: 1.5rem; /* uniform space below */
}

 /* =========================
     Footer
   ========================= */
.site-footer {
  border-top: 1px solid #e8edf5;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================
   Page-specific adjustments
   ========================= */

/* Contact page alignment — retired 2025-10-19
body.contact main { display: block; }
body.contact #people { margin-bottom: 3rem; }
body.contact .panel { margin-bottom: 6rem; }
body.contact .site-footer { padding-bottom: 4rem; }
*/

/* Real content rule — keep active */
/*
.about strong {
  font-style: normal;
  font-weight: 500;
}
*/
/* Contact page footer alignment — disabled (kept for reference)
body.contact .site-footer { padding-bottom: 9em; }
*/



/* =========================
   Mission page
   ========================= */
body.mission-page {
  background: url("images/Pearl_rays.png") center top / cover no-repeat;
  background-color: #f1ece3;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

  body.mission-page main {
    flex: 1;
    margin: 2rem 0 2rem;
  }
  body.mission-page .score-grid {
    display: flex;
    justify-content: center;
    margin: 3rem auto;
    padding: 2rem;
    max-width: 1400px;
  }
  body.mission-page .score-card {
    background: #f1ece3;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    padding: 0rem 0rem;
    max-width: 1200px;
    line-height: 1.7;
  }
  .back-home {
    text-align: center;
    margin-top: 2rem;
  }
  .back-home a {
    color: #b8860b;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  .back-home a:hover {
    text-decoration: underline;
    color: #8b6a09;
  }
p.note {
  font-size: 0.85em;
  color: #7a6535;
  font-style: italic;
  margin: 0.4em 0 0 0.3em;
  opacity: 0.85;
}
/* Mission page panel balance */
.mission-page .panel {
  padding-top: 1em !important;
  padding-bottom: 2.5em !important;
}
/* =========================
   Order Form Layout
   ========================= */
form label {
  display: block;
  margin-top: 1.2em;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="number"] {
  display: block;
  width: 100%;
  max-width: 480px;
  padding: 0.6em 0.7em;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
  margin-top: 0.3em;
}

/* --- Main button --- */
button.price {
  display: block;
  margin: 1.25em auto 0;
  background: linear-gradient(to bottom, #fefcf7, #f1e2b8);
  border: 1px solid #d6c7a4;
  border-radius: 6px;
  padding: 0.65em 2em; /* widened padding */
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  white-space: nowrap; /* keeps the text on one line */
}

button.price:hover {
  background: linear-gradient(to bottom, #fff8e3, #f5d98f);
  transition: background 0.2s ease-in-out;
}
.paypal-box:hover {
  background: #fffdf8;
  border-color: #c9a227;  /* warms gently on hover */
  transition: all 0.2s ease-in-out;
}

/* --- Small text --- */
button.price small {
  color: #5c4a1f;
  opacity: 0.9;
  font-size: 0.9em;
  margin-left: 0.25em;
}

/* Receipt page: Send Email button */
#sendEmail {
  background-color: var(--gold);
  color: #111;
  border: none;
  padding: 0.7em 1.6em;
  font-size: 1em;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#sendEmail:hover {
  background-color: #b8921f; /* slightly deeper gold */
  transform: translateY(-1px);
}

#sendEmail:disabled {
  background-color: #d3c27a;
  cursor: wait;
  opacity: 0.8;
}
.success-note {
  margin-top: 1em;
  font-weight: 600;
  color: var(--gold);
}

.error-note {
  margin-top: 1em;
  font-weight: 600;
  color: #b91c1c; /* a warm red */
}

/* =========================
   Choir field styling
   ========================= */
.choir-field {
  font-size: 1.15em;
  font-weight: 600;
  color: #222;
  border: 1px solid #c9a227;
  box-shadow: 0 0 6px rgba(201,162,39,0.15);
  padding: 0.7em;
}

/* =========================
   Inline label + input
   ========================= */
.inline-label {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 1.2em;
}

.inline-input {
  width: 3.5em;
  padding: 0.3em 0.4em;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  font-size: 0.95em;
}
.inline-input[type="number"] {
  width: 90px;
  text-align: center;
}
.success-note {
  color: var(--gold);
  font-weight: 500;
  margin-top: 1em;
}

.error-note {
  color: #b30000;
  font-weight: 500;
  margin-top: 1em;
}
  
  /* =========================
     Print
     ========================= */
  @media print {
    .site-header, .site-footer, .site-nav { display: none !important; }
    body { font-size: 12pt; background: #fff !important; }
    .panel { border: none; background: transparent; padding: 0; box-shadow: none; }
  }
  
  .cover-wrap {
    position: relative;
    display: inline-block;
  }
  
  .sample-hover {
    position: absolute;
    bottom: 80px; /* lifted from 18px — adjust to taste */
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-family: "Georgia", serif; /* match to Available Soon font */
    font-weight: 600;
    font-size: 2em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: none;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  
  .cover-wrap:hover .sample-hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-3px);
  }
  /* =========================
   PayPal Link Button — matches orderform submit
   ========================= */
  a.paypal {
    display: inline-block;
    margin: 2em auto 0;
    background: linear-gradient(to bottom, #fefcf7, #f1e2b8);
    border: 1px solid #c9a227;
    border-radius: 8px;
    padding: 0.75em 1.5em;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: background 0.2s ease, transform 0.1s ease;
    background-clip: padding-box;
  }

  a.paypal:hover {
    background: linear-gradient(to bottom, #fff8e3, #f5d98f);
    transform: translateY(-1px);
  }
  /* Match the right-hand frame to the audio player */
  .opus-page .paypal-box {
    background: #fffdf8;
    border: 1px solid #e6d8ad;
    border-radius: 10px;
    padding: 0.0em 0.8em;   /* reduces overall height ≈ 15px */
    margin-top: -0.15em;     /* keeps the top in perfect alignment */
    box-shadow: 0 1px 1px rgba(0,0,0,0.02);
  }

  .opus-page .paypal-box .price {
    position: relative;
    top: -9px; /* relaxes the offset */
  }
 
  .single-opus .paypal-box {
    text-align: right;
    margin-right: -5rem; /* gentle outward nudge to mirror the player */
  }
  
  .single-opus .price {
    padding: 0.6em 1.35em;  /* slightly roomier sides */
    white-space: nowrap;
    display: inline-block;
    width: 100%;
  }
  .single-opus .opus-left audio {
    margin-left: -1rem; /* mirrors the right-hand button offset */
  }
  
  
  
  
.opus-page a.paypal {
  margin-top: 0em;                /* let the box handle spacing */
}


/* Audio player frame */
.opus-page .opus-left audio {
  display: block;
  background: #fffdf8;
  border: 1px solid #e6d8ad;
  border-radius: 8px;
  padding: 0.5em 0.8em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
/* Nudge player box down slightly for balance */
.opus-page .opus-right {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 0.3em;
}

.opus-page .opus-left audio {
  background: #fffaf3;
  border: 1px solid #e6d8ad;
}

/* Final bedtime alignment hop 🌙 */
.opus-page .opus-left,
.opus-page .opus-right {
  display: flex;
  align-items: center;  /* perfect vertical harmony */
  justify-content: center;
}

    
