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

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --c-purple: #56228b;
  --c-brown: #8b4513;
  --c-dark: #1f1726;
  --c-purple-light: #7a3db5;
  --c-purple-dim: #3a1660;
  --c-brown-light: #b05a1e;
  --c-parchment: #f2ead8;
  --c-parchment-dark: #ddd0b0;
  --c-text: #e8dfc8;
  --c-text-dim: #b0a080;
  --c-text-muted: #7a6d58;
  --c-surface: #261832;
  --c-surface-2: #2e1f3e;
  --c-surface-3: #1a1020;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --shadow-soft: 0 4px 24px rgba(86,34,139,0.18), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-card: 0 6px 32px rgba(31,23,38,0.55), 0 2px 8px rgba(86,34,139,0.2);
  --nav-h: 64px;
  --font-serif: 'Cormorant Garamond', 'Crimson Pro', Georgia, 'Times New Roman', serif;
  --font-display: 'Cinzel', 'Cormorant Garamond', serif;
  --font-body: 'Crimson Pro', 'Cormorant Garamond', Georgia, serif;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
  line-height: 1.7;
  background: var(--c-dark);
  color: var(--c-text);
}

body {
  font-family: var(--font-body);
  min-height: 100vh;
  background: var(--c-dark);
  overflow-x: hidden;
  max-width: 100vw;
}

article[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--c-purple-light);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--c-parchment); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  letter-spacing: 0.03em;
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ===== PAGE WRAP ===== */
.page-wrap {
  padding-bottom: calc(var(--nav-h) + 16px);
  overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  grid-template-rows: 1fr auto;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-purple-dim) 50%, var(--c-dark) 100%);
  padding: 5rem 5vw 0;
  width: 100%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 70% at 70% 40%, rgba(86,34,139,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(139,69,19,0.25) 0%, transparent 65%);
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  max-width: 100%;
  padding-right: 1rem;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-brown-light);
  background: rgba(139,69,19,0.15);
  border: 1px solid rgba(139,69,19,0.4);
  border-radius: var(--radius-pill);
  padding: 0.25em 1em;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  font-weight: 700;
  color: var(--c-parchment);
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(86,34,139,0.6);
  word-break: break-all;
}

.hero-sub {
  font-size: 1rem;
  color: var(--c-text-dim);
  margin-bottom: 2rem;
  max-width: 100%;
  line-height: 1.7;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: linear-gradient(135deg, var(--c-purple) 0%, var(--c-purple-light) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.75em 2em;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 20px rgba(86,34,139,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 44px;
}
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(86,34,139,0.7);
  background: linear-gradient(135deg, var(--c-purple-light) 0%, var(--c-purple) 100%);
  color: #fff;
}

.hero-media {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.hero-logo {
  position: relative;
  z-index: 2;
  max-width: 220px;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 8px 32px rgba(86,34,139,0.5));
}

.hero-blob {
  position: absolute;
  inset: -20px;
  z-index: 1;
}
.hero-blob svg {
  width: 100%;
  height: 100%;
}

.hero-divider {
  grid-column: 1 / -1;
  grid-row: 2;
  line-height: 0;
  margin-top: 2rem;
  width: 100%;
}
.hero-divider svg {
  width: 100%;
  display: block;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  background: var(--c-dark);
  padding: 0 0 4rem;
  width: 100%;
}

.content-section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 4vw;
  display: grid;
  grid-template-columns: 1fr 260px;
  grid-template-rows: auto 1fr;
  gap: 2rem 2.5rem;
}

.content-deco {
  position: absolute;
  top: -40px;
  right: 280px;
  width: 160px;
  height: 240px;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}
.content-deco svg { width: 100%; height: 100%; }

.content-body {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.content-aside {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 1;
  min-width: 0;
}

/* ===== CONTENT BODY STYLES ===== */
.content-body article {
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(86,34,139,0.2);
}
.content-body article:last-child {
  border-bottom: none;
}

.content-body h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--c-parchment);
  margin-bottom: 1rem;
  position: relative;
}
.content-body h2::before {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--c-purple), var(--c-brown));
  border-radius: var(--radius-pill);
  margin-bottom: 0.6rem;
}

.content-body h3 {
  font-size: 1.2rem;
  color: var(--c-parchment-dark);
  margin: 1.5rem 0 0.6rem;
}

.content-body p {
  color: var(--c-text);
  font-size: 1rem;
  line-height: 1.8;
}

.content-body ul, .content-body ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.content-body li {
  color: var(--c-text);
  line-height: 1.8;
  margin-bottom: 0.3em;
}

.content-body a {
  color: var(--c-purple-light);
  border-bottom: 1px solid rgba(122,61,181,0.4);
  transition: color 0.2s, border-color 0.2s;
}
.content-body a:hover {
  color: var(--c-parchment);
  border-color: var(--c-parchment);
}

.content-body strong {
  color: var(--c-parchment);
  font-weight: 600;
}

.content-body blockquote {
  border-left: 3px solid var(--c-purple);
  padding: 0.8em 1.2em;
  background: rgba(86,34,139,0.1);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--c-text-dim);
}

