@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#193f37;--paper:#f7f7ed;--muted:#69766a;--line:#dce1d5;--gold:#e7bf64}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px 'DM Sans',system-ui,sans-serif}button,input,a{font:inherit}button,a,label{touch-action:manipulation}button{cursor:pointer}a{color:inherit}header{max-width:1160px;margin:auto;padding:25px 30px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:28px;font-weight:700}.brand img{width:48px;height:48px;border-radius:14px}.brand small{display:block;font-size:9px;letter-spacing:1.8px;margin-top:3px}button{border:1px solid var(--line);border-radius:50px;padding:12px 19px;background:transparent;color:var(--ink)}button:hover{background:#e6eddf}button:focus-visible,a:focus-visible,label:focus-visible{outline:3px solid #b77e23;outline-offset:4px}header button span{background:#dce8d5;padding:2px 7px;border-radius:20px;margin-left:6px}main{max-width:1100px;margin:auto;padding:0 30px}.hero{display:flex;justify-content:space-between;align-items:center;gap:50px;padding:65px 0 55px}.eyebrow{font-size:11px;letter-spacing:2.3px;font-weight:700}.hero h1{font-family:Manrope,system-ui,sans-serif;font-size:clamp(38px,5vw,62px);line-height:1.13;letter-spacing:-2.4px;margin:22px 0}.hero h1 em{font-family:Georgia,serif;font-weight:400;color:#718468}.hero p:not(.eyebrow){line-height:1.7;color:var(--muted)}.primary{display:inline-flex;align-items:center;gap:36px;text-decoration:none;color:white;background:var(--ink);padding:16px 23px;border:0;border-radius:30px;font-weight:600;cursor:pointer}.hero .primary{margin-top:17px}.orb{width:300px;height:300px;border:1px solid #90a28a;border-radius:50%;position:relative;background:radial-gradient(circle at 30% 20%,#e5edcf,#cad7b3);box-shadow:0 0 0 26px #edf0e1,0 0 0 27px #e1e6d5;flex-shrink:0;overflow:hidden}.lat{position:absolute;inset:65px -30px;border:1px solid #97aa8c;border-radius:50%;transform:rotate(-25deg)}.long{position:absolute;inset:-10px 65px;border:1px solid #97aa8c;border-radius:50%;transform:rotate(-25deg)}.orb:after{content:'';position:absolute;inset:30px -80px;border:1px solid #97aa8c;border-radius:50%;transform:rotate(65deg)}.orb span{position:absolute;left:48px;bottom:75px;font-size:11px;line-height:1.7;letter-spacing:2px}.fairy{font-size:80px;color:var(--ink);position:absolute;top:90px;right:75px}.strip{border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;gap:60px;padding:23px 0;color:var(--muted);font-size:14px}.strip b{font-size:21px;margin-right:8px;color:var(--ink)}section#catalog,section#library{padding:45px 0}.section-head{display:flex;align-items:center;justify-content:space-between;gap:20px}h2{font:600 30px Manrope,system-ui;margin:10px 0 24px;letter-spacing:-1px}input[type=search]{background:transparent;border:1px solid var(--line);padding:14px 18px;border-radius:25px;width:260px;color:var(--ink)}nav{display:flex;gap:10px;margin:8px 0 20px}nav button{min-width:105px}nav button.selected{background:var(--ink);color:white}.filters{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.filters button{font-size:13px;padding:8px 13px}.filters p{font-size:13px;color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.card{background:#fffef7;border:1px solid var(--line);border-radius:18px;padding:22px;display:flex;flex-direction:column;min-height:215px}.card-top{display:flex;justify-content:space-between;align-items:center}.term{font-size:10px;letter-spacing:1px;background:#edf0e3;padding:6px 9px;border-radius:6px}.star{border:0;padding:0;font-size:24px}.card h3{font:600 17px Manrope,system-ui;line-height:1.5;flex:1;margin:18px 0 22px}.card a{font-size:12px;text-decoration:none;border-top:1px solid var(--line);padding-top:15px;display:flex;justify-content:space-between}.actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.actions a{font-size:13px}#library{border-top:1px solid var(--line)}#library>p:not(.eyebrow){line-height:1.7;color:var(--muted);max-width:650px}.empty{padding:25px;border:1px dashed #bfcdb8;border-radius:15px;color:var(--muted);margin:20px 0}.library-row{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:18px 0;border-bottom:1px solid var(--line)}aside{background:#e9edde;border-radius:20px;padding:25px 30px;margin-bottom:40px;font-size:13px;line-height:1.8}aside h3{font-size:16px;margin:0}.fine{font-size:12px;color:var(--muted)}footer{max-width:1040px;margin:0 auto;padding:25px 0 35px;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-weight:700}footer span{font-size:12px;font-weight:400;color:var(--muted)}dialog{max-width:580px;width:calc(100% - 24px);border:0;border-radius:22px;padding:28px;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#10281ec4}#quizContent button{display:block;width:100%;text-align:left;margin:10px 0;border-radius:12px}#quizContent button.correct{background:#d3e4ca}#quizContent button.wrong{background:#f0d6cc}#quizContent button:disabled{opacity:1;color:var(--ink)}#closeQuiz{margin-top:22px;font-size:12px}#notice{color:#824b20!important}@media(max-width:760px){header{padding:18px 20px}.brand small{display:none}main{padding:0 20px}.hero{padding:35px 0;gap:10px}.hero h1{font-size:40px}.orb{width:130px;height:130px;box-shadow:0 0 0 12px #edf0e1;opacity:.8}.orb span{display:none}.long{inset:-10px 30px}.lat{inset:30px -15px}.fairy{font-size:42px;top:40px;right:35px}.hero p:not(.eyebrow){font-size:14px}.grid{grid-template-columns:repeat(2,1fr)}.strip{gap:20px;justify-content:space-between}.strip span{font-size:11px}.strip b{font-size:17px;display:block}.section-head{align-items:flex-start;flex-direction:column;gap:0}input[type=search]{width:100%;margin-bottom:20px}nav{gap:6px}nav button{min-width:0;flex:1;padding:12px 8px;font-size:13px}.card{padding:16px;min-height:215px}.card h3{font-size:15px}.card a{font-size:11px}.hero .primary{font-size:13px;gap:18px}.hero>div:first-child{flex:1}.orb{display:none}footer{margin:0 20px}h2{font-size:28px}}@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}

