/* Joy Collective site styles (Ritual design, dusk lighting): home, retreat inquiry, policy pages */
:root {
  --ink: #f3ead9;
  --ink-soft: #cbb9a0;
  --clay: #d97a4d;
  --line: rgba(243, 234, 217, 0.16);
  --focus: #f3ead9;
  --panel: rgba(255, 246, 232, 0.05);
  --field: rgba(255, 246, 232, 0.07);
  --grad-a: #241a2c;
  --grad-b: #150f10;
  --glow: #d97a4d;
  --error: #f0a08a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #150f10; }
body {
  margin: 0; color: var(--ink);
  background: radial-gradient(ellipse 80% 55% at 50% 0%, var(--grad-a), var(--grad-b) 70%);
  background-attachment: fixed; background-color: var(--grad-b);
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; margin: 0; }
a { color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
button { font-family: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.5rem; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.2s !important; }
}


nav.wayfind {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 1.5rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  background: rgba(12, 10, 12, 0.55); border-bottom: 1px solid var(--line);
}
nav.wayfind .brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
nav.wayfind .brand img { width: 26px; filter: invert(1) brightness(1.6); opacity: 0.92; }
nav.wayfind .brand span { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; }
nav.wayfind .links { display: flex; gap: 1.4rem; font-size: 0.82rem; letter-spacing: 0.04em; }
nav.wayfind .links a { text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 2px; white-space: nowrap; }
nav.wayfind .links a:hover { border-color: var(--clay); }
@media (max-width: 30rem) { nav.wayfind .brand span { display: none; } nav.wayfind .links { gap: 1rem; } }

/* ---------- Gate / hero ---------- */
.gate { min-height: 82svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3rem 1.5rem 4rem; position: relative; }
.gate.short { min-height: 0; padding: 4rem 1.5rem 2.5rem; }
.mark-glow { position: relative; width: clamp(90px, 20vw, 150px); margin-bottom: 2.2rem; display: block; }
.gate.short .mark-glow { width: clamp(70px, 14vw, 100px); }
.mark-glow::before {
  content: ""; position: absolute; inset: -30%; border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  opacity: 0.45; filter: blur(18px); animation: pulse 4.5s ease-in-out infinite;
}
.mark-glow img { position: relative; width: 100%; display: block; filter: invert(1) brightness(1.7); }
@keyframes pulse { 0%, 100% { opacity: 0.32; transform: scale(0.94); } 50% { opacity: 0.55; transform: scale(1.06); } }
.eyebrow { font-size: 0.76rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--clay); margin: 0 0 1rem; }
.gate h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); letter-spacing: 0.01em; line-height: 1.08; }
.gate p.dek { max-width: 30rem; margin: 1.1rem auto 0; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; }


.begin-btn, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); padding: 0.85rem 1.9rem; border-radius: 999px; font-size: 0.9rem; letter-spacing: 0.05em; font-family: inherit;
}
.begin-btn { margin-top: 2.6rem; color: var(--ink); background: transparent; }
.begin-btn:hover { background: var(--ink); color: #14100f; }
.btn { background: var(--ink); color: #14100f; }
.btn:hover { opacity: 0.88; }
.btn:disabled { cursor: not-allowed; opacity: 0.45; }

/* ---------- Sections ---------- */
section { padding: 4rem 0; position: relative; }
.section-eyebrow { font-size: 0.76rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--clay); text-align: center; margin: 0 0 0.7rem; }
section h2 { text-align: center; font-size: clamp(2rem, 5vw, 2.7rem); margin-bottom: 1rem; }
.lede { text-align: center; color: var(--ink-soft); max-width: 32rem; margin: 0 auto 2.6rem; font-size: 1rem; line-height: 1.7; }

/* Six ways in — glowing timeline, horizontal */
.practice .wrap { max-width: 64rem; }
.ways { list-style: none; margin: 2.6rem auto 0; padding: 0; max-width: 58rem; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 2.2rem; }
.ways li { position: relative; text-align: center; white-space: nowrap; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.2; padding: 1.9rem 0.4rem 0; }
.ways li::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; z-index: 1;
  background: var(--clay); box-shadow: 0 0 12px 2px var(--glow);
}
.ways li::after { content: ""; position: absolute; top: 4.5px; left: 0; right: 0; height: 1px; background: var(--line); }
.ways li:first-child::after { left: 50%; }
.ways li:last-child::after { right: 50%; }
@media (max-width: 40rem) {
  .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 26rem; }
  .ways li { font-size: clamp(1rem, 4.6vw, 1.2rem); padding-inline: 0.15rem; }
  .ways li:nth-child(3n+1)::after { left: 50%; }
  .ways li:nth-child(3n)::after { right: 50%; }
}

/* Visit */
.visit { text-align: center; }
.visit p:not(.section-eyebrow) { color: var(--ink-soft); line-height: 1.7; font-size: 1.05rem; margin: 0; }
.visit a { color: var(--clay); text-decoration: none; border-bottom: 1px solid var(--line); }
.visit a:hover { border-color: var(--clay); }

