/*
Theme Name: Entheo Earth
Theme URI: https://entheo.earth
Author: Entheology Project
Author URI: https://entheologyproject.org
Description: Whimsical, manifesto-led single-page theme for The Entheogen Series — free, music-led community gatherings exploring one entheogen at a time through culture, ecology, science, Indigenous knowledge when possible, and psychedelic risk reduction.
Version: 1.0.13
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: entheo-earth
Tags: one-column, custom-menu, custom-logo, accessibility-ready
*/

/* ============================================================
   Entheo Earth — whimsical, high-contrast, mobile-first.
   The trippy EP mark supplies the color story:
   green / cyan / magenta / yellow over warm paper + deep ink.
   ============================================================ */

:root {
  --paper: #fdf7ec;         /* warm cream */
  --paper-deep: #f7edda;
  --ink: #211d17;           /* soft black */
  --ink-soft: #5c554a;
  --magenta: #e0409f;
  --cyan: #1fb5c9;
  --green: #58b944;
  --yellow: #f4cf3a;
  --card: #ffffff;
  --line: #e5d9c2;
  --radius-blob: 28px;
  --font-display: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --font-body: "Nunito", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--magenta); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; z-index: 200; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px;
  background: rgba(253, 247, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; transition: transform 0.3s ease; }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand span {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em;
}
.primary-nav { display: none; gap: 4px; }
@media (min-width: 780px) { .primary-nav { display: flex; } }
.primary-nav a {
  text-decoration: none; font-weight: 700; font-size: 0.92rem;
  padding: 8px 14px; border-radius: 999px; color: var(--ink);
}
.primary-nav a:hover { background: var(--yellow); color: var(--ink); }

/* Front page: header floats transparent over the full-screen hero video,
   then turns solid once the visitor scrolls (.scrolled added by main.js). */
.site-header.over-hero {
  position: fixed; left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.over-hero .brand span,
.site-header.over-hero .primary-nav a { color: #fff; }
.site-header.over-hero .primary-nav a:hover { background: var(--yellow); color: var(--ink); }
.site-header.over-hero.scrolled {
  background: rgba(253, 247, 236, 0.94);
  border-bottom-color: var(--ink);
  backdrop-filter: blur(10px);
}
.site-header.over-hero.scrolled .brand span,
.site-header.over-hero.scrolled .primary-nav a { color: var(--ink); }

.btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  font-family: var(--font-body); font-weight: 800; font-size: 0.95rem;
  padding: 13px 24px; border-radius: 999px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--magenta); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--ink); }
.btn-cyan { background: var(--cyan); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;   /* full-screen takeover */
  min-height: 100svh;  /* stable on mobile browser chrome */
  display: flex; align-items: flex-end;
  overflow: hidden; background: var(--ink);
}
.hero-media { position: absolute; inset: 0; }
.hero-media .hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
/* The trailer is a vertical YouTube Short (9:16) pillarboxed inside a 16:9
   player. Size the player so the inner vertical video band always covers the
   hero (center-cropped where needed):
     band width  = playerHeight * 9/16 >= hero width  → H >= 177.78% of width
     band height = playerHeight        >= hero height → H >= 100% */
.hero-media iframe {
  position: absolute; top: 50%; left: 50%;
  height: max(100%, 177.78vw);
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,12,0.25) 0%, rgba(20,16,12,0.3) 45%, rgba(20,16,12,0.9) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 96px 0 48px; color: #fff; }
@media (max-height: 900px) {
  .hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 14px; }
  .hero-eyebrow { margin-bottom: 14px; }
  .hero p.lede { margin-bottom: 20px; }
  .hero-ctas { margin-bottom: 18px; }
  .hero-controls { margin-bottom: 18px; }
  .hero-inner { padding-bottom: 36px; }
}
.hero-eyebrow {
  display: inline-block;
  background: var(--yellow); color: var(--ink);
  font-weight: 800; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  border: 2px solid var(--ink);
  transform: rotate(-2deg);
  margin: 0 0 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 7vw, 4.2rem);
  line-height: 1.04; margin: 0 0 20px; max-width: 15ch;
  font-weight: 900;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--green), var(--cyan), var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { max-width: 48ch; font-size: 1.06rem; margin: 0 0 28px; color: rgba(255,255,255,0.88); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-controls { display: flex; gap: 10px; margin-bottom: 26px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.4); color: #fff;
  cursor: pointer; font-size: 1rem;
}
.icon-btn:hover { background: var(--magenta); border-color: var(--magenta); }

/* ---------- Wavy dividers ---------- */
.wave { display: block; width: 100%; height: 60px; margin-bottom: -1px; }

