:root {
  --ink: #10231f;
  --muted: #53605d;
  --court: #087758;
  --clay: #ef6b2d;
  --line: rgba(16, 35, 31, 0.14);
  --paper: #fffdf8;
  --wash: #f2f7f0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

.seo-header,
.seo-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 22px 20px;
}

.brand {
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

.header-link,
.seo-footer a {
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 750;
  padding: 10px 14px;
  text-decoration: none;
}

main {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 20px 48px;
}

.lesson-hero {
  align-items: stretch;
  background: linear-gradient(135deg, rgba(8, 119, 88, 0.13), rgba(239, 107, 45, 0.12)), var(--wash);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  overflow: hidden;
}

.lesson-copy {
  align-self: center;
  padding: clamp(28px, 5vw, 56px);
}

.eyebrow,
.step-count {
  color: var(--court);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: 18px;
  max-width: 780px;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  letter-spacing: 0;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.lede {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 720px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-cta,
.secondary-cta {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
}

.primary-cta {
  background: var(--ink);
  color: white;
}

.secondary-cta {
  background: white;
  border: 1px solid var(--line);
}

.hero-figure {
  margin: 0;
  min-height: 100%;
}

.hero-figure img {
  display: block;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  width: 100%;
}

.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0 0;
}

.lesson-meta span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 750;
  padding: 9px 13px;
}

.steps-section,
.answer-section,
.practice-section,
.related-section {
  padding-top: 44px;
}

.step-list {
  display: grid;
  gap: 18px;
}

.step-card {
  align-items: stretch;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  display: grid;
  gap: 20px;
  grid-template-columns: 280px minmax(0, 1fr);
  overflow: hidden;
}

.step-card img {
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  width: 100%;
}

.step-card div {
  padding: 22px 22px 22px 0;
}

.step-card p,
.answer-section p,
.practice-section li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.step-card strong {
  color: var(--ink);
}

.answer-section {
  max-width: 840px;
}

.answer-section p {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 0;
  padding: 20px;
}

.practice-section {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.practice-section article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.practice-section ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.practice-section li strong {
  color: var(--ink);
}

.related-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.related-grid a {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-weight: 800;
  min-height: 88px;
  padding: 16px;
  text-decoration: none;
}

.seo-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  gap: 18px;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .seo-header,
  .seo-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .lesson-hero,
  .step-card,
  .practice-section,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-figure img {
    min-height: 280px;
  }

  .step-card div {
    padding: 0 18px 20px;
  }
}