/* Breath circle */
.breath-circle { width: 64px; height: 64px; margin: 0 auto 1.4rem; border-radius: 50%; border: 1px solid var(--clay); position: relative; }
.breath-circle::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--glow); opacity: 0.5; animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(0.6); opacity: 0.25; } 50% { transform: scale(1); opacity: 0.6; } }

/* ---------- Panels and forms ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.6rem, 5vw, 2.6rem); }
.join-panel details > summary { list-style: none; cursor: pointer; text-align: center; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(1.8rem, 5vw, 2.3rem); }
.join-panel details > summary::-webkit-details-marker { display: none; }
.join-panel details > summary::after { content: "+"; display: block; margin-top: 0.4rem; font-family: 'Jost', sans-serif; font-size: 1.1rem; color: var(--clay); }
.join-panel details[open] > summary::after { content: "–"; }

.join-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin-top: 1.8rem; }
.join-form .full { grid-column: 1 / -1; }
@media (max-width: 34rem) { .join-form { grid-template-columns: 1fr; } }
.join-form label:not(.check):not(.trap), .field { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.86rem; letter-spacing: 0.02em; color: var(--ink); }
.retreat-fields { display: grid; gap: 1.2rem; }

input:not([type="checkbox"]), textarea {
  display: block; width: 100%; padding: 0.8rem 0.95rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--field); color: var(--ink); font: inherit; font-size: 1rem;
}
input::placeholder, textarea::placeholder { color: rgba(203, 185, 160, 0.6); }
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(217, 122, 77, 0.25); }
textarea { min-height: 8rem; resize: vertical; }
input[type="checkbox"] { accent-color: var(--clay); width: 1.1rem; height: 1.1rem; flex: none; margin: 0.15rem 0 0; }
.check, .consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.88rem; line-height: 1.55; color: var(--ink); cursor: pointer; }
.fine, .hint, .subtle { color: var(--ink-soft); font-size: 0.84rem; line-height: 1.6; margin: 0; font-weight: 400; letter-spacing: 0; }
.fine a, .hint a { color: var(--clay); }
.optional { color: var(--ink-soft); }
.trap, .honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.join-form button, .retreat-fields button { justify-self: start; }
.join-status, .form-message { min-height: 1.5rem; font-size: 0.92rem; line-height: 1.5; margin: 0; color: var(--ink-soft); }
.form-message { margin-top: 1.3rem; }
.join-status[role="alert"], .form-message[data-state="error"] { color: var(--error); }

.join-success { margin-top: 1.8rem; text-align: center; }
.join-success h2 { font-size: clamp(1.9rem, 5vw, 2.5rem); margin-bottom: 0.7rem; }
.join-success p { color: var(--ink-soft); line-height: 1.7; margin: 0; }

/* ---------- Retreat ---------- */
.retreat-dates { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(1.7rem, 5vw, 2.3rem); margin: 1.1rem 0 0; }
.retreat-subtitle { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: clamp(1.3rem, 4vw, 1.7rem); color: var(--ink-soft); margin: 0.4rem 0 0; }
.retreat-copy p { line-height: 1.8; margin: 0 0 1.1rem; color: var(--ink); }
.retreat-copy p:last-child { margin-bottom: 0; }
.retreat-copy .hosts { color: var(--ink-soft); font-style: italic; text-align: center; margin-top: 1.6rem; }
.retreat-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
.retreat-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); filter: saturate(0.85) brightness(0.92); }
@media (max-width: 43rem) { .retreat-gallery { grid-template-columns: 1fr; } }
.retreat-pricing { text-align: center; }
.retreat-pricing p { margin: 0; }
.retreat-investment { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(1.9rem, 6vw, 2.4rem); font-weight: 600; }
.retreat-deposit { margin-top: 0.4rem !important; color: var(--clay); font-size: 1.05rem; }
.retreat-deposit-note { margin-top: 0.3rem !important; color: var(--ink-soft); font-size: 0.9rem; }

footer { padding: 2.6rem 1.5rem 3.4rem; text-align: center; font-size: 0.82rem; color: var(--ink-soft); border-top: 1px solid var(--line); line-height: 1.9; }
footer a { color: var(--clay); text-decoration: underline; text-underline-offset: 0.2em; }
footer .sep { margin: 0 0.45rem; }

/* ---------- Policy pages ---------- */
.policy { padding: 0 0 4rem; }
.policy .panel { line-height: 1.7; }
.policy section { padding: 0; }
.policy section + section { margin-top: 2rem; }
.policy h2 { text-align: left; font-size: clamp(1.35rem, 3vw, 1.65rem); margin: 0 0 0.5rem; color: var(--ink); }
.policy p, .policy li { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.75; }
.policy p { margin: 0.65rem 0 0; }
.policy ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.policy li + li { margin-top: 0.4rem; }
.policy li::marker { color: var(--clay); }
.policy a { color: var(--clay); text-underline-offset: 0.2em; }
.policy .home-link { display: inline-block; margin-top: 2.2rem; font-size: 0.9rem; }
.effective { color: var(--ink-soft); margin: 0.9rem 0 0; font-size: 0.95rem; }
