:root {
  --bg: #fffdf7;
  --paper: #ffffff;
  --ink: #153b2f;
  --muted: #5d6d68;
  --green: #0f5b46;
  --green-dark: #0a3e31;
  --teal: #2b9c95;
  --yellow: #f6d66f;
  --coral: #e96b61;
  --line: #dbe7df;
  --shadow: 0 18px 50px rgba(23, 58, 47, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 253, 247, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  color: var(--green);
  display: grid;
  line-height: 1;
  text-decoration: none;
}

.logo strong {
  font-size: 30px;
  letter-spacing: 0;
}

.logo span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 20px;
  justify-content: flex-end;
}

.main-nav a {
  color: #24483f;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.search-button {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  cursor: pointer;
  font-size: 22px;
  height: 40px;
  width: 40px;
}

.hero {
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.15fr);
  margin: 0 auto;
  max-width: 1220px;
  padding: clamp(38px, 7vw, 76px) clamp(18px, 4vw, 48px) 24px;
  position: relative;
}

.hero::after {
  background: #fff2b6;
  border: 1px solid #f0d978;
  box-shadow: 0 12px 24px rgba(68, 54, 15, 0.12);
  color: #4c4730;
  content: "Stuck? Start with the topic, not the whole syllabus.";
  display: block;
  font-size: 13px;
  font-weight: 700;
  max-width: 170px;
  padding: 18px;
  position: absolute;
  right: 10px;
  top: 28px;
  transform: rotate(8deg);
}

.eyebrow {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(42px, 5vw, 68px);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 22px;
}

h1 span {
  display: inline-block;
  position: relative;
}

h1 span::after {
  border: 3px solid var(--coral);
  border-radius: 55% 45% 50% 50%;
  content: "";
  inset: -2px -10px -4px -8px;
  position: absolute;
  transform: rotate(-2deg);
}

.hero__text {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
}

.button--primary {
  background: var(--green);
  border: 1px solid var(--green);
  color: white;
}

.button--secondary {
  background: white;
  border: 1px solid var(--green);
  color: var(--green);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span,
.chips span {
  background: #edf8f3;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

.finder-card {
  background: var(--paper);
  border: 1px solid #d2c4ac;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 32px);
  position: relative;
}

.finder-card__doodle {
  color: var(--coral);
  font-size: 26px;
  left: 18px;
  position: absolute;
  top: 14px;
}

.finder-card h2 {
  font-size: clamp(26px, 3vw, 38px);
  text-align: center;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 6px;
  text-underline-offset: 5px;
}

.finder-card > p {
  color: var(--muted);
  text-align: center;
}

.finder-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}

.finder-form label {
  display: grid;
  gap: 6px;
}

.finder-form span {
  color: #36564e;
  font-size: 13px;
  font-weight: 800;
}

select,
input {
  background: #fbfdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.finder-form__search {
  grid-column: 1 / 4;
}

.finder-form button {
  grid-column: 1 / 4;
  width: 100%;
}

.quick-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 20px;
}

.quick-actions a {
  background: #fbfdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  min-height: 62px;
  padding: 12px;
  text-align: center;
  text-decoration: none;
}

.quick-actions a:first-child {
  background: #e8f5ee;
  border-color: var(--green);
}

.ad-slot {
  align-items: center;
  background: white;
  border: 1px dashed #bfd0c9;
  border-radius: 8px;
  color: #74807c;
  display: grid;
  justify-items: center;
  margin: 20px auto 46px;
  max-width: 1120px;
  min-height: 76px;
  padding: 12px;
}

.ad-slot span {
  font-size: 13px;
  font-weight: 800;
}

.ad-slot small {
  font-size: 12px;
}

.subject-section,
.support-section {
  margin: 0 auto;
  max-width: 1220px;
  padding: 0 clamp(18px, 4vw, 48px) 52px;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2,
.support-card h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.subject-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}

.subject-card,
.support-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(23, 58, 47, 0.08);
  padding: 24px;
}

.subject-card__icon {
  align-items: center;
  background: #e8f5ee;
  border-radius: 999px;
  color: var(--green);
  display: flex;
  font-size: 22px;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  margin-bottom: 16px;
  width: 52px;
}

.subject-card h3 {
  font-size: 22px;
}

.subject-card p,
.support-card p,
.site-footer p {
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.subject-card a {
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.support-section {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.support-card--student {
  border-left: 5px solid var(--teal);
}

.support-card--teacher {
  border-left: 5px solid var(--yellow);
}

.site-footer {
  align-items: center;
  background: var(--green-dark);
  color: white;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 28px clamp(18px, 4vw, 56px);
}

.site-footer p {
  color: #cfe0da;
  margin-bottom: 0;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a {
  color: white;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero::after {
    display: none;
  }

  .subject-grid,
  .support-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
  }

  h1 {
    font-size: 42px;
  }

  .finder-form,
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .finder-form__search,
  .finder-form button {
    grid-column: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
