@font-face {
  font-family: Lexend;
  src: url("/assets/lexend.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --learn-ink: #211c28;
  --learn-muted: #625a6c;
  --learn-line: #eae6ec;
  --learn-pink: #883365;
  --learn-pale-pink: #fbedf7;
  --learn-blue: #2b5c79;
  --learn-pale-blue: #eaf6fd;
  font-family: Lexend, system-ui, sans-serif;
  color: var(--learn-ink);
  background: white;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body.learn-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  margin: 0;
}
.learn-page :is(button, input, select, textarea) { font: inherit; }
.learn-page button { cursor: pointer; }
.learn-page button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #416b9a; outline-offset: 3px; }
.learn-skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.learn-skip:focus {
  position: fixed;
  z-index: 10;
  inset: 8px auto auto 8px;
  padding: 12px;
  border-radius: 8px;
  background: white;
  color: var(--learn-pink);
}
.learn-header { border-bottom: 1px solid var(--learn-line); }
.learn-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 14px;
  max-width: 1620px;
  margin: auto;
  padding: 0 clamp(12px, 2.5vw, 35px) 0 clamp(4px, 1vw, 17px);
}
.learn-brand { display: block; min-width: 0; flex: 0 1 308px; }
.learn-brand img { display: block; width: 100%; height: auto; }
.learn-staff {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--learn-line);
  border-radius: 8px;
  font-size: .79rem;
  font-weight: 480;
  color: #504558;
  background: white;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.learn-staff:hover { color: var(--learn-pink); background: #fef7fc; }
.learn-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.learn-shell {
  width: 100%;
  max-width: 1248px;
  margin-inline: auto;
  padding: clamp(15px, 3vw, 38px) clamp(14px, 3.3vw, 44px) 44px;
  flex: 1;
  min-width: 0;
}
.learn-shell:has(#practice-intro[hidden]) { max-width: 1600px; }
.learn-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 240px;
  margin-bottom: 31px;
  padding: 30px clamp(26px, 4.2vw, 58px);
  border: 1px solid #f1e9f0;
  border-radius: 17px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(112deg, #fdf1f9, #fdf7fb 56%, #edf7fc);
}
.learn-intro-copy { z-index: 1; max-width: 580px; }
.learn-intro h1 {
  margin: 0;
  color: var(--learn-ink);
  font-size: clamp(2.05rem, 5vw, 3.48rem);
  line-height: 1.09;
  font-weight: 620;
  letter-spacing: -.058em;
}
.learn-intro p {
  margin: 13px 0 0;
  max-width: 36ch;
  color: var(--learn-muted);
  font-size: clamp(.82rem, 1.45vw, 1rem);
  line-height: 1.63;
}
.learn-paper {
  flex: 0 1 260px;
  height: 166px;
  position: relative;
  min-width: 198px;
  margin: 8px 26px 4px 20px;
  color: var(--learn-blue);
}
.paper-sheet {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 111px;
  height: 145px;
  border: 1px solid #e7dbe7;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(67,44,73,.09);
}
.paper-sheet-back { transform: translateX(-70%) rotate(-16deg); background: #f6dff0; }
.paper-sheet-front {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 11px;
  transform: translateX(-42%) rotate(13deg);
  background: white;
}
.paper-sheet-front i {
  display: block;
  height: 4px;
  width: 100%;
  border-radius: 3px;
  background: #e6e3ec;
}
.paper-sheet-front > i:first-child { width: 63%; background: #dc9fc9; height: 5px; }
.paper-sheet-front > i:nth-child(3) { width: 78%; margin-bottom: 5px; }
.paper-answer { display: flex; align-items: center; gap: 7px; height: 15px; border-radius: 4px; padding: 2px 4px; }
.paper-answer b { height: 9px; width: 9px; border-radius: 3px; border: 1px solid #dbcedf; }
.paper-answer i { flex: 0 1 67%; height: 3px; }
.paper-answer-selected { background: #eaf6fe; }
.paper-answer-selected b { background: #6c9cb9; border-color: #6c9cb9; }
.paper-answer-selected i { background: #b8d9ec; }
.paper-check {
  position: absolute;
  top: 118px;
  left: calc(50% + 40px);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid #d2e8f4;
  background: #edf8fd;
  transform: rotate(-8deg);
  box-shadow: 0 3px 9px rgba(37,77,100,.08);
}
.paper-check .learn-icon { width: 23px; height: 23px; }
.learn-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--learn-line);
  padding: 16px;
  min-height: 56px;
  color: var(--learn-muted);
  font-size: .74rem;
}
@media (max-width: 620px) {
  .learn-header-inner { min-height: 57px; gap: 5px; }
  .learn-brand { flex-basis: 190px; }
  .learn-staff { font-size: .69rem; padding: 7px 6px; }
  .learn-staff .learn-icon { width: 14px; height: 14px; }
  .learn-intro { min-height: 167px; padding: 20px; margin-bottom: 23px; }
  .learn-intro-copy { max-width: min(230px, 68%); }
  .learn-intro p { margin-top: 9px; }
  .learn-paper {
    position: absolute;
    width: 170px;
    min-width: 0;
    right: -26px;
    top: 0;
    margin: 0;
    transform: scale(.58);
    transform-origin: center right;
  }
}
@media (max-width: 352px) {
  .learn-paper { opacity: .65; right: -42px; transform: scale(.49); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
