:root {
  color-scheme: light;
  --ink: #26312c;
  --muted: #778078;
  --paper: #f5f3ed;
  --panel: #fffdf8;
  --line: #dfddd3;
  --green: #2c6b51;
  --green-pale: #e4efe8;
  --yellow: #f0d36a;
  --red-pale: #f7e4de;
  --blue-pale: #e2edf1;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'DM Sans', sans-serif; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .25; background-image: radial-gradient(#b8b4a8 0.6px, transparent 0.6px); background-size: 16px 16px; }
.shell { position: relative; max-width: 1040px; min-height: 100vh; margin: auto; padding: 34px 34px 24px; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: -.5px; text-decoration: none; }
.brand span { color: var(--green); font-weight: 400; }
.streak { color: var(--muted); font-size: 13px; }
.streak-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--yellow); }
.intro { margin: 12vh 0 52px; max-width: 560px; }
.eyebrow { margin: 0 0 20px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; }
h1 { margin: 0; font-family: Fraunces, Georgia, serif; font-size: clamp(48px, 7vw, 82px); font-weight: 600; line-height: .98; letter-spacing: -2px; }
h1 em { color: var(--green); font-style: normal; }
.subhead { max-width: 390px; margin: 25px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.review-panel { width: min(100%, 680px); min-height: 320px; margin: 0 auto; padding: 25px 30px 30px; background: var(--panel); border: 1px solid var(--line); box-shadow: 12px 12px 0 rgba(38, 49, 44, .06); }
.panel-label { display: flex; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
#card { padding: 44px 20px 5px; text-align: center; }
h2 { margin: 0 0 35px; font-family: Fraunces, Georgia, serif; font-size: clamp(35px, 5vw, 54px); font-weight: 600; letter-spacing: -.8px; }
.reveal { padding: 13px 18px; color: var(--green); background: var(--green-pale); border: 0; border-radius: 3px; font: inherit; font-size: 14px; cursor: pointer; }
.reveal span { margin-left: 15px; color: var(--muted); font-size: 11px; }
.definition { margin: 0 auto 10px; font-size: 21px; line-height: 1.4; }
.example { max-width: 480px; margin: 0 auto 28px; color: var(--muted); font-family: Fraunces, Georgia, serif; font-size: 16px; line-height: 1.5; }
.ratings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rating { min-height: 55px; padding: 7px; border: 1px solid transparent; border-radius: 3px; font: inherit; font-weight: 700; cursor: pointer; }
.rating small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 400; }
.rating:hover { border-color: var(--ink); transform: translateY(-2px); }
.again { background: var(--red-pale); } .hard { background: #f4ebd2; } .easy { background: var(--blue-pale); } .mastered { background: var(--green-pale); }
.loading, .empty, .error { padding: 76px 0; color: var(--muted); text-align: center; }
.empty strong { display: block; margin-bottom: 8px; color: var(--ink); font-family: Fraunces, Georgia, serif; font-size: 27px; }
.error { color: #a04e43; }
footer { display: flex; justify-content: space-between; margin-top: auto; padding-top: 70px; color: var(--muted); font-size: 12px; }
@media (max-width: 600px) { .shell { padding: 24px 18px; } .intro { margin: 10vh 0 38px; } .review-panel { padding: 20px 16px; } #card { padding: 34px 5px 0; } .ratings { grid-template-columns: repeat(2, 1fr); } footer { display: block; line-height: 2; } footer span { display: block; } }
