:root {
  --bg-dark: #0A0A0B;
  --bg-card: #121215;
  --bg-accent: #18181D;
  --gold-primary: #C5A880;
  --gold-light: #F5E3C3;
  --gold-dark: #8A6F48;
  --gold-gradient: linear-gradient(135deg, #F5E3C3 0%, #C5A880 50%, #8A6F48 100%);
  --text-primary: #F3F3F5;
  --text-muted: #8E8E95;
  --border-color: rgba(197, 168, 128, 0.18);
  --font-serif: 'Times New Roman', Times, 'Playfair Display', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Gradients & Accents */
.page-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.05) 0%, rgba(0,0,0,0) 70%);
  top: 10%;
  left: -200px;
  pointer-events: none;
  z-index: 1;
}

/* Layout Elements */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 11, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  padding: 0.5rem 0;
  background: rgba(10, 10, 11, 0.98);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
}

/* Main Wrapper */
main {
  padding-top: 140px;
  padding-bottom: 5rem;
  position: relative;
  z-index: 2;
}

/* Article */
article {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* Typography Customization */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #FFFFFF;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.2;
  text-align: center;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--gold-light);
  border-left: 2px solid var(--gold-primary);
  padding-left: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  color: #FFFFFF;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

strong {
  color: #FFFFFF;
  font-weight: 600;
}

/* Decorative Aside Box */
aside {
  background: var(--bg-accent);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--gold-primary);
  padding: 2rem;
  border-radius: 4px;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
}

aside::before {
  content: "✦";
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  font-size: 1.8rem;
  color: rgba(197, 168, 128, 0.15);
}

aside p {
  margin: 0;
  color: var(--text-primary);
  font-style: italic;
}

/* Figures & Images */
figure {
  margin: 3rem 0;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

figure:hover img {
  transform: scale(1.02);
}

figcaption {
  padding: 1.25rem 2rem;
  background: var(--bg-accent);
  border-top: 1px solid var(--border-color);
  color: var(--gold-primary);
  font-size: 0.95rem;
  text-align: center;
  font-family: var(--font-serif);
  letter-spacing: 0.5px;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  margin: 2.5rem 0;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-card);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 1.25rem 1.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(197, 168, 128, 0.08);
}

th {
  background: var(--bg-accent);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(197, 168, 128, 0.02);
}

/* Lists */
ul, ol {
  margin: 1.5rem 0 2.5rem 2rem;
  color: var(--text-muted);
}

li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

ul li::marker {
  color: var(--gold-primary);
}

ol li::marker {
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-weight: bold;
}

/* Footer styling */
footer {
  background: var(--bg-accent);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0;
  text-align: center;
  margin-top: 5rem;
}

.footer-logo {
  height: 50px;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Smooth reveal animation classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Responsive Styles */
@media (max-width: 768px) {
  .nav-wrapper {
    height: 80px;
    justify-content: center;
  }
  
  main {
    padding-top: 120px;
  }
  
  table, thead, tbody, th, td, tr {
    display: block;
  }
  
  th {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  tr {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
  }
  
  td {
    border: none;
    position: relative;
    padding-left: 50%;
    margin-bottom: 0.75rem;
    text-align: right;
  }
  
  td::before {
    position: absolute;
    top: 0;
    left: 1.5rem;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    content: attr(data-label);
    color: var(--gold-primary);
    font-weight: bold;
    text-align: left;
    font-family: var(--font-serif);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }
}