.home-refresh {
  --home-gutter: clamp(16px, 3vw, 72px);
  --home-ink: #0c2147;
  --home-teal: #005e64;
}
.welcome, .home-years, .home-exams {
  color: var(--home-ink);
  padding: clamp(20px, 2vw, 40px) var(--home-gutter);
  scroll-margin-top: 85px;
}
.welcome { position: relative; isolation: isolate; background: #fff3dc; overflow: hidden; }
.welcome-art {
  position: absolute; inset: 0 0 0 auto; z-index: -1;
  height: 100%; width: 55%; object-fit: cover;
  mask-image: linear-gradient(to right, transparent, black 13%);
}
.welcome-copy { width: 49%; padding-block: clamp(8px, 1.1vw, 24px); }
.welcome-copy > span { display: inline-block; background: #ffda89; padding: 5px 15px; border-radius: 24px; font-weight: 900; }
.welcome-copy h1 { margin: 16px 0 10px; font: 800 clamp(32px, 4.05vw, 80px)/1.04 Sora, sans-serif; letter-spacing: -.055em; color: inherit; }
.welcome-copy p { margin: 0; font-size: clamp(16px, 1.4vw, 24px); line-height: 1.5; }
.welcome-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.welcome-links a { padding: 11px 22px; border: 2px solid var(--home-teal); border-radius: 11px; font-weight: 900; background: var(--home-teal); color: white; text-decoration: none; }
.welcome-links a + a { background: #fffdfa; color: var(--home-teal); }
.home-years { background: #e0f3e8; }
.home-exams { background: #fffbf4 !important; }
.home-years h2, .home-exams h2 { margin: 0 0 14px; color: inherit; font: 750 clamp(26px, 2.6vw, 46px)/1.15 Sora, sans-serif; letter-spacing: -.045em; }
.home-years-grid, .home-exams-grid { display: grid; gap: clamp(8px, 1vw, 19px); }
.home-years-grid { grid-template-columns: repeat(7,minmax(0,1fr)); }
.home-years-grid a, .home-exams-grid a { text-decoration: none; color: inherit; border-radius: 15px; overflow: hidden; }
.home-years-grid a { display: grid; align-content: end; text-align: center; background: #fffaef; padding: 7px 5px 16px; box-shadow: 0 3px 8px #184b3620; }
.home-years-grid img { width: 100%; aspect-ratio: 1.45; object-fit: contain; mix-blend-mode: multiply; }
.home-years-grid strong { font-size: clamp(16px,1.6vw,31px); line-height: 1.3; font-weight: 900; }
.home-exams-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.home-exams-grid a { display: flex; align-items: center; justify-content: space-between; padding: 10px 3% 10px 5%; gap: 8px; min-height: 104px; }
.home-exams-grid span { font-size: clamp(16px,1.35vw,25px); }
.home-exams-grid strong { display: block; font-size: clamp(20px,2vw,36px); line-height: 1.15; }
.home-exams-grid img { width: 35%; aspect-ratio: 1.35; object-fit: contain; mix-blend-mode: multiply; }
.exam-naplan { background: #ccecf4; }
.exam-oc { background: #e2edcd; }
.exam-selective { background: #ffdec8; }
:is(.home-years-grid,.home-exams-grid,.welcome-links) a:hover strong { text-decoration: underline; }
:is(.home-years-grid,.home-exams-grid,.welcome-links) a:focus-visible { outline: 3px solid #006c7c; outline-offset: 3px; }
@media (max-width: 960px) {
  .home-years-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .welcome { display: flex; flex-direction: column-reverse; padding-bottom: 0; }
  .welcome-copy { width: 100%; }
  .welcome-art { position: static; width: calc(100% + 2 * var(--home-gutter)); margin-inline: calc(-1 * var(--home-gutter)); max-width: none; height: auto; max-height: 225px; mask-image: linear-gradient(transparent, black 12%); }
  .home-years-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-exams-grid { grid-template-columns: 1fr; }
  .home-exams-grid img { width: 100px; }
}
