/* ebb n flow — shared page styles (sections, nav, forms, event cards)
   Extracted from index.html so subpages (events/*) can reuse them. */

/* Show/hide mark based on theme */
.mark-light { display: none; }
.mark-dark { display: block; }
[data-theme="light"] .mark-light { display: block; }
[data-theme="light"] .mark-dark { display: none; }

/* Floating mark - moves from hero to nav */
.floating-mark {
  position: fixed;
  z-index: 150;
  pointer-events: none;
  /* Initial position before JS kicks in */
  width: 180px;
  height: 190px;
  left: calc(50% - 90px);
  top: calc(50% - 95px);
}
.floating-mark svg {
  width: 100%;
  height: 100%;
}

/* Hero placeholder maintains layout */
.hero-mark-placeholder {
  width: 180px;
  height: 190px;
  margin-bottom: 28px;
}

/* Nav layout */
.nav-wordmark {
  font-family: 'Anybody', sans-serif;
  font-weight: 200;
  font-size: 14px;
  letter-spacing: 3px;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  will-change: transform;
}
.nav-wordmark .n {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--sage);
}

.nav-links {
  will-change: transform;
}

/* Hero button: jumps straight to the events list */
.hero-cta {
  margin-top: 36px;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-subtle);
  opacity: 0.4;
  transition: opacity 0.2s ease;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-hint:hover { opacity: 0.8; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Sections */
.section {
  padding: 100px 40px;
  border-top: 1px solid var(--border);
}
.section-inner {
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.section-inner.visible {
  opacity: 1;
  transform: translateY(0);
}
.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  margin-bottom: 8px;
}
.section-subtitle {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 48px;
}
.section-content p {
  margin-bottom: 20px;
  color: var(--text-muted);
  line-height: 1.7;
}
.section-content p strong {
  color: var(--text);
  font-weight: 400;
}
.section-content h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  margin: 40px 0 16px;
  color: var(--text);
}
.section-content h3:first-of-type {
  margin-top: 0;
}
.section-content a {
  color: var(--sage);
}

/* Coming soon */
.coming-soon {
  padding: 48px 0;
  text-align: center;
}
.coming-soon-text {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.coming-soon-sub {
  font-size: 14px;
  color: var(--text-subtle);
}

/* Muted text */
.muted {
  color: var(--text-subtle);
  font-size: 14px;
}

/* Email link */
.email-link {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
}


/* Event card extras */
.section-content a.event-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  margin-top: 24px;
}
.event-title-sub { font-style: italic; color: var(--text-muted); font-size: 18px; }
.event-edition { font-family: 'Space Mono', monospace; color: var(--sage); }
.event-lineup { font-size: 14px; color: var(--text-muted); margin: 14px 0 18px; }
.event-lineup strong { color: var(--text); font-weight: 400; }
.event-cta { display: inline-block; font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 1px; color: var(--sage); text-decoration: none; }
.event-card:hover .event-cta, .event-cta:hover { color: var(--light-sage); }

/* Open decks sign-up form */
.signup { margin-top: 32px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: block; margin-bottom: 20px; }
.field-label {
  display: block; font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; background: transparent; color: var(--text);
  border: 1px solid var(--border); border-bottom-color: rgba(126,184,168,0.35);
  border-radius: 6px; padding: 12px 14px; font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: 15px;
  transition: border-color 0.2s ease; outline: none; appearance: none; -webkit-appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-subtle); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sage); }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { background: var(--bg-secondary); color: var(--text); }
.field textarea { resize: vertical; min-height: 84px; }
.field-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.btn {
  background: transparent; color: var(--sage); border: 1px solid var(--sage); border-radius: 999px;
  padding: 12px 26px; font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--sage); color: var(--deep-black); }
.btn:disabled { opacity: 0.5; cursor: default; }
.form-note { font-size: 12px; color: var(--text-subtle); margin: 0 !important; }
.form-status { font-size: 13px; color: var(--sage); margin-top: 14px; min-height: 1em; }
.signup-done { padding: 40px 0 16px; }
.signup-done-title { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 26px; color: var(--text) !important; margin-bottom: 8px !important; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* Responsive */
@media (max-width: 768px) {
  .section {
    padding: 60px 24px;
  }
  .section-title {
    font-size: 28px;
  }
}

/* Nav: Instagram "Follow Us" — solid button so it stands out */
.nav-links { align-items: center; }
.nav-links .nav-follow a {
  background: var(--sage); color: var(--deep-black); border: 1px solid var(--sage); border-radius: 999px;
  padding: 9px 18px; font-weight: 700; white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.nav-links .nav-follow a:hover { background: var(--light-sage, #c8e6dc); border-color: var(--light-sage, #c8e6dc); color: var(--deep-black); }
/* Phones: the text links don't fit next to the wordmark — keep just Follow Us */
@media (max-width: 600px) {
  .nav-links li:not(.nav-follow) { display: none; }
}
