:root {
  color-scheme: light;
  --paper: #f7f8f3;
  --surface: #fff;
  --ink: #18271f;
  --muted: #46584c;
  --accent: #24553f;
  --line: #d4dfd6;
  --panel: #e8efe6;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid #2d7354; outline-offset: 4px; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
p { line-height: 1.65; color: var(--muted); }

.shell { width: min(100% - 3rem, 69rem); margin-inline: auto; }
.home-page .shell { width: min(100% - clamp(1.25rem, 5vw, 3.5rem), 50% + 28rem); }
.skip-link {
  position: absolute;
  top: .5rem;
  left: .5rem;
  padding: .75rem 1rem;
  background: var(--surface);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding-block: .75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 2.25rem;
  height: 2.25rem;
  border-radius: .5rem;
  background: var(--accent);
  color: white;
  font-family: Georgia, serif;
  font-size: 1rem;
}
.header-link { font-size: .9rem; white-space: nowrap; }

.home-header-controls, .home-menu:not([hidden]), .home-audience {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.home-header-controls { justify-content: flex-end; gap: .75rem 1.5rem; }
.home-menu { gap: .5rem 1rem; }
.home-audience { gap: .5rem; }
.home-audience .button { font: inherit; font-size: .9rem; font-weight: 650; }

.intro {
  max-width: 52rem;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.home-page .intro { max-width: none; }
.intro > p { font-size: 1.075rem; }
.intro p + p { margin-top: .75rem; }
.intro-topic { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.home-page main > section + section { margin-block-start: 1.5rem; }
.home-page .intro-topic { margin-block-start: clamp(3rem, 5vw, 4rem); }
.home-page main > section + section,
.home-page .intro-topic { padding-block-start: 2.5rem; }
.intro-topic h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-bottom: .65rem; }
.intro-topic ul { padding-inline-start: 1.25rem; margin-block: .75rem; color: var(--muted); line-height: 1.65; }
.intro-topic li + li { margin-top: .4rem; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 400; }
h1 {
  font-size: clamp(2.9rem, 6.7vw, 5.5rem);
  line-height: 1.01;
  letter-spacing: -.055em;
  margin-bottom: 1.5rem;
}
.intro h1 { font-size: clamp(1.625rem, 3.4vw, 2.75rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.55rem); line-height: 1.15; letter-spacing: -.025em; }
h3 { font-size: 1.85rem; line-height: 1.15; letter-spacing: -.02em; }
h4 { font-size: 1.125rem; line-height: 1.4; }
.intro-copy p { max-width: 38rem; font-size: 1.075rem; }
.intro-copy p + p { margin-top: .75rem; }
.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
  margin-top: 1.25rem;
}
.guide-subheading { margin-top: 2rem; }

.exam-overview {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
}

.exam-selection, .detail-content {
  border-top: 1px solid var(--line);
  padding-block: 2rem 2.75rem;
}
.exam-selection, .detail-content { scroll-margin-top: 1rem; }
.journey {
  max-width: 52rem;
  margin: 1.25rem 0 0;
  padding-inline-start: 1.75rem;
}
.journey li { padding-inline-start: .5rem; }
.journey li + li { margin-top: 1.25rem; }
.journey li::marker { color: var(--accent); font-weight: 700; }
.journey h3 { margin-bottom: .35rem; font-size: 1.45rem; }
.journey a { display: inline-block; margin-top: .4rem; }
.score-example { margin-block: 1rem; }
.score-example p { margin-top: .5rem; }
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}
.choice p { flex: 1; }
.choice .button { margin-top: .55rem; }
.format-card p { flex: initial; }
.format-facts { font-weight: 650; }
.intro-choices .choice { border-top: 3px solid var(--accent); }
.intro-choices .choice h3 { font-size: clamp(1.35rem, 2.6vw, 1.65rem); }
.intro-choices .format-facts { color: var(--accent); }
.intro-choices .choice p + p { margin-top: 0; }
.test-card-details { display: grid; gap: .5rem; }
.test-card-details dt { color: var(--accent); font-weight: 650; }
.test-card-details dd { color: var(--muted); line-height: 1.5; }
.test-duration {
  padding: .2rem .65rem;
  border-radius: .45rem;
  background: var(--panel);
  font-size: 1.075rem;
  line-height: 1.4;
}
.after-choices { margin-top: 1.25rem; }
.delivery-choices, .application-examples { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.skill-choices { list-style: none; padding: 0; }
.skill-choice { height: 100%; color: var(--ink); text-decoration: none; }
.skill-choice:hover { background: var(--panel); border-color: var(--accent); }
.skill-label {
  font-family: Georgia, serif;
  font-size: 1.85rem;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.skill-summary { color: var(--muted); line-height: 1.5; }
.intro-copy .exam-label { margin-bottom: .75rem; font-weight: 650; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .6rem 1rem;
  border: 1px solid var(--accent);
  border-radius: .55rem;
  font-weight: 650;
  text-decoration: none;
  line-height: 1.4;
}
.button-primary { background: var(--accent); color: white; }
.button-primary:hover { background: #183e2d; border-color: #183e2d; }
.button-outline:hover { background: var(--panel); }

.detail-intro { padding-block: clamp(3rem, 7vw, 5rem); }
.detail-content > p { margin-block: 1.25rem; }
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.2rem 1.6rem;
  font-size: .9rem;
}

.lesson-intro { padding-bottom: 2.5rem; }
.lesson { max-width: 48rem; }
.lesson-heading {
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}
.lesson-heading p, .lesson-section h3 + p { margin-top: .75rem; }
.lesson-section { margin-top: 2rem; scroll-margin-top: 1rem; }
.lesson-steps { margin: 1rem 0 0; padding-inline-start: 1.5rem; }
.lesson-steps li { padding-inline-start: .25rem; }
.lesson-steps li + li { margin-top: .8rem; }
.lesson-steps li::marker { color: var(--accent); font-weight: 700; }
.student-task > p + p, .student-task > ul + p { margin-top: .75rem; }
.student-task > ul { line-height: 1.65; padding-inline-start: 1.25rem; }
.student-task audio { display: block; width: 100%; max-width: 26rem; margin-top: 1rem; }
.lesson-passage {
  margin-block: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--surface);
}
.lesson-passage p { margin-top: .55rem; }
.lesson-questions, .lesson-answers { line-height: 1.55; padding-inline-start: 1.5rem; }
.lesson-questions li + li, .lesson-answers li + li { margin-top: .5rem; }
.lesson-answers li p { margin-top: .25rem; }
.lesson-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1rem;
  background: var(--surface);
}
.lesson-table caption {
  padding-bottom: .5rem;
  text-align: start;
  color: var(--muted);
}
.lesson-table th, .lesson-table td {
  padding: .55rem;
  border: 1px solid var(--line);
  text-align: end;
}
.lesson-table th:first-child { text-align: start; }
.lesson-feedback { margin-top: 1rem; }
.lesson-feedback > div { padding-block: .7rem; border-top: 1px solid var(--line); }
.lesson-feedback dt { font-weight: 650; }
.lesson-feedback dd { margin-top: .2rem; color: var(--muted); line-height: 1.55; }
.lesson-model {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--surface);
}
.lesson-model summary { cursor: pointer; color: var(--accent); font-weight: 650; }
.lesson-model summary:focus-visible { outline: 3px solid #2d7354; outline-offset: 4px; }
.lesson-model p { margin-top: .85rem; }
.lesson-return { margin-block: 2rem; }

@media (max-width: 46rem) {
  .home-header { flex-direction: column; align-items: flex-start; }
  .home-header-controls { justify-content: flex-start; }
  .delivery-choices, .application-examples { grid-template-columns: 1fr; }
}

@media (max-width: 34rem) {
  .shell { width: calc(100% - 2rem); }
  .choices { grid-template-columns: 1fr; }
  .header-inner { gap: .75rem; }
  .brand { font-size: .875rem; gap: .5rem; }
}
