/* ── Soul School · main.css ── */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@100;300;400;600;700&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,700;1,9..144,300;1,9..144,400;1,9..144,700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Gilda+Display&family=Oswald:wght@200;300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&family=DM+Mono:wght@300;400;500&display=swap');

/* @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500&display=swap'); */
/* Original Font */

:root {
  color-scheme: dark;
  --void: #0A0A08;
  --deep: #0F0F0D;
  --ember: #1E1D1A;
  --ember-dark: #1e1d1a;
  --burnt: #2e2219;
  --ash: #5a5650;
  --ash-light: #8A8480;
  --ancient: #7a5520;
  --gold: #C9972A;
  --luminous: #E8C76A;
  --peak: #f5dfa0;
  --soft: #F3F1EB;
  --ink: #1c1a16;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--soft);
  background: linear-gradient(
    160deg,
    var(--void) 0%,
    var(--deep) 40%,
    var(--ember-dark) 75%,
    var(--burnt) 100%
  );
}

/* ── Layout ── */

.page-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}

.hero-card {
  width: min(760px, 92vw);
  padding: 2.5rem 1.5rem;
}

.content-card {
  max-width: 640px;
}

/* ── Typography ── */

h1 {
  margin: 0 0 1rem;
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--soft);
}

h2 {
  margin-top: 0.6rem;
  margin-bottom: 1.6rem;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--luminous);
}

h3 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--peak);
  margin-top: 0;
  margin-bottom: 0.4rem;
}

p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  line-height: 1.75;
  margin-top: 0.8rem;
  margin-bottom: 1rem;
  color: var(--soft);
}

label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--luminous);
  font-weight: 600;
}

/* ── Eyebrow / section label ── */

.eyebrow {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
  opacity: 0.85;
}

/* ── Gold divider rule ── */

.gold-rule {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 60px;
  margin: 1.4rem auto;
}

.gold-rule .lt {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gold-rule .ln {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 151, 42, 0.35), transparent);
}

/* ── Buttons ── */

.button-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 223, 160, 0.45);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(30, 29, 26, 0.68);
  text-decoration: none;
  cursor: pointer;
  padding: 0.85rem 1.6rem;
  min-width: 240px;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: rgba(90, 86, 80, 0.45);
  border-color: var(--luminous);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  border-color: var(--peak);
  color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--luminous);
  border-color: var(--peak);
  color: var(--ink);
}

.btn-secondary {
  background: rgba(17, 17, 16, 0.8);
  border-color: rgba(232, 199, 106, 0.45);
}

.btn-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--luminous);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-close:hover,
.btn-close:focus-visible {
  background: rgba(232, 199, 106, 0.16);
}

/* ── Forms ── */

.stacked-form {
  text-align: left;
  width: min(420px, 92vw);
  margin: 1.2rem auto 1.6rem;
  display: grid;
  gap: 0.65rem;
}

input {
  border: 1px solid rgba(245, 223, 160, 0.35);
  border-radius: 10px;
  background: rgba(17, 17, 16, 0.85);
  color: var(--soft);
  padding: 0.75rem 0.8rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--gold);
}

input::placeholder {
  color: var(--ash);
  font-style: italic;
}

.error-message {
  min-height: 1.15rem;
  margin: 0.1rem 0 0.4rem;
  color: #c4607a;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* ── Modal ── */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 10, 8, 0.82);
  backdrop-filter: blur(4px);
}

.modal.open {
  display: flex;
}

.modal-content {
  position: relative;
  width: min(420px, 92vw);
  padding: 1.6rem;
  border-radius: 16px;
  border: 1px solid rgba(232, 199, 106, 0.28);
  background: var(--deep);
  text-align: left;
  box-shadow: 0 16px 40px rgba(10, 10, 8, 0.5);
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 0.2rem;
}

.modal-copy {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--peak);
  font-style: italic;
}

.modal-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

/* ── Corner decorations ── */

.corner-tl,
.corner-tr,
.corner-bl,
.corner-br {
  position: absolute;
  width: 20px;
  height: 20px;
}

.corner-tl { top: 0; left: 0; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.corner-tr { top: 0; right: 0; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); }
.corner-bl { bottom: 0; left: 0; border-bottom: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.corner-br { bottom: 0; right: 0; border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold); }

.corner-tl::before,
.corner-tr::before,
.corner-bl::before,
.corner-br::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.corner-tl::before { top: -2px; left: -2px; }
.corner-tr::before { top: -2px; right: -2px; }
.corner-bl::before { bottom: -2px; left: -2px; }
.corner-br::before { bottom: -2px; right: -2px; }

/* ── Utility ── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── RADICAL rainbow text ── */
.radical {
  background: linear-gradient(90deg, #e84949, #e8823a, #d4c43a, #4abd6f, #4a7fe8, #8a4ae8, #d44ab0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ── Logo ── */
.logo {
  display: block;
  margin: 0 auto;
  width: 45vw;
  max-width: 100vw;
  height: auto;
}

/* ── Mobile ── */

@media (max-width: 560px) {
  .modal-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .logo {
    width: 90vw;
  }
}

/* ── Site navigation ── */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 64px;
  background: var(--void);
  border-bottom: 1px solid var(--ember);
  z-index: 100;
}

.site-nav-logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 20px;
  text-decoration: none;
}

/* ── Page-wide utility classes ── */

.wearefree-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  color: rgba(201, 151, 42, 0.6);
  text-transform: uppercase;
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
}

.body-text {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--soft);
  margin: 0 0 20px;
}

.stencil {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 16px;
  line-height: 1.1;
}

.italic-gold {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold);
  margin: 0 0 16px;
  line-height: 1.2;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 223, 160, 0.45);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(30, 29, 26, 0.68);
  text-decoration: none;
  cursor: pointer;
  padding: 8px 20px;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-pill:hover {
  background: rgba(90, 86, 80, 0.45);
  border-color: var(--luminous);
}

/* ── Full-width gold rule ── */

.gold-rule-full {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 151, 42, 0.35), transparent);
  border: none;
  margin: 0;
}

/* ── Site footer ── */

.site-footer {
  background: var(--void);
  border-top: 1px solid var(--ember);
  padding: 24px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer-logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 16px;
  color: rgba(201, 151, 42, 0.5);
}

.site-footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(138, 132, 128, 0.4);
}

@media (max-width: 560px) {
  .site-nav { padding: 16px 24px; }
  .site-footer { padding: 24px 24px; flex-direction: column; gap: 12px; text-align: center; }
}