/* Keto page-specific styles */

.page-hero {
  text-align: center;
  padding: 4rem 1rem 2rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Table of contents */
.toc {
  background: var(--card-bg-variant);
  padding: 2rem 1.5rem;
  margin: 2rem 0;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

.toc h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  margin-top: 0;
}

.toc ul {
  list-style: none;
  padding-left: 0;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  color: var(--accent);
  text-decoration: none;
}

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

.toc ul ul {
  padding-left: 1.5rem;
  margin-top: 0.25rem;
}

/* Content sections */
.content-section {
  margin: 3rem 0;
  padding: 0;
}

.content-section h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.content-section h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.content-section h4 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.content-section p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.content-section ul,
.content-section ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.content-section li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.content-section ul ul,
.content-section ul ol,
.content-section ol ul,
.content-section ol ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Images */
.content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: var(--radius);
}

/* Notes and emphasis */
.note {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.5rem;
}

/* Recipe cards */
.recipe {
  background: var(--card-bg-variant);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent-2);
}

.recipe h4 {
  margin-top: 0;
  color: var(--accent);
}

.recipe p {
  margin-bottom: 0.75rem;
}

.recipe ul,
.recipe ol {
  margin-bottom: 1rem;
}

/* Links */
a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-2);
}

a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.85em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-hero {
    padding: 2rem 1rem 1rem;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .toc {
    padding: 1.5rem 1rem;
  }

  .content-section h2 {
    font-size: 1.5rem;
  }

  .content-section h3 {
    font-size: 1.2rem;
  }

  .recipe {
    padding: 1rem;
  }
}
