
/* =============================================================================
   TABLE OF CONTENTS
   =============================================================================

   1.  Fonts
   2.  CSS Custom Properties (Design Tokens)
   3.  Base / Reset
   4.  Layout
       4a. Page wrapper (#quarto-content)
       4b. Hero content block
   5.  Typography
       5a. Hero header (date & location)
       5b. Hero text (short description)
       5c. Hero names (signature line)
   6.  Media (video)
   7.  Buttons
       7a. Primary register button
       7b. Secondary navigation buttons
   8.  Navigation bar
   9.  Footer
   10. Utility / Spacing helpers
   11. Responsive overrides
       11a. Tablets  (≤ 992 px)
       11b. Mobile   (≤ 768 px)
       11c. Small    (≤ 480 px)
   12. Misc fixes

   ============================================================================= */


/* =============================================================================
   1. FONTS
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');


/* =============================================================================
   2. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   =============================================================================
   Centralised values so colours, fonts and common sizes can be changed in one
   place and cascade to every component that references them.
   ============================================================================= */

:root {
  /* Colour palette */
  --color-dark-green:   #254036;   /* primary brand / CTA background */
  --color-mid-green:    #335848;   /* nav links, secondary accents */
  --color-deep-green:   #1e3329;   /* body text on light backgrounds */
  --color-cream:        #EDEAE3;   /* page background / button text */

  /* Typography */
  --font-serif:         'Merriweather', serif;
  --font-sans:          'Quicksand', sans-serif;
  --font-display:       'Bebas Neue', sans-serif;   /* buttons */

  /* Spacing scale */
  --space-xs:   0.4rem;
  --space-sm:   0.75rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   3rem;

  /* Layout */
  --content-max-width: 600px;
}


/* =============================================================================
   3. BASE / RESET
   =============================================================================
   Minimal resets needed to override Quarto defaults for the landing page.
   ============================================================================= */

body {
  margin: 0;
  padding: 0;
}

/* Hide the auto-generated Quarto title block on the landing page */
.quarto-title-block {
  display: none;
}

/* Smooth anchor scrolling across the whole site */
html {
  scroll-behavior: smooth;
}

/* prevents horizontal scrolling entirely by hiding any content that overflows the viewport width */ 
html, body {
  overflow-x: hidden;
  max-width: 100%;
}


/* =============================================================================
   4. LAYOUT
   ============================================================================= */

/* 4a. Page wrapper -----------------------------------------------------------
   Full-height flex column; centres the hero content vertically at the top.     */

#quarto-content {
  min-height: calc(100vh - 120px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  padding-bottom: 1rem;
}

/* 4b. Hero content block -----------------------------------------------------
   Centred card that wraps all hero text and buttons.
   The ::before pseudo-element renders the decorative neon heart behind the
   content without affecting document flow.                                       */

.hero-content {
  position: relative;
  isolation: isolate;        /* fixes iOS z-index clipping */
  z-index: 10;
  width: 100%;
  max-width: var(--content-max-width);
  padding: var(--space-md) 2rem;
  text-align: center;
  margin: 0 auto;
  box-sizing: border-box;
}

.hero-content::before {
  content: '';
  position: absolute;
  top: 55%;
  left: 75%;
  transform: translate(-50%, -50%);
  width: 50%;
  padding-bottom: 80%;           /* preserves the image's aspect ratio */
  background-image: url('heart_neon_filled.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;                   /* sits behind all hero content */
  pointer-events: none;
}


/* =============================================================================
   5. TYPOGRAPHY
   ============================================================================= */

/* 5a. Hero header — date & location -----------------------------------------*/

.hero-header {
  color: var(--color-dark-green);
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.007em;
  text-align: center;
  margin-top: -1rem;    /* slight upward pull to tighten spacing after video */
  margin-bottom: 1rem;
}

/* 5b. Hero text — short descriptive copy ------------------------------------*/

.hero-text {
  color: var(--color-deep-green);
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  padding: 0.5rem 0;
  margin-bottom: -0.5rem;
}

/* 5c. Hero names — "With love, J & S" signature ----------------------------*/

.hero-names {
  font-family: var(--font-serif);
  color: var(--color-deep-green);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.007em;
  text-align: center;
  line-height: 1.2;
  margin: 0;
  display: block;        /* ensures it sits below, not overlapping */
  width: 100%;
  margin-top: 0.5rem;
}

/* Inline heart image inside the names line */
.hero-names .inline-heart {
  height: 2.5em;
  width: auto;
  vertical-align: middle;
  margin: 0 -0.4em;
  display: inline-block;
}


/* =============================================================================
   6. MEDIA — VIDEO
   =============================================================================
   The radial mask creates a soft vignette fade around the video edges.
   ============================================================================= */

.video-wrapper {
  position: relative;
  width: var(--content-max-width);
  max-width: 100%;
  margin: 0 auto;
}

video {
  display: block;
  margin: 0 auto;
  width: var(--content-max-width);
  max-width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, black 60%, transparent 100%);
          mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, black 60%, transparent 100%);
}


