@font-face{font-family:"DM Sans";src:url("../fonts/dm-sans-latin.woff2") format("woff2");font-style:normal;font-weight:400 700;font-display:swap}
@font-face{font-family:"Playfair Display";src:url("../fonts/playfair-display-italic-latin.woff2") format("woff2");font-style:italic;font-weight:400 500;font-display:swap}

:root{--accent:#20bdb5;--accent-deep:color-mix(in srgb,var(--accent) 66%,#003f3d);--ink:#252a2c;--muted:#626b6d;--line:#e4e9e9;--soft:#e6f5f4;--surface:#fff;font-family:"DM Sans",Arial,sans-serif;color:var(--ink);background:var(--surface);font-synthesis:none}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-width:320px}
button,input,textarea{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:none}
img{max-width:100%}
:focus-visible{outline:3px solid var(--accent-deep);outline-offset:3px}

.app-shell{display:grid;grid-template-columns:270px minmax(0,1fr);min-height:100vh}
.sidebar{position:sticky;top:0;display:flex;flex-direction:column;height:100vh;border-right:1px solid #e8ebeb;background:#fff;z-index:20}
.sidebar-brand{display:flex;align-items:flex-start;justify-content:center;min-height:270px;padding:35px 5px 22px}
.brand-logo{display:block;width:225px;max-height:225px;object-fit:contain}
.brand-name{display:block;margin-top:55px;font-family:"Playfair Display",Georgia,serif;font-size:32px;font-style:italic;text-align:center}
.side-nav{display:grid;gap:12px;padding:0 22px}
.nav-link{display:flex;align-items:center;gap:20px;min-height:58px;padding:10px 16px;border-radius:8px;font-size:18px;font-weight:600;white-space:nowrap;transition:background .16s ease,color .16s ease}
.nav-link:hover{background:#f1f7f6}
.nav-link.is-active{background:var(--soft)}
.nav-link img{width:26px;height:26px;flex:none}
.nav-link.is-active img{filter:invert(49%) sepia(64%) saturate(689%) hue-rotate(129deg) brightness(93%)}
.sidebar-foot{margin-top:auto;padding:20px 34px 26px;color:#8b9293;font-size:12px;letter-spacing:.08em;text-transform:uppercase}
.nav-scrim{display:none}
.app-column{min-width:0}
.topbar{position:relative;display:flex;align-items:center;justify-content:flex-end;min-height:105px;padding:0 4.5vw 0 64px;z-index:5}
.account-menu{position:relative;font-size:18px;font-weight:600}
.account-menu summary{display:flex;align-items:center;gap:13px;list-style:none;cursor:pointer}
.account-menu summary::-webkit-details-marker{display:none}
.account-menu summary>img:first-child{width:27px;height:27px}
.account-menu .caret{width:17px;height:17px}
.account-popover{position:absolute;right:0;top:43px;display:grid;gap:4px;width:255px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 15px 40px #173a3820;font-size:14px;font-weight:500;z-index:30}
.account-email{overflow:hidden;padding:10px 12px;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;border-bottom:1px solid var(--line)}
.account-popover a,.account-popover button{display:block;width:100%;padding:10px 12px;border:0;border-radius:4px;background:transparent;color:var(--ink);text-align:left}
.account-popover a:hover,.account-popover button:hover{background:#eef7f6}
.menu-toggle,.mobile-community-name{display:none}
.page-content{position:relative;min-height:calc(100vh - 105px);padding:24px 4.5vw 80px 64px;overflow:hidden}
.eyebrow{margin:0;color:#3b4244;font-size:16px;font-weight:600;letter-spacing:.27em;line-height:1.5;text-transform:uppercase}
.accent-rule{display:block;width:54px;height:3px;margin-top:18px;background:var(--accent)}
h1,h2,h3,p{overflow-wrap:break-word}
.home-hero,.course-section{position:relative;z-index:1}
.home-hero h1{max-width:900px;margin:57px 0 28px;font-family:"Playfair Display",Georgia,serif;font-size:clamp(54px,5.25vw,78px);font-style:italic;font-weight:400;line-height:1.09;letter-spacing:-.035em}
.home-hero>p:last-child{max-width:800px;margin:0;font-size:23px;line-height:1.5}
.leaf-art{position:absolute;top:-70px;right:-60px;width:min(800px,57vw);pointer-events:none;z-index:0}
.leaf-art img{width:100%;display:block}
.course-section{margin-top:82px}
.course-section h2{margin:0 0 31px;padding-left:28px;border-left:4px solid var(--accent);font-family:"Playfair Display",Georgia,serif;font-size:56px;font-style:italic;font-weight:400;line-height:1.15;letter-spacing:-.025em}
.course-list{max-width:1120px}
.course-row{display:flex;align-items:center;gap:42px;min-height:152px;padding:18px 34px;border-bottom:1px solid var(--line)}
.course-row:last-child{border-bottom:0}
.course-icon{width:55px;height:55px;flex:none;filter:invert(48%) sepia(72%) saturate(650%) hue-rotate(129deg) brightness(89%)}
.course-copy{min-width:0;flex:1}
.course-copy h3{margin:0;font-size:30px;font-weight:700;line-height:1.25;letter-spacing:-.025em}
.course-copy p{margin:7px 0 0;color:var(--muted);font-size:14px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:20px;min-height:56px;padding:12px 25px;border:1px solid transparent;border-radius:9px;background:var(--accent-deep);color:#fff;font-size:17px;font-weight:700;line-height:1.2;text-align:center;transition:filter .15s ease,transform .15s ease}
.button:hover{filter:brightness(.93)}
.button:active{transform:translateY(1px)}
.button img{width:24px;height:24px;filter:invert(1)}
.course-button{min-width:285px;min-height:62px;font-size:20px}
.text-link,.back-link{color:var(--accent-deep);font-weight:700}
.text-link:hover,.back-link:hover{text-decoration:underline}

.inner-page{max-width:1020px;padding-top:34px}
.inner-page h1,.gateway h1,.auth-panel h1{margin:26px 0 18px;font-family:"Playfair Display",Georgia,serif;font-size:clamp(48px,5vw,72px);font-style:italic;font-weight:400;line-height:1.12;letter-spacing:-.03em}
.intro{max-width:740px;margin:0;color:#4f585a;font-size:20px;line-height:1.55}
.back-link{display:inline-flex;align-items:center;gap:9px;margin-bottom:56px;font-size:15px}
.back-link img{width:21px;height:21px;filter:invert(41%) sepia(48%) saturate(742%) hue-rotate(128deg)}
.content-section{margin-top:72px}
.content-section h2{margin:0 0 22px;font-size:27px;letter-spacing:-.02em}
.content-row{display:flex;align-items:center;gap:25px;min-height:92px;padding:16px 8px;border-top:1px solid var(--line)}
.content-row:last-child{border-bottom:1px solid var(--line)}
.content-row:hover{background:#f7fbfa}
.content-row>img{width:22px;height:22px;margin-left:auto}
.content-number{color:var(--accent-deep);font-size:19px;font-weight:700}
.content-name{display:grid;gap:4px;font-size:19px;font-weight:600}
.content-name small{color:var(--muted);font-size:13px;font-weight:400}
.lesson-page{max-width:820px}
.lesson-body{margin-top:55px;font-size:18px;line-height:1.8}
.lesson-body p{margin:0 0 1.35em}
.narrow-page{max-width:710px}
.profile-list{margin:48px 0 20px}
.profile-list>div{display:grid;grid-template-columns:170px 1fr;gap:20px;padding:20px 0;border-top:1px solid var(--line)}
.profile-list>div:last-child{border-bottom:1px solid var(--line)}
.profile-list dt{color:var(--muted)}
.profile-list dd{margin:0;font-weight:700}
.helper-text{color:var(--muted);font-size:14px;line-height:1.5}

.public-header{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:88px;padding:0 clamp(24px,6vw,90px);border-bottom:1px solid var(--line)}
.public-header .wordmark{font-size:17px;font-weight:700;letter-spacing:.21em}
.public-header>a:last-child{font-size:15px;font-weight:700}
.public-main{padding:80px 24px 110px}
.gateway{max-width:980px;margin:45px auto}
.gateway h1{max-width:800px}
.gateway-actions{display:flex;align-items:center;gap:30px;margin-top:36px}
.community-list{display:grid;max-width:680px;margin-top:48px;border-top:1px solid var(--line)}
.community-list a{display:flex;justify-content:space-between;gap:20px;padding:20px 8px;border-bottom:1px solid var(--line);font-size:20px;font-weight:600}
.community-list a:hover{color:var(--accent-deep)}
.auth-panel{max-width:580px;margin:10px auto}
.auth-panel h1{font-size:clamp(42px,4vw,60px)}
.auth-panel .intro{font-size:18px}
.form-stack{display:grid;gap:24px;max-width:620px;margin-top:36px}
.field{display:grid;gap:9px}
.field label{font-size:15px;font-weight:700}
.field input,.field textarea{width:100%;min-height:50px;padding:12px 15px;border:1px solid #b9c5c6;border-radius:6px;background:#fff;color:var(--ink);font-size:16px;outline:none}
.field textarea{resize:vertical;min-height:150px}
.field input:focus,.field textarea:focus{border-color:var(--accent-deep);box-shadow:0 0 0 3px #dcefed}
.field small{color:var(--muted);font-size:13px;line-height:1.5}
.field small ul{padding-left:20px}
.field .errorlist,.form-error .errorlist{margin:0;padding:0;list-style:none;color:#b22929;font-size:14px}
.field .errorlist li{margin-top:3px}
.form-error{padding:14px;border:1px solid #f0c4c4;border-radius:5px;background:#fff7f7;color:#9e2525}
.form-stack>.button{justify-self:start;min-width:180px}
.read-only-field{display:grid;gap:4px;color:var(--muted);font-size:14px}
.read-only-field strong{color:var(--ink);font-size:17px}
.auth-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;margin-top:28px;font-size:14px}
.auth-links a,.auth-note a{color:var(--accent-deep);font-weight:700}
.auth-note{margin-top:32px;color:var(--muted);font-size:14px}

@media(max-width:1050px){.app-shell{grid-template-columns:230px minmax(0,1fr)}.sidebar-brand{min-height:245px}.brand-logo{width:170px}.side-nav{padding:0 15px}.nav-link{gap:14px;font-size:16px}.page-content{padding-left:40px}.topbar{padding-left:40px}.home-hero h1{font-size:58px}.course-row{gap:22px;padding-left:15px;padding-right:15px}.course-copy h3{font-size:25px}.course-button{min-width:225px;font-size:17px}}
@media(max-width:820px){.app-shell{display:block}.sidebar{position:fixed;left:0;top:0;width:min(300px,85vw);height:100dvh;transform:translateX(-105%);transition:transform .22s ease;box-shadow:12px 0 32px #102e2a18}.nav-open .sidebar{transform:translateX(0)}.nav-scrim{position:fixed;inset:0;z-index:10;display:block;border:0;background:#102e2a66;opacity:0;pointer-events:none;transition:opacity .22s ease}.nav-open .nav-scrim{opacity:1;pointer-events:auto}.sidebar-brand{min-height:225px;padding-top:28px}.brand-logo{width:160px}.topbar{justify-content:space-between;min-height:72px;padding:0 22px;border-bottom:1px solid var(--line)}.menu-toggle,.mobile-community-name{display:block}.menu-toggle{width:44px;height:44px;padding:9px;border:0;background:transparent}.menu-toggle img{width:26px;height:26px}.mobile-community-name{overflow:hidden;max-width:42vw;font-size:16px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.account-menu{font-size:15px}.account-menu summary{gap:5px}.account-menu summary>img:first-child{width:24px;height:24px}.account-menu .caret{width:14px;height:14px}.page-content{min-height:calc(100vh - 72px);padding:35px 24px 70px}.leaf-art{top:0;right:-55px;width:330px;opacity:.22}.home-hero h1{margin-top:45px;font-size:clamp(40px,7vw,58px)}.home-hero>p:last-child{font-size:18px}.course-section{margin-top:65px}.course-section h2{font-size:44px}.course-row{min-height:130px}.inner-page{padding-top:12px}}
@media(max-width:600px){.account-menu summary span{display:none}.account-menu .caret{display:none}.account-popover{right:-5px}.eyebrow{font-size:12px;letter-spacing:.21em}.accent-rule{margin-top:12px}.home-hero h1{font-size:clamp(37px,9vw,48px);line-height:1.13}.course-section{margin-top:55px}.course-section h2{margin-bottom:18px;padding-left:17px;font-size:39px}.course-row{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px 15px;min-height:0;padding:24px 0}.course-icon{width:34px;height:34px}.course-copy h3{font-size:21px}.course-button{grid-column:2;justify-self:start;min-width:0;min-height:48px;margin-top:8px;padding:10px 17px;font-size:15px}.course-button img{width:18px;height:18px}.inner-page h1,.gateway h1{font-size:43px}.intro{font-size:17px}.public-header{min-height:72px;padding:0 22px}.public-header .wordmark{font-size:13px}.public-main{padding:50px 22px 85px}.gateway{margin:10px auto}.gateway-actions{align-items:flex-start;flex-direction:column;gap:18px}.content-row{gap:15px}.content-name{font-size:16px}.profile-list>div{grid-template-columns:1fr;gap:6px}.form-stack{gap:21px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
