@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@700;800&family=Space+Grotesk:wght@400;600;700&family=Inter:wght@400;500&display=swap');

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

:root {
  --bg-dark: #0d1117;
  --accent: #a855f7;
  --accent-hover: #9333ea;
  --text: #c9d1d9;
  --text-bright: #e6edf3;
  --border: #21262d;
  --sidebar-width: 220px;
  --card-bg: rgba(13, 17, 23, 0.75);
}

html {
  background:
    linear-gradient(rgba(5, 0, 15, 0.72), rgba(5, 0, 15, 0.72)),
    url('images/hero-bg.webp') center / cover fixed;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: transparent;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: rgba(10, 12, 20, 0.9);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
}



.sidebar-brand {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-brand a {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-bright);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1.3;
  display: block;
}

.sidebar-brand a:hover { color: var(--accent); text-decoration: none; }

.sidebar nav {
  flex: 1;
  padding: 0.75rem 0;
}

.sidebar nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar nav ul li a {
  display: block;
  padding: 0.45rem 1.25rem;
  color: #8b949e;
  text-decoration: none;
  font-size: 0.875rem;
  border-left: 2px solid transparent;
  transition: color 0.1s, border-color 0.1s, background 0.1s;
}

.sidebar nav ul li a:hover {
  color: var(--text-bright);
  background: rgba(255,255,255,0.04);
  text-decoration: none;
}

.sidebar nav ul li a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(255,255,255,0.04);
}

/* Workshop children — nested under The Workshop link */
.workshop-children {
  list-style: none;
  margin: 0.25rem 0 0.5rem 1rem;
  padding: 0;
  border-left: 2px solid rgba(255,255,255,0.15);
}

.workshop-children li a {
  display: block;
  padding: 0.38rem 0.75rem 0.38rem 1rem;
  color: #8b949e;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.1s, background 0.1s, box-shadow 0.1s;
}

.workshop-children li a:hover {
  color: var(--text-bright);
  background: rgba(255,255,255,0.04);
  text-decoration: none;
}

.workshop-children li a.active {
  color: var(--accent);
  background: rgba(255,255,255,0.04);
  box-shadow: inset 2px 0 0 var(--accent);
}

/* Section labels inside workshop-children */
.nav-section-label {
  padding: 0.55rem 0.75rem 0.15rem 1rem;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6e7681;
  list-style: none;
  cursor: default;
}

.nav-section-label:not(:first-child) {
  margin-top: 0.4rem;
}


/* Page layout */
.page-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding-bottom: 52px;
}

/* Social footer */
.site-footer {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-width);
  right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: rgba(10, 12, 20, 0.85);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
  z-index: 50;
}

.site-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #30363d;
  color: #8b949e;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}

.site-footer a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.site-footer svg { width: 15px; height: 15px; fill: currentColor; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--text-bright); border: 2px solid #30363d; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Main content */
main {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

/* Responsive video embed */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 1.5rem 0;
  border-radius: 6px;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Section divider */
hr.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0 1.5rem;
}

/* Exercise blocks with collapsible answers */
.exercise {
  margin: 1.25rem 0;
}

/* Quiz text input */
.quiz-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
}

.quiz-input input[type="text"] {
  background: rgba(255,255,255,0.05);
  border: 1px solid #30363d;
  border-radius: 4px;
  color: var(--text-bright);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  outline: none;
  transition: border-color 0.15s;
  min-width: 200px;
}

.quiz-input input[type="text"]:focus { border-color: var(--accent); }

.quiz-input button {
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  transition: background 0.15s, color 0.15s;
}

.quiz-input button:hover { background: var(--accent); color: #fff; }

.quiz-feedback { font-size: 0.9rem; font-weight: 600; }

.answer summary {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  list-style: none;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--accent);
  border-radius: 3px;
  opacity: 0.65;
  cursor: pointer;
  transition: opacity 0.15s;
}

.answer summary::-webkit-details-marker { display: none; }
.answer summary:hover { opacity: 1; }

.answer[open] summary {
  opacity: 0.4;
  margin-bottom: 0.5rem;
}

.answer[open] > p {
  background: rgba(168, 85, 247, 0.07);
  border-left: 2px solid var(--accent);
  padding: 0.5rem 0.75rem;
  border-radius: 0 3px 3px 0;
  margin: 0;
}

/* Email card — used on preparation pages */
main.email-card {
  background: var(--bg-dark);
  border: 1px solid #30363d;
  border-top: 3px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  margin: 2rem auto;
  padding: 2.5rem 3rem;
  font-family: 'Space Grotesk', sans-serif;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text-bright);
}

h1 { font-size: 2rem; margin: 0 0 1rem; }
h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }

p { margin: 0 0 1rem; }

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

ul, ol { margin: 0 0 1rem; padding-left: 1.75rem; }
li { margin-bottom: 0.25rem; }

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875em;
  background: rgba(255,255,255,0.08);
  color: #c9d1d9;
  padding: 0.15em 0.35em;
  border-radius: 3px;
}

pre {
  background: rgba(0,0,0,0.4);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 1rem;
  border-radius: 0 4px 4px 0;
}

pre code { background: none; padding: 0; }

blockquote {
  border-left: 3px solid var(--accent);
  margin: 0 0 1rem;
  padding: 0.5rem 1rem;
  color: #8b949e;
}

figure {
  margin: 1.5rem 0;
  text-align: center;
}

figure img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

img { max-width: 100%; height: auto; }

/* Coffee callout */
.coffee-callout {
  margin-top: 2rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: rgba(45, 16, 72, 0.6);
  text-align: left;
  font-size: 0.9rem;
  color: #8b949e;
  line-height: 1.6;
}

.coffee-callout a { color: var(--accent); }

/* Mobile nav */
.menu-toggle {
  display: none;
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  background: rgba(10, 12, 20, 0.9);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-bright);
  cursor: pointer;
  padding: 0.4rem;
  line-height: 0;
  backdrop-filter: blur(8px);
}

.menu-toggle svg { width: 20px; height: 20px; display: block; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 90;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 150;
  }

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

  .sidebar-overlay.open { display: block; }

  .page-content { margin-left: 0; }

  .site-footer { left: 0; }
}

