/* =========================================
   HEX APPEAL / Base CSS (vanilla, mobile-first)
   ========================================= */

/* ---------- Tokens ---------- */
:root{
  /* Neutrals (dark theme) */
  --bg:#0e0f12;          /* page */
  --panel:#16181d;       /* cards */
  --border:#26262b;      /* thin borders */
  --ink:#f0f2f8;         /* main text */
  --muted:#a1a6b6;       /* secondary text */

  /* Accent (pick one per site; default = ritual gold) */
  --accent:#ffd44d;
  --accent-ink:#141414;

  /* Secondary accent for chips or subtle highlights */
  --accent-2:#ff4db8;

  /* Radii / spacing / shadow */
  --r:18px;
  --gap:16px;
  --gap-lg:24px;
  --gap-xl:32px;
  --shadow:0 8px 30px rgb(0 0 0 / .35);

  /* Effects */
  --ring:rgba(255,255,255,.08);
  --glass:rgba(255,255,255,.03);
}

[data-theme="light"]{
  --bg:#f7f7fb;
  --panel:#ffffff;
  --border:#dddddf;
  --ink:#15171c;
  --muted:#5a6173;
  --accent:#d97706;      /* warm amber for light theme */
  --accent-ink:#111111;
  --ring:rgba(0,0,0,.08);
  --glass:rgba(0,0,0,.04);
}

/* ---------- Resets / base ---------- */
*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* Links */
a{ color:inherit; text-underline-offset:3px; }
a:hover{ opacity:.9; }

/* Selection */
::selection{ background:var(--accent); color:var(--accent-ink); }

/* ---------- Layout shells ---------- */
.container{ max-width:1100px; margin-inline:auto; padding-inline:16px; }

/* Sections */
.section{ margin-top:var(--gap-lg); }
.section-lg{ margin-top:var(--gap-xl); }

/* ---------- Typography ---------- */
h1{
  margin:0 0 10px;
  font-weight:900; letter-spacing:-.02em;
  font-size:clamp(28px, 5vw, 52px);
  line-height:1.12;
}
h2{
  margin:0 0 8px;
  font-weight:700;
  font-size:clamp(20px, 3.2vw, 28px);
}
h3{ margin:0 0 6px; font-weight:700; font-size:clamp(18px, 2.2vw, 22px); }
p{ margin:10px 0; }
.lead{ color:var(--muted); }

/* Balance long headings where supported */
h1, h2{ text-wrap:balance; }

/* ---------- Cards / panels ---------- */
.card{
  background:var(--glass);
  border:1px solid var(--ring);
  border-radius:var(--r);
  padding:18px;
  box-shadow:var(--shadow);
  backdrop-filter: blur(6px);
}
@media (min-width:768px){ .card{ padding:22px; } }

/* Glass variant for hero */
.glass{ background:var(--glass); }

/* ---------- Grid ---------- */
.grid{ display:grid; gap:var(--gap); }
.grid-2{ grid-template-columns:1fr; }
@media (min-width:900px){
  .grid-2{ grid-template-columns:1fr 1fr; gap:var(--gap-lg); }
}

/* ---------- Hero spacing ---------- */
.hero{ padding:40px 0 30px; }
@media (min-width:768px){ .hero{ padding:76px 0 40px; } }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:auto; padding:14px 18px;
  border-radius:12px; border:1px solid var(--ring);
  font-weight:600; text-decoration:none; cursor:pointer;
  transition: transform .06s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background:var(--accent); color:var(--accent-ink); border-color:transparent; }
.btn-ghost{ background:transparent; color:var(--ink); }
.btn-row{ display:flex; flex-wrap:wrap; gap:10px; }

/* ---------- Badges / chips ---------- */
.badges{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.badge{
  display:inline-flex; align-items:center; border-radius:9999px;
  border:1px dashed var(--ring); padding:6px 10px; font-size:12px; opacity:.8;
}
@media (max-width:600px){ .badges{ display:none; } }

/* ---------- Embeds (Stripe, social, etc.) ---------- */
.resp-embed{ position:relative; width:100%; }
.resp-16x9{ padding-top:56.25%; }
.resp-embed > *{
  position:absolute; inset:0; width:100%; height:100%;
  border:0; border-radius:14px; overflow:hidden;
}

/* ---------- Footer ---------- */
.site-footer .row{
  display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; align-items:center;
}
.site-footer .legal{ font-size:12px; color:var(--muted); }
@media (max-width:600px){
  .site-footer .row{ flex-direction:column; text-align:center; gap:8px; }
}

/* ---------- Gallery (native lightbox compatible) ---------- */
.gallery{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
@media (min-width:768px){ .gallery{ grid-template-columns:repeat(3,1fr); gap:14px; } }
.gallery a{ display:block; border-radius:12px; overflow:hidden; }
.gallery img{ display:block; width:100%; height:100%; object-fit:cover; }

/* Lightbox <dialog> styling */
.dialog{ border:0; padding:0; background:transparent; }
.dialog::backdrop{ background: rgb(0 0 0 / .85); }
.dialog img{ max-height:90vh; max-width:92vw; border-radius:12px; display:block; }

/* ---------- Utilities ---------- */
.mt-0{ margin-top:0 }
.mt-sm{ margin-top:var(--gap) }
.mt{ margin-top:var(--gap-lg) }
.mt-lg{ margin-top:var(--gap-xl) }

.text-muted{ color:var(--muted); }
.center{ text-align:center; }
.hide-sm{ display:none; }
@media (min-width:768px){ .hide-sm{ display:initial; } }

/* ---------- Motion-respect + perf ---------- */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}
/* Optional: tone down heavy blurs on mobile for GPU sanity */
@media (max-width:700px){
  .card{ backdrop-filter: blur(4px); }
}
