:root { color: #173e3a; background: #fffaf0; font-family: 'Trebuchet MS', Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.page { width: min(1365px, calc(100% - 96px)); margin: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; border-bottom: 2px solid #173e3a; }
.brand { display: flex; align-items: center; gap: 16px; font-size: 36px; font-weight: 900; letter-spacing: -1.2px; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 22px); gap: 3px; transform: rotate(-2deg); }
.brand-mark i { height: 22px; border-radius: 6px; background: #ffad98; }
.brand-mark i:nth-child(2) { background: #ffe28a; }
.brand-mark i:nth-child(3) { background: #92dec1; }
.brand-mark i:nth-child(4) { background: #c5a7e8; }
.site-header p { margin: 0; font-size: 22px; font-weight: 700; }
.site-header p span { margin: 0 5px; }
.welcome { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: center; padding: 24px 0 28px; }
h1 { font-size: clamp(44px, 5.7vw, 86px); line-height: 1.08; letter-spacing: -3px; margin: 0; font-weight: 900; }
.welcome p { font-size: clamp(18px, 1.8vw, 27px); line-height: 1.4; margin: 20px 0 0; font-weight: 700; }
.backpack { display: block; width: 100%; height: auto; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 8px 0 20px; }
.section-heading h2 { margin: 0; font-size: clamp(24px, 2.6vw, 39px); letter-spacing: -.8px; }
.section-heading p { font-size: 26px; font-weight: 700; margin: 0; white-space: nowrap; }
.catalogue { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.subject { display: flex; align-items: center; gap: 28px; padding: 24px 28px; color: inherit; text-decoration: none; border-radius: 26px; box-shadow: 0 4px 0 #173e3a; transition: transform 180ms ease, box-shadow 180ms ease; }
.math { background: #ffb9a6; }
.social { background: #dec9f7; }
.health { background: #ffe99b; }
.science { background: #b6eccd; }
.subject-icon { flex: 0 0 150px; width: 150px; height: 150px; display: grid; place-items: center; border-radius: 28px; background: #fffaf0; }
.subject-icon svg { width: 120px; height: 120px; }
.subject h3 { margin: 0; font-size: clamp(24px, 2.5vw, 37px); letter-spacing: -.9px; line-height: 1.15; }
.subject p { font-size: 22px; line-height: 1.4; margin: 10px 0 20px; }
.cta { display: flex; align-items: center; gap: 12px; font-size: 23px; font-weight: 700; }
.cta svg { width: 28px; height: 22px; transition: transform 180ms ease; }
.subject:hover { transform: translateY(-4px); box-shadow: 0 8px 0 #173e3a; }
.subject:hover .cta svg { transform: translateX(5px); }
.subject:active { transform: translateY(2px); box-shadow: 0 2px 0 #173e3a; }
.subject:focus-visible { outline: 4px solid #173e3a; outline-offset: 6px; }
footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #6b8980; margin: 38px 0 0; padding: 16px 0 22px; font-size: 16px; }
footer p { margin: 0; }
@media (max-width: 1200px) {
  .page { width: calc(100% - 56px); }
  .welcome { grid-template-columns: 1fr 260px; }
  .subject { gap: 18px; padding: 20px; }
  .subject-icon { flex-basis: 100px; width: 100px; height: 110px; border-radius: 22px; }
  .subject-icon svg { width: 86px; height: 86px; }
  .subject p { font-size: 18px; }
  .cta { font-size: 20px; }
}
@media (max-width: 760px) {
  .page { width: calc(100% - 40px); }
  .site-header { padding: 18px 0; gap: 12px; }
  .brand { font-size: 25px; gap: 10px; letter-spacing: -.8px; }
  .brand-mark { grid-template-columns: repeat(2, 14px); }
  .brand-mark i { height: 14px; border-radius: 4px; }
  .site-header p { font-size: 14px; max-width: 92px; line-height: 1.4; text-align: right; }
  .site-header p span { display: none; }
  .welcome { grid-template-columns: 1fr 140px; padding: 28px 0; gap: 0; }
  h1 { font-size: 42px; letter-spacing: -1.8px; }
  .welcome p { font-size: 17px; max-width: 380px; font-weight: 400; }
  .section-heading { display: block; margin: 2px 0 18px; }
  .section-heading h2 { font-size: 25px; }
  .section-heading p { font-size: 15px; margin-top: 8px; }
  .catalogue { grid-template-columns: 1fr; gap: 18px; }
  .subject { gap: 22px; padding: 20px; border-radius: 22px; }
  .subject h3 { font-size: 25px; }
  .subject p { margin: 8px 0 12px; }
  .cta { font-size: 18px; }
  footer { flex-direction: column; gap: 8px; font-size: 13px; margin-top: 30px; }
}
@media (max-width: 480px) {
  .welcome { display: block; padding: 30px 0 24px; }
  h1 { font-size: 40px; max-width: 310px; }
  .backpack { display: none; }
  .welcome p { max-width: 310px; margin-top: 14px; }
  .subject { gap: 16px; padding: 18px 16px; }
  .subject-icon { flex-basis: 76px; width: 76px; height: 92px; border-radius: 18px; }
  .subject-icon svg { width: 68px; height: 68px; }
  .subject h3 { font-size: 23px; }
  .subject p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .subject, .cta svg { transition: none; }
}
