:root {
  --bg: #1a1612;
  --bg-light: #2a2420;
  --surface: #352f2a;
  --text: #f5f0eb;
  --text-muted: #a89f97;
  --accent: #e07b4c;
  --accent-light: #f4a574;
  --accent-glow: rgba(224, 123, 76, 0.15);
  --success: #6bbf59;
  --success-light: rgba(107, 191, 89, 0.15);
  --warning: #d4a03a;
  --warning-light: rgba(212, 160, 58, 0.15);
  --border: #4a433d;
}

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

body {
  font-family: 'Work Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 28px;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 20px 80px;
  position: relative;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.hero-label {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

h1 {
  font-family: 'Crimson Pro', serif;
  font-size: 3.2rem;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero-subtitle {
  font-family: 'Crimson Pro', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Section headers */
h2 {
  font-family: 'Crimson Pro', serif;
  font-size: 1.9rem;
  font-weight: 600;
  margin: 56px 0 24px 0;
  color: var(--text);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 28px 0 12px 0;
}

p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

strong, b {
  color: var(--text);
  font-weight: 600;
}

em {
  font-style: italic;
  color: var(--text);
}

/* Intro section */
.intro {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 48px;
  border-left: 4px solid var(--accent);
}

.intro p {
  color: var(--text);
  font-size: 1.05rem;
}

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

.highlight-box {
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}

.highlight-box p {
  color: var(--text);
  margin: 0;
}

/* Chaos list */
.chaos-list {
  background: var(--surface);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 24px 0;
}

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

.chaos-list li {
  padding: 12px 0;
  padding-left: 28px;
  position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.chaos-list li:last-child {
  border-bottom: none;
}

.chaos-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 12px;
  height: 12px;
  background: var(--warning);
  border-radius: 2px;
  transform: rotate(45deg);
}

.chaos-list li strong {
  color: var(--accent-light);
}

/* Mapping table */
.mapping-section {
  margin: 40px 0;
}

.mapping-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.mapping-table th {
  background: var(--surface);
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent);
}

.mapping-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.mapping-table tr:hover td {
  background: var(--bg-light);
}

/* Blockquote */
blockquote {
  background: var(--surface);
  border-left: 4px solid var(--warning);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 8px 8px 0;
}

blockquote p {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
  margin: 0;
}

/* Why not repave section */
.repave-problems {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.repave-item {
  background: var(--bg-light);
  padding: 14px 18px;
  border-radius: 8px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.repave-icon {
  color: var(--warning);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.repave-item p {
  margin: 0;
}

/* Phase cards */
.phase-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 28px;
  margin: 32px 0;
  border-top: 4px solid var(--accent);
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.phase-number {
  background: var(--accent);
  color: var(--bg);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.phase-title {
  font-family: 'Crimson Pro', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.phase-duration {
  background: var(--bg);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.phase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.phase-box {
  background: var(--bg);
  padding: 16px;
  border-radius: 8px;
}

.phase-box.problem {
  border-left: 3px solid var(--warning);
}

.phase-box.fix {
  border-left: 3px solid var(--success);
}

.phase-box-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.phase-box.problem .phase-box-label {
  color: var(--warning);
}

.phase-box.fix .phase-box-label {
  color: var(--success);
}

.phase-box p {
  margin: 0;
  font-size: 0.95rem;
}

.code-terms {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
}

.code-terms-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.code-terms ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.code-terms li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.code-terms li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.phase-result {
  background: var(--success-light);
  border-left: 3px solid var(--success);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin-top: 16px;
}

.phase-result-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--success);
  margin-bottom: 4px;
}

.phase-result p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

/* Bottom line section */
.bottom-line {
  background: linear-gradient(135deg, var(--accent) 0%, #c4623a 100%);
  border-radius: 12px;
  padding: 36px;
  margin: 48px 0;
  color: white;
}

.bottom-line h2 {
  color: white;
  margin: 0 0 24px 0;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.comparison-box {
  background: rgba(0,0,0,0.2);
  padding: 20px;
  border-radius: 8px;
}

.comparison-label {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.comparison-text {
  font-size: 1rem;
  line-height: 1.5;
}

/* Alternative warning */
.alternative {
  background: var(--warning-light);
  border: 1px solid var(--warning);
  border-radius: 8px;
  padding: 24px;
  margin: 40px 0;
  text-align: center;
}

.alternative h3 {
  color: var(--warning);
  margin: 0 0 12px 0;
}

.alternative p {
  margin: 8px 0;
  color: var(--text);
}

.alternative .punchline {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 1.1rem;
  margin-top: 16px;
  color: var(--warning);
}

/* Final quote */
.final-quote {
  text-align: center;
  padding: 48px 20px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.final-quote p {
  font-family: 'Crimson Pro', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  h1 { font-size: 2.2rem; }
  .phase-grid, .comparison-grid { grid-template-columns: 1fr; }
  .phase-header { flex-direction: column; align-items: flex-start; }
  .phase-duration { margin-top: 8px; }
}
