:root {
  --bg-warm: #FAF8F5;
  --bg-card: #FFFFFF;
  --bg-alt: #F3EFEA;
  --text-main: #18181B;
  --text-muted: #52525B;
  --veenix-rust: #B84A1E;
  --veenix-ember: #D45B27;
  --veenix-tint: #FDECE6;
  --border-warm: #E6E1DA;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-warm);
  color: var(--text-main);
  line-height: 1.65;
}
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-warm);
  position: sticky; top: 0; z-index: 50;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.brand-logo { height: 50px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--veenix-rust); }
.lang-switch { display: flex; gap: 0.4rem; border-left: 1px solid var(--border-warm); padding-left: 1rem; }
.lang-switch a { padding: 0.2rem 0.55rem; border-radius: 5px; font-size: 0.8rem; font-weight: 600; }
.lang-switch a.active { background: var(--veenix-rust); color: #fff; }

/* Hero */
.hero { padding: 5rem 0 4.5rem; border-bottom: 1px solid var(--border-warm); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 3rem; align-items: center; }
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; font-weight: 600; color: var(--veenix-rust);
  text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 0.75rem;
}
.hero h1 { font-size: 3rem; margin-bottom: 1.25rem; }
.hero-lead { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-logo-card {
  width: 100%; max-width: 300px; margin: 0 auto; display: block;
  background: #fff; padding: 2rem; border-radius: 16px;
  border: 1px solid var(--border-warm);
  box-shadow: 0 20px 40px -15px rgba(184, 74, 30, 0.14);
}

/* Buttons & Badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.4rem; border-radius: 8px; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; text-decoration: none;
  transition: all 0.15s ease; border: 1px solid transparent; font-family: inherit;
}
.btn-primary { background: var(--veenix-rust); color: #fff; }
.btn-primary:hover { background: var(--veenix-ember); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--border-warm); color: var(--text-main); }
.btn-outline:hover { border-color: var(--veenix-rust); color: var(--veenix-rust); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.875rem; }


.badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  font-weight: 500;
  white-space: nowrap; /* Prevents text inside the pill from wrapping to a 2nd line */
  line-height: 1.2;
}
.badge-rust { background: var(--veenix-tint); color: var(--veenix-rust); }
.badge-neutral { background: var(--bg-alt); color: var(--text-muted); }

/* Sections & Cards */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border-warm); border-bottom: 1px solid var(--border-warm); }
.section-header { margin-bottom: 2.5rem; }
.section-header h2 { font-size: 2.2rem; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }

.workshop-card {
  background: var(--bg-card); border: 1px solid var(--border-warm);
  border-radius: 12px; padding: 2rem; display: flex; flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.workshop-card:hover {
  border-color: var(--veenix-rust);
  box-shadow: 0 12px 30px -10px rgba(184, 74, 30, 0.12);
}
.card-meta { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.workshop-card h3 { font-size: 1.45rem; margin-bottom: 0.75rem; }
.workshop-card h3 a { text-decoration: none; color: inherit; }
.workshop-card h3 a:hover { color: var(--veenix-rust); }
.card-summary { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.25rem; }
.card-highlights { list-style: none; margin-bottom: 2rem; flex-grow: 1; }
.card-highlights li {
  position: relative; padding-left: 1.25rem; font-size: 0.9rem; margin-bottom: 0.45rem;
}
.card-highlights li::before {
  content: "•"; color: var(--veenix-rust); font-weight: bold;
  position: absolute; left: 0;
}
.card-actions {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.25rem; border-top: 1px solid var(--border-warm);
}
.link-syllabus { color: var(--veenix-rust); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.link-syllabus:hover { text-decoration: underline; }

/* Features & Trainer */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.feature-box { background: var(--bg-card); padding: 1.75rem; border-radius: 12px; border: 1px solid var(--border-warm); }
.feature-box h4 { font-size: 1.2rem; margin-bottom: 0.6rem; color: var(--veenix-rust); }
.trainer-card {
  background: var(--bg-card); border: 1px solid var(--border-warm);
  border-radius: 14px; padding: 2.5rem; max-width: 820px;
}
.trainer-card h2 { margin-bottom: 0.75rem; font-size: 2rem; }

/* Detail Page */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 3.5rem; align-items: start; }
.back-link { color: var(--veenix-rust); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.detail-title { font-size: 2.6rem; margin: 0.75rem 0 1rem; }
.divider { border: none; border-top: 1px solid var(--border-warm); margin: 2rem 0; }
.markdown-body h2 { margin: 2rem 0 0.75rem; font-size: 1.6rem; }
.markdown-body h3 { margin: 1.5rem 0 0.5rem; font-size: 1.25rem; }
.markdown-body p, .markdown-body ol, .markdown-body ul { margin-bottom: 1.1rem; }
.markdown-body ol, .markdown-body ul { padding-left: 1.4rem; }
.markdown-body li { margin-bottom: 0.5rem; }
.sidebar-box {
  background: var(--bg-card); border: 1px solid var(--border-warm);
  padding: 2rem; border-radius: 12px; position: sticky; top: 110px;
}

/* Native Slide-Over Drawer (<dialog>) */
.native-drawer {
  margin-left: auto; margin-right: 0; height: 100vh; max-height: 100vh;
  width: 100%; max-width: 440px; border: none; background: var(--bg-card);
  box-shadow: -10px 0 35px rgba(0,0,0,0.15); padding: 0;
}
.native-drawer::backdrop {
  background: rgba(24, 24, 27, 0.45);
  backdrop-filter: blur(3px);
}
.drawer-inner { padding: 2.5rem 2rem; display: flex; flex-direction: column; height: 100%; }
.drawer-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; }
.drawer-close { background: none; border: none; font-size: 1.75rem; cursor: pointer; color: var(--text-muted); line-height: 1; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.75rem; border: 1px solid var(--border-warm);
  border-radius: 8px; font-family: inherit; font-size: 0.95rem; background: var(--bg-warm);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--veenix-rust); background: #fff;
}
.form-status { margin-top: 1rem; font-size: 0.9rem; color: var(--veenix-rust); font-weight: 600; text-align: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border-warm); padding: 2.5rem 0; font-size: 0.9rem; color: var(--text-muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 860px) {
  .hero-grid, .detail-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.3rem; }
  .main-nav { gap: 1rem; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 52px;
  width: 52px;             /* Explicit width prevents SVG flex-collapse */
  object-fit: contain;
  display: block;
}

.brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 4.1rem;       /* Cap-height visually matches the 52px SVG height */
  font-weight: 800;
  line-height: 0.75;       /* Trims vertical font box padding */
  letter-spacing: 0.04em;
  color: #C64E21;          /* Matches the #C64E21 potrace SVG color */
  text-transform: uppercase;
  display: inline-block;
  transform: translateY(2px);
}

.hero-visual .veenix-svg-logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Automatic adaptation when placed inside any dark section or dark mode */
.section-dark,
.site-footer-dark,
[data-theme="dark"] {
  --logo-text-color: #FAF8F5; /* Turns VEENIX letters warm-white while Phoenix stays rust orange */
  --veenix-rust: #D45B27;     /* Slightly brighter ember orange for high contrast on dark backgrounds */
}

