:root {
  --paper: #f6f8f5;
  --surface: #fdfefc;
  --tint: #e8eee0;
  --ink: #192c23;
  --muted: #415247;
  --green: #174a42;
  --green-hover: #226258;
  --mint: #dcebcf;
  --line: #a9b9ab;
  --focus: #1c6657;
  --gutter: clamp(20px, 5vw, 76px);
  --display: clamp(2.45rem, 5.2vw, 5rem);
  --section-title: clamp(2.1rem, 4.25vw, 4rem);
  --radius: 12px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, p, figure, ul, fieldset {
  margin: 0;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: .22em;
}

a, button, summary, label {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

h1, h2, h3 {
  line-height: 1.05;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.shell {
  width: min(100% - 2 * var(--gutter), 1280px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--surface);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header, .footer-layout {
  min-height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 720;
  letter-spacing: -.025em;
  text-decoration: none;
}

.brand img {
  flex: none;
  border-radius: 8px;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 32px);
}

nav a, .site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

nav a:hover, .site-footer a:hover {
  text-decoration: underline;
}

.nav-action {
  padding: 0 17px;
  border-radius: 6px;
  background: var(--tint);
  font-weight: 650;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.07fr;
  gap: 14px;
}

.hero-copy {
  min-width: 0;
  min-height: clamp(415px, 39vw, 550px);
  padding: clamp(24px, 3.7vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-radius: var(--radius);
  background: var(--tint);
}

.exam-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 14px;
  color: var(--green);
  font-size: .9375rem;
  font-weight: 650;
}

.exam-line span {
  font-weight: 550;
}

.hero h1 {
  color: var(--green);
  font-size: var(--display);
  line-height: .99;
  letter-spacing: -.058em;
  font-weight: 760;
}

.hero-description {
  max-width: 43ch;
  margin-top: clamp(20px, 2.25vw, 32px);
  color: var(--muted);
  font-size: clamp(1rem, 1.42vw, 1.25rem);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 50px;
  padding: 12px 19px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: var(--surface);
  font: inherit;
  font-weight: 680;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms var(--ease-out);
}

.button:hover:not(:disabled) {
  background: var(--green-hover);
  transform: translateY(-2px);
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

.button:disabled {
  background: var(--tint);
  color: var(--muted);
  cursor: default;
}

.hero .button {
  margin-top: 25px;
}

.hero-art {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tint);
}

.hero-art img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 61% center;
}

section[id] {
  scroll-margin-top: 26px;
}

.section-space {
  padding-block: clamp(58px, 8vw, 112px);
}

.topics {
  padding-top: clamp(58px, 6.5vw, 94px);
}

.install {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 7vw, 102px);
}

.section-copy h2 {
  font-size: var(--section-title);
  font-weight: 735;
  letter-spacing: -.052em;
}

.section-copy p {
  max-width: 36ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.36vw, 1.1875rem);
}

.topics .section-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}

.topics .section-copy p {
  max-width: 43ch;
  margin-top: 0;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}

.topic-list img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.05;
  margin-bottom: 13px;
  border-radius: 8px;
  object-fit: cover;
}

.topic-list h3 {
  font-size: 1.125rem;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: -.024em;
}

.topic-list p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.35;
}

.practice {
  background: var(--green);
  padding-block: clamp(48px, 7vw, 100px);
}

.practice-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(28px, 7vw, 102px);
  align-items: start;
}

.practice .section-copy {
  color: var(--surface);
}

.practice .section-copy p {
  color: var(--mint);
}

.practice .section-copy img {
  width: clamp(142px, 16vw, 216px);
  height: auto;
  margin-top: 30px;
  border-radius: var(--radius);
}

.question-card {
  padding: clamp(22px, 3.7vw, 48px);
  border-radius: var(--radius);
  background: var(--surface);
}

.question-card fieldset {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 0;
  border: 0;
}