/* =============================================================================
   7. BUTTONS
   ============================================================================= */

/* 7a. Primary register button -----------------------------------------------
   Solid pill-shaped CTA. High-specificity selectors override Quarto's link
   styles without needing !important on individual properties where possible.    */

.register-btn-wrapper {
  text-align: center;
  margin-top: 1.6rem;
}

.register-btn-wrapper a.register-btn,
.register-btn-wrapper a.register-btn:link,
.register-btn-wrapper a.register-btn:visited,
.register-btn-wrapper a.register-btn:active {
  display: inline-block !important;
  padding: 0.75rem 2.5rem !important;
  background-color: var(--color-dark-green) !important;
  color: var(--color-cream) !important;
  font-family: var(--font-display) !important;
  font-size: 1.2rem !important;
  letter-spacing: 0.15em !important;
  text-decoration: none !important;
  border: none !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
          appearance: none !important;
}

.register-btn-wrapper a.register-btn:hover {
  transform: translateY(-2px) !important;
}

.register-btn:active {
  transform: translateY(0);
}

/* 7b. Secondary navigation buttons ------------------------------------------
   Outlined pills that invert on hover; an "--active" modifier marks the
   current page (non-interactive).                                               */

.secondary-btn-wrapper {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.secondary-btn-wrapper a.secondary-btn,
.secondary-btn-wrapper a.secondary-btn:link,
.secondary-btn-wrapper a.secondary-btn:visited,
.secondary-btn-wrapper a.secondary-btn:active {
  display: inline-block !important;
  padding: 0.65rem 2rem !important;
  border: 2px solid var(--color-dark-green) !important;
  background-color: var(--color-cream) !important;
  color: var(--color-dark-green) !important;
  font-family: var(--font-display) !important;
  font-size: 1.0rem !important;
  letter-spacing: 0.15em !important;
  text-decoration: none !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
          appearance: none !important;
  transition: background-color 0.2s ease, transform 0.1s ease !important;
}

.secondary-btn-wrapper a.secondary-btn:hover {
  border-color: var(--color-dark-green) !important;
  background-color: var(--color-dark-green) !important;
  color: var(--color-cream) !important;
  transform: translateY(-2px);
}

/* Active / current-page state — visually filled, pointer disabled */
.secondary-btn-wrapper a.secondary-btn--active,
.secondary-btn-wrapper a.secondary-btn--active:link,
.secondary-btn-wrapper a.secondary-btn--active:visited,
.secondary-btn-wrapper a.secondary-btn--active:active {
  background-color: var(--color-dark-green) !important;
  color: var(--color-cream) !important;
  cursor: default !important;
  pointer-events: none !important;
}


/* =============================================================================
   8. NAVIGATION BAR
   ============================================================================= */

.navbar {
  background: transparent;
}

.navbar-nav .nav-link {
  font-family: var(--font-sans);
  color: var(--color-mid-green) !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 10px;
  padding: 2px 2px 4px !important;
  border-bottom: 0 hidden;
}

.navbar-nav .nav-link:hover {
  border-bottom: 1px solid !important;
  padding: 2px 2px 0 !important;
  color: var(--color-mid-green);
}


/* =============================================================================
   9. FOOTER
   ============================================================================= */

footer {
  margin-top: 0;
  padding: var(--space-sm) 1rem;
  min-height: auto;
  background: transparent !important;
  position: relative;
  z-index: 10;
}

/* Soft text shadow keeps footer readable over any background */
footer p,
footer a,
.nav-footer,
.nav-footer-center {
  color: #333 !important;
  text-shadow:
    1px 1px 3px rgba(255, 255, 255, 0.8),
    0 0 5px rgba(255, 255, 255, 0.6);
}

.nav-footer {
  padding: var(--space-sm) 0 !important;
  min-height: auto !important;
  background: transparent !important;
}

.nav-footer-center {
  padding: 0.5rem 0 !important;
  background: transparent !important;
}


/* =============================================================================
   10. UTILITY — SPACING HELPERS
   =============================================================================
   Use these classes between sections or images in Quarto markdown:
     ::: {.small-space} ::: etc.
   ============================================================================= */

.tiny-space   { margin-bottom: 0.5em; }
.small-space  { margin-bottom: 1em;   }
.medium-space { margin-bottom: 2em;   }
.large-space  { margin-bottom: 3em;   }


/* =============================================================================
   11. RESPONSIVE OVERRIDES
   ============================================================================= */

/* 11a. Tablets — up to 992 px -----------------------------------------------*/

@media (max-width: 992px) {
  .hero-content {
    max-width: 100%;
    padding: var(--space-md);
  }

  .hero-text {
    font-size: 1.2rem;
  }

  .hero-names {
    font-size: 3rem;
  }
}

/* 11b. Mobile phones — up to 768 px -----------------------------------------*/

@media (max-width: 768px) {
  #quarto-content {
    min-height: calc(100vh - 70px);
    padding-bottom: 1rem;
  }

  video {
    width: 100%;
  }

  .hero-content {
    padding: 1.2rem var(--space-md);
    max-width: 100%;
  }

  .hero-header {
    font-size: 2.2rem;
  }

  .hero-text {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    margin-bottom: 0;
  }

  .hero-names {
    font-size: 2.5rem;
  }

  .hero-names .inline-heart {
    height: 2em;
  }

  /* Buttons */
  .register-btn-wrapper a.register-btn,
  .register-btn-wrapper a.register-btn:link,
  .register-btn-wrapper a.register-btn:visited {
    font-size: 1rem !important;
    padding: 0.6rem 2rem !important;
  }

  .secondary-btn-wrapper a.secondary-btn,
  .secondary-btn-wrapper a.secondary-btn:link,
  .secondary-btn-wrapper a.secondary-btn:visited {
    font-size: 0.88rem !important;
    padding: 0.6rem 1.5rem !important;
  }

  /* Footer */
  footer {
    padding: 0.5rem var(--space-sm);
    background: transparent !important;
  }

  .nav-footer {
    padding: 0 !important;
    background: transparent !important;
  }
}

