/* ============================================================
   Sip Around the World — stylesheet
   Design tokens live at the top. Edit these to retune the palette.
   ============================================================ */

:root{
  --ink:        #24261F;   /* body text */
  --ink-soft:   #4B4D42;   /* secondary text */
  --paper:      #EFEAE1;   /* page background (warm parchment, muted) */
  --paper-raised:#F7F4EC;  /* card background, slightly lighter than paper */
  --bottle:     #1E3B2F;   /* deep bottle green — hero / footer */
  --bottle-ink: #E9EFE9;   /* text on bottle green */
  --sage:       #6F8F72;   /* muted, HeadsUpGuys-inspired green — dominant supporting color */
  --sage-deep:  #4F6B52;   /* hover / emphasis */
  --brass:      #B08D57;   /* ticket / primary CTA accent */
  --brass-deep: #8F7143;
  --line:       #D9D2C3;   /* hairline dividers on paper */
  --line-dark:  rgba(233,239,233,0.25); /* hairline on bottle green */

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1120px;
  --measure: 640px; /* comfortable reading width */
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video{ max-width:100%; display:block; }
a{ color: inherit; }
h1,h2,h3{
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1em; }
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.measure{ max-width: var(--measure); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, .tab:focus-visible{
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------------- Nav ---------------- */
.nav{
  position: sticky; top:0; z-index: 50;
  background: var(--bottle);
  border-bottom: 1px solid var(--line-dark);
}
.nav .container{
  display:flex; align-items:center; justify-content:space-between;
  height: 72px;
}
.brand{
  font-family: var(--serif);
  color: var(--bottle-ink);
  font-size: 1.25rem;
  text-decoration:none;
  display:flex; align-items:baseline; gap:8px;
}
.brand small{
  font-family: var(--sans);
  font-size: 0.65rem;
  color: var(--sage);
  letter-spacing: 0.04em;
}
.nav-links{
  display:flex; align-items:center; gap: 28px;
  list-style:none; margin:0; padding:0;
}
.nav-links a{
  color: var(--bottle-ink);
  text-decoration:none;
  font-size: 0.95rem;
  opacity: 0.88;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover{ opacity: 1; border-bottom-color: var(--sage); }
.nav-links a.current{ opacity:1; border-bottom-color: var(--brass); }
.nav-cta{
  background: var(--brass);
  color: #24230F;
  padding: 9px 18px;
  border-radius: 3px;
  font-weight: 600;
  border-bottom: none !important;
}
.nav-cta:hover{ background: var(--brass-deep); color:#fff; }
.nav-toggle{ display:none; }

@media (max-width: 780px){
  .nav-links{
    position: fixed; inset: 72px 0 0 0;
    background: var(--bottle);
    flex-direction:column; align-items:flex-start;
    padding: 28px 24px; gap: 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav-links.open{ opacity:1; transform: translateY(0); pointer-events:auto; }
  .nav-toggle{
    display:block; background:none; border:none; color: var(--bottle-ink);
    font-size: 1.6rem; line-height:1; cursor:pointer; padding:4px;
  }
}

/* ---------------- Hero ---------------- */
.hero{
  background: var(--bottle);
  color: var(--bottle-ink);
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
}
.hero .container{
  position: relative; z-index: 2;
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items:center;
}
.hero h1{
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: #fff;
}
.hero .stamp{
  display:inline-flex; align-items:center; gap:8px;
  font-size: 0.78rem; letter-spacing: 0.03em;
  color: var(--sage);
  border: 1px solid var(--sage);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 22px;
}
.hero .lede{
  font-size: 1.15rem;
  color: #D8E0D8;
  max-width: 46ch;
}
.hero-ctas{
  display:flex; flex-wrap:wrap; gap: 14px;
  margin-top: 28px;
}
.route-art{ width:100%; height:auto; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration:none;
  border: 1px solid transparent;
  cursor:pointer;
}
.btn-brass{ background: var(--brass); color:#24230F; }
.btn-brass:hover{ background:#C39D63; }
.btn-outline{
  background: transparent; color: var(--bottle-ink);
  border-color: var(--line-dark);
}
.btn-outline:hover{ border-color: var(--sage); color:#fff; }
.btn-sage{ background: var(--sage); color:#0F1C10; }
.btn-sage:hover{ background: var(--sage-deep); color:#fff; }
.btn-block{ width:100%; }

/* ---------------- Sections on paper ---------------- */
section{ padding: 84px 0; }
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap: 24px; margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.section-head h2{ font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.section-head .tag{
  font-size: 0.85rem; color: var(--sage-deep); font-weight:600;
}
.section-alt{ background: var(--paper-raised); }

/* About / two column */
.about-grid{
  display:grid; grid-template-columns: 1.3fr 0.9fr; gap: 56px;
  align-items:start;
}
.about-copy p{ color: var(--ink-soft); }
.callout{
  background: var(--bottle);
  color: var(--bottle-ink);
  padding: 32px;
  border-radius: 4px;
  position:relative;
}
.callout .figure{
  font-family: var(--serif); font-size: 2.6rem; color:#fff; display:block; margin-bottom: 6px;
}
.callout p{ color:#CBD6CC; font-size:0.95rem; margin:0; }
.callout a{ color: var(--sage); font-weight:600; }

/* How it works */
.steps{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
}
.step{ border-top: 2px solid var(--sage); padding-top: 18px; }
.step h3{ font-size: 1.2rem; margin-bottom: 8px; }
.step p{ color: var(--ink-soft); font-size: 0.96rem; margin:0; }

/* Gallery preview grid + full gallery grid */
.grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.tile{
  position:relative;
  aspect-ratio: 4/5;
  border-radius: 3px;
  overflow:hidden;
  cursor:pointer;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, #DCD6C7 0%, #C9C2AE 100%);
  display:flex; align-items:flex-end;
}
.tile img{
  position:absolute; inset:0; z-index:0;
  width:100%; height:100%; object-fit:cover;
}
.tile.video::before{
  content: "";
  position:absolute; z-index:1; top:50%; left:50%; transform:translate(-50%,-50%);
  width: 46px; height:46px; border-radius:50%;
  background: rgba(30,59,47,0.75);
}
.tile.video::after{
  content:"";
  position:absolute; z-index:1; top:50%; left:50%;
  transform: translate(-38%,-50%);
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
}
.tile-label{
  position:relative; z-index:2;
  padding: 12px;
  font-size: 0.78rem;
  color: var(--ink);
  background: linear-gradient(to top, rgba(239,234,225,0.92), rgba(239,234,225,0));
  width:100%;
}
.gallery-toolbar{
  display:flex; gap: 10px; flex-wrap:wrap; margin-bottom: 30px;
}
.tab{
  font: inherit; font-size:0.88rem; font-weight:600;
  background:none; border:1px solid var(--line); color: var(--ink-soft);
  padding: 8px 16px; border-radius: 100px; cursor:pointer;
}
.tab.active, .tab:hover{ border-color: var(--sage); color: var(--sage-deep); }

/* ---------------- Live auction prizes ---------------- */
.prize-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.prize-card{
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow:hidden;
}
.prize-photo{
  aspect-ratio: 4/3;
  background: linear-gradient(155deg, #DCD6C7 0%, #C9C2AE 100%);
  display:flex; align-items:center; justify-content:center;
  font-size: 0.8rem; color: var(--ink-soft); text-align:center;
  border-bottom: 1px solid var(--line);
  overflow:hidden;
}
.prize-photo:not(:has(img)){ padding: 16px; }
.prize-photo img{
  width:100%; height:100%; object-fit:cover; display:block;
}
.prize-body{ padding: 20px; }
.prize-body h3{ font-size: 1.05rem; margin-bottom: 6px; }
.prize-body p{ font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 10px; }
.prize-value{
  display:inline-block;
  font-size: 0.8rem; font-weight:600;
  color: var(--brass-deep);
  border: 1px solid var(--brass);
  border-radius: 100px;
  padding: 3px 12px;
}

/* ---------------- Meet the team ---------------- */
.team-grid{
  display:grid; grid-template-columns: repeat(5, 1fr); gap: 32px;
}
.team-card{ text-align:center; }
.team-photo{
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(155deg, #DCD6C7 0%, #C9C2AE 100%);
  display:flex; align-items:center; justify-content:center;
  font-size: 0.76rem; color: var(--ink-soft); text-align:center;
  border: 2px solid var(--sage);
  margin: 0 auto 14px;
  max-width: 140px;
}
.team-photo:not(:has(img)){ padding: 10px; }
.team-photo img{
  width:100%; height:100%; object-fit:cover; display:block;
  filter: grayscale(100%);
}
.team-card h3{ font-size: 1.05rem; margin: 0; }

/* CTA banner */
.cta-banner{
  background: var(--bottle);
  color: var(--bottle-ink);
  padding: 64px 0;
}
.cta-banner h2{ color:#fff; margin-bottom: 8px; }
.cta-banner p{ color:#CBD6CC; margin-bottom: 30px; max-width:52ch; }
.cta-row{ display:flex; gap:16px; flex-wrap:wrap; }

/* Footer */
footer{
  background: var(--bottle);
  color: #B9C4BA;
  border-top: 1px solid var(--line-dark);
  padding: 40px 0;
  font-size: 0.88rem;
}
.footer-row{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px; }
footer a{ color:#B9C4BA; text-decoration:none; }
footer a:hover{ color:#fff; }

/* Lightbox modal */
.lightbox{
  position:fixed; inset:0; background: rgba(15,20,16,0.92);
  display:none; align-items:center; justify-content:center; z-index: 100;
  padding: 32px;
}
.lightbox.open{ display:flex; }
.lightbox-inner{ max-width: 780px; width:100%; color:#fff; }
.lightbox-frame{
  aspect-ratio: 4/3; border-radius:4px;
  background: linear-gradient(155deg, #33513F 0%, #1E3B2F 100%);
  display:flex; align-items:center; justify-content:center;
  color: #CBD6CC; font-size:0.9rem; text-align:center; padding: 20px;
  border: 1px solid var(--line-dark);
  overflow:hidden;
}
.lightbox-frame.video{ aspect-ratio: 16/9; padding:0; }
.lightbox-frame iframe{ width:100%; height:100%; border:0; }
.lightbox-frame img{ width:100%; height:100%; object-fit:contain; }
.lightbox-caption{ margin-top: 14px; font-size:0.92rem; color:#D8E0D8; }
.lightbox-close{
  position:absolute; top: 24px; right: 32px;
  background:none; border:none; color:#fff; font-size:1.8rem; cursor:pointer;
}

/* Responsive */
@media (max-width: 900px){
  .hero .container{ grid-template-columns:1fr; }
  .about-grid{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:1fr 1fr; }
  .grid{ grid-template-columns: repeat(3,1fr); }
  .prize-grid{ grid-template-columns: 1fr 1fr; }
  .team-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px){
  section{ padding:56px 0; }
  .steps{ grid-template-columns:1fr; }
  .grid{ grid-template-columns: repeat(2,1fr); }
  .prize-grid{ grid-template-columns: 1fr; }
  .team-grid{ grid-template-columns: 1fr; }
  .section-head{ flex-direction:column; align-items:flex-start; gap:8px; }
}
