@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ── AlabamaCreates Shared Design System ── */
/* Dark mode, Garamond serif */

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

:root {
  --bg: #0e0d0c;
  --surface: #1a1816;
  --surface-alt: #232120;
  --border: #2e2b29;
  --border-light: #26231f;
  --text: #f2efe9;
  --text-secondary: #b3aea4;
  --text-muted: #7a7568;
  --accent: #f2efe9;
  --accent-subtle: #b3aea4;
  --tag-bg: #232120;
  --tag-text: #b3aea4;
  --tag-ai-bg: #2a223a;
  --tag-ai-text: #c1aaf0;
  --tag-warn-bg: #3a2a1a;
  --tag-warn-text: #e8b878;
  --radius: 8px;
}

body {
  font-family: 'EB Garamond', 'Garamond', 'Adobe Garamond Pro', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ── STICKY NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-nav-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  height: 52px;
  gap: 32px;
}
.site-nav-logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav-back {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  margin-left: auto;
  transition: color 0.15s;
}
.site-nav-back:hover { color: var(--text); }

/* ── CONTAINER ── */
.container { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* ── PAGE HEADER ── */
.page-hero {
  padding: 56px 32px 48px;
  max-width: 880px;
  margin: 0 auto;
}
.page-hero .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.page-hero h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 8px;
}
.page-hero .subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
}
.page-hero .meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── HERO (block pages) ── */
.hero {
  padding: 56px 32px 48px;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
  background: none;
  border-bottom: none;
}
.hero .block-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.hero h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 8px;
}
.hero h1 span { color: var(--text); }
.hero h2 {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.hero .context-box {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 100%;
}
.hero .context-box strong { color: var(--text); font-weight: 600; }
.hero .tagline {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.hero .pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero .pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── HR ── */
hr { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* ── HEADINGS ── */
h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-top: 40px;
  margin-bottom: 14px;
}
h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-top: 28px;
  margin-bottom: 12px;
}

/* ── BODY COPY ── */
p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
a { color: var(--text); }

ul, ol { padding-left: 22px; margin-bottom: 14px; }
ul li, ol li { margin-bottom: 6px; }

/* ── TABLE ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  font-size: 14px;
}
th, td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--surface-alt);
  font-weight: 600;
  font-size: 13px;
}
td:first-child { font-weight: 600; }

/* ── PRE / CODE ── */
pre {
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  margin: 16px 0 24px;
  color: var(--text);
}

/* ── PHASE BANNER ── */
.phase-banner {
  margin: 48px auto 0;
  max-width: 880px;
  padding: 0 32px;
}
.phase-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.phase-banner-inner.discovery,
.phase-banner-inner.development,
.phase-banner-inner.delivery { background: var(--surface); border-color: var(--border); }
.phase-icon {
  font-size: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--surface-alt);
}
.discovery .phase-icon,
.development .phase-icon,
.delivery .phase-icon { background: var(--surface-alt); }
.phase-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 2px;
}
.discovery .phase-info h3,
.development .phase-info h3,
.delivery .phase-info h3 { color: var(--text); }
.phase-info .week-tag {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.phase-info p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.6;
}

/* ── STEP CARDS ── */
.steps {
  margin: 16px auto 0;
  max-width: 880px;
  padding: 0 32px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step-card.ai-step {
  border-left: 3px solid #8b6cc1;
}
.step-check { flex-shrink: 0; margin-top: 2px; }
.step-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}
.step-check input[type="checkbox"]:checked {
  background: var(--text);
  border-color: var(--text);
}
.step-check input[type="checkbox"]:checked::after {
  content: '\2713';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--bg);
  font-size: 13px;
  font-weight: 800;
}
.step-content { flex: 1; }
.step-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.step-content .ai-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--tag-ai-bg);
  color: var(--tag-ai-text);
  margin-left: 6px;
  vertical-align: middle;
}
.step-content .tool-link {
  display: inline-block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.step-content .skill-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 5px;
  background: var(--tag-bg);
  color: var(--tag-text);
  margin-top: 6px;
}

/* ── PROGRESS BAR ── */
.progress-section {
  margin: 32px auto 0;
  max-width: 880px;
  padding: 0 32px;
}
.progress-bar-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
}
.progress-bar-container h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  margin-top: 0;
}
.progress-track {
  width: 100%;
  height: 6px;
  background: var(--surface-alt);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--text);
  border-radius: 100px;
  transition: width 0.4s ease;
}
.progress-count {
  font-size: 13px;
  color: var(--text-muted);
}
.progress-count span { color: var(--text); font-weight: 700; }

/* ── EXPECTATIONS ── */
.expectations {
  margin: 24px auto 0;
  max-width: 880px;
  padding: 0 32px;
}
.expectations-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.expectations-inner h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  margin-top: 0;
}
.expectations-inner p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
}
.expectations-inner p:last-child { margin-bottom: 0; }

