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

/* ============================================
   Anti-Subjectivism Website Styles
   Elegant Luxury Dark Theme
   ============================================ */

/* ── CSS Custom Properties (Design Tokens) ── */
:root {
  --bg-sidebar: #0D0D0D;
  --bg-content: #17181a;
  --text-primary: #FFFFFF;
  --text-secondary: #6A6A6A;
  --text-muted: #4A4A4A;
  --accent-gold: #C9A962;
  --accent-gold-20: rgba(201, 169, 98, 0.12);
  --accent-gold-40: rgba(201, 169, 98, 0.25);
  --border-subtle: #2A2A2A;
  --border-active: #17181a;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", monospace;
  --sidebar-width: 280px;
  --content-padding: 48px 56px;
  --transition: 0.2s ease;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-content);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

::-webkit-scrollbar-track {
  background: var(--bg-sidebar);
}

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

html {
  scrollbar-color: var(--border-subtle) var(--bg-sidebar);
  scrollbar-width: thin;
}

/* ── Layout Shell ── */
.site-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 28px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 0;
  object-fit: contain;
}

.logo-title {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* Navigation */
.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
}

.nav-item:hover {
  background-color: var(--border-active);
  color: var(--text-primary);
}

.nav-item.active {
  background-color: var(--border-active);
  color: var(--text-primary);
  font-weight: 500;
}

.nav-item.active .nav-icon {
  color: var(--accent-gold);
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  color: var(--accent-gold);
}

/* Sidebar Bottom: Horizontal Bar + Discord */
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
}

.horizontal-bar {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.discord-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 500;
  transition: opacity var(--transition);
}

.discord-link:hover {
  opacity: 0.8;
}

.discord-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Mobile Header (Hamburger) ── */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background-color: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 200;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-logo-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.mobile-logo-title {
  width: 180px;
  height: 20px;
  object-fit: contain;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Overlay for mobile menu */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 90;
}

.menu-overlay.active {
  display: block;
}

/* ── Main Content ── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: var(--content-padding);
  min-height: 100vh;
}

/* ── Page Header ── */
.page-header {
  margin-bottom: 32px;
}

.header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--text-primary);
  line-height: 1.1;
}

.page-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
}

/* Download Button */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  background-color: transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.download-btn:hover {
  background-color: var(--accent-gold-20);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.download-btn:hover svg {
  color: var(--accent-gold);
}

.download-btn svg {
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

/* ── Manifesto Content ── */
.manifesto-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.manifesto-logo-wide {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  margin-bottom: 8px;
}

.manifesto-heading {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.manifesto-subheading {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  color: var(--accent-gold);
  line-height: 1.3;
}

.manifesto-meta {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
}

.manifesto-version {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
}

/* Section blocks */
.manifesto-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  margin-top: 8px;
}

.manifesto-body {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.7;
}

.manifesto-body p + p {
  margin-top: 1em;
}

.manifesto-quote {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--accent-gold);
  line-height: 1.7;
  padding: 20px 24px;
  border-left: 3px solid var(--accent-gold);
  background: linear-gradient(90deg, var(--accent-gold-20) 0%, transparent 100%);
  border-radius: 0 8px 8px 0;
}

.manifesto-list {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.7;
  padding-left: 24px;
}

.manifesto-list li {
  margin-bottom: 0.5em;
}

.manifesto-closing {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-gold);
}

/* ── Video Page ── */
.video-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
}

.video-wrapper {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: opacity var(--transition);
}

.video-thumbnail:hover {
  opacity: 0.85;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.play-button {
  width: 72px;
  height: 72px;
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  pointer-events: none;
}

.play-button svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

/* ── Responsive Breakpoints ── */

/* Tablet: collapse sidebar */
@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 80px 32px 32px;
  }

  .mobile-header {
    display: flex;
  }

  .page-title {
    font-size: 36px;
  }

  .manifesto-heading {
    font-size: 34px;
  }

  .section-title {
    font-size: 26px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .main-content {
    padding: 72px 20px 24px;
  }

  .page-title {
    font-size: 28px;
  }

  .page-subtitle {
    font-size: 13px;
  }

  .header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .download-btn {
    align-self: flex-start;
  }

  .manifesto-heading {
    font-size: 30px;
  }

  .manifesto-subheading {
    font-size: 22px;
  }

  .section-title {
    font-size: 24px;
  }

  .manifesto-body {
    font-size: 17px;
  }

  .manifesto-quote {
    font-size: 19px;
  }

  .video-wrapper {
    border-radius: 6px;
  }
}

/* Small mobile */
@media (max-width: 479px) {
  .page-title {
    font-size: 24px;
  }

  .manifesto-heading {
    font-size: 26px;
  }

  .section-title {
    font-size: 22px;
  }

  .manifesto-body {
    font-size: 16px;
  }

  .manifesto-quote {
    font-size: 18px;
  }
}
