.acme-tutorial {
  --primary: #0f766e;
  --primary-dark: #0d5c56;
  --primary-light: #14b8a6;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --code-bg: #1e293b;
  --code-text: #e2e8f0;
  --success: #059669;
  --warning: #d97706;

  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

.acme-tutorial :is(h1, h2, h3, h4, p, ul, ol, li) {
  margin: 0;
  padding: 0;
}

.acme-tutorial header {
  background: linear-gradient(135deg, var(--primary) 0%, #0f4c46 100%);
  color: white;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.acme-tutorial header h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.acme-tutorial header p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto;
}

.acme-tutorial nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.acme-tutorial nav .nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
}

.acme-tutorial nav a {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.acme-tutorial nav a:hover,
.acme-tutorial nav a.active {
  background: #f0fdfa;
  color: var(--primary);
}

.acme-tutorial main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.acme-tutorial .intro {
  margin-bottom: 1.5rem;
}

.acme-tutorial .intro p {
  color: var(--text-muted);
}

.acme-tutorial .updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.acme-tutorial section {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.acme-tutorial section h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ccfbf1;
}

.acme-tutorial section h3 {
  margin: 1.75rem 0 0.75rem;
  color: var(--text);
	font-weight: bold;
}

.acme-tutorial section h4 {
  margin: 2.5rem 0 1rem;
  color: var(--text);
	font-weight: bold;
}

.acme-tutorial p {
  margin-bottom: 1rem;
  color: var(--text);
}

.acme-tutorial ul,
.acme-tutorial ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
}

.acme-tutorial li {
  margin-bottom: 0.4rem;
}

.acme-tutorial pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  line-height: 1.5;
  margin: 0.75rem 0 1.25rem;
}

.acme-tutorial code {
  font-size: 0.875em;
}

.acme-tutorial p code,
.acme-tutorial li code {
  background: #f1f5f9;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: #0f766e;
}

.acme-tutorial .prereq {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}

.acme-tutorial .prereq h3 {
  margin-top: 0;
  color: var(--primary);
}

.acme-tutorial .prereq ul {
  margin-bottom: 0;
}

.acme-tutorial .note {
  background: #fffbeb;
  border-left: 4px solid var(--warning);
  padding: 0.9rem 1.2rem;
  margin: 1.25rem 0;
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
}

.acme-tutorial .success-box {
  background: #ecfdf5;
  border-left: 4px solid var(--success);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 0;
  border-radius: 0 6px 6px 0;
}

.acme-tutorial .success-box strong {
  color: var(--success);
}

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

.acme-tutorial a:hover {
  text-decoration: underline;
}

.acme-tutorial .resources {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.acme-tutorial .resource-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  transition: border-color 0.15s;
}

.acme-tutorial .resource-card:hover {
  border-color: var(--primary-light);
}

.acme-tutorial .resource-card h4 {
  margin: 0 0 0.25rem;
}

.acme-tutorial .resource-card p {
  margin: 0;
  color: var(--text-muted);
}

.acme-tutorial .resource-card a {
  font-weight: 500;
}

.acme-tutorial footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  background: var(--card);
}

@media (max-width: 640px) {
  .acme-tutorial header h1 {
    font-size: 1.5rem;
  }
  .acme-tutorial section {
    padding: 1.5rem 1.15rem;
  }
  .acme-tutorial pre {
    padding: 0.85rem 1rem;
  }
}