/* ── WEEK CARDS (curriculum overview pages) ── */
.week-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px auto 0;
  max-width: 880px;
  padding: 0 32px;
}
.week-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.week-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 6px;
}
.week-card h3 span { color: var(--text-muted); font-weight: 500; }
.week-card .week-theme {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.week-card .week-items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.week-card .week-items li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 3px 0;
  margin-bottom: 0;
}
.week-card .week-items li::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  margin-right: 10px;
  vertical-align: middle;
}
.week-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
.week-badge.orientation { background: var(--tag-bg); color: var(--tag-text); }
.week-badge.ai { background: var(--tag-ai-bg); color: var(--tag-ai-text); }

/* ── TOOL CARDS (tool guide) ── */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 12px;
}
.tool-card .tool-header { margin-bottom: 10px; }
.tool-card .tool-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}
.tool-card .tool-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.tool-card .tool-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}
.tool-card .tool-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.tool-card .tool-usage {
  font-size: 14px;
  color: var(--text);
}
.tool-card .tool-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* ── CATEGORY INTENT (rubric pages) ── */
.category-intent {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 16px;
}

/* ── INLINE LINK OVERRIDES ── */
.step-content a,
.hero .context-box a,
.tool-card a { color: var(--text-secondary); text-decoration: underline; }
.step-content a:hover,
.tool-card a:hover { color: var(--text); }

/* ── SKILLS TODO BOX (block pages) ── */
.skills-todo {
  margin: 48px auto;
  max-width: 880px;
  padding: 0 32px;
}
.skills-todo-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.skills-todo-inner h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tag-warn-text);
  margin-bottom: 14px;
  margin-top: 0;
}
.skills-todo-inner .skill-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.skills-todo-inner .skill-item:last-child { margin-bottom: 0; }
.skills-todo-inner .skill-name {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 5px;
  background: var(--tag-warn-bg);
  color: var(--tag-warn-text);
  white-space: nowrap;
}
.skills-todo-inner .skill-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── SECTION DIVIDER (curriculum overview) ── */
.section-divider {
  margin: 48px auto;
  max-width: 880px;
  padding: 0 32px;
}
.section-divider-inner {
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}
.section-divider-inner h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}
.section-divider-inner p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
  margin-bottom: 0;
}

/* ── FOOTER ── */
.footer, .site-footer {
  text-align: center;
  margin-top: 56px;
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── CHECKED STATE ── */
.step-card.checked { opacity: 0.45; }
.step-card.checked .step-content h4 { text-decoration: line-through; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .site-nav-inner { padding: 0 20px; gap: 20px; }
  .page-hero, .hero { padding: 40px 20px 36px; }
  .page-hero h1, .hero h1 { font-size: 28px; }
  .container, .steps, .phase-banner, .progress-section, .expectations, .week-grid, .skills-todo, .section-divider { padding: 0 20px; }
  .phase-banner-inner { flex-direction: column; align-items: flex-start; }
  .step-card { padding: 14px 16px; }
}

/* ══════════════════════════════════════════════════ */
/* ENHANCED VISUAL HIERARCHY                          */
/* ══════════════════════════════════════════════════ */

/* ── Stronger section breaks for content pages ── */
.container h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-top: 56px;
  margin-bottom: 20px;
}

.container h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-top: 32px;
  margin-bottom: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.container h3:first-child,
.container h2 + h3 {
  border-top: none;
  padding-top: 0;
}

/* ── Pull quotes / lead text for scanning ── */
.container > p:first-of-type,
.hero + .container > p:first-of-type,
.page-hero + .container > p:first-of-type {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ── Table enhancements ── */
table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}
tr:last-child td { border-bottom: none; }

/* ── Lists inside containers: tighter, cleaner ── */
.container ul, .container ol {
  margin-bottom: 20px;
}
.container li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* ── Featured tool card ── */
.tool-card.featured {
  border: 1px solid var(--text);
  background: var(--surface);
}
.tool-card.featured .tool-name {
  font-size: 24px;
}

/* ── Plugin list inside tool cards ── */
.tool-subsection {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.plugin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.plugin-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.plugin-name {
  font-size: 12px;
  font-weight: 700;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  padding: 3px 10px;
  border-radius: 5px;
  background: var(--tag-bg);
  color: var(--tag-text);
  white-space: nowrap;
  flex-shrink: 0;
}
.plugin-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Phase banner stronger contrast ── */
.phase-banner-inner {
  border-left: 3px solid var(--text);
}

/* ── Step card section grouping ── */
.steps + .phase-banner {
  margin-top: 56px;
}

/* ── Content page eyebrow + header grouping ── */
.container .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.container .subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.container .meta {
  font-size: 14px;
  color: var(--text-muted);
}
.container h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 6px;
}

/* ── Stronger HR for content pages ── */
.container hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 56px 0;
}

/* ── Blockquote for callouts ── */
blockquote {
  border-left: 3px solid var(--text);
  padding: 16px 20px;
  margin: 20px 0;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
