@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root{color-scheme:light;--cream:#f8f7f1;--ink:#14382d;--muted:#50635a;--line:#dbe2d7;--lime:#d7f289;--white:#fff;--sans:"DM Sans",system-ui,sans-serif;--serif:"Playfair Display",Georgia,serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:88px}
body{margin:0;color:var(--ink);background:var(--cream);font:14px/1.65 var(--sans)}
button,a{-webkit-tap-highlight-color:transparent}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer}
button:disabled{cursor:default}
:focus-visible{outline:3px solid #508d64;outline-offset:4px}
[hidden]{display:none!important}
.shell{width:min(1160px,calc(100% - 72px));margin-inline:auto}
.top{position:sticky;top:0;z-index:2;background:#f8f7f1f5;backdrop-filter:blur(14px);border-bottom:1px solid #e2e7df}
.top-inner{height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{font-size:24px;font-weight:800;letter-spacing:-1.2px;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.brand-mark{background:var(--ink);color:var(--lime);border-radius:10px;width:33px;height:33px;display:grid;place-items:center;font:700 30px/1 Georgia}
.dot{color:#629342;margin-left:-7px}
nav{display:flex;gap:30px;font-size:13px;font-weight:600;color:#415a4f}
nav a:hover,.fact a:hover,.footer a:hover{text-decoration:underline;text-underline-offset:4px}
.prototype,.tag,.location{font-size:11px;letter-spacing:.11em;font-weight:800}
.prototype{color:#416457;border:1px solid #c9d8ca;padding:5px 10px;border-radius:6px;white-space:nowrap}
.hero{background-color:#15362f;background-image:linear-gradient(90deg,#102e26f2 0%,#102e2680 49%,#102e2610 85%),url('hanoi.jpg');background-position:center,center 57%;background-size:cover;isolation:isolate;position:relative;min-height:392px;margin-top:26px;border-radius:22px;display:flex;align-items:center;color:white;overflow:hidden}
.hero-copy{padding:38px 52px 44px}
.location{color:#d7efbc;margin:0 0 10px;display:flex;align-items:center;gap:8px}
.location span{font-size:18px;line-height:1}
h1,h2,h3,p{margin:0}
h1,h2,h3{letter-spacing:-.028em}
h1{font:700 clamp(2.65rem,5.4vw,5rem)/1.07 var(--serif);letter-spacing:-.045em}
.hero-copy>p:not(.location){color:#e9f2eb;margin:18px 0 24px;font-size:15px}
.primary,.secondary,.arrow{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:8px;padding:9px 13px;font-weight:700;border:1px solid transparent;min-height:42px}
.primary{background:var(--ink);color:white}
.primary:hover:not(:disabled){background:#245542}
.hero-cta{background:var(--lime);color:#1d3624;padding:11px 16px}
.hero-cta:hover:not(:disabled){background:#e5ffa1}
.photo-label{position:absolute;right:19px;bottom:14px;font-size:10px;color:#f2faf0;background:#15372bb3;padding:3px 9px;border-radius:5px}
.daily{margin-top:28px}
.section-head,.panel-top,.fact-bottom,.panel-actions,.oxygen,.footer{display:flex;justify-content:space-between;align-items:center;gap:12px}
.section-head{margin-bottom:12px}
h2{font-size:clamp(1.25rem,2.6vw,1.65rem);font-weight:800}
.section-head time,.fact-date,.data-label{color:var(--muted);font-size:12px;font-weight:600}
.daily-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.panel{border:1px solid var(--line);border-radius:16px;padding:19px 22px;min-width:0;background:#fff}
.panel h3{font-size:22px;line-height:1.3;font-weight:800;margin:13px 0 7px}
.panel p{color:var(--muted)}
.panel-top{min-height:24px}
.tag{display:inline-flex;align-items:center;gap:7px;color:#386247}
.tag span{font-size:16px;line-height:1}
.fact{background:#e7efdd;border-color:#d9e5cf}
.fact>p{font-size:16px;min-height:53px;color:#305447;line-height:1.5}
.fact-bottom{margin-top:10px}
.fact a,.flashcard a{font-size:13px;text-decoration:underline;text-underline-offset:4px;font-weight:700}
.date-controls,.observations,.language{display:flex;gap:6px;flex-wrap:wrap}
.arrow,.secondary{border-color:#d4dfd3;background:#f9fbf5;color:var(--ink)}
.arrow{width:37px;min-height:36px;padding:0;font-size:17px}
.arrow:hover:not(:disabled),.secondary:hover:not(:disabled){background:#eaf2e4}
.arrow:disabled,.secondary:disabled,.primary:disabled{opacity:.55}
.quiz .data-label{border:1px solid #e1e8db;background:#f5f7f2;padding:2px 8px;border-radius:5px}
.answers{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}
.answer{border:1px solid #d8e0d5;background:#f5f8f3;color:var(--ink);border-radius:8px;padding:8px 4px;font-weight:800;min-height:43px}
.answer small{font-size:10px;font-weight:600}
.answer:hover:not(:disabled){background:#e4efdd}
.answer.correct{background:#d9efae;border-color:#80a755}
.answer.incorrect{background:#f7e8dc;border-color:#bb8267}
.panel .feedback{background:#f5f7f2;color:var(--ink);padding:8px 10px;font-size:12px;border-radius:7px;margin-top:10px}
.lower{margin-top:16px}
.lesson,.lungs{display:flex;flex-direction:column}
.language{margin:12px 0 11px}
.language button{border:1px solid var(--line);border-radius:20px;background:white;color:var(--ink);padding:6px 13px;font-weight:600;font-size:12px}
.language button[aria-pressed=true]{background:var(--ink);color:white;border-color:var(--ink)}
.flashcard{border:1px solid #d5e4cf;border-radius:12px;padding:15px 17px;background:#edf3e7;min-height:158px;margin-bottom:14px}
.flashcard h3{font-size:20px;margin:7px 0}
.flashcard .card-side{font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.flashcard a{display:inline-block;margin-top:6px}
.panel-actions{margin-top:auto;justify-content:flex-start;flex-wrap:wrap;gap:8px}
.lungs{background:#f0f2e7}
.pair-art{align-self:center;display:flex;position:relative;align-items:center;gap:6px;margin-top:11px;height:60px;color:#327753}
.pair-art span{position:absolute;left:50%;transform:translateX(-50%);top:17px;z-index:1;line-height:1;font-size:23px;text-shadow:0 0 5px white}
.lobe{height:50px;width:37px;background:linear-gradient(140deg,#c6df9f,#a1c694);border:1px solid #99be8b}
.lobe.left{border-radius:80% 40% 33% 51%;transform:rotate(13deg)}
.lobe.right{border-radius:40% 80% 51% 33%;transform:rotate(-13deg)}
.lungs>h3,.lungs>p:not(.lung-feedback){text-align:center}
.lungs>h3{margin-top:5px}
.oxygen{margin-top:12px;font-size:12px;font-weight:700}
progress{display:block;width:100%;height:9px;appearance:none;border:none;border-radius:8px;overflow:hidden;margin:5px 0 12px;color:#548858;background:#dde5d6}
progress::-webkit-progress-bar{background:#dde5d6}
progress::-webkit-progress-value{background:#548858}
progress::-moz-progress-bar{background:#548858}
.lungs .panel-actions{margin-top:0}
.lung-feedback{font-size:12px;min-height:20px;margin-top:8px}
.footer{border-top:1px solid var(--line);margin-top:26px;padding:12px 0 20px;color:var(--muted);font-size:11px}
.footer .brand{color:var(--ink);font-size:18px}
.footer span a{font-weight:700}
dialog{width:min(460px,calc(100% - 32px));border:1px solid var(--line);border-radius:16px;padding:20px;color:var(--ink);background:white}
dialog::backdrop{background:#132e2599}
dialog p{margin:8px 0 14px;color:var(--muted)}
@media(max-width:720px){
  .shell{width:calc(100% - 30px)}
  .top-inner{height:62px;gap:10px}
  nav{gap:13px;font-size:11px}
  .brand{font-size:21px}
  .brand-mark{width:29px;height:29px;font-size:26px}
  .prototype{display:none}
  .hero{min-height:350px;margin-top:14px;border-radius:16px;background-position:center,64% center}
  .hero-copy{padding:27px 22px 44px}
  h1{font-size:clamp(2.15rem,8.8vw,3.6rem)}
  .hero-copy>p:not(.location){font-size:13px}
  .desktop{display:none}
  .daily{margin-top:20px}
  .daily-grid{grid-template-columns:1fr;gap:12px}
  .lower{margin-top:12px}
  .panel{padding:16px}
  .section-head time{font-size:11px}
  .footer{align-items:flex-start}
  .footer>span{text-align:right}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
