/* Mystic Open Day — DASH · Aug 4, 2026 */

:root {
  --bg: #F7F6F2;
  --surface: #F9F8F5;
  --surface-alt: #FBFBF9;
  --border: #D4D1CA;
  --border-strong: #B8B5AE;
  --text: #28251D;
  --text-muted: #7A7974;
  --text-faint: #BAB9B4;
  --primary: #01696F;
  --primary-hover: #0C4E54;
  --primary-tint: rgba(1, 105, 111, 0.08);

  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 68rem;
  --page-pad: clamp(1.25rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --surface: #1C1B19;
    --surface-alt: #201F1D;
    --border: #393836;
    --border-strong: #4a4947;
    --text: #CDCCCA;
    --text-muted: #979694;
    --text-faint: #5A5957;
    --primary: #4F98A3;
    --primary-hover: #6BB2BD;
    --primary-tint: rgba(79, 152, 163, 0.14);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--page-pad) 4rem;
}

/* ---- Header ---- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
}
.brand svg { color: var(--primary); }
.nav-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Hero ---- */
.hero { margin-bottom: 4rem; }
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 500;
  margin: 0 0 1.25rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: var(--text);
}
.accent-serif { color: var(--primary); font-style: italic; }
.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 40em;
  margin: 0 0 2.5rem;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.hero-meta > div { display: flex; flex-direction: column; gap: 0.35rem; }
.meta-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.meta-value {
  font-size: 0.96rem;
  color: var(--text);
  line-height: 1.4;
}
.meta-sub {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 120ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: #F7F6F2;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--primary-tint);
  border-color: var(--primary);
  color: var(--primary);
}
.btn-small {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
}

/* ---- Rule ---- */
.rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4rem 0;
}

/* ---- Prose sections ---- */
.prose {
  max-width: 48em;
  margin: 0 0 3rem;
}
.prose h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--primary);
  margin: 0 0 1.25rem;
}
.prose p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 1rem;
}
.prose em { font-style: italic; color: var(--text-muted); }

/* ---- Feature list ---- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.feature-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.feature-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary);
  line-height: 1;
  padding-top: 0.2rem;
}
.feature-list h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--text);
}
.feature-list p {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* ---- Participants ---- */
.participants {
  margin: 3rem 0 3.5rem;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 1rem;
}
.section-lede {
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 40em;
  margin: 0 0 2.5rem;
}
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.persona {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
}
.persona-mid {
  border-color: var(--primary);
  background: var(--surface-alt);
}
.persona-mark {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 1rem;
  opacity: 0.75;
}
.persona h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  color: var(--text);
}
.persona-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 0.9rem;
}
.persona-desc {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}
.persona-note {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--primary-tint);
  border-left: 2px solid var(--primary);
  border-radius: 0 6px 6px 0;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
  max-width: 50em;
}
.note-marker {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 0.15rem;
  flex-shrink: 0;
}

/* ---- Prep list ---- */
.prep-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.prep-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--text);
}
.prep-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 500;
}

/* ---- RSVP ---- */
.rsvp { margin-top: 3rem; }
.rsvp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin: 1.75rem 0 1.25rem;
}
.rsvp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: baseline;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border);
}
.rsvp-row:last-child { padding-bottom: 0; border-bottom: none; }
.rsvp-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  min-width: 8.5rem;
}
.rsvp-email {
  font-size: 1.1rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.rsvp-email:hover { text-decoration: underline; }
.rsvp-value { font-size: 0.98rem; color: var(--text); }
.rsvp-footnote {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
  margin: 0;
}

/* ---- Footer ---- */
.site-footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-brand {
  font-weight: 500;
  color: var(--text);
  margin-right: 0.75rem;
}
.footer-sep { margin: 0 0.5rem; color: var(--text-faint); }
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer a:hover { color: var(--primary); }

/* ---- Live dot & join card (test room) ---- */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #A13544;
  margin-right: 0.4rem;
  vertical-align: middle;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(161, 53, 68, 0.55); }
  50% { opacity: 0.55; box-shadow: 0 0 0 6px rgba(161, 53, 68, 0); }
}
.join-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  margin: 2rem 0 1.25rem;
  text-align: center;
}
.join-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 0.6rem;
  letter-spacing: -0.015em;
}
.join-sub {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}
.btn-large {
  font-size: 1.05rem;
  padding: 1rem 2.25rem;
}
.join-code {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1.25rem 0 0;
}
.join-code code {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  background: var(--primary-tint);
  color: var(--primary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}
.join-share {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
}
.link-copy {
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: all 140ms ease;
}
.link-copy:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-tint);
}
.copy-confirm {
  color: var(--primary);
  font-weight: 500;
  margin-left: 0.4rem;
}
.disclosure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  margin-top: 3rem;
}
.disclosure h2 {
  font-size: 1.2rem !important;
  color: var(--text) !important;
  margin-bottom: 0.6rem !important;
}
.disclosure p {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin: 0;
}
.prose-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.prose-link:hover { text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .page { padding: 1.5rem 1.25rem 3rem; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .feature-list li { grid-template-columns: 1fr; gap: 0.5rem; }
  .feature-num { padding-top: 0; }
  .rsvp-row { flex-direction: column; gap: 0.35rem; }
  .rsvp-label { min-width: 0; }
}

/* ---- Motion ---- */
@media (prefers-reduced-motion: no-preference) {
  .btn { will-change: transform; }
}
