/* ==========================================================================
   AMANDA HOUMIEL ARCHIVE - MAIN SITE STYLESHEET
   A Modern Public Record, Photographic Repository & Essay Portal
   ========================================================================== */

:root {
  --bg-dark: #0d0f12;
  --bg-card: #151921;
  --bg-card-hover: #1c222c;
  --bg-card-subtle: #12151b;
  --border-color: #272f3d;
  --border-light: #384254;

  --text-main: #f0f2f5;
  --text-muted: #9aa4b2;
  --text-subtle: #687385;

  --accent-gold: #e5a93b;
  --accent-gold-glow: rgba(229, 169, 59, 0.15);
  --accent-blue: #4d8bf0;
  --accent-blue-glow: rgba(77, 139, 240, 0.15);
  --accent-red: #e05252;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);
  --font-serif: 'Lora', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1200px;
  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #79a8f5;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-gold-glow);
  border: 1px solid rgba(229, 169, 59, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1rem;
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gold);
  color: #12151b !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: #f1b852;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.25rem;
  cursor: pointer;
}
/* ==========================================================================
   Hero Section & Identity Badges
   ========================================================================== */
.hero-section {
  padding: 56px 0 40px 0;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(circle at 50% 0%, rgba(35, 45, 60, 0.4) 0%, transparent 70%);
}

.hero-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--accent-gold-glow);
  color: var(--accent-gold);
  border: 1px solid rgba(229, 169, 59, 0.3);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Aliases Chip Grid */
.aliases-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 28px 0;
}

.alias-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-main);
}

.alias-chip i {
  color: var(--accent-gold);
  font-size: 0.8rem;
}

.alias-location {
  color: var(--text-subtle);
  font-size: 0.78rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

.btn-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-secondary-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  color: #ffffff;
}

.btn-primary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--accent-gold);
  color: #12151b !important;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all var(--transition);
}

.btn-primary-link:hover {
  background: #f1b852;
  transform: translateY(-1px);
}

/* ==========================================================================
   Public Statement / Preface Section
   ========================================================================== */
.statement-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border-color);
}

.preface-banner {
  background: linear-gradient(135deg, rgba(229, 169, 59, 0.08) 0%, rgba(21, 25, 33, 0.9) 100%);
  border: 1px solid rgba(229, 169, 59, 0.25);
  border-left: 4px solid var(--accent-gold);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 36px;
}

.preface-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-gold);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.preface-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #f5f5f5;
}

/* Section Common Titles */
.section-head {
  margin-bottom: 32px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  display: block;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-top: 6px;
}

/* ==========================================================================
   Timeline Narrative Cards
   ========================================================================== */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: border-color var(--transition);
}

.timeline-card:hover {
  border-color: var(--border-light);
}

.timeline-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: var(--accent-gold-glow);
  padding: 3px 8px;
  border-radius: 4px;
}

.timeline-date {
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.timeline-body p {
  color: #cfd6df;
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.timeline-body p:last-child {
  margin-bottom: 0;
}

.timeline-alert-box {
  background: rgba(224, 82, 82, 0.1);
  border: 1px solid rgba(224, 82, 82, 0.3);
  border-left: 4px solid var(--accent-red);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
}

.timeline-alert-box h4 {
  color: #ff7b7b;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-alert-box p {
  color: #e6c8c8;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   Dedicated Essay Section & Placeholder
   ========================================================================== */
.essay-feature-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(13, 15, 18, 1) 0%, rgba(20, 24, 32, 0.7) 100%);
}

.essay-feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(229, 169, 59, 0.35);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.essay-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-blue) 100%);
}

.essay-card-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.essay-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  background: var(--accent-gold-glow);
  border: 1px solid rgba(229, 169, 59, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.essay-main-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 12px;
}

.essay-deck-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.essay-excerpt-box {
  background: var(--bg-card-subtle);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.essay-excerpt-box blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  color: #e2e8f0;
  line-height: 1.55;
  margin-bottom: 6px;
}

.essay-excerpt-box span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.essay-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-read-essay {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-gold);
  color: #12151b !important;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all var(--transition);
}

.btn-read-essay:hover {
  background: #f1b852;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(229, 169, 59, 0.3);
}

.essay-feature-meta {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.meta-box-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  margin-bottom: 14px;
}

.meta-chapter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta-chapter-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.meta-chapter-list li strong {
  font-family: var(--font-mono);
  color: #ffffff;
  font-size: 0.8rem;
  min-width: 55px;
}

/* ==========================================================================
   Photo Archives & Gallery Grid
   ========================================================================== */
.gallery-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-color);
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  color: var(--text-main);
  border-color: var(--border-light);
}

.filter-btn.active {
  background: var(--accent-gold);
  color: #12151b;
  border-color: var(--accent-gold);
}

.gallery-stats {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.photo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.photo-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-light);
}

.photo-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #080a0d;
}

.photo-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-card:hover .photo-card-img-wrapper img {
  transform: scale(1.05);
}

.photo-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(13, 15, 18, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.photo-info {
  padding: 10px 12px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.photo-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-action-icon {
  color: var(--text-subtle);
  font-size: 0.8rem;
}

.photo-card:hover .photo-action-icon {
  color: var(--accent-gold);
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 13, 0.94);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(21, 25, 33, 0.7);
  border: 1px solid var(--border-color);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}

.lightbox-nav:hover {
  background: var(--accent-gold);
  color: #12151b;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ==========================================================================
   Legal Inquiries & Public Documentation
   ========================================================================== */
.legal-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border-color);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.legal-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-card h4 i {
  color: var(--accent-gold);
}

.legal-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 40px 0;
  background: #090b0e;
  border-top: 1px solid var(--border-color);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--text-main);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* ==========================================================================
   Responsive Queries
   ========================================================================== */
@media (max-width: 860px) {
  .essay-card-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
  }

  .nav-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

