@font-face {
  font-family: "MyExam Serif";
  src: url("fonts/myexam-serif.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "MyExam Sans";
  src: url("fonts/myexam-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f5ee;
  --ink: #302b25;
  --muted: #686258;
  --accent: #a94a32;
  --pine: #345345;
  --line: #dcd5c7;
  --serif: "MyExam Serif", "Noto Serif SC", "Songti SC", SimSun, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "MyExam Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
button[aria-disabled="true"] { cursor: default; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: #352e22; background: #f2d8ac; }
.shell { width: min(1248px, calc(100% - clamp(64px, 11vw, 168px))); margin-inline: auto; }
.skip-link { position: absolute; z-index: 2; left: 16px; top: 10px; padding: 8px 14px; background: #fffaf1; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.mastline { display: flex; justify-content: space-between; align-items: center; gap: 28px; min-height: 78px; }
.wordmark { display: inline-flex; align-items: center; width: fit-content; gap: 8px; font: 600 1.82rem/1.05 Georgia, var(--serif); color: #302f29; letter-spacing: -.047em; }
.wordmark img { width: 34px; height: 34px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 39px; font-size: .9rem; color: #59564e; }
.main-nav a { padding-block: 8px; }
.main-nav a:hover, .text-link:hover { color: var(--accent); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 11px 25px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.5;
}
.button-primary { background: var(--accent); color: #fffbf2; }
.button-outline { background: transparent; color: var(--accent); border-color: #bd9683; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  align-items: center;
  gap: clamp(30px, 4.3vw, 72px);
  padding-block: clamp(58px, 5.7vw, 89px) clamp(48px, 5.2vw, 78px);
}
.hero-copy { padding-bottom: 18px; }
.eyebrow { display: flex; gap: 12px; align-items: center; color: var(--accent); font: 400 .8125rem/1.7 var(--sans); letter-spacing: .095em; }
.eyebrow::before { content: ""; width: 20px; height: 4px; border-block: 1px solid #b4775e; }
h1, h2 { font-family: var(--serif); font-weight: 450; }
.hero h1 { margin-top: 24px; font-size: clamp(3.125rem, 4.6vw, 4.25rem); font-weight: 500; line-height: 1.42; letter-spacing: -.05em; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
.hero h1 em { position: relative; display: inline-block; }
.hero h1 em::after {
  content: "";
  position: absolute;
  bottom: -.065em;
  left: 1%;
  width: 81%;
  height: .09em;
  background: #cf9564;
  opacity: .82;
  clip-path: polygon(0 74%, 11% 44%, 36% 18%, 65% 7%, 88% 18%, 100% 44%, 83% 37%, 59% 36%, 28% 57%, 1% 100%);
}
.hero-lead { margin-top: 29px; color: #686d60; font-size: .9375rem; line-height: 2.1; }
.hero-actions { display: flex; align-items: center; gap: 27px; margin-top: 30px; }
.text-link { display: inline-block; width: fit-content; border-bottom: 1px solid #b8a491; color: #675345; font-size: .9rem; line-height: 1.85; }
.text-link:hover { border-color: currentColor; }
.hero-visual { position: relative; min-width: 0; margin: 1px 5px 0 0; }
.hero-photo {
  position: relative;
  isolation: isolate;
  padding: 6px;
  border: 1px solid #d9d2c4;
  border-radius: 3px;
  background: #fffcf5;
  box-shadow: 0 12px 28px -17px #503b2759;
  transform: rotate(.65deg);
}
.hero-photo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 5px -5px -5px 5px;
  background: #e4daca;
  border: 1px solid #d3c7b5;
  transform: rotate(-1.7deg);
}
.hero-photo img { width: 100%; aspect-ratio: 1.43; object-fit: cover; object-position: 52% 48%; }
.photo-caption { display: flex; gap: 10px; align-items: center; margin: 21px 4px 0; color: #706458; font: 400 .875rem/1.6 var(--serif); letter-spacing: .035em; }
.photo-caption::before { content: ""; width: 20px; height: 1px; background: #b99c84; }

.features {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr);
  align-items: center;
  gap: clamp(54px, 7vw, 108px);
  padding-block: clamp(68px, 6.2vw, 95px) clamp(76px, 7.2vw, 110px);
  border-top: 1px solid var(--line);
}
.features-copy { grid-column: 2; grid-row: 1; }
.features h2 { margin-top: 19px; font: 400 clamp(2rem, 3.2vw, 2.875rem)/1.5 var(--serif); letter-spacing: -.045em; }
.feature-list { margin-top: 29px; }
.feature-list > div { padding: 16px 0; border-top: 1px solid var(--line); }
.feature-list > div:last-child { padding-bottom: 0; }
.feature-list dt { color: var(--ink); font: 500 .9375rem/1.7 var(--sans); }
.feature-list dd { margin-top: 5px; max-width: 32em; color: #686d60; font-size: .875rem; line-height: 2.1; }
.feedback-link { margin-top: 8px; color: var(--accent); }
.reading-preview {
  position: relative;
  isolation: isolate;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding: clamp(20px, 2.6vw, 40px) clamp(20px, 3.1vw, 48px) 18px;
  border: 1px solid #ded7c8;
  background-color: #e9e3d4;
  background-image: repeating-linear-gradient(0deg, transparent 0 2px, #fbf7eb55 2px 3px), repeating-linear-gradient(90deg, transparent 0 3px, #afa28a1a 3px 4px);
}
.question-paper {
  position: relative;
  padding: clamp(20px, 2vw, 30px) clamp(20px, 2.2vw, 34px) 18px;
  background: linear-gradient(90deg, #f4efdf, #fffdf6 3%, #fffdf6 98%, #faf6e9);
  border: 1px solid #d4cebd;
  border-radius: 2px;
  box-shadow: 2px 3px 0 -1px #fefbf1, 3px 4px 0 -1px #c3baa4, 4px 6px 0 -1px #f5f0e2, 8px 12px 20px -9px #544b3747;
}
.question-paper::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 27px;
  width: 17px;
  height: 17px;
  background: #9f513a;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%);
}
.paper-toolbar, .paper-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #666554; font-size: .8125rem; }
.paper-heading { font-weight: 500; letter-spacing: .035em; }
.highlight-control { position: relative; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.highlight-control input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch-track { width: 29px; height: 17px; border-radius: 9px; background: #a4a497; transition: background .16s; }
.switch-track::after { content: ""; display: block; width: 11px; height: 11px; margin: 3px; border-radius: 50%; background: #fffdf6; transition: transform .16s; }
.highlight-control input:checked + .switch-track { background: var(--pine); }
.highlight-control input:checked + .switch-track::after { transform: translateX(12px); }
.highlight-control input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 3px; }
.question-paper h3 { margin-top: 11px; font: 500 clamp(1.65rem, 2vw, 2rem)/1.6 var(--serif); letter-spacing: .025em; }
.paper-illustration-wrap { margin-block: 6px 15px; padding: 5px; background: #f8f6ed; border: 1px solid #eeeadf; }
.question-illustration { width: 100%; height: clamp(165px, 14.7vw, 228px); object-fit: contain; mix-blend-mode: multiply; }
.answer-label { color: #685e4f; font-size: .8125rem; font-weight: 500; }
.sample-answer { margin-top: 6px; color: #3f4438; font: 400 1.05rem/1.92 var(--serif); }
.sample-answer mark { background: transparent; color: inherit; }
.question-paper:has(input:checked) mark { background: linear-gradient(transparent 32%, #f3dfa4 32% 94%, transparent 94%); }
.paper-bottom { margin-top: 16px; padding-top: 10px; border-top: 1px solid #e3ddce; }
.reading-preview figcaption { margin-top: 14px; text-align: center; color: #635d50; font-size: .8125rem; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .mastline { min-height: 64px; gap: 12px; }
  .main-nav { gap: 17px; }
  .hero h1 { font-size: clamp(2.5rem, 9vw, 4.25rem); }
  .wordmark { font-size: 1.5rem; gap: 4px; }
  .wordmark img { width: 30px; height: 30px; }
  .hero, .features { grid-template-columns: 1fr; gap: 30px; padding-block: 40px; }
  .hero-copy { padding: 0; }
  .hero-visual { margin-right: 4px; }
  .features-copy, .reading-preview { grid-column: auto; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* The courses share a binding, with a different cloth and foil impression for each subject. */
.catalog {
  padding-block: clamp(64px, 6.6vw, 98px) clamp(67px, 6.9vw, 102px);
  color: #f3eee0;
  background: radial-gradient(ellipse at 15% 16%, #354b3f, transparent 66%), #253b31;
}
.catalog .section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #d9ddc041;
}
.catalog .section-heading h2 {
  margin: 0;
  color: #fff8e7;
  font: 400 clamp(2rem, 3.1vw, 2.8rem)/1.35 var(--serif);
  letter-spacing: -.04em;
}
.catalog .section-heading p {
  margin: 0;
  color: #d4d7c9;
  font-size: .9375rem;
}
.courses {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 2.7vw, 42px);
  margin: 35px 0 0;
  padding: 0 4px 8px 0;
  list-style: none;
}
.course {
  --cloth: #a05240;
  --foil: #ffebc6;
  --impression: #edc499;
  display: grid;
  grid-template-rows: auto minmax(3.15em, auto) minmax(52px, 1fr) auto;
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: clamp(246px, 21vw, 300px);
  padding: 21px clamp(15px, 1.45vw, 23px) 18px clamp(23px, 2vw, 32px);
  border: 1px solid #0002;
  border-radius: 2px 5px 5px 2px;
  background-color: var(--cloth);
  background-image:
    linear-gradient(100deg, #fff1, transparent 37%, #0000000c),
    repeating-linear-gradient(0deg, #ffffff08 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, #0000000b 0 1px, transparent 1px 3px);
  color: var(--foil);
  box-shadow: inset 0 1px 0 #fff3, 1px 1px 1px #0002, 5px 10px 14px #0d170e3b;
}
.course.strategy { --cloth: #536c60; --foil: #fff3d6; --impression: #d4cca4; }
.course.management { --cloth: #536a74; --foil: #f8f1db; --impression: #c8d7ce; }
.course.theory { --cloth: #dfcfac; --foil: #504330; --impression: #887950; }
.course::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 13px;
  border-right: 1px solid #2e241c35;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, #0002, #fff1 32%, #fff0 64%, #0001 90%);
  box-shadow: 1px 0 0 #fff2;
}
.course::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 2px;
  right: -2px;
  top: 100%;
  height: 4px;
  border: 1px solid #988d79;
  border-radius: 0 0 4px 2px;
  background: linear-gradient(#d6cfbd, #ede6d2 48%, #c8bfaa 51%, #e3dccb 75%);
  box-shadow: 0 2px 0 var(--cloth);
}
.cover-meta, .cover-foot {
  display: block;
  color: inherit;
  font: 400 .8125rem/1.6 var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
}
.cover-meta { letter-spacing: .035em; }
.course h3 {
  align-self: start;
  margin: 13px 0 0;
  color: inherit;
  font: 500 clamp(1.13rem, 1.7vw, 1.46rem)/1.55 var(--serif);
  letter-spacing: .015em;
  text-wrap: balance;
}
.cover-rule {
  position: relative;
  align-self: center;
  justify-self: center;
  width: 76px;
  height: 43px;
  margin-block: 9px;
  color: var(--impression);
}
.course.theory h3 { word-break: keep-all; overflow-wrap: anywhere; text-wrap: wrap; }
.cover-rule::before, .cover-rule::after {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
  box-shadow: 0 1px 1px #00000017;
}
.marketing .cover-rule::before, .marketing .cover-rule::after {
  width: 41px;
  height: 41px;
  top: 1px;
  border-radius: 50%;
}
.marketing .cover-rule::before { left: 3px; }
.marketing .cover-rule::after { right: 3px; }
.strategy .cover-rule::before, .strategy .cover-rule::after {
  top: 7px;
  width: 30px;
  height: 30px;
  transform: rotate(45deg);
}
.strategy .cover-rule::before { left: 12px; }
.strategy .cover-rule::after { right: 12px; }
.management .cover-rule::before {
  inset: 4px 13px;
  transform: skewY(-14deg);
  background: linear-gradient(90deg, transparent 48%, currentColor 49% 50%, transparent 51%);
}
.management .cover-rule::after {
  inset: 12px 22px -4px 5px;
  transform: skewY(-14deg);
}
.theory .cover-rule::before, .theory .cover-rule::after {
  width: 33px;
  height: 32px;
  top: 5px;
}
.theory .cover-rule::before { left: 5px; border-radius: 1px 9px 0 1px; transform: skewY(10deg); }
.theory .cover-rule::after { right: 5px; border-radius: 9px 1px 1px 0; transform: skewY(-10deg); }
.cover-foot {
  margin: 0;
  padding-top: 9px;
  border-top: 1px solid color-mix(in srgb, currentColor 42%, transparent);
}

.download { color: #333c33; background: #f5ede0; border-bottom: 1px solid #dbd4c6; }
.download-content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 2.3vw, 35px);
  padding-block: clamp(58px, 6.8vw, 102px);
  text-align: left;
}
.download .app-icon {
  width: clamp(58px, 5vw, 76px);
  height: auto;
  margin: 0;
  border-radius: 24%;
  border: 1px solid #d9cbb8;
  box-shadow: 0 5px 11px #8f6f4b13;
}
.download h2 { color: #343c31; font: 400 clamp(1.9rem, 2.8vw, 2.7rem)/1.4 var(--serif); letter-spacing: -.045em; }
.download h2 em { color: #994b38; font-style: normal; }
.download-description { margin-top: 8px; color: #655e52; font-size: 1rem; }
.download-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.download-actions .button { min-width: 130px; min-height: 45px; padding: 10px 19px; font-size: .875rem; }
.download-actions .button-primary { color: #fff7ed; background: #9a503d; border-color: #9a503d; }
.download-actions .button-outline { color: #7b4937; border-color: #bda58c; background: transparent; }
#download-status { margin-top: 10px; color: #73695a; font-size: .8125rem; text-align: right; }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 26px;
  min-height: 83px;
  padding-block: 21px;
}
.footer .wordmark { flex-shrink: 0; gap: 7px; font-size: 1.375rem; }
.footer .wordmark img { width: 25px; height: 25px; }
.footer nav, .footer-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 15px; }
.footer-meta { justify-content: flex-end; padding-right: 44px; color: #746d62; font-size: .75rem; }
.footer-meta > * { white-space: nowrap; }
.footer a:hover { color: #8f4937; }
.back-top {
  position: fixed;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fffbf2;
  box-shadow: 0 5px 15px #59352730;
  font: 400 1.5rem/1 Georgia, serif;
}
.back-top:hover { background: #8d402d; }
.back-top[hidden] { display: none; }

.legal-header { border-bottom: 1px solid var(--line); }
.legal-header-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 84px; }
.legal-back { color: var(--accent); font-size: .8125rem; }
.legal-main { width: min(820px, calc(100% - 44px)); margin-inline: auto; padding-block: 68px 100px; }
.legal-date { margin-bottom: 13px; color: var(--accent); font-size: .75rem; letter-spacing: .08em; }
.legal-main h1 { margin-bottom: 42px; font: 400 clamp(2.25rem, 4.5vw, 3.25rem)/1.35 var(--serif); letter-spacing: -.04em; }
.legal-section { padding-block: 27px; border-top: 1px solid var(--line); }
.legal-section h2 { margin-bottom: 12px; font: 500 1.25rem/1.6 var(--serif); }
.legal-section p { color: #6c6158; font-size: .875rem; line-height: 2.1; }
.legal-footer { border-top: 1px solid var(--line); padding: 25px 22px 35px; color: #746d62; font-size: .75rem; text-align: center; }

@media (min-width: 761px) and (max-width: 1000px) {
  .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course { min-height: 240px; }
  .download-actions .button { min-width: 100px; }
}
@media (max-width: 760px) {
  .catalog .section-heading { display: block; }
  .catalog .section-heading p { margin-top: 8px; }
  .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 15px; }
  .course { padding: 17px 13px 13px 20px; }
  .course h3 { font-size: 1.07rem; }
  .download-content { grid-template-columns: auto minmax(0, 1fr); }
  .download-controls { grid-column: 1 / -1; }
  #download-status { text-align: left; }
  .footer { flex-wrap: wrap; gap: 10px; }
  .footer-meta { justify-content: flex-start; }
  .back-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
  .legal-header-inner { min-height: 72px; }
  .legal-main { padding-block: 46px 72px; }
  .legal-main h1 { margin-bottom: 28px; }
  .legal-section { padding-block: 22px; }
  .legal-section h2 { font-size: 1.125rem; }
}
