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

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-primary: #795900;
  --color-primary-light: #fff3d6;
  --color-text: #1a1a1a;
  --color-text-secondary: #555;
  --color-border: #e0e0e0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  padding: 32px 0 16px;
  border-bottom: 1px solid var(--color-border);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  text-decoration: none;
}

.header-nav {
  display: flex;
  gap: 24px;
}

.header-nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.header-nav a:hover {
  color: var(--color-primary);
}

/* Page title */
.page-title {
  text-align: center;
  padding: 48px 0 32px;
}

.page-title h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.page-title p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
}

/* Table of contents */
.toc {
  background: var(--color-primary-light);
  border-radius: 12px;
  padding: 24px 32px;
  margin-bottom: 48px;
}

.toc h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.toc ol {
  list-style-position: inside;
  color: var(--color-text-secondary);
}

.toc li {
  margin-bottom: 4px;
}

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

.toc a:hover {
  text-decoration: underline;
}

.toc ol ol {
  padding-left: 20px;
  margin-top: 4px;
  list-style-type: disc;
}

/* Sections */
.guide-section {
  margin-bottom: 48px;
}

.guide-section > h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary-light);
  margin-bottom: 24px;
}

.guide-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 8px;
}

.guide-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 6px;
  color: var(--color-text-secondary);
}

.guide-section p {
  margin-bottom: 12px;
  color: var(--color-text-secondary);
}

.guide-section ul,
.guide-section ol {
  margin-bottom: 12px;
  padding-left: 24px;
  color: var(--color-text-secondary);
}

.guide-section li {
  margin-bottom: 6px;
}

.guide-section li strong {
  color: var(--color-text);
}

/* Feature cards in overview */
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin-top: 0;
  color: var(--color-primary);
}

/* How-to steps */
.steps {
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  list-style: none;
  padding-left: 36px;
  position: relative;
  margin-bottom: 12px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ */
.faq-item {
  margin-bottom: 24px;
}

.faq-item h3 {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--color-text);
}

.faq-item p {
  margin-bottom: 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

footer a {
  color: var(--color-primary);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer p + p {
  margin-top: 8px;
}

/* Mobile */
@media (max-width: 600px) {
  header .container {
    flex-direction: column;
    gap: 12px;
  }

  .header-left {
    flex-direction: column;
    gap: 4px;
  }

  .page-title h1 {
    font-size: 1.5rem;
  }

  .toc {
    padding: 20px 24px;
  }

  .steps li {
    padding-left: 32px;
  }
}
