*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{--teal:#1a6b5a;--teal-dark:#0f4f42;--teal-light:#2a8f7a;--amber:#d4a030;--amber-light:#e8bf5a;--gold:#c9952e;--cream:#faf6ef;--cream-dark:#f0e8d8;--brown:#4a3520;--brown-light:#6b5340;--text:#2d2418;--text-light:#5a4d3e;--text-muted:#8a7d6e;--white:#ffffff;--gray-50:#f8f7f5;--gray-100:#edeae4;--gray-200:#ddd8cf;--gray-300:#b8b0a4;--gray-400:#918779;--border:#d4cfc6;--shadow:0 2px 8px rgba(45,36,24,.1);--shadow-lg:0 8px 32px rgba(45,36,24,.15);--radius:8px;--radius-lg:12px;--transition:0.2s ease;--font-stack:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;--font-serif:Georgia,'Times New Roman',serif}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--font-stack);color:var(--text);background:var(--cream);line-height:1.6;overflow-x:hidden}
img,svg{display:block;max-width:100%}
a{color:var(--teal);text-decoration:none;transition:color var(--transition)}
a:hover{color:var(--teal-dark)}
h1,h2,h3,h4,h5,h6{line-height:1.25;color:var(--brown);font-weight:700}
h1{font-size:clamp(1.8rem,4vw,2.8rem)}
h2{font-size:clamp(1.4rem,3vw,2rem)}
h3{font-size:clamp(1.1rem,2.5vw,1.4rem)}
p{margin-bottom:1rem}
ul,ol{padding-left:1.25rem}
.container{width:100%;max-width:1200px;margin:0 auto;padding:0 1rem}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
/* SKIP LINK */
.skip-link{position:absolute;top:-40px;left:0;background:var(--teal);color:#fff;padding:.5rem 1rem;z-index:1000;transition:top var(--transition)}
.skip-link:focus{top:0}
/* HEADER / NAV */
.site-header{background:var(--white);border-bottom:3px solid var(--amber);position:sticky;top:0;z-index:100;box-shadow:var(--shadow)}
.nav-wrap{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;max-width:1200px;margin:0 auto}
.logo{display:flex;align-items:center;gap:.5rem;font-size:1.5rem;font-weight:800;color:var(--teal-dark);text-decoration:none}
.logo svg{width:32px;height:32px}
.logo span{color:var(--amber)}
.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:.25rem}
.nav-toggle svg{width:28px;height:28px;color:var(--brown)}
.nav-menu{display:flex;align-items:center;gap:.25rem;list-style:none;padding:0}
.nav-menu a{display:block;padding:.5rem .75rem;border-radius:var(--radius);font-weight:500;color:var(--text);font-size:.95rem;transition:all var(--transition)}
.nav-menu a:hover,.nav-menu a[aria-current="page"]{background:var(--cream);color:var(--teal)}
@media(max-width:768px){
.nav-toggle{display:block}
.nav-menu{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;background:var(--white);border-bottom:3px solid var(--amber);padding:1rem;box-shadow:var(--shadow-lg)}
.nav-menu.open{display:flex}
.nav-menu a{padding:.75rem 1rem;font-size:1.05rem}
}
/* HERO */
.hero{background:linear-gradient(135deg,var(--teal-dark) 0%,var(--teal) 50%,var(--teal-light) 100%);color:var(--white);padding:4rem 1rem;text-align:center;position:relative;overflow:hidden}
.hero::before{content:'';position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat}
.hero h1{color:var(--white);margin-bottom:1rem;font-size:clamp(2rem,5vw,3.2rem)}
.hero .tagline{font-size:clamp(1rem,2.5vw,1.3rem);opacity:.9;max-width:600px;margin:0 auto 2rem;line-height:1.5}
.hero-cta{display:inline-flex;align-items:center;gap:.5rem;background:var(--amber);color:var(--brown);padding:.85rem 2rem;border-radius:var(--radius);font-weight:700;font-size:1.05rem;transition:all var(--transition);border:none;cursor:pointer;text-decoration:none}
.hero-cta:hover{background:var(--amber-light);color:var(--brown);transform:translateY(-2px);box-shadow:var(--shadow-lg)}
/* SECTIONS */
.section{padding:3rem 1rem}
.section-alt{background:var(--white)}
.section-header{text-align:center;margin-bottom:2.5rem}
.section-header h2{margin-bottom:.5rem}
.section-header p{color:var(--text-light);max-width:600px;margin:0 auto}
/* CARDS GRID */
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.5rem}
.card{background:var(--white);border-radius:var(--radius-lg);padding:1.75rem;box-shadow:var(--shadow);transition:all var(--transition);border:1px solid var(--border);position:relative;overflow:hidden}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.card-icon{width:48px;height:48px;background:linear-gradient(135deg,var(--teal),var(--teal-light));border-radius:var(--radius);display:flex;align-items:center;justify-content:center;margin-bottom:1rem}
.card-icon svg{width:24px;height:24px;color:var(--white)}
.card h3{margin-bottom:.5rem}
.card p{color:var(--text-light);font-size:.95rem;margin-bottom:1rem}
.card-link{display:inline-flex;align-items:center;gap:.25rem;font-weight:600;color:var(--teal);font-size:.9rem}
.card-link:hover{gap:.5rem}
/* FEATURE CARDS (homepage) */
.feature-card{text-align:center;padding:2rem 1.5rem}
.feature-card .card-icon{margin:0 auto 1rem}
/* STATS */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1.5rem;text-align:center;padding:2rem 0}
.stat-item{padding:1.5rem}
.stat-num{font-size:2rem;font-weight:800;color:var(--teal);display:block}
.stat-label{color:var(--text-muted);font-size:.9rem;margin-top:.25rem}
/* WOTD */
.wotd{background:linear-gradient(135deg,var(--cream-dark),var(--white));border:2px solid var(--amber);border-radius:var(--radius-lg);padding:2rem;max-width:600px;margin:0 auto}
.wotd-word{font-size:1.8rem;font-weight:800;color:var(--teal-dark);font-family:var(--font-serif)}
.wotd-pos{font-style:italic;color:var(--text-muted);font-size:.9rem;margin-left:.5rem}
.wotd-pron{color:var(--text-light);font-size:.95rem;margin:.25rem 0 .75rem}
.wotd-def{font-size:1.05rem;line-height:1.6;margin-bottom:.75rem}
.wotd-example{font-style:italic;color:var(--text-light);border-left:3px solid var(--amber);padding-left:1rem}
/* NEWSLETTER */
.newsletter{background:var(--teal-dark);color:var(--white);border-radius:var(--radius-lg);padding:2.5rem;text-align:center;max-width:700px;margin:0 auto}
.newsletter h2{color:var(--white);margin-bottom:.5rem}
.newsletter p{opacity:.85;margin-bottom:1.5rem}
.newsletter-form{display:flex;gap:.5rem;max-width:450px;margin:0 auto}
.newsletter-form input{flex:1;padding:.75rem 1rem;border-radius:var(--radius);border:none;font-size:1rem;font-family:var(--font-stack)}
.newsletter-form button{padding:.75rem 1.5rem;background:var(--amber);color:var(--brown);font-weight:700;border:none;border-radius:var(--radius);cursor:pointer;font-size:1rem;transition:background var(--transition)}
.newsletter-form button:hover{background:var(--amber-light)}
@media(max-width:480px){.newsletter-form{flex-direction:column}}
/* BREADCRUMBS */
.breadcrumbs{padding:.75rem 1rem;font-size:.85rem;color:var(--text-muted)}
.breadcrumbs a{color:var(--text-light)}
.breadcrumbs span{margin:0 .35rem}
/* LESSON/PAGE CONTENT */
.page-hero{background:linear-gradient(135deg,var(--teal-dark),var(--teal));color:var(--white);padding:3rem 1rem;text-align:center}
.page-hero h1{color:var(--white);margin-bottom:.5rem}
.page-hero p{opacity:.9;max-width:600px;margin:0 auto}
.content-wrap{max-width:900px;margin:0 auto;padding:2rem 1rem}
/* LEVEL BADGES */
.badge{display:inline-block;padding:.2rem .65rem;border-radius:20px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.badge-beginner{background:#d4edda;color:#155724}
.badge-intermediate{background:#fff3cd;color:#856404}
.badge-advanced{background:#f8d7da;color:#721c24}
.badge-expert{background:#d1c4e9;color:#4a148c}
.badge-a1{background:#e3f2fd;color:#0d47a1}
.badge-a2{background:#e8f5e9;color:#1b5e20}
.badge-b1{background:#fff8e1;color:#f57f17}
.badge-b2{background:#fce4ec;color:#880e4f}
.badge-c1{background:#ede7f6;color:#4a148c}
.badge-c2{background:#efebe9;color:#3e2723}
/* VOCAB CARDS */
.vocab-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.5rem;cursor:pointer;transition:all var(--transition);position:relative}
.vocab-card:hover{box-shadow:var(--shadow-lg)}
.vocab-card.flipped .vocab-front{display:none}
.vocab-card.flipped .vocab-back{display:block}
.vocab-front{text-align:center}
.vocab-front .word{font-size:1.4rem;font-weight:700;color:var(--teal-dark);font-family:var(--font-serif)}
.vocab-front .hint{color:var(--text-muted);font-size:.85rem;margin-top:.5rem}
.vocab-back{display:none}
.vocab-back .pos{font-style:italic;color:var(--amber);font-weight:600}
.vocab-back .definition{margin:.5rem 0}
.vocab-back .example{font-style:italic;color:var(--text-light);font-size:.9rem;border-left:3px solid var(--amber);padding-left:.75rem;margin:.75rem 0}
.vocab-back .related{font-size:.85rem;color:var(--text-muted)}
.vocab-back .etymology{font-size:.85rem;color:var(--text-muted);margin-top:.5rem;padding-top:.5rem;border-top:1px solid var(--gray-100)}
.flip-hint{position:absolute;top:.5rem;right:.75rem;font-size:.7rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em}
/* FILTER BAR */
.filter-bar{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:2rem;padding:1rem;background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow)}
.filter-bar input[type="search"]{flex:1;min-width:200px;padding:.6rem 1rem;border:1px solid var(--border);border-radius:var(--radius);font-size:.95rem;font-family:var(--font-stack)}
.filter-btn{padding:.5rem 1rem;border:1px solid var(--border);border-radius:20px;background:var(--white);cursor:pointer;font-size:.85rem;font-weight:500;transition:all var(--transition);font-family:var(--font-stack)}
.filter-btn:hover,.filter-btn.active{background:var(--teal);color:var(--white);border-color:var(--teal)}
/* CROSSWORD */
.crossword-container{display:grid;grid-template-columns:1fr 300px;gap:2rem;align-items:start}
@media(max-width:768px){.crossword-container{grid-template-columns:1fr}}
.crossword-grid{display:inline-grid;gap:1px;background:var(--brown);padding:1px;border-radius:4px;justify-self:center}
.crossword-cell{width:36px;height:36px;position:relative;background:var(--white);display:flex;align-items:center;justify-content:center}
.crossword-cell.black{background:var(--brown)}
.crossword-cell input{width:100%;height:100%;border:none;text-align:center;font-size:1.1rem;font-weight:700;text-transform:uppercase;font-family:var(--font-stack);background:transparent;color:var(--text);outline:none}
.crossword-cell input:focus{background:var(--cream-dark)}
.crossword-cell.highlighted input{background:#e8f5e9}
.crossword-cell .cell-number{position:absolute;top:1px;left:2px;font-size:.55rem;color:var(--text-muted);pointer-events:none;line-height:1}
.clues-panel{max-height:500px;overflow-y:auto}
.clues-panel h3{font-size:1rem;margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:2px solid var(--amber);color:var(--teal-dark)}
.clues-panel ol{list-style:none;padding:0;margin-bottom:1.5rem}
.clues-panel li{padding:.35rem .5rem;font-size:.9rem;cursor:pointer;border-radius:4px;transition:background var(--transition)}
.clues-panel li:hover{background:var(--cream)}
.clues-panel li.active{background:var(--cream-dark);font-weight:600}
.clue-num{font-weight:700;color:var(--teal);margin-right:.35rem}
/* CROSSWORD CREATOR */
.creator-form{display:grid;gap:1rem;margin-bottom:2rem}
.word-input-row{display:flex;gap:.5rem;align-items:center}
.word-input-row input{padding:.5rem .75rem;border:1px solid var(--border);border-radius:var(--radius);font-size:.9rem;font-family:var(--font-stack)}
.word-input-row input:first-child{width:160px}
.word-input-row input:last-of-type{flex:1}
.word-input-row button{padding:.5rem .75rem;background:var(--gray-200);border:none;border-radius:var(--radius);cursor:pointer;font-size:.85rem}
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.65rem 1.5rem;border-radius:var(--radius);font-weight:600;font-size:.95rem;border:none;cursor:pointer;transition:all var(--transition);font-family:var(--font-stack)}
.btn-primary{background:var(--teal);color:var(--white)}
.btn-primary:hover{background:var(--teal-dark)}
.btn-secondary{background:var(--amber);color:var(--brown)}
.btn-secondary:hover{background:var(--amber-light)}
.btn-outline{background:transparent;border:2px solid var(--teal);color:var(--teal)}
.btn-outline:hover{background:var(--teal);color:var(--white)}
.btn-sm{padding:.4rem 1rem;font-size:.85rem}
/* QUIZ */
.quiz-card{background:var(--white);border:2px solid var(--border);border-radius:var(--radius-lg);padding:1.5rem;margin-bottom:1.5rem}
.quiz-card h3{font-size:1.1rem;margin-bottom:1rem}
.quiz-options{display:grid;gap:.5rem}
.quiz-option{display:block;padding:.75rem 1rem;border:2px solid var(--border);border-radius:var(--radius);cursor:pointer;transition:all var(--transition);font-size:.95rem}
.quiz-option:hover{border-color:var(--teal);background:var(--cream)}
.quiz-option.correct{border-color:#28a745;background:#d4edda}
.quiz-option.wrong{border-color:#dc3545;background:#f8d7da}
.quiz-option input{display:none}
.quiz-score{text-align:center;padding:2rem;font-size:1.2rem}
.quiz-score .score-num{font-size:3rem;font-weight:800;color:var(--teal)}
/* ESL SECTIONS */
.cefr-levels{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:1rem;margin-bottom:2rem}
.cefr-card{text-align:center;padding:1.5rem 1rem;border-radius:var(--radius-lg);transition:all var(--transition);text-decoration:none}
.cefr-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.cefr-card .level{font-size:1.5rem;font-weight:800;display:block}
.cefr-card .desc{font-size:.8rem;color:var(--text-light);margin-top:.25rem}
.cefr-a1{background:#e3f2fd;border:2px solid #90caf9}.cefr-a1 .level{color:#0d47a1}
.cefr-a2{background:#e8f5e9;border:2px solid #a5d6a7}.cefr-a2 .level{color:#1b5e20}
.cefr-b1{background:#fff8e1;border:2px solid #ffe082}.cefr-b1 .level{color:#f57f17}
.cefr-b2{background:#fce4ec;border:2px solid #f48fb1}.cefr-b2 .level{color:#880e4f}
.cefr-c1{background:#ede7f6;border:2px solid #b39ddb}.cefr-c1 .level{color:#4a148c}
.cefr-c2{background:#efebe9;border:2px solid #bcaaa4}.cefr-c2 .level{color:#3e2723}
/* TEACHER TOOLS */
.tool-card{display:flex;gap:1.5rem;align-items:flex-start;padding:1.5rem;background:var(--white);border-radius:var(--radius-lg);box-shadow:var(--shadow);margin-bottom:1.5rem;border:1px solid var(--border)}
.tool-card .card-icon{flex-shrink:0}
@media(max-width:480px){.tool-card{flex-direction:column}}
/* FOOTER */
.site-footer{background:var(--brown);color:var(--cream);padding:3rem 1rem 1.5rem}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:2rem;max-width:1200px;margin:0 auto 2rem}
.footer-col h4{color:var(--amber);font-size:.95rem;margin-bottom:1rem;text-transform:uppercase;letter-spacing:.05em}
.footer-col ul{list-style:none;padding:0}
.footer-col li{margin-bottom:.5rem}
.footer-col a{color:var(--cream-dark);font-size:.9rem;transition:color var(--transition)}
.footer-col a:hover{color:var(--amber)}
.footer-bottom{text-align:center;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.15);max-width:1200px;margin:0 auto}
.footer-bottom p{font-size:.8rem;color:var(--gray-300);margin-bottom:.25rem}
.gwn-badge{display:inline-flex;align-items:center;gap:.35rem;background:rgba(255,255,255,.08);padding:.35rem .75rem;border-radius:20px;font-size:.75rem;color:var(--amber);margin-top:.5rem}
/* ADSENSE PLACEHOLDER */
.ad-placeholder{background:var(--gray-50);border:1px dashed var(--border);border-radius:var(--radius);padding:2rem;text-align:center;color:var(--text-muted);font-size:.8rem;margin:1.5rem 0;min-height:90px;display:flex;align-items:center;justify-content:center}
/* PANELS SYSTEM */
.panel-container{display:grid;gap:1.5rem}
.panel{background:var(--white);border-radius:var(--radius-lg);box-shadow:var(--shadow);border:1px solid var(--border);overflow:hidden;position:relative}
.panel-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;background:var(--cream);border-bottom:1px solid var(--border);cursor:move;user-select:none}
.panel-header h3{font-size:.9rem;margin:0}
.panel-controls{display:flex;gap:.25rem}
.panel-controls button{background:none;border:none;cursor:pointer;padding:.2rem;color:var(--text-muted);transition:color var(--transition)}
.panel-controls button:hover{color:var(--text)}
.panel-body{padding:1rem}
.resize-handle{position:absolute;bottom:0;right:0;width:16px;height:16px;cursor:nwse-resize;opacity:.3;transition:opacity var(--transition)}
.resize-handle:hover{opacity:.7}
.resize-handle::after{content:'';position:absolute;bottom:3px;right:3px;width:8px;height:8px;border-right:2px solid var(--text-muted);border-bottom:2px solid var(--text-muted)}
@media(min-width:900px){
.panel-container.two-col{grid-template-columns:1fr 1fr}
.panel-container.three-col{grid-template-columns:1fr 1fr 1fr}
.panel-container .panel-wide{grid-column:span 2}
}
/* PRONUNCIATION */
.pron-block{display:flex;align-items:center;gap:1rem;padding:1rem;background:var(--cream);border-radius:var(--radius);margin-bottom:1rem}
.pron-ipa{font-size:1.2rem;font-family:var(--font-serif);color:var(--teal)}
.pron-tip{font-size:.9rem;color:var(--text-light)}
/* ABOUT PAGE */
.about-hero{background:linear-gradient(135deg,var(--teal-dark),var(--teal));color:var(--white);padding:4rem 1rem;text-align:center}
.about-hero h1{color:var(--white)}
.mission-statement{font-size:1.2rem;line-height:1.8;max-width:700px;margin:2rem auto;text-align:center;font-family:var(--font-serif);color:var(--brown-light)}
.team-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1.5rem}
.team-member{text-align:center;padding:1.5rem}
.team-avatar{width:80px;height:80px;border-radius:50%;background:linear-gradient(135deg,var(--teal),var(--amber));margin:0 auto 1rem;display:flex;align-items:center;justify-content:center;color:var(--white);font-size:1.5rem;font-weight:700}
/* LEGAL PAGES */
.legal-content{max-width:800px;margin:0 auto;padding:2rem 1rem}
.legal-content h2{margin-top:2rem;margin-bottom:.75rem;font-size:1.3rem}
.legal-content p,.legal-content li{font-size:.95rem;color:var(--text-light)}
/* UTILITY */
.text-center{text-align:center}
.mt-1{margin-top:1rem}.mt-2{margin-top:2rem}.mt-3{margin-top:3rem}
.mb-1{margin-bottom:1rem}.mb-2{margin-bottom:2rem}
.flex-center{display:flex;align-items:center;justify-content:center}
.gap-1{gap:1rem}
/* PRINT */
@media print{.site-header,.site-footer,.ad-placeholder,.newsletter{display:none}body{background:#fff;color:#000}}
