/* ==========================================================================
   ATELIER GOLDDRUCK - CORE DESIGN SYSTEM & STYLESHEET (LIGHT THEME)
   Optimized for 100 PageSpeed score, responsive luxury design, zero CLS
   ========================================================================== */

:root {
  /* Color Palette - Premium Luxury Light Theme */
  --bg-dark: #FAF9F6;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F5F3ED;
  --bg-surface: #F3F0EA;
  --border-color: rgba(184, 134, 11, 0.22);
  --border-gold-glow: rgba(184, 134, 11, 0.45);
  
  --text-main: #2C2D31;
  --text-muted: #5C6069;
  --text-heading: #121316;
  
  --gold-primary: #B8860B;
  --gold-light: #855F08;
  --gold-dark: #5E4304;
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #B8860B 50%, #855F08 100%);
  --gold-glow: 0 6px 20px rgba(184, 134, 11, 0.15);
  
  /* Fonts */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Spacing */
  --container-max: 1240px;
  --article-max: 920px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Box Sizing */
*, *::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);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  margin-top: 0;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--gold-light);
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.4rem;
  color: var(--text-main);
  font-size: 1.05rem;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.6rem;
}

strong {
  color: var(--gold-light);
  font-weight: 600;
}

blockquote {
  border-left: 4px solid var(--gold-primary);
  background: rgba(184, 134, 11, 0.08);
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: #3A3C42;
}

/* Base Layout Helpers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.article-container {
  width: 100%;
  max-width: var(--article-max);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

/* Badge / Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(184, 134, 11, 0.12);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #FFFFFF;
  box-shadow: var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(184, 134, 11, 0.35);
  color: #FFFFFF;
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: rgba(184, 134, 11, 0.1);
  border-color: var(--gold-primary);
}

/* Images & Figures */
figure {
  margin: 2.5rem 0;
}

.img-responsive {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* Styled Table for Comparison */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--bg-card);
}

th, td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

th {
  background: var(--bg-surface);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

tr:hover td {
  background: var(--bg-card-hover);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}
