/* ================================================
   GothicWhimzie.com — Stylesheet
   Palette: Deep plum, crimson rose, lavender, pink
   Fonts: Cinzel Decorative (display) + Crimson Text (body)
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Cinzel:wght@400;600&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* ------------------------------------------------
   CSS Variables
   ------------------------------------------------ */
:root {
  --plum-dark:     #26215C;
  --plum-mid:      #3C3489;
  --plum-light:    #534AB7;
  --plum-pale:     #AFA9EC;
  --plum-wash:     #EEEDFE;

  --rose-dark:     #4B1528;
  --rose-mid:      #72243E;
  --rose-rich:     #993556;
  --rose-bright:   #D4537E;
  --rose-light:    #ED93B1;
  --rose-pale:     #F4C0D1;
  --rose-wash:     #FBEAF0;

  --crimson-dark:  #501313;
  --crimson-mid:   #791F1F;
  --crimson-rich:  #A32D2D;
  --crimson-light: #E24B4A;

  --night:         #0e0b14;
  --night-soft:    #1a1730;
  --night-mid:     #26213a;
  --night-light:   #352e50;

  --text-primary:   #F4C0D1;
  --text-secondary: #AFA9EC;
  --text-muted:     #7a6e9a;
  --text-on-light:  #26215C;

  --bg-page:       #0e0b14;
  --bg-surface:    #1a1730;
  --bg-card:       #211d35;
  --bg-card-hover: #2a2542;
  --bg-light:      #EEEDFE;

  --border:        rgba(174, 169, 236, 0.18);
  --border-bright: rgba(212, 83, 126, 0.5);
  --border-subtle: rgba(255, 255, 255, 0.06);

  --radius-sm:     3px;
  --radius-md:     8px;
  --radius-lg:     14px;
  --radius-xl:     20px;
  --radius-pill:   999px;

  --shadow-rose:   0 4px 24px rgba(147, 53, 86, 0.25);
  --shadow-rose-lg:0 8px 48px rgba(147, 53, 86, 0.35);
  --shadow-plum:   0 4px 20px rgba(83, 74, 183, 0.2);
  --shadow-dark:   0 4px 16px rgba(0, 0, 0, 0.6);

  --font-display:  'Cinzel Decorative', 'Georgia', serif;
  --font-sub:      'Cinzel', 'Georgia', serif;
  --font-body:     'Crimson Text', 'Georgia', serif;
}

/* ------------------------------------------------
   Reset & Base
   ------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

/* Subtle star-field texture overlay via repeating radial */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(244,192,209,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 60%, rgba(174,169,236,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 15%, rgba(244,192,209,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 75%, rgba(174,169,236,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 90%, rgba(237,147,177,0.2) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Keep all content above the texture */
body > * {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------
   Typography
   ------------------------------------------------ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--rose-light);
  letter-spacing: 3px;
}

h4, h5, h6 {
  font-family: var(--font-sub);
  font-weight: 600;
  line-height: 1.3;
  color: var(--plum-pale);
  letter-spacing: 1px;
}

h1 { font-size: 3rem;   }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem;   }
h6 { font-size: 0.9rem; }

h1 span, h2 span { color: var(--plum-pale); }

p {
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
}

a {
  color: var(--rose-bright);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--rose-pale);
}

strong {
  font-weight: 600;
  color: var(--rose-pale);
}

em {
  font-style: italic;
  color: var(--plum-pale);
}

blockquote {
  border-left: 2px solid var(--rose-rich);
  padding: 12px 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--plum-pale);
  background: rgba(114, 36, 62, 0.1);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

small {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Display heading utility */
.display {
  font-family: var(--font-display);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.subtitle {
  font-family: var(--font-sub);
  letter-spacing: 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--plum-pale);
}

/* ------------------------------------------------
   Layout
   ------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 720px;
}

.section {
  padding: 72px 0;
}

.section--lg {
  padding: 112px 0;
}

/* ------------------------------------------------
   Navigation
   ------------------------------------------------ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: rgba(26, 23, 48, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rose-light);
  text-decoration: none;
  letter-spacing: 3px;
}

.nav__logo span {
  color: var(--plum-pale);
  font-weight: 400;
}

.nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--rose-light);
}

/* ------------------------------------------------
   Buttons
   ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sub);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0);    }

.btn--primary {
  background: var(--rose-rich);
  color: var(--rose-pale);
  border-color: var(--rose-rich);
  box-shadow: var(--shadow-rose);
}
.btn--primary:hover {
  background: var(--rose-mid);
  border-color: var(--rose-bright);
  color: var(--rose-pale);
  box-shadow: var(--shadow-rose-lg);
}

.btn--secondary {
  background: var(--plum-mid);
  color: var(--plum-pale);
  border-color: var(--plum-mid);
  box-shadow: var(--shadow-plum);
}
.btn--secondary:hover {
  background: var(--plum-dark);
  border-color: var(--plum-light);
  color: var(--plum-wash);
}

.btn--outline {
  background: transparent;
  color: var(--rose-bright);
  border-color: var(--rose-bright);
}
.btn--outline:hover {
  background: rgba(212, 83, 126, 0.1);
  color: var(--rose-pale);
  border-color: var(--rose-pale);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn--ghost:hover {
  color: var(--text-primary);
  border-color: rgba(174,169,236,0.4);
}

.btn--sm { padding: 7px 18px; font-size: 0.68rem; }
.btn--lg { padding: 15px 40px; font-size: 0.8rem;  }

/* ------------------------------------------------
   Cards
   ------------------------------------------------ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-rose);
  transform: translateY(-2px);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rose-light);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.card__subtitle {
  font-family: var(--font-sub);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Rose thorn top border */
.card--rose {
  border-top: 2px solid var(--rose-rich);
}

/* Plum top border */
.card--plum {
  border-top: 2px solid var(--plum-mid);
}

/* Featured card with glow */
.card--featured {
  border-color: var(--rose-mid);
  box-shadow: var(--shadow-rose);
  position: relative;
  overflow: hidden;
}

.card--featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-bright), var(--plum-light), transparent);
}