.card details{margin-top:14px;font-size:12px}.card summary{cursor:pointer;line-height:1.7}.card details a{padding:10px 0;line-height:1.5}
/* Peri v2 — cool grey light, blue-grey glass */
:root{--ink:#22364e;--paper:#eef0f4;--muted:#536277;--line:#d2d9e3;--gold:#9db8da}body{background:radial-gradient(ellipse at 5% 0%,#ffffff 0%,transparent 43%),radial-gradient(ellipse at 95% 20%,#d4e1f3 0%,transparent 42%),linear-gradient(135deg,#f3f4f7,#e6eaf0 65%,#e2e9f4);background-attachment:fixed;font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display','DM Sans',sans-serif}header{background:#ffffff6b;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border:1px solid #ffffffc9;border-radius:0 0 26px 26px;box-shadow:0 8px 40px #4258740a}.brand img{box-shadow:0 4px 16px #64789626}.hero h1{font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif;letter-spacing:-2.5px}.hero h1 em{font-family:inherit;font-style:normal;font-weight:600;color:#637b9b}.eyebrow{color:#526982}button,input[type=search]{background:linear-gradient(145deg,#ffffffc9,#e4eaf4a8);border:1px solid #ffffff;box-shadow:inset 0 1px 0 #fff,0 3px 12px #4059770a}button:hover{background:#d9e4f3}button:focus-visible,a:focus-visible,label:focus-visible{outline-color:#2767bd}.primary,nav button.selected{background:linear-gradient(140deg,#4e6f9b,#355782 60%,#476583);color:#fff;border:1px solid #ffffff78;box-shadow:inset 0 1px 0 #d4e2f55c,0 9px 24px #3d5c8038}header button span{background:#dce5f2;color:#29496c}.card{background:linear-gradient(145deg,#ffffffdb,#f2f5fac7);border:1px solid #fff;box-shadow:0 8px 25px #47617e0b,inset 0 1px 0 #ffffff;border-radius:24px;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.card h3,h2{font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif}.term{background:#e6edf6;color:#425d80}.star{box-shadow:none;background:transparent;border:none;color:#49688f;min-width:44px;min-height:44px}.card a{color:#345f92;min-height:44px;align-items:center}.card summary{padding:8px 0;color:#345f92;min-height:44px}.strip{background:#ffffff3d;padding:23px 18px;border-radius:20px;border:1px solid #fff9}.orb{background:radial-gradient(circle at 25% 20%,#fff,#e3edf9 42%,#b9cbe2);border-color:#afc3df;box-shadow:0 0 0 26px #ffffff40,0 0 0 27px #ffffff90,0 30px 70px #56739120}.lat,.long,.orb:after{border-color:#9fb5d1}.fairy{color:#4c6f9d}aside{background:linear-gradient(130deg,#ffffff94,#dfe7f3bb);border:1px solid #ffffffc9;box-shadow:0 10px 30px #526e8b0b}.empty{border-color:#afbed2;background:#ffffff4d}dialog{background:linear-gradient(145deg,#f9fbfe,#e9eef6);border:1px solid #fff;box-shadow:0 24px 80px #223b5d45}dialog::backdrop{background:#273a566e;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}#quizContent button.correct{background:#d4e8db;border-color:#9bbda7}#quizContent button.wrong{background:#f3dce0;border-color:#cb9ea7}#closeQuiz{min-height:44px}.filters button{min-height:44px}footer{color:#49688f}#notice{color:#75472a!important}@media(prefers-reduced-transparency:reduce){header,.card,aside{background:#f5f7fb;backdrop-filter:none;-webkit-backdrop-filter:none}dialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}}@media(prefers-contrast:more){:root{--muted:#344354;--line:#7c8b9f}.card,button,input[type=search]{border:1px solid #7c8b9f}}@media(max-width:760px){.hero h1{font-size:42px}.card{padding:16px}.strip{padding:18px 15px}.brand small{display:none}}

#gentle-settings{padding:24px;margin:10px 0 35px;border:1px solid #ffffffc9;border-radius:24px;background:#ffffff70}#gentle-settings h3{margin:0}#gentleBanner:not([hidden]){position:fixed;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(500px,calc(100% - 28px));display:flex;align-items:center;gap:16px;z-index:50;padding:14px 18px;border:1px solid white;border-radius:24px;background:#eaf1fcf2;color:#22364e;box-shadow:0 12px 45px #273f6445;backdrop-filter:blur(20px);font-size:14px}#gentleDismiss{min-height:44px;flex-shrink:0}

.course-progress{margin:14px 0 20px;padding:14px;border:1px solid #cbd7e7;border-radius:18px;background:linear-gradient(135deg,#f8fbff,#e8eef7)}.course-progress p{margin:5px 0}.progress-title,.progress-result{font-size:14px;font-weight:600}.course-progress progress{width:100%;height:10px;accent-color:#476e9f;border:0;border-radius:8px;overflow:hidden}.course-progress progress::-webkit-progress-bar{background:#d3ddeb}.course-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#6a8fb7,#365d8c);border-radius:8px}.progress-result{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px}.grade{background:#dce7f5;color:#29466b;padding:7px 12px;border-radius:12px;font-size:22px;line-height:1}#progress-guide{margin:25px 0;padding:20px;border:1px solid #cbd7e7;border-radius:22px;background:#f4f7fb}.course-progress .fine{font-size:12px;line-height:1.5;color:#465a73}

#account{margin:25px 0;padding:24px;border:1px solid #cbd7e7;border-radius:24px;background:linear-gradient(135deg,#f7faff,#e5edf8)}#account h2{margin-top:0}#accountForm{display:flex;align-items:center;gap:12px;flex-wrap:wrap}#username{font:inherit;border:1px solid #839bb8;border-radius:12px;padding:12px;min-width:0;max-width:100%;background:#fff}#accountNotice,.save-error{color:#75472a}#logout{margin-top:12px}@media(max-width:600px){#accountForm label{width:100%}#username{flex:1}#accountSubmit{padding:14px 18px}}
