@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap');

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

:root {
  --c-red: #ff0000;
  --c-pink: #ff1493;
  --c-dark: #261717;
  --c-dark-80: rgba(38,23,23,0.85);
  --c-dark-40: rgba(38,23,23,0.4);
  --c-light: #fff8f8;
  --c-surface: rgba(255,255,255,0.07);
  --c-border: rgba(255,20,147,0.25);
  --radius-card: 4px;
  --nav-w: 220px;
  --font-hand: 'Caveat', cursive;
  --font-body: 'Quicksand', system-ui, sans-serif;
  --hero-clip: 6vh;
  --scroll-offset: 80px;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
  line-height: 1.65;
  background: var(--c-dark);
  color: var(--c-light);
  font-family: var(--font-body);
}

body.home-page {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Aurora Background ── */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: screen;
}

.aurora-layer-1 {
  width: 120vw;
  height: 80vh;
  top: -20vh;
  left: -20vw;
  background: radial-gradient(ellipse at center, #ff000060 0%, #ff149360 40%, transparent 70%);
  animation: aurora-drift-1 10s ease-in-out infinite alternate;
  background-size: 200% 200%;
}

.aurora-layer-2 {
  width: 90vw;
  height: 90vh;
  bottom: -10vh;
  right: -10vw;
  background: radial-gradient(ellipse at center, #ff149350 0%, #ff000045 50%, transparent 75%);
  animation: aurora-drift-2 12s ease-in-out infinite alternate;
  background-size: 200% 200%;
}

.aurora-layer-3 {
  width: 70vw;
  height: 60vh;
  top: 30vh;
  left: 20vw;
  background: conic-gradient(from 120deg at 50% 50%, #ff149320, #ff000030, #26171740, transparent);
  animation: aurora-drift-3 9s ease-in-out infinite alternate;
  opacity: 0.35;
}

@keyframes aurora-drift-1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5vw, 8vh) scale(1.12); }
}
@keyframes aurora-drift-2 {
  0%   { transform: translate(0, 0) scale(1.05); }
  100% { transform: translate(-6vw, -5vh) scale(0.92); }
}
@keyframes aurora-drift-3 {
  0%   { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(15deg) scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-layer { animation: none !important; }
}

/* ── Aside Navigation ── */
.site-aside {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-w);
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, rgba(38,23,23,0.92) 0%, rgba(38,23,23,0.75) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--c-border);
  overflow-y: auto;
}

.aside-brand {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-border);
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-red), var(--c-pink));
  text-decoration: none;
  box-shadow: 0 0 20px rgba(255,20,147,0.4);
  transition: box-shadow 0.3s, transform 0.3s;
}

.brand-logo-link:hover,
.brand-logo-link:focus-visible {
  box-shadow: 0 0 32px rgba(255,20,147,0.7);
  transform: scale(1.08);
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
}

.brand-mark-text {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.site-aside nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-aside nav ul li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-card);
  text-decoration: none;
  color: rgba(255,248,248,0.85);
  font-family: var(--font-hand);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.25s, color 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.site-aside nav ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--c-red), var(--c-pink));
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transition: transform 0.25s;
}

.site-aside nav ul li a:hover,
.site-aside nav ul li a:focus-visible {
  background: var(--c-surface);
  color: #fff;
  transform: translateX(4px);
}

.site-aside nav ul li a:hover::before,
.site-aside nav ul li a:focus-visible::before {
  transform: scaleY(1);
}

@media (prefers-reduced-motion: reduce) {
  .site-aside nav ul li a { transition: none; }
  .site-aside nav ul li a::before { transition: none; }
}

.aside-contact {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--c-border);
}

.nav-contact {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, rgba(255,0,0,0.2), rgba(255,20,147,0.2));
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  color: var(--c-pink);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  word-break: break-all;
  transition: background 0.3s, color 0.3s;
}

.nav-contact:hover,
.nav-contact:focus-visible {
  background: linear-gradient(135deg, rgba(255,0,0,0.4), rgba(255,20,147,0.4));
  color: #fff;
}

/* ── Page Wrapper ── */
.page-wrapper {
  margin-left: var(--nav-w);
  min-height: 100vh;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* ── Hero ── */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 4rem 8rem;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,20,147,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,20,147,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-pink);
  background: rgba(255,20,147,0.12);
  border: 1px solid rgba(255,20,147,0.35);
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  width: fit-content;
}

h1.hero-title {
  font-family: var(--font-hand);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 0 40px rgba(255,0,0,0.5), 0 2px 8px rgba(38,23,23,0.6);
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,248,248,0.8);
  max-width: 520px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, var(--c-red), var(--c-pink));
  color: #fff;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: var(--radius-card);
  text-decoration: none;
  width: fit-content;
  box-shadow: 0 4px 24px rgba(255,0,0,0.4);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.hero-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,0,0,0.55);
}

.hero-cta:hover::after,
.hero-cta:focus-visible::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta { transition: none; }
}

.hero-clip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--hero-clip);
  background: var(--c-dark);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  z-index: 3;
}

/* ── Main / Wrap ── */
main {
  flex: 1;
  position: relative;
  z-index: 2;
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2.5rem 4rem;
}

/* ── Content Sections (page.content houses the <article> blocks) ── */
article.content-sections {
  padding-top: 1rem;
}

div.prose-content {
  color: rgba(255,248,248,0.9);
}

/* Sections inside page.content */
div.prose-content article {
  padding: 4rem 0;
  border-bottom: 1px solid rgba(255,20,147,0.15);
  scroll-margin-top: var(--scroll-offset);
}