/* Stat card */
.card--stat {
  text-align: center;
  padding: 36px 20px;
}

.card--stat .stat-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--rose-light);
  line-height: 1;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.card--stat .stat-label {
  font-family: var(--font-sub);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* ------------------------------------------------
   Badges & Tags
   ------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sub);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge--rose  { background: rgba(153,53,86,0.2);  color: var(--rose-pale);  border: 1px solid rgba(153,53,86,0.4);  }
.badge--plum  { background: rgba(83,74,183,0.2);  color: var(--plum-pale);  border: 1px solid rgba(83,74,183,0.4);  }
.badge--muted { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border-subtle); }

/* ------------------------------------------------
   Ornamental divider (matching logo style)
   ------------------------------------------------ */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 36px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
}

.divider__gem {
  width: 8px;
  height: 8px;
  background: var(--rose-rich);
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(212, 83, 126, 0.5);
}

.divider__text {
  font-family: var(--font-sub);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ------------------------------------------------
   Forms & Inputs
   ------------------------------------------------ */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-family: var(--font-sub);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--plum-pale);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 11px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rose-rich);
  box-shadow: 0 0 0 3px rgba(153, 53, 86, 0.18);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* ------------------------------------------------
   Hero
   ------------------------------------------------ */
.hero {
  padding: 100px 24px 80px;
  text-align: center;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Moon glow behind hero content */
.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(244,192,209,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero__eyebrow {
  font-family: var(--font-sub);
  font-size: 0.68rem;
  color: var(--plum-pale);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.hero h1 {
  font-size: 3.8rem;
  color: var(--rose-light);
  margin-bottom: 12px;
}

.hero h1 span {
  color: var(--plum-pale);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
}

/* ------------------------------------------------
   Table
   ------------------------------------------------ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

thead {
  background: var(--night-mid);
}

thead th {
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-sub);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--rose-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--border-bright);
}

tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s;
}

tbody tr:hover {
  background: var(--bg-card-hover);
}

tbody td {
  padding: 13px 18px;
  color: var(--text-secondary);
}

tbody td:first-child {
  color: var(--text-primary);
  font-weight: 600;
}

/* ------------------------------------------------
   Footer
   ------------------------------------------------ */
.footer {
  background: var(--night);
  border-top: 1px solid var(--border);
  padding: 60px 24px 28px;
  margin-top: 80px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rose-light);
  letter-spacing: 3px;
  display: block;
  margin-bottom: 10px;
}

.footer__tagline {
  font-family: var(--font-sub);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--rose-light);
}

.footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-sub);
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ------------------------------------------------
   Utility classes
   ------------------------------------------------ */
.text-rose    { color: var(--rose-light);    }
.text-plum    { color: var(--plum-pale);     }
.text-muted   { color: var(--text-muted);    }
.text-bright  { color: var(--rose-pale);     }
.text-center  { text-align: center;          }
.text-right   { text-align: right;           }
.text-upper   { text-transform: uppercase; letter-spacing: 0.1em; }
.italic       { font-style: italic;          }

.bg-surface   { background: var(--bg-surface); }
.bg-card      { background: var(--bg-card);    }
.bg-rose-wash { background: rgba(153,53,86,0.07); }
.bg-plum-wash { background: rgba(60,52,137,0.07); }

.border-rose  { border: 1px solid var(--border-bright); }
.border-dim   { border: 1px solid var(--border);        }

.mt-1 { margin-top: 8px;  }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px;  }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1       { gap: 8px;  }
.gap-2       { gap: 16px; }
.gap-3       { gap: 24px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1   { font-size: 2.2rem; }
  h1         { font-size: 2rem;   }
  h2         { font-size: 1.6rem; }
  .nav__links { display: none;    }
}