/* 11c. Small phones — up to 480 px ------------------------------------------*/

@media (max-width: 480px) {
  .hero-content {
    padding: 1rem;
  }

  .hero-header {
    font-size: 1.9rem;
  }

  .hero-text {
    font-size: 1rem;
    padding: 0.5rem 0;
  }

  .hero-names {
    font-size: 2rem;
  }

  .hero-names .inline-heart {
    height: 1.8em;
  }

  /* Buttons */
  .register-btn-wrapper a.register-btn,
  .register-btn-wrapper a.register-btn:link,
  .register-btn-wrapper a.register-btn:visited {
    font-size: 0.9rem !important;
    padding: 0.5rem 1.75rem !important;
  }

  .secondary-btn-wrapper a.secondary-btn,
  .secondary-btn-wrapper a.secondary-btn:link,
  .secondary-btn-wrapper a.secondary-btn:visited {
    font-size: 0.82rem !important;
    padding: 0.5rem 1.25rem !important;
  }

  /* Footer */
  footer {
    padding: var(--space-xs) 0.5rem;
    font-size: 0.85rem;
    background: transparent !important;
  }

  .nav-footer {
    padding: 0 !important;
    background: transparent !important;
  }
}


/* =============================================================================
   12. MISC FIXES
   ============================================================================= */

/* Prevent Plotly tooltips from intercepting mouse events */
.hoverlayer .hovertext {
  pointer-events: none !important;
}