small + h2, small + h3 {
  margin-top: 0.3rem;
}

.content-body small {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-brown-light);
  font-family: var(--font-body);
  font-weight: 600;
}

/* ===== ASIDE ===== */
.content-aside {
  background: var(--c-surface);
  border: 1px solid rgba(86,34,139,0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: fit-content;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.aside-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-brown-light);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.aside-nav ul {
  list-style: none;
  padding: 0;
}
.aside-nav li {
  border-bottom: 1px solid rgba(86,34,139,0.15);
}
.aside-nav li:last-child { border-bottom: none; }
.aside-nav a {
  display: block;
  padding: 0.6em 0.4em;
  color: var(--c-text-dim);
  font-size: 0.95rem;
  transition: color 0.2s, padding-left 0.2s;
  border-bottom: none;
}
.aside-nav a:hover {
  color: var(--c-parchment);
  padding-left: 0.8em;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--c-surface-3);
  border-top: 1px solid rgba(86,34,139,0.25);
  padding: 2.5rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--c-purple);
  letter-spacing: 0.08em;
  line-height: 1;
  opacity: 0.8;
  margin-bottom: 0;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  font-family: var(--font-body);
}

/* ===== BOTTOM NAV ===== */
.bottom-nav-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 0 env(safe-area-inset-bottom, 0);
  width: 100%;
}

.bottom-nav {
  background: rgba(31,23,38,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(86,34,139,0.4);
  box-shadow: 0 -4px 24px rgba(31,23,38,0.7);
  height: var(--nav-h);
  width: 100%;
}

.bottom-nav nav {
  height: 100%;
}

.nav-dl {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0;
  padding: 0 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.nav-right { justify-content: flex-end; }

.nav-dl dt, .nav-dl dd {
  display: contents;
}

.nav-dl a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 0.6em;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--c-text-dim);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-dl a:hover {
  background: rgba(86,34,139,0.25);
  color: var(--c-parchment);
}

.nav-brand-wrap {
  flex-shrink: 0;
  margin: 0 0.3rem;
  display: contents;
}

.nav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  height: 44px;
  padding: 0 0.9em;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-parchment) !important;
  background: linear-gradient(135deg, var(--c-purple-dim) 0%, var(--c-purple) 100%);
  border: 1px solid rgba(86,34,139,0.6);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 12px rgba(86,34,139,0.4);
  flex-shrink: 0;
  transition: box-shadow 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-brand:hover {
  box-shadow: 0 4px 20px rgba(86,34,139,0.7);
  transform: translateY(-1px);
}

.nav-cta-wrap {
  flex-shrink: 0;
  display: contents;
}

.nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  height: 40px;
  padding: 0 0.9em;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(135deg, var(--c-brown) 0%, var(--c-brown-light) 100%);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(176,90,30,0.5);
  box-shadow: 0 2px 12px rgba(139,69,19,0.4);
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0 0.2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(139,69,19,0.6);
}

/* ===== SCROLL REVEAL ===== */
@media (prefers-reduced-motion: no-preference) {
  .content-body article {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .content-body article.is-visible {
    opacity: 1;
    transform: none;
  }

  .content-aside {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
  }
  .content-aside.is-visible {
    opacity: 1;
    transform: none;
  }

  .hero-text {
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn 0.8s ease 0.1s forwards;
  }
  @keyframes heroIn {
    to { opacity: 1; transform: none; }
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .content-section {
    grid-template-columns: 1fr;
    padding: 2.5rem 4vw;
  }
  .content-aside {
    grid-column: 1;
    grid-row: 2;
    position: static;
  }
  .content-deco {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 3.5rem;
  }
  .hero-text {
    grid-column: 1;
    max-width: 100%;
    padding-right: 0;
  }
  .hero-media {
    grid-column: 1;
    min-height: 160px;
  }
  .hero-blob { opacity: 0.5; }
}

@media (max-width: 640px) {
  html { font-size: 16px; }

  .hero {
    min-height: 70vh;
    padding: 2.5rem 1rem 0;
  }
  .hero-title {
    font-size: 1.7rem;
  }
  .hero-sub {
    font-size: 0.95rem;
  }

  .content-section {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1rem;
  }
  .footer-brand { font-size: 1.8rem; }

  .nav-dl {
    padding: 0 0.2rem;
  }
  .nav-dl a {
    font-size: 0.68rem;
    padding: 0 0.35em;
  }
  .nav-brand {
    font-size: 0.78rem;
    padding: 0 0.6em;
  }
  .nav-cta {
    font-size: 0.72rem;
    padding: 0 0.6em;
    margin: 0 0.1rem;
  }
}

@media (max-width: 400px) {
  .nav-dl a {
    font-size: 0.62rem;
    padding: 0 0.25em;
  }
  .nav-brand {
    font-size: 0.7rem;
    padding: 0 0.45em;
  }
  .nav-cta {
    font-size: 0.65rem;
    padding: 0 0.45em;
  }
}

/* ===== TEXTURE OVERLAY ===== */
.page-wrap::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.6;
}

.main-content, .hero, .site-footer, .bottom-nav-wrap {
  position: relative;
  z-index: 1;
}