/* ---------- Subscribe ---------- */
.subscribe-block { max-width: 480px; }
.subscribe-heading { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; margin: 0 0 6px; }
.subscribe-body { margin: 0 0 14px; font-size: 0.96rem; color: inherit; opacity: 0.85; }
.subscribe-form { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe-form input[type="email"] {
  flex: 1 1 220px; min-width: 0;
  padding: 13px 18px; font-size: 0.96rem; font-family: var(--font-body);
  border: 3px solid var(--ink); border-radius: 999px;
  background: #fff; color: var(--ink);
}
.subscribe-form button {
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  border: 3px solid var(--ink); background: var(--green); color: #fff;
  font-weight: 800; font-size: 0.95rem; font-family: var(--font-body);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.subscribe-form button:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.subscribe-consent { font-size: 0.78rem; opacity: 0.7; margin-top: 10px; }
.subscribe-status { font-weight: 700; color: var(--green); min-height: 1.4em; margin-top: 8px; }
.hero .subscribe-status { color: var(--yellow); }
.subscribe-status.is-error { color: #d64545; }
.hero .subscribe-status.is-error { color: #ff9a9a; }

/* ---------- SoundCloud playlist embed ---------- */
.soundcloud-embed {
  max-width: 680px;
  margin: 44px auto 0;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--radius-blob);
  box-shadow: 6px 6px 0 var(--magenta);
  padding: 24px;
}
.soundcloud-embed h3 {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.25rem;
  margin: 0 0 16px;
}
.soundcloud-embed iframe { border-radius: 14px; }
.soundcloud-fallback { margin: 12px 0 0; font-size: 0.85rem; text-align: center; }

/* ---------- Participate form ---------- */
.participate-form { max-width: 560px; }
.participate-form label { display: block; font-weight: 800; margin-bottom: 6px; }
.participate-form input[type="text"],
.participate-form input[type="email"],
.participate-form select,
.participate-form textarea {
  width: 100%;
  padding: 13px 18px;
  font-family: var(--font-body); font-size: 0.96rem;
  border: 3px solid var(--ink);
  background: #fff; color: var(--ink);
}
.participate-form input[type="text"],
.participate-form input[type="email"],
.participate-form select { border-radius: 999px; }
.participate-form textarea { border-radius: 22px; resize: vertical; }
.participate-form .pf-hp { position: absolute; left: -9999px; }
.participate-form .pf-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.9rem; }
.participate-form .pf-consent input { width: 20px; height: 20px; accent-color: var(--green); flex: 0 0 auto; margin-top: 2px; }

/* ---------- Klaviyo embedded forms — match the theme's sticker style.
   Klaviyo inlines styles, so !important is required. ---------- */
.subscribe-block [class*="klaviyo-form"] input[type="email"],
.subscribe-block [class*="klaviyo-form"] input[type="text"] {
  border: 3px solid var(--ink) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--ink) !important;
  padding: 13px 18px !important;
  font-family: var(--font-body) !important;
  font-size: 0.96rem !important;
}
.subscribe-block [class*="klaviyo-form"] button {
  background: var(--green) !important;
  color: #fff !important;
  border: 3px solid var(--ink) !important;
  border-radius: 999px !important;
  box-shadow: 4px 4px 0 var(--ink) !important;
  font-family: var(--font-body) !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  padding: 13px 24px !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease !important;
}
.subscribe-block [class*="klaviyo-form"] button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink) !important;
}
.site-footer .subscribe-block [class*="klaviyo-form"] input[type="email"],
.site-footer .subscribe-block [class*="klaviyo-form"] input[type="text"] {
  border-color: var(--paper) !important;
}
.site-footer .subscribe-block [class*="klaviyo-form"] button {
  border-color: var(--paper) !important;
  box-shadow: 4px 4px 0 rgba(253, 247, 236, 0.5) !important;
}
/* Klaviyo success message */
.subscribe-block [class*="klaviyo-form"] [data-testid="form-component"] p,
.subscribe-block [class*="klaviyo-form"] .kl-private-reset-css-Xuajs1 {
  font-family: var(--font-body) !important;
}

/* ---------- Sections ---------- */
section.band { padding: 90px 0; }
section[id] { scroll-margin-top: 90px; }
.band-paper { background: var(--paper); }
.band-deep { background: var(--paper-deep); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-cyan-tint { background: #e4f6f8; }

.section-label {
  display: inline-block;
  font-weight: 800; font-size: 0.76rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--card); color: var(--ink);
  transform: rotate(-1.5deg);
  margin: 0 0 18px;
}
.band-ink .section-label { background: var(--yellow); }

h2.section-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.1; margin: 0 0 22px;
}
.squiggle-under {
  position: relative; display: inline-block;
}
.squiggle-under::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -8px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='10' viewBox='0 0 80 10'%3E%3Cpath d='M0 5 Q10 0 20 5 T40 5 T60 5 T80 5' fill='none' stroke='%23e0409f' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
  background-size: 80px 10px;
}