.question-card legend, .question-prompt {
  padding: 0;
  margin-bottom: 20px;
  font-size: clamp(1.25rem, 2.05vw, 1.8125rem);
  font-weight: 720;
  line-height: 1.26;
  letter-spacing: -.035em;
}

.choice {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.choice:hover, .choice:has(:checked) {
  background: var(--tint);
  border-color: var(--focus);
}

.choice:has(:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.choice input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green);
}

.choice input:focus-visible {
  outline: none;
}

.question-card .button {
  margin-top: 16px;
}

.feedback {
  margin-top: 16px;
  color: var(--green);
}

.feedback:empty {
  margin: 0;
}

.feedback strong {
  display: block;
}

summary {
  width: fit-content;
  min-height: 44px;
  color: var(--green);
  font-weight: 650;
  cursor: pointer;
}

.download-links {
  display: grid;
  gap: 8px;
}

.download {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  min-height: 78px;
  padding: 13px 18px;
  border-radius: 8px;
  background: var(--tint);
  color: var(--green);
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms var(--ease-out);
}

.download:hover {
  background: var(--mint);
  transform: translateY(-2px);
}

.download:active {
  transform: translateY(1px);
}

.download strong {
  font-size: 1.125rem;
}

.download small {
  display: block;
  color: var(--muted);
  font-size: 1rem;
}

.download-arrow {
  font-size: 1.35rem;
}

.site-footer {
  background: var(--tint);
  color: var(--green);
}

.site-footer a {
  gap: 8px;
}

@media (max-width: 900px) {
  .hero-art img {
    object-position: 52% center;
  }

  .topics .section-copy {
    display: block;
    margin-bottom: 24px;
  }

  .topics .section-copy p {
    margin-top: 14px;
  }

  .topic-list {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .topic-list li {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 8px;
    border-radius: 8px;
    background: var(--tint);
  }

  .topic-list img {
    width: 100px;
    height: 60px;
    margin-bottom: 0;
    border-radius: 4px;
  }

  .install, .practice-layout {
    gap: 26px;
  }
}

@media (max-width: 680px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 0;
    padding-block: clamp(34px, 7vw, 56px);
  }

  .hero-art {
    aspect-ratio: 1.85;
  }
}

@media (max-width: 620px) {
  :root {
    --display: clamp(2.2rem, 11.2vw, 3.25rem);
  }

  .site-header {
    padding-block: 12px;
    flex-wrap: wrap;
    row-gap: 3px;
  }

  .site-header .brand {
    min-height: 44px;
  }

  .site-header nav {
    width: 100%;
    flex-wrap: wrap;
    column-gap: 18px;
  }

  .nav-action {
    margin-inline-start: auto;
    padding-inline: 12px;
  }

  .hero-art {
    aspect-ratio: 1.68;
  }

  .install, .practice-layout {
    grid-template-columns: 1fr;
  }

  .topic-list li {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }

  .topic-list img {
    width: 76px;
    height: 58px;
  }

  .practice .section-copy {
    display: grid;
    grid-template-columns: 1fr 72px;
    gap: 8px 16px;
    align-items: start;
  }

  .practice .section-copy p {
    margin-top: 0;
  }

  .practice .section-copy img {
    grid-area: 1 / 2 / span 2;
    width: 72px;
    margin-top: 2px;
    border-radius: 8px;
  }

  .footer-layout {
    flex-wrap: wrap;
    row-gap: 0;
    padding-block: 10px;
  }
}

@keyframes road-arrival {
  from {
    opacity: .78;
    transform: scale(1.05);
  }
}

@keyframes enter {
  from {
    opacity: .75;
    transform: translateY(var(--entry-offset, 14px));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-art img {
    animation: road-arrival 1150ms var(--ease-out) both;
  }

  .entered {
    animation: enter 540ms var(--ease-out) var(--entry-delay, 0ms) both;
  }

  .section-copy p, .topic-list li:nth-child(even), .download + .download {
    --entry-delay: 65ms;
  }

  .practice .section-copy img, .question-card {
    --entry-delay: 100ms;
    --entry-offset: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
