:root {
  color-scheme: light;
  --ink: #17231f;
  --muted: #5d6b66;
  --line: #dce5e0;
  --paper: #f7faf7;
  --white: #ffffff;
  --green: #1c7655;
  --green-dark: #124b39;
  --blue: #245b7a;
  --amber: #d99638;
  --soft-green: #eaf3ee;
  --soft-blue: #eaf2f6;
  --shadow: 0 24px 70px rgba(23, 35, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(220, 229, 224, 0.84);
  background: rgba(247, 250, 247, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav a,
.nav-action,
.feature-card a,
.topics a,
.shorts-meta a {
  text-decoration: none;
}

.nav a:hover,
.nav-action:hover,
.feature-card a:hover,
.topics a:hover,
.shorts-meta a:hover {
  color: var(--green);
}

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--green-dark);
  border-radius: 6px;
  color: var(--green-dark);
  font-size: 0.94rem;
  font-weight: 800;
}

.hero {
  width: min(1220px, calc(100% - 48px));
  min-height: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.78fr);
  align-items: end;
  gap: 48px;
  padding: 92px 0 42px;
}

.hero-copy {
  max-width: 730px;
}

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

h1 {
  margin-bottom: 22px;
  color: var(--green-dark);
  font-size: clamp(4rem, 8.8vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 680px;
  margin-bottom: 30px;
  color: #344540;
  font-size: clamp(1.12rem, 1.8vw, 1.4rem);
  line-height: 1.62;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.newsletter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--green-dark);
  border-radius: 6px;
  background: var(--green-dark);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.button-secondary {
  background: transparent;
  color: var(--green-dark);
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  border-radius: 8px;
  background: var(--soft-green);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.media-note {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(23, 35, 31, 0.14);
}

.media-note strong {
  color: var(--green-dark);
}

.media-note span {
  color: var(--muted);
  line-height: 1.45;
}

.featured,
.topics,
.guides,
.questions,
.shorts,
.about,
.newsletter,
.notice,
.site-footer {
  width: min(1220px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.featured,
.guides,
.questions,
.shorts {
  padding: 74px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}

.section-heading span,
.article-label,
.topic-number,
label {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading h2 {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--green-dark);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.feature-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(23, 35, 31, 0.08);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 1.18;
  border-radius: 8px;
  object-fit: cover;
}

.feature-card h3 {
  max-width: 630px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.feature-card p:not(.article-label) {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.feature-card a,
.topics a {
  color: var(--green-dark);
  font-weight: 850;
}

.topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 0 74px;
}

.topics article {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.topics article:nth-child(2) {
  background: var(--soft-blue);
}

.topics article:nth-child(3) {
  background: var(--soft-green);
}

.topic-number {
  margin-bottom: 42px;
}

.topics h2 {
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 1.5rem;
  line-height: 1.05;
}

.topics p {
  flex: 1;
  color: var(--muted);
  line-height: 1.58;
}

.guides,
.questions,
.about {
  border-top: 1px solid var(--line);
}

.guide-list {
  display: grid;
  gap: 16px;
}

.guide-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.guide-list article:nth-child(2) {
  background: var(--soft-blue);
}

.guide-list article:nth-child(3) {
  background: var(--soft-green);
}

.guide-list h3 {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--green-dark);
  font-size: clamp(1.65rem, 2.5vw, 2.45rem);
  line-height: 1.06;
}

.guide-list p:not(.article-label) {
  max-width: 920px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.62;
}

.guide-list a {
  align-self: end;
  margin-top: 12px;
  color: var(--green-dark);
  font-weight: 850;
  text-decoration: none;
}

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

.questions-grid article {
  min-height: 220px;
  padding: 22px;
  border-left: 3px solid var(--green);
  background: var(--white);
}

.questions-grid h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.2;
}

.questions-grid p {
  color: var(--muted);
  line-height: 1.58;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 48px;
  padding: 74px 0;
}

.about h2 {
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--green-dark);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1;
}

.about-copy {
  display: grid;
  gap: 18px;
}

.about-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.68;
}

.shorts {
  border-top: 1px solid var(--line);
}

.shorts-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  color: var(--muted);
}

.shorts-meta p {
  margin-bottom: 0;
  line-height: 1.5;
}

.shorts-meta a {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-weight: 850;
}

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

.short-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(23, 35, 31, 0.06);
}

.short-card a {
  display: grid;
  color: inherit;
  text-decoration: none;
}

.short-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--soft-green);
  object-fit: cover;
}

.short-card-missing-image a::before {
  content: "Mastering Essentials";
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(18, 75, 57, 0.94), rgba(36, 91, 122, 0.82)),
    var(--green-dark);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 850;
}

.short-card span {
  margin: 18px 18px 8px;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.short-card h3 {
  min-height: 92px;
  margin: 0;
  padding: 0 18px 20px;
  color: var(--ink);
  font-size: 1.14rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 34px;
  padding: 42px;
  border-radius: 8px;
  background: var(--green-dark);
  color: var(--white);
}

.newsletter h2 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 3vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.newsletter p {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.newsletter form {
  display: grid;
  gap: 10px;
}

.newsletter label {
  color: #f0c06e;
}

.signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.newsletter input {
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font: inherit;
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.64);
}

.form-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.45;
}

.newsletter button {
  border-color: var(--amber);
  background: var(--amber);
  color: #1f201a;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.notice {
  padding: 14px 0 34px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer span:first-child {
  color: var(--green-dark);
  font-weight: 850;
}

.site-footer span:last-child {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--green-dark);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 24px;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .hero,
  .feature-card,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .hero-media,
  .hero-media img {
    min-height: 420px;
  }

  .topics,
  .questions-grid,
  .shorts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-list article,
  .about {
    grid-template-columns: 1fr;
  }

  .guide-list article {
    align-items: start;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .featured,
  .topics,
  .guides,
  .questions,
  .shorts,
  .about,
  .newsletter,
  .notice,
  .site-footer {
    width: min(100% - 32px, 1220px);
  }

  .site-header {
    width: 100%;
    padding: 16px;
  }

  .brand {
    font-size: 0.96rem;
  }

  .nav-action {
    display: none;
  }

  h1 {
    font-size: clamp(3.1rem, 13.8vw, 3.55rem);
  }

  .hero-media,
  .hero-media img {
    min-height: 340px;
  }

  .section-heading {
    display: block;
  }

  .section-heading span {
    display: inline-block;
    margin-bottom: 10px;
  }

  .feature-card,
  .newsletter {
    padding: 20px;
  }

  .topics,
  .questions-grid,
  .shorts-grid {
    grid-template-columns: 1fr;
  }

  .guide-list article {
    padding: 22px;
  }

  .shorts-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .signup-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