.card {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--radius-blob);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 32px;
}

.tilt-left { transform: rotate(-1deg); }
.tilt-right { transform: rotate(1deg); }

.photo-blob {
  border: 3px solid var(--ink);
  border-radius: 38% 62% 55% 45% / 45% 42% 58% 55%;
  box-shadow: 8px 8px 0 var(--magenta);
  overflow: hidden;
  margin: 44px auto;
  max-width: 680px;
}
.photo-blob.alt { box-shadow: 8px 8px 0 var(--cyan); border-radius: 55% 45% 40% 60% / 50% 60% 40% 50%; }
.photo-blob.alt2 { box-shadow: 8px 8px 0 var(--green); border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%; }
.photo-blob img { width: 100%; height: 100%; object-fit: cover; }
.photo-caption { text-align: center; font-size: 0.82rem; color: var(--ink-soft); margin-top: -28px; margin-bottom: 40px; }

/* Floating doodle dots */
.doodle {
  position: absolute; border-radius: 50%; opacity: 0.55; pointer-events: none;
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(6deg); }
}

/* ---------- Manifesto ---------- */
.manifesto p { font-size: 1.12rem; margin: 0 0 24px; }
.manifesto .kicker {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 800;
  line-height: 1.35;
}
.manifesto .closing {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; line-height: 1.5;
}
.manifesto .closing .hl-music { background: var(--yellow); padding: 0 6px; border-radius: 6px; }
.manifesto .closing .hl-knowledge { background: #bdeff5; padding: 0 6px; border-radius: 6px; }
.manifesto .closing .hl-oneanother { background: #f9c4e4; padding: 0 6px; border-radius: 6px; }

/* ---------- What happens ---------- */
.what-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
@media (min-width: 620px) { .what-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .what-grid { grid-template-columns: repeat(3, 1fr); } }
.what-item {
  background: var(--card); border: 3px solid var(--ink);
  border-radius: 22px; padding: 24px;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.15s ease;
}
.what-item:hover { transform: translateY(-4px) rotate(-0.5deg); }
.what-item .emoji { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.what-item h3 { font-family: var(--font-display); margin: 0 0 8px; font-size: 1.08rem; }
.what-item p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.what-item:nth-child(1) { box-shadow: 5px 5px 0 var(--green); }
.what-item:nth-child(2) { box-shadow: 5px 5px 0 var(--cyan); }
.what-item:nth-child(3) { box-shadow: 5px 5px 0 var(--magenta); }
.what-item:nth-child(4) { box-shadow: 5px 5px 0 var(--yellow); }
.what-item:nth-child(5) { box-shadow: 5px 5px 0 var(--green); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 32px; }
.faq-item {
  background: var(--card); border: 3px solid var(--ink);
  border-radius: 20px; margin-bottom: 14px; overflow: hidden;
  box-shadow: 4px 4px 0 var(--ink);
}
.faq-question {
  width: 100%; text-align: left; cursor: pointer;
  background: none; border: none; color: var(--ink);
  font-family: var(--font-body); font-size: 1.02rem; font-weight: 800;
  padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-question .plus {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--ink); display: grid; place-items: center;
  font-weight: 900; transition: transform 0.18s ease, background 0.18s ease;
}
.faq-question[aria-expanded="true"] .plus { transform: rotate(45deg); background: var(--yellow); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.22s ease; }
.faq-answer[data-open="true"] { max-height: 640px; }
.faq-answer p { margin: 0; padding: 0 22px 20px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: var(--paper);
  padding: 72px 0 36px;
}
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-brand {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 44px;
}
.footer-brand img { width: 72px; height: 72px; }
.footer-brand span {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.3rem;
}
.footer-socials {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.footer-socials a {
  display: inline-block;
  padding: 8px 16px; border-radius: 999px;
  border: 2px solid rgba(253,247,236,0.5);
  font-size: 0.88rem; font-weight: 700;
}
.footer-socials a:hover { border-color: var(--yellow); color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 740px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-col h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--yellow); margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; font-size: 0.93rem; }
.footer-newsletter { margin-top: 52px; padding-top: 44px; border-top: 2px dashed rgba(253,247,236,0.35); }
.footer-newsletter .subscribe-form input[type="email"] { border-color: var(--paper); }
.footer-newsletter .subscribe-form button { border-color: var(--paper); box-shadow: 4px 4px 0 rgba(253,247,236,0.5); }
.footer-contact { margin-top: 22px; font-size: 0.92rem; opacity: 0.85; }
.footer-bottom {
  margin-top: 52px; padding-top: 26px;
  border-top: 2px dashed rgba(253,247,236,0.35);
  font-size: 0.82rem; opacity: 0.8;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* WordPress core alignment classes */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