div.prose-content article:last-child {
  border-bottom: none;
}

/* Headings */
div.prose-content h2 {
  font-family: var(--font-hand);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(255,0,0,0.3);
  line-height: 1.25;
}

div.prose-content h3 {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255,248,248,0.95);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

/* small eyebrow before h2/h3 */
div.prose-content small {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-pink);
  margin-bottom: 0.5rem;
  background: rgba(255,20,147,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  border-left: 2px solid var(--c-pink);
}

/* Paragraph */
div.prose-content p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
  font-size: 1rem;
  color: rgba(255,248,248,0.82);
}

/* Lists */
div.prose-content ul,
div.prose-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

div.prose-content li {
  margin-bottom: 0.55rem;
  line-height: 1.7;
  color: rgba(255,248,248,0.82);
}

div.prose-content ul li::marker {
  color: var(--c-pink);
}

div.prose-content ol li::marker {
  color: var(--c-red);
  font-weight: 700;
}

/* Strong / em */
div.prose-content strong {
  color: #fff;
  font-weight: 700;
}

div.prose-content em {
  color: var(--c-pink);
  font-style: italic;
}

/* Tables */
div.prose-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  border-radius: var(--radius-card);
  overflow: hidden;
}

div.prose-content th {
  background: linear-gradient(135deg, rgba(255,0,0,0.3), rgba(255,20,147,0.3));
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--font-hand);
  font-size: 1rem;
  border-bottom: 1px solid var(--c-border);
}

div.prose-content td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255,20,147,0.1);
  color: rgba(255,248,248,0.8);
}

div.prose-content tr:last-child td {
  border-bottom: none;
}

div.prose-content tr:nth-child(even) td {
  background: rgba(255,255,255,0.03);
}

/* Blockquote */
div.prose-content blockquote {
  border-left: 3px solid var(--c-pink);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: rgba(255,20,147,0.07);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  color: rgba(255,248,248,0.85);
  font-style: italic;
}

/* Images */
div.prose-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1rem 0;
  box-shadow: 0 4px 24px rgba(38,23,23,0.5);
}

/* Links */
div.prose-content a {
  color: var(--c-pink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

div.prose-content a:hover,
div.prose-content a:focus-visible {
  color: var(--c-red);
}

/* FAQ / details-like patterns in prose */
div.prose-content h3 + p {
  margin-top: 0.4rem;
}

/* ── Scroll margin for anchor sections ── */
article[id] {
  scroll-margin-top: var(--scroll-offset);
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 2rem 2.5rem;
  background: linear-gradient(0deg, rgba(38,23,23,0.98) 0%, transparent 100%);
  border-top: 1px solid var(--c-border);
}

.footer-brand-name {
  font-family: var(--font-hand);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--c-red), var(--c-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  text-shadow: none;
  letter-spacing: -0.02em;
}

.site-footer small {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,248,248,0.4);
  letter-spacing: 0.05em;
}

/* ── Stagger animation for nav links ── */
.site-aside nav ul li {
  opacity: 0;
  transform: translateX(-12px);
  animation: nav-stagger 0.45s ease forwards;
}

.site-aside nav ul li:nth-child(1) { animation-delay: 0.05s; }
.site-aside nav ul li:nth-child(2) { animation-delay: 0.10s; }
.site-aside nav ul li:nth-child(3) { animation-delay: 0.15s; }
.site-aside nav ul li:nth-child(4) { animation-delay: 0.20s; }
.site-aside nav ul li:nth-child(5) { animation-delay: 0.25s; }
.site-aside nav ul li:nth-child(6) { animation-delay: 0.30s; }
.site-aside nav ul li:nth-child(7) { animation-delay: 0.35s; }

@keyframes nav-stagger {
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .site-aside nav ul li {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ── Mobile: hamburger toggle ── */
.nav-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--c-red), var(--c-pink));
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  box-shadow: 0 2px 12px rgba(255,0,0,0.4);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  .nav-toggle span { transition: none; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  :root {
    --nav-w: 200px;
  }

  .hero-section {
    padding: 4rem 2.5rem 7rem;
  }

  .wrap {
    padding: 0 1.5rem 3rem;
  }
}

@media (max-width: 680px) {
  :root {
    --nav-w: 240px;
    --scroll-offset: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-aside {
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    width: var(--nav-w);
  }

  .site-aside.open {
    transform: translateX(0);
  }

  .page-wrapper {
    margin-left: 0;
  }

  .hero-section {
    padding: 5.5rem 1.5rem 6rem;
    min-height: 100svh;
  }

  h1.hero-title {
    font-size: 2.2rem;
  }

  .hero-sub {
    font-size: 0.98rem;
  }

  .wrap {
    padding: 0 1rem 2.5rem;
  }

  div.prose-content article {
    padding: 2.5rem 0;
  }

  div.prose-content h2 {
    font-size: 1.7rem;
  }

  .footer-brand-name {
    font-size: 2.8rem;
  }

  .site-footer {
    padding: 3rem 1rem 2rem;
  }

  .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(38,23,23,0.6);
    z-index: 99;
    backdrop-filter: blur(2px);
  }

  .overlay.visible {
    display: block;
  }
}

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

  h1.hero-title {
    font-size: 1.9rem;
  }

  .hero-section {
    padding: 5rem 1rem 5.5rem;
  }

  .wrap {
    padding: 0 0.75rem 2rem;
  }
}

/* ── Focus styles ── */
:focus-visible {
  outline: 2px solid var(--c-pink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--c-dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--c-red), var(--c-pink));
  border-radius: 3px;
}
