/* =========================================================
   Ithaca Tango Rendezvous — shared site stylesheet
   Used by index.html, about.html, and any future pages.
   ========================================================= */

:root{
  --red: #b3261e;
  --cream: #fdfaf5;
  --ink: #1a1a1a;
  --muted: #555;
  --border: #e5e0d8;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }

body{
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3, .serif{
  font-family: Georgia, 'Times New Roman', serif;
}

/*
a{ color: inherit; }
*/
a{
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: rgba(179, 38, 30, 0.35);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s ease;
}

a:hover{
  text-decoration-color: var(--red);
}

img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* =========================================================
   SITE HEADER (light, non-hero pages e.g. About/Contact)
   ========================================================= */

.brand{
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand-group{
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-dates{
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin-top: 4px;
  opacity: 0.85;
}

.nav{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 28px 48px;
  /*
  padding-top: 28px;
  padding-bottom: 28px;
  */
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 24px;
}

/*
.nav-links a{
  text-decoration: none;
  white-space: nowrap;
}
*/

.nav-links a{
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 6px;
  transition: border-color 0.2s ease;
}

.nav-links a:hover{
  border-bottom-color: currentColor;
}

.nav-links a.active{
  border-bottom-color: currentColor;
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 6;
}

.nav-toggle span{
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Light-on-dark variant */
.nav--on-dark,
.nav--on-dark .brand,
.nav--on-dark .brand-dates,
.nav--on-dark .nav-links a{
  color: #fff;
}

.nav-toggle.is-active span:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2){
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 800px){

  .nav{
    padding: 20px 22px;
  }

  .nav-toggle{
    display: flex;
    color: var(--ink);
  }

  .nav--on-dark .nav-toggle{
    color: #fff;
  }

  .nav-links{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    max-height: 0;
    overflow: hidden;

    background: var(--cream);
    transition: max-height 0.3s ease;
  }

  .nav-links.is-open{
    max-height: 400px;
    padding: 8px 0 16px;
  }

  .nav-links a{
    padding: 14px 22px;
    border-bottom: 1px solid var(--border);
    color: var(--ink);
  }

  .nav--on-dark .nav-links{
    background: rgba(0,0,0,0.92);
  }

  .nav--on-dark .nav-links a{
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.15);
  }
}

/* =========================================================
   SITE FOOTER (used by every page)
   ========================================================= */
.info-strip{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 48px;
  border-top: 1px solid var(--border);
}

.info-strip .serif{
  font-size: clamp(1.0rem, 4vw, 2.0rem);
}
.info-strip .social-links{
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-strip .social-links img{
  display: inline-block;
  width: 40px;
  height: auto;
}

/* =========================================================
   VIDEO HERO / PLAYLIST (index.html)
   ========================================================= */
.hero{
  position: relative;
  width: 100%;
  height: 88vh;
  min-height: 620px;
  overflow: hidden;
  background: #111;
}

.hero-header{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
}

.hero-video-layer{
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-video{
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Foggy overlay used to mask the swap between two clips instead of
   crossfading the actual footage (so no video time is spent fading). */
.hero-fog{
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center,
      rgba(255,255,255,0.92) 0%,
      rgba(235,235,235,0.85) 45%,
      rgba(210,210,210,0.9) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  transition-property: opacity;
}

.hero-fog.is-active{
  opacity: 1;
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.10) 35%,
    rgba(0,0,0,0.10) 60%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* wraps title + description together purely so both can
   fade in/out in sync; positioning happens on the children */
.hero-text{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition-property: opacity;
  /* duration set inline by JS, matched to video transition */
}

.hero-text.is-active{
  opacity: 1;
}

.headline{
  position: absolute;
  right: 48px;
  bottom: 92px;
  max-width: 900px;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: var(--red);
  line-height: 1.05;
  text-align: right;
}

.hero-caption{
  position: absolute;
  right: 48px;
  bottom: 32px;
  max-width: 480px;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: left;
}

/* small dot indicators for which clip is playing */
.hero-dots{
  position: absolute;
  left: 48px;
  bottom: 32px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dots button{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.8);
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
}

.hero-dots button.is-active{
  background: var(--red);
  border-color: var(--red);
  opacity: 1;
}

/* =========================================================
   ABOUT PAGE LAYOUT
   ========================================================= */
.page-title{
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  margin: 10px 0 40px;
}

.intro-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 24px;
}

.intro-text{
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.3;
}
.intro-text-normal{
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.4rem, 1.6vw, 1.1rem);
  line-height: 1.3;
}

.img-story-1{
  aspect-ratio: 16 / 10;
  background: #ddd;
  overflow: hidden;
}

/*
.detail-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 60px;
}
*/

.img-story-2{
  aspect-ratio: 16 / 20;
  background: #ddd;
  overflow: hidden;
}

.detail-cols{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 8px;
}

.detail-row .detail-cols {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.detail-cols h3{
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.detail-cols p{
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.detail-cols ul {
  padding-left: 20px; /* Indent for the bullets */
  margin-top: 0;
  margin-bottom: 0;
}

.detail-cols li {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  
  /* Adjust this value to control the vertical space between list items */
  margin-bottom: 8px; 
}

/* Removes the extra margin from the very last item in the list */
.detail-cols li:last-child {
  margin-bottom: 0;
}

.closing{
  max-width: 900px;
  margin: 0 0 90px;
}

.closing p{
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  margin-bottom: 26px;
}

/* =========================================================
   PAGE HERO (visit.html, history.html) — full-width static
   image banner with the header and title/intro overlaid on
   top, content continues below it.
   ========================================================= */
.page-hero{
  position: relative;
  width: 100%;
  height: 56vh;
  min-height: 420px;
  max-height: 620px;
  overflow: hidden;
  background: #111;
}

.page-hero-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.15) 35%,
    rgba(0,0,0,0.1) 60%,
    rgba(0,0,0,0.55) 100%
  );
  pointer-events: none;
}

.page-hero-header{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.hero-content{
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.page-hero-title{
  position: absolute;
  right: 48px;
  bottom: 92px;
  z-index: 3;
  max-width: 720px;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: var(--red);
  line-height: 1.08;
  text-align: right;
}

.page-hero-intro{
  position: absolute;
  right: 48px;
  bottom: 32px;
  z-index: 3;
  max-width: 480px;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: left;
}

/* =========================================================
   CONTENT PAGE SECTIONS (visit.html, history.html)
   ========================================================= */

.page-intro{
  max-width: 800px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 40px;
}

/* sticky in-page jump links between combined sections */
.section-nav{
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 48px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.section-nav a{
  font-size: 0.85rem;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}

.section-nav a:hover{
  border-color: var(--red);
  color: var(--red);
}

.content-section{
  scroll-margin-top: 70px;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.content-section:last-of-type{
  border-bottom: none;
}

.section-banner{
  aspect-ratio: 21 / 6;
  background: #ddd;
  overflow: hidden;
  margin-bottom: 28px;
}

.section-title{
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  margin-bottom: 20px;
}

.section-body p{
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  max-width: 820px;
  margin-bottom: 18px;
}

.subsection-title{
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--red);
  margin: 48px 0 18px;
}

.content-section > .section-body > .subsection-title:first-child{
  margin-top: 8px;
}

.red-title {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 10px;
}


/* grouped lists — housing categories, food categories, etc. */
.category-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 60px;
}

.category-block{
  margin-bottom: 28px;
}

.category-block h3{
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 10px;
}

.category-block ul{
  list-style: none;
}

.category-block li{
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.5;
}

.category-block li:last-child{
  border-bottom: none;
}

.category-block li strong{
  font-weight: 700;
}

/* individual place entries — waterfalls, wineries, trails, etc. */
.place-card{
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  max-width: 820px;
}

.place-card:last-child{
  border-bottom: none;
}

.place-card h4{
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.place-card p{
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 8px;
}

.place-links{
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.place-links a{
  color: var(--red);
  text-decoration: none;
}

.place-links a:hover{
  text-decoration: underline;
}

/* history timeline of past gatherings */
.timeline{
  max-width: 700px;
  margin-top: 12px;
}

.timeline-item{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child{
  border-bottom: none;
}

.timeline-item .event-name{
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
}

.timeline-item .event-organizer{
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

/* image carousel, used by both the Gallery and Testimonials
   sections (see js/carousel.js, js/gallery.js, js/testimonials.js) */
.carousel{
  margin-top: 8px;
}

.carousel-viewport{
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #ddd;
}

/* =========================================================
   CAROUSEL SIZING — per image set
   -------------------------------------------------------
   Each carousel's dimensions are set here, matched to that
   image set's actual resolution, rather than in JS. Adjust
   these if your source images change size.
   ========================================================= */

/* Gallery photos: high-res, e.g. 2048 x 1366 (~3:2) */
#gallery-carousel .carousel-viewport{
  aspect-ratio: 2048 / 1366;
}

/* Testimonial photos: low-res, e.g. 700 x 200. Shown at their
   exact native size (not stretched to fill the container) while
   the carousel itself still spans the full content width — the
   fixed-width viewport just sits centered within that width.
   Height is NOT set here — js/carousel.js measures each photo's
   real dimensions (matchImageSize: true) and sizes the box to
   match exactly, so it can never be taller than the actual image.
   max-width: 100% keeps it from overflowing on narrow screens. */
#testimonial-carousel{
  max-width: none;
}

#testimonial-carousel .carousel-viewport{
  width: 700px;
  max-width: 100%;
  margin: 0 auto;
}

#testimonial-carousel .carousel-img{
  object-fit: contain;
}

.carousel-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition-property: opacity;
}

.carousel-img.is-active{
  opacity: 1;
}

.carousel-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.carousel-arrow:hover{
  background: rgba(0,0,0,0.7);
}

.carousel-arrow--prev{ left: 14px; }
.carousel-arrow--next{ right: 14px; }

.carousel-dots{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.carousel-dots button{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.6;
}

.carousel-dots button.is-active{
  background: var(--red);
  border-color: var(--red);
  opacity: 1;
}

.gallery-credit{
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
  margin-top: 12px;
}

/* caption overlaid on the image (used by the gallery) */
.carousel--overlay .carousel-caption{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 28px 24px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
  color: #fff;
  opacity: 0;
  transition-property: opacity;
  pointer-events: none;
}

.carousel--overlay .carousel-caption.is-active{
  opacity: 1;
}

.carousel--overlay .carousel-caption .caption-text{
  font-size: 0.95rem;
}

/* caption below the image (used by testimonials — quote + author) */
.carousel--below .carousel-caption{
  margin-top: 22px;
  padding: 0 20px;
  text-align: center;
  opacity: 0;
  transition-property: opacity;
}

.carousel--below .carousel-caption.is-active{
  opacity: 1;
}

.carousel--below .carousel-caption .quote{
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 12px;
}

.carousel--below .carousel-caption .author{
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* history timeline of past gatherings */

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 800px){
  .nav{ padding: 20px 22px; }
  .nav-links{ gap: 16px; font-size: 0.85rem; }
  .wrap{ padding: 0 22px; }

  .headline{ right: 22px; bottom: 60px; left: 22px; max-width: none; text-align: left; }

  .hero-caption{ right: 22px; left: 22px; bottom: 60px; max-width: none; }
  .hero-dots{ left: 22px; bottom: 24px; }

  .intro-row,
  /*
  .detail-row{
    grid-template-columns: 1fr;
    gap: 24px;
  }
  */
  .detail-cols{
    grid-template-columns: 1fr;
  }

  .info-strip{
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 32px 22px;
  }

  .section-nav{ padding: 14px 22px; }
  .content-section{ padding: 44px 0; }
  .section-banner{ aspect-ratio: 16 / 9; }
  .category-grid{ grid-template-columns: 1fr; gap: 0; }
  .timeline-item{ flex-direction: column; gap: 4px; }
  .carousel-arrow{ width: 36px; height: 36px; font-size: 1.2rem; }

  .page-hero{ height: 52vh; min-height: 360px; }
  .page-hero-title{ right: 22px; bottom: 60px; left: 22px; max-width: none; text-align: left; }
  .page-hero-intro{ right: 22px; left: 22px; bottom: 24px; max-width: none; }
}

.video-embed{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  margin: 24px 0;
}

.video-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.arts-columns{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.arts-columns .video-embed{
  margin: 0; /* remove the default 24px top/bottom margin so it aligns with the text */
}

@media (max-width: 800px){
  .arts-columns{
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* =========================================================
   FOOTER CREDIT POPOVER ("With L&V")
   ========================================================= */
.footer-credit{
  position: relative;
  display: inline-block;
  cursor: help;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(26,26,26,0.06);
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-credit:hover,
.footer-credit:focus{
  background: rgba(179,38,30,0.1);
  color: var(--red);
}

.credit-popover{
  position: absolute;
  left: 0;
  bottom: calc(100% + 16px);
  z-index: 20;

  width: 320px;
  max-width: calc(100vw - 44px);
  padding: 20px;

  background: var(--cream);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);

  text-align: left;
  font-family: 'Helvetica Neue', Arial, sans-serif;

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}

.footer-credit:hover .credit-popover,
.footer-credit:focus .credit-popover,
.footer-credit:focus-within .credit-popover{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.credit-popover--right{
  left: auto;
  right: 0;
}

.credit-popover img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 14px;
}

.credit-popover p{
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

.credit-popover p + p{
  margin-top: 10px;
}

@media (max-width: 800px){
  .credit-popover{
    left: -10px;
    width: 280px;
  }
  .credit-popover--right{
    right: -10px;
  }
}

.credits-list{
  list-style: none;
  margin-top: 12px;
  max-width: 720px;
}

.credits-list li{
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.credits-list li:last-child{
  border-bottom: none;
}

.credits-list li strong{
  color: var(--ink);
  font-weight: 700;
}
