:root {
  --bk-forest: #5C7A3E;
  --bk-terracotta: #C97C5C;
  --bk-oak: #D4A574;
  --bk-sand: #E8DCC8;
  --bk-ink: #2A2A2A;
  --bk-white: #FFFFFF;
  --bk-border: #E0E0E0;
  --bk-accent-primary: var(--bk-forest);
  --bk-accent-secondary: var(--bk-terracotta);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--bk-ink);
  background: var(--bk-white);
}

.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(0deg, transparent 24%, rgba(88, 122, 62, 0.05) 25%, rgba(88, 122, 62, 0.05) 26%, transparent 27%, transparent 74%, rgba(88, 122, 62, 0.05) 75%, rgba(88, 122, 62, 0.05) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(201, 124, 92, 0.03) 25%, rgba(201, 124, 92, 0.03) 26%, transparent 27%, transparent 74%, rgba(201, 124, 92, 0.03) 75%, rgba(201, 124, 92, 0.03) 76%, transparent 77%, transparent);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
}

/* Header & Footer assumed imported from components */

.bk-main {
  position: relative;
  z-index: 1;
}

/* Hero Section */
.bk-hero {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--bk-forest) 0%, var(--bk-terracotta) 100%);
  color: var(--bk-white);
  text-align: center;
  margin-bottom: 60px;
}

.bk-hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.bk-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.bk-hero-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 30px;
  opacity: 0.95;
}

.bk-hero-hook {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.9;
}

/* Container */
.bk-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Titles */
.bk-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--bk-ink);
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: -0.01em;
}

/* Top 5 Section */
.bk-top5 {
  padding: 80px 20px;
  background: var(--bk-sand);
  margin-bottom: 60px;
}

.bk-top5-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.bk-top5-card {
  background: var(--bk-white);
  border-left: 4px solid var(--bk-accent-primary);
  padding: 28px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bk-top5-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bk-rank {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bk-accent-secondary);
  margin-bottom: 8px;
}

.bk-query {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bk-ink);
  margin-bottom: 12px;
  line-height: 1.2;
}

.bk-guides-list {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

/* Essay Section */
.bk-essay {
  padding: 80px 20px;
  margin-bottom: 60px;
}

.bk-essay-text {
  max-width: 700px;
  margin: 0 auto;
}

.bk-essay-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #444;
  font-size: 1.05rem;
}

.bk-essay-text p:last-child {
  margin-bottom: 0;
}

/* Contributors Section */
.bk-contributors {
  padding: 80px 20px;
  background: #FAFAFA;
  margin-bottom: 60px;
}

.bk-contributors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.bk-contributor-card {
  background: var(--bk-white);
  border-top: 3px solid var(--bk-accent-secondary);
  padding: 28px;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.bk-contributor-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bk-ink);
  margin-bottom: 4px;
}

.bk-contributor-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bk-accent-primary);
  margin-bottom: 12px;
}

.bk-contributor-bio {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

/* Toolkit Section */
.bk-toolkit {
  padding: 80px 20px;
  margin-bottom: 60px;
}

.bk-toolkit-intro {
  text-align: center;
  font-size: 1.05rem;
  color: #666;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.bk-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.bk-tool-item {
  background: linear-gradient(135deg, var(--bk-forest), var(--bk-terracotta));
  color: var(--bk-white);
  padding: 20px;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.bk-tool-item:hover {
  transform: scale(1.02);
}

.bk-tool-name {
  display: block;
}

/* Mistakes Section */
.bk-mistakes {
  padding: 80px 20px;
  background: #F5F5F5;
  margin-bottom: 60px;
}

.bk-mistakes-list {
  max-width: 700px;
  margin: 0 auto;
  list-style: none;
}

.bk-mistake-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--bk-border);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  position: relative;
  padding-left: 24px;
}

.bk-mistake-item:last-child {
  border-bottom: none;
}

.bk-mistake-item::before {
  content: "⚠";
  position: absolute;
  left: 0;
  color: var(--bk-accent-secondary);
  font-size: 1rem;
}

/* Related Section */
.bk-related {
  padding: 80px 20px;
  margin-bottom: 60px;
}

.bk-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.bk-related-card {
  display: block;
  background: var(--bk-white);
  border: 1px solid var(--bk-border);
  border-radius: 4px;
  padding: 32px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bk-related-card:hover {
  border-color: var(--bk-accent-primary);
  box-shadow: 0 4px 12px rgba(92, 122, 62, 0.1);
  transform: translateY(-2px);
}

.bk-related-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bk-ink);
  margin-bottom: 12px;
}

.bk-related-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

/* Colophon Section */
.bk-colophon {
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(92, 122, 62, 0.05), rgba(201, 124, 92, 0.05));
  margin-bottom: 60px;
}

.bk-colophon-text {
  max-width: 700px;
  margin: 0 auto;
}

.bk-colophon p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: #555;
  font-size: 0.95rem;
}

.bk-colophon p:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1100px) {
  .bk-hero {
    padding: 60px 20px;
  }

  .bk-hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .bk-section-title {
    margin-bottom: 32px;
  }

  .bk-top5, .bk-essay, .bk-contributors, .bk-toolkit, .bk-mistakes, .bk-related, .bk-colophon {
    padding: 60px 20px;
    margin-bottom: 40px;
  }
}

@media (max-width: 640px) {
  .bk-hero {
    padding: 40px 16px;
    margin-bottom: 40px;
  }

  .bk-hero-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    margin-bottom: 16px;
  }

  .bk-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 20px;
  }

  .bk-hero-hook {
    font-size: 0.95rem;
  }

  .bk-section-title {
    font-size: clamp(1.4rem, 4vw, 1.75rem);
    margin-bottom: 24px;
  }

  .bk-top5, .bk-essay, .bk-contributors, .bk-toolkit, .bk-mistakes, .bk-related, .bk-colophon {
    padding: 40px 16px;
    margin-bottom: 32px;
  }

  .bk-top5-grid,
  .bk-contributors-grid,
  .bk-tools-grid,
  .bk-related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bk-top5-card,
  .bk-contributor-card,
  .bk-related-card {
    padding: 20px;
  }

  .bk-essay-text {
    padding: 0 8px;
  }

  .bk-essay-text p {
    font-size: 0.95rem;
    margin-bottom: 16px;
  }

  .bk-mistake-item {
    padding: 12px 0 12px 20px;
    font-size: 0.9rem;
  }
}

/* Print Styles */
@media print {
  .mesh-bg {
    display: none;
  }

  .bk-hero {
    background: none;
    color: var(--bk-ink);
    border-bottom: 2px solid var(--bk-accent-primary);
    padding: 20px 0;
  }

  a {
    color: var(--bk-forest);
    text-decoration: underline;
  }
}
