/* ===== COMPONENTS ===== */

/* Button System */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 1rem 2.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  outline: none;
}

.btn--primary {
  background: var(--color-crimson);
  color: var(--color-white);
  border-color: var(--color-crimson);
}

.btn--primary:hover {
  background: var(--color-deep-red);
  border-color: var(--color-deep-red);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(139, 0, 0, 0.4);
}

.btn--secondary {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-muted-white);
}

.btn--secondary:hover {
  background: var(--color-white);
  color: var(--color-black);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border-color: transparent;
  position: relative;
}

.btn--ghost::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-crimson);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn--ghost:hover {
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--ghost:hover::after {
  opacity: 0.1;
}

.btn--large {
  padding: 1.5rem 4rem;
  font-size: 1rem;
  letter-spacing: 0.3em;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
  background: transparent;
}

.site-header.scrolled {
  background: rgba(9, 9, 9, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  height: 4rem;
}

.header-left .header-monogram {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-white);
}

.header-left .header-name {
  display: none;
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--color-white);
  margin-left: 0.5rem;
}

@media (min-width: 768px) {
  .header-left .header-name {
    display: inline-block;
  }
}

.header-nav {
  display: none;
  gap: var(--space-lg);
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
  }
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--color-white);
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--color-crimson);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-crimson);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.header-right .menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-right .menu-toggle .menu-icon {
  width: 24px;
  height: 1px;
  background: var(--color-white);
  position: relative;
}

.header-right .menu-toggle .menu-icon::before,
.header-right .menu-toggle .menu-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 1px;
  background: var(--color-white);
  left: 0;
  transition: all 0.3s ease;
}

.header-right .menu-toggle .menu-icon::before { top: -6px; }
.header-right .menu-toggle .menu-icon::after { top: 6px; }

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: var(--color-deep-black);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.5s var(--ease-in-out);
  overflow-y: auto;
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-2xl);
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--color-crimson);
}

/* Footer */
.site-footer {
  background: var(--color-black);
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-logo .footer-monogram {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--color-crimson);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-white);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--color-white);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-muted-white);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--color-crimson);
  border-color: var(--color-crimson);
  color: var(--color-white);
  transform: translateY(-2px);
}

.u-muted {
  opacity: 0.5;
}

/* Chapter Label */
.chapter-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.6;
  display: block;
  margin-bottom: var(--space-sm);
}

/* Chapter Headline */
.chapter-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xl);
}

.chapter-headline--large {
  font-size: clamp(4rem, 10vw, 8rem);
  letter-spacing: -0.03em;
}

/* Narrative statement */
.narrative-statement {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
  margin: var(--space-4xl) 0;
  letter-spacing: -0.02em;
}

.narrative-statement .u-accent {
  color: var(--color-crimson);
}
