:root {
  color-scheme: light;
  --canvas: #f4f1e8;
  --sheet: #fffefa;
  --ink: #192a40;
  --muted: #647184;
  --line: #d9d8d0;
  --blue: #285fbd;
  --blue-dark: #1c478c;
  --green: #48765e;
  --content: 1040px;
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #4c8be4; outline-offset: 3px; }
.practice-shell { width: min(var(--content), calc(100% - 3rem)); margin-inline: auto; }
.practice-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.practice-brand { display: inline-flex; align-items: center; gap: .65rem; font-size: .95rem; font-weight: 750; text-decoration: none; }
.practice-brand-mark { display: grid; width: 32px; aspect-ratio: 1; place-items: center; border: 1px solid #c9d0d7; background: #fffefa; color: var(--blue-dark); font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; }
.back-link { color: var(--muted); font-size: .84rem; text-decoration-color: #afb5bb; text-underline-offset: 4px; }
.back-link:hover { color: var(--blue-dark); }
.practice-intro { max-width: 590px; padding: clamp(3.2rem, 7vw, 5.3rem) 0 2.2rem; }
.eyebrow { display: flex; align-items: center; gap: .6rem; color: var(--blue-dark); font-size: .72rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow span { width: 4px; aspect-ratio: 1; border-radius: 50%; background: #9da7ad; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.04em; }
h1 { margin: 1rem 0 .9rem; font-size: clamp(3rem, 7vw, 5rem); line-height: .99; }
h1 em { color: var(--blue); font-weight: 400; }
.intro-copy { max-width: 470px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.practice-area { max-width: 760px; padding: 1.2rem clamp(1rem, 4vw, 2.1rem) 1.3rem; border: 1px solid var(--line); background: var(--sheet); }
.session-bar { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .72rem; letter-spacing: .08em; }
.session-bar strong { color: var(--ink); font-size: .84rem; letter-spacing: 0; }
.progress-track { height: 3px; margin-top: 1rem; background: #e8e7e1; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--green); transition: width .2s ease; }
.word-card { padding: clamp(1.4rem, 5vw, 3rem) 0 1.8rem; }
.word-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #768193; font-size: .7rem; font-weight: 700; letter-spacing: .1em; }
.part-of-speech { padding: .2rem .5rem; border: 1px solid var(--line); color: #58677a; font-size: .68rem; letter-spacing: .04em; text-transform: lowercase; }
.word-card h2 { margin: 1.3rem 0 .2rem; font-size: clamp(2.8rem, 7vw, 4.5rem); line-height: 1; }
.word-prompt { margin: .7rem 0 0; color: var(--muted); }
.word-answer { max-width: 600px; padding-top: 1.1rem; animation: appear .18s ease-out; }
.word-answer > p:first-child { font-size: 1.06rem; }
.example-line { margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: #4f5f72; }
.example-line span { display: inline-block; margin-bottom: .4rem; color: var(--blue-dark); font-size: .67rem; font-style: normal; font-weight: 750; letter-spacing: .1em; }
.example-line i { font-family: Georgia, "Times New Roman", serif; font-size: 1.03rem; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; padding-top: 1.2rem; }
.action-button { min-height: 44px; padding: .6rem .9rem; border: 1px solid var(--blue); border-radius: 2px; font-size: .88rem; font-weight: 650; cursor: pointer; }
.action-primary { background: var(--blue); color: #fff; }
.action-primary:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.action-quiet { border-color: transparent; background: transparent; color: var(--ink); }
.action-quiet:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 4px; }
.action-quiet:disabled { color: var(--green); cursor: default; text-decoration: none; }
.action-button:disabled { opacity: 1; }
.session-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.session-footer p { display: flex; align-items: flex-start; gap: .5rem; margin: 0; color: var(--muted); font-size: .76rem; }
.session-dot { width: 7px; flex: 0 0 7px; aspect-ratio: 1; margin-top: .4rem; border-radius: 50%; background: #a4a18f; }
.restart-button { flex: 0 0 auto; padding: .3rem 0; border: 0; background: transparent; color: var(--blue-dark); font-size: .77rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.practice-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2.6rem 0 1.5rem; color: #7a8490; font-size: .72rem; }
@keyframes appear { from { transform: translateY(4px); opacity: .35; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 580px) {
  .practice-shell { width: calc(100% - 2rem); }
  .practice-header { min-height: 64px; }
  .practice-intro { padding: 2.7rem 0 1.8rem; }
  .practice-area { padding-inline: 1rem; }
  .session-footer, .practice-footer { align-items: flex-start; flex-direction: column; }
  .practice-footer { gap: .2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
