:root {
  --ink:#17211d; --muted:#68736e; --paper:#fffdf8; --soft:#f3f0e8; --line:#dedbd2;
  --accent:#e7583e; --accent-dark:#b93626; --green:#1f4f42; --success:#dff2e8; --danger:#a72e24;
  --serif:Georgia,"Times New Roman",serif; --sans:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --shadow:0 18px 60px rgba(25,37,31,.1);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.55}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
button,a{touch-action:manipulation}
img{max-width:100%}
.site-header{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,5vw,76px);background:rgba(255,253,248,.92);backdrop-filter:blur(16px);position:relative;z-index:20}
.brand{display:flex;align-items:center;gap:12px;font-weight:800;letter-spacing:-.02em}
.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--green);color:#fff;font-family:var(--serif);font-size:23px}
.header-actions{display:flex;align-items:center;gap:22px;font-size:14px;font-weight:700}
.header-actions>a:not(.button):hover{color:var(--accent)}
.button{border:0;border-radius:999px;background:var(--accent);color:#fff;display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px;font-weight:800;cursor:pointer;box-shadow:0 8px 24px rgba(231,88,62,.22);transition:.18s transform,.18s background}
.button:hover{background:var(--accent-dark);transform:translateY(-1px)}
.button-small{min-height:36px;padding:0 15px;font-size:13px}
.button-ghost{background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:none}
.button-ghost:hover{background:var(--soft);color:var(--ink)}
.hero{max-width:1120px;margin:0 auto;padding:clamp(70px,11vw,140px) 24px clamp(48px,7vw,90px);position:relative}
.hero:after{content:"";position:absolute;right:5%;top:23%;width:120px;height:120px;border:24px solid var(--soft);border-radius:50%;z-index:-1}
.eyebrow{text-transform:uppercase;letter-spacing:.2em;font-size:12px;font-weight:900;color:var(--accent)}
.hero h1,.article h1,.auth-card h1,.admin-heading h1{font-family:var(--serif);font-weight:500;letter-spacing:-.045em;line-height:.98;margin:.28em 0}
.hero h1{font-size:clamp(50px,9vw,105px);max-width:920px}
.hero p{font-family:var(--serif);font-size:clamp(19px,2.2vw,27px);color:var(--muted);max-width:700px;line-height:1.45}
.news-list{max-width:1120px;margin:0 auto;padding:0 24px 100px;display:grid;gap:26px}
.news-card{border-top:1px solid var(--line);padding-top:26px;display:grid;grid-template-columns:1fr;gap:24px}
.news-card.with-image{grid-template-columns:minmax(260px,38%) 1fr}
.card-image{display:block;aspect-ratio:16/10;overflow:hidden;border-radius:20px;background:var(--soft)}
.card-image img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.card-image:hover img{transform:scale(1.025)}
.card-body{padding:7px 0 14px;display:flex;flex-direction:column;align-items:flex-start}
.meta{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:13px;font-weight:650}
.meta span:before{content:"•";margin-right:12px;color:var(--accent)}
.card-body h2{font-family:var(--serif);font-size:clamp(29px,4vw,46px);font-weight:500;letter-spacing:-.035em;line-height:1.08;margin:12px 0 12px}
.card-body h2 a:hover{color:var(--accent-dark)}
.card-body p{color:#4c5852;font-size:17px;max-width:680px;margin:0 0 22px}
.read-more{font-size:14px;font-weight:850;color:var(--green);margin-top:auto}
.read-more span{display:inline-block;transition:transform .2s}.read-more:hover span{transform:translateX(4px)}
.empty-state{text-align:center;padding:70px 24px;border:1px dashed #c9c5bb;border-radius:24px;background:#faf8f2}
.empty-state>span{font-size:32px;color:var(--accent)}.empty-state h2{font-family:var(--serif);font-size:32px;font-weight:500;margin:8px}.empty-state p{color:var(--muted)}
.empty-state.small{padding:35px}.empty-state.small h2{font-size:25px}
.site-footer{border-top:1px solid var(--line);min-height:100px;padding:30px clamp(20px,5vw,76px);display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:13px}
.flash{position:fixed;z-index:100;left:50%;top:84px;transform:translateX(-50%);padding:12px 18px;border-radius:999px;background:var(--success);color:#174d35;font-weight:750;box-shadow:var(--shadow);max-width:calc(100% - 32px);text-align:center}
.flash-error{background:#ffe2de;color:#81281f}

.auth-shell{min-height:calc(100vh - 176px);display:grid;place-items:center;padding:60px 20px;background:radial-gradient(circle at 78% 22%,#f4dccf 0,transparent 24%),linear-gradient(135deg,#f8f5ee,#f0eee6)}
.auth-card{width:min(650px,100%);background:rgba(255,253,248,.95);border:1px solid rgba(222,219,210,.85);border-radius:30px;padding:clamp(30px,6vw,64px);box-shadow:var(--shadow)}
.auth-card.compact{width:min(520px,100%)}
.auth-card h1{font-size:clamp(39px,7vw,61px)}
.auth-card p{color:var(--muted);font-size:17px;margin:0 0 28px}
.stack-form{display:grid;gap:18px}.stack-form label,.inline-form label,.image-tools label{display:grid;gap:7px;font-size:13px;font-weight:800;color:#3e4944}
input,textarea,select{width:100%;border:1px solid #cbc8bf;border-radius:12px;background:#fff;padding:13px 14px;color:var(--ink);outline:none}
input:focus,textarea:focus,select:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(31,79,66,.12)}
.pin-input{font-size:23px;letter-spacing:.3em;font-weight:850;font-variant-numeric:tabular-nums}

.article-shell{max-width:1050px;margin:0 auto;padding:60px 24px 120px}
.article{max-width:780px;margin:0 auto}
.article-app-title{font-family:var(--serif);font-size:24px;font-weight:600;letter-spacing:-.02em;color:var(--ink);margin-bottom:70px}
.back-link{display:inline-block;color:var(--muted);font-weight:750;font-size:14px;margin-bottom:45px}.back-link:hover{color:var(--accent)}
.article-header{border-bottom:1px solid var(--line);padding-bottom:36px;margin-bottom:44px}
.article h1{font-size:clamp(45px,8vw,78px);margin:.24em 0 .3em}
.article-teaser{font-family:var(--serif);font-size:clamp(21px,3vw,29px);line-height:1.4;color:#4d5953;margin:0 0 24px}
.article-signature{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:13px;font-weight:650}.article-signature span:before{content:"•";margin-right:12px;color:var(--accent)}
.article-content{font-family:var(--serif);font-size:20px;line-height:1.76;color:#26322c;display:flow-root}
.article-content p{margin:0 0 1.35em}.article-content h2{font-size:37px;line-height:1.15;margin:1.45em 0 .5em;letter-spacing:-.025em}.article-content h3{font-size:27px;line-height:1.2;margin:1.5em 0 .5em}
.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}
.font-serif{font-family:Georgia,"Times New Roman",serif}.font-sans{font-family:Inter,Arial,sans-serif}.font-humanist{font-family:"Trebuchet MS",Verdana,sans-serif}.font-mono{font-family:"Courier New",ui-monospace,monospace}
.text-small{font-size:.82em}.text-large{font-size:1.2em}.text-xlarge{font-size:1.5em;line-height:1.35}.color-green{color:#1f654f}.color-red{color:#a93227}.color-blue{color:#245f94}.color-gray{color:#68736e}.mark-yellow{background:#fff0a8;padding:0 .08em}.mark-green{background:#ccebd9;padding:0 .08em}.mark-rose{background:#f7ced2;padding:0 .08em}.indent-1{margin-left:2em!important}.indent-2{margin-left:4em!important}
.article-content blockquote{margin:2em 0;padding:7px 0 7px 28px;border-left:5px solid var(--accent);font-size:26px;line-height:1.45;color:#45524c}
.article-content ul,.article-content ol{padding-left:1.4em;margin:0 0 1.5em}.article-content a{text-decoration:underline;text-decoration-color:#e7a99e;text-underline-offset:3px;color:#7b281f}
.article-content figure{margin:2.2em 0;max-width:100%;clear:both}.article-content figure img{width:100%;display:block;border-radius:15px;cursor:zoom-in;box-shadow:0 10px 38px rgba(23,33,29,.12)}
.article-content figcaption{font-family:var(--sans);font-size:13px;color:var(--muted);line-height:1.45;margin-top:10px}
.article-actions{border-top:1px solid var(--line);margin-top:62px;padding-top:20px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;font-family:var(--sans)}.article-actions a{font-size:13px;font-weight:800;text-decoration:none}.facebook-share{display:inline-flex;align-items:center;gap:8px;color:#1358a8}.facebook-share span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#1877f2;color:#fff;font:bold 18px Arial}.facebook-share:hover{color:#0b4385}.article-edit-link{color:var(--muted)}.article-edit-link:hover{color:var(--accent)}
figure.align-center{margin-left:auto!important;margin-right:auto!important}figure.align-left{float:left;margin:8px 30px 18px 0!important}figure.align-right{float:right;margin:8px 0 18px 30px!important}
figure.img-25{width:25%}figure.img-50{width:50%}figure.img-75{width:75%}figure.img-100{width:100%}
.article-footer{border-top:1px solid var(--line);margin-top:65px;padding-top:26px;display:flex;gap:12px;flex-wrap:wrap}
.lightbox{width:100vw;height:100vh;max-width:none;max-height:none;border:0;padding:50px;background:rgba(6,10,8,.94);color:#fff}.lightbox::backdrop{background:transparent}
.lightbox img{width:100%;height:calc(100% - 35px);object-fit:contain}.lightbox button{position:fixed;right:22px;top:16px;width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.4);background:rgba(0,0,0,.35);color:#fff;font-size:30px;cursor:pointer}.lightbox p{text-align:center;margin:10px 0;font-size:14px}

.admin-shell{max-width:1200px;margin:0 auto;padding:70px 24px 110px}.admin-shell.narrow{max-width:980px}
.admin-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:38px}.admin-heading h1{font-size:clamp(44px,7vw,70px)}.admin-heading p{color:var(--muted);max-width:650px;margin:0}
.admin-tabs{border-bottom:1px solid var(--line);display:flex;gap:28px;margin-bottom:28px;overflow-x:auto}.admin-tabs a{padding:13px 0;white-space:nowrap;color:var(--muted);font-weight:750;font-size:14px;border-bottom:3px solid transparent}.admin-tabs a.active{color:var(--ink);border-color:var(--accent)}
.admin-panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:26px;box-shadow:0 9px 30px rgba(25,37,31,.05)}.admin-panel h2{font-family:var(--serif);font-size:28px;font-weight:500;margin:0 0 20px}
.post-table{display:grid}.post-row{display:grid;grid-template-columns:74px minmax(0,1fr) auto;gap:18px;align-items:center;padding:20px 0;border-bottom:1px solid #ebe8e0}.post-row:last-child{border-bottom:0}.post-thumb{width:74px;height:62px;border-radius:11px;background:var(--soft);overflow:hidden;display:grid;place-items:center;color:var(--green);font-family:var(--serif);font-size:30px}.post-thumb img{width:100%;height:100%;object-fit:cover}.post-main h2{font-size:18px;margin:3px 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.post-main p{font-size:12px;color:var(--muted);margin:0}.status{display:inline-block;font-size:10px;letter-spacing:.08em;text-transform:uppercase;font-weight:900}.status-published{color:#227248}.status-draft{color:#97710c}.post-link{display:flex;max-width:720px;margin-top:10px}.post-link input{min-width:0;border-radius:9px 0 0 9px;background:#f8f7f2;color:#4f5a55;font-size:12px;padding:9px 10px}.post-link button{border:0;border-radius:0 9px 9px 0;background:var(--green);color:#fff;padding:0 12px;font-size:11px;font-weight:800;white-space:nowrap}.draft-note{font-size:12px;color:#8a7040;margin-top:8px}.post-actions{display:flex;gap:13px;align-items:center;font-size:13px;font-weight:750}.post-actions form{margin:0}.danger-link{border:0;background:none;color:var(--danger);font-weight:800;padding:5px 0;cursor:pointer}.danger-link:hover{text-decoration:underline}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:24px}.user-list{margin-bottom:24px}.user-row{display:grid;grid-template-columns:45px 1fr auto;gap:14px;align-items:center;border-top:1px solid #ebe8e0;padding:14px 0}.user-row:first-of-type{border-top:0}.avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:#fff;font-weight:900}.user-row strong,.user-row span{display:block}.user-row span{font-size:12px;color:var(--muted)}.inline-form{display:flex;align-items:end;gap:13px}.inline-form label{flex:1}.pin-change{margin-top:24px}
.user-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.user-actions form{margin:0}.user-actions summary{font-size:12px;font-weight:800;color:var(--green);cursor:pointer;list-style:none}.user-actions details{position:relative}.reset-pin-form{position:absolute;right:0;top:32px;z-index:10;width:260px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;gap:8px;box-shadow:var(--shadow)}.reset-pin-form input{min-width:0;padding:8px}

.editor-shell{background:#eceae3;min-height:calc(100vh - 176px);padding:24px 24px 90px}.editor-topbar{max-width:1150px;margin:0 auto 18px;display:flex;align-items:center;justify-content:space-between;gap:20px}.editor-topbar .back-link{margin:0}.editor-save{display:flex;align-items:center;gap:10px}.editor-save>span{font-size:12px;color:var(--muted);margin-right:5px}.editor-paper{position:relative;max-width:930px;margin:0 auto;background:var(--paper);border-radius:18px;box-shadow:var(--shadow);padding:clamp(28px,6vw,70px)}
.title-input,.teaser-input{border:0;border-radius:0;background:transparent;padding:0;resize:none;box-shadow:none!important;overflow:hidden}.title-input{font-family:var(--serif);font-size:clamp(39px,7vw,67px);font-weight:500;line-height:1.03;letter-spacing:-.04em;margin-bottom:24px}.teaser-input{font-family:var(--serif);font-size:22px;line-height:1.45;color:#56615c;margin-bottom:30px}.title-input:focus,.teaser-input:focus{border:0;box-shadow:none}
.toolbar{position:sticky;top:8px;z-index:10;display:flex;align-items:center;gap:7px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);padding:9px;border-radius:13px;box-shadow:0 9px 28px rgba(20,32,26,.09)}.toolbar button,.toolbar select{width:auto;min-height:34px;border:0;background:#fff;border-radius:7px;padding:6px 9px;font-size:12px;cursor:pointer;color:var(--ink)}.toolbar button:hover,.toolbar button:focus{background:var(--soft)}.toolbar select{border-right:1px solid var(--line);border-radius:0;max-width:145px}.toolbar-group{display:flex;border-left:1px solid var(--line);padding-left:6px}.toolbar .reset-text-button{border:1px solid #d9b2aa;color:#8a2d24;background:#fff7f5;font-weight:800}.toolbar .reset-text-button:hover{background:#ffe9e5}.toolbar .image-upload-button{background:var(--green);color:#fff;font-weight:800;margin-left:auto}.toolbar .image-upload-button:hover{background:#153d33}.editor-hint{font-size:12px;color:var(--muted);padding:10px 4px 0}
.wysiwyg{min-height:500px;outline:none;font-family:var(--serif);font-size:20px;line-height:1.72;padding:28px 2px}.wysiwyg:empty:before{content:attr(data-placeholder);color:#aaa69d}.wysiwyg p{margin:0 0 1.25em}.wysiwyg h2{font-size:35px;line-height:1.15;margin:1.4em 0 .5em}.wysiwyg h3{font-size:27px}.wysiwyg blockquote{border-left:5px solid var(--accent);margin:1.7em 0;padding-left:22px;color:#52605a;font-size:25px}.wysiwyg figure{position:relative;clear:both;margin-top:28px;margin-bottom:28px}.wysiwyg figure img{width:100%;display:block;border-radius:12px}.wysiwyg figure.selected{outline:3px solid #5b9b89;outline-offset:5px}.wysiwyg figcaption{font-family:var(--sans);font-size:13px;color:var(--muted);margin-top:8px;min-height:20px}.wysiwyg.dragging{background:#e9f4ef;outline:3px dashed #5b9b89;outline-offset:7px;border-radius:8px}
.image-tools{position:fixed;z-index:30;right:24px;top:100px;width:min(310px,calc(100vw - 32px));background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px;box-shadow:var(--shadow)}.image-tools>div{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.image-tools>div button{border:0;background:none;font-size:22px;cursor:pointer}.image-tools label{margin:11px 0}.image-tools input,.image-tools select{padding:9px 10px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media(max-width:780px){
  .site-header{height:auto;min-height:68px;padding:13px 18px}.brand>span:last-child{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-actions{gap:12px}.header-actions>a:not(.button):first-child{display:none}
  .hero{padding-top:70px}.hero:after{width:80px;height:80px;border-width:17px}.news-card.with-image{grid-template-columns:1fr}.site-footer{align-items:flex-start;gap:10px;flex-direction:column}
  .article-shell{padding-top:36px}.article-content{font-size:18px}.article-content blockquote{font-size:22px}.article-content figure.align-left,.article-content figure.align-right,.wysiwyg figure.align-left,.wysiwyg figure.align-right{float:none;margin:1.8em auto!important}.article-content figure.img-25,.wysiwyg figure.img-25{width:50%}
  .admin-heading{align-items:flex-start;flex-direction:column}.admin-heading .button{width:100%}.admin-panel{padding:18px}.post-row{grid-template-columns:60px 1fr}.post-thumb{width:60px;height:54px}.post-actions{grid-column:1/-1;justify-content:flex-end;flex-wrap:wrap}.settings-grid{grid-template-columns:1fr}.inline-form{align-items:stretch;flex-direction:column}
  .user-row{grid-template-columns:45px 1fr}.user-actions{grid-column:1/-1;justify-content:flex-end}.reset-pin-form{right:auto;left:0}
  .editor-shell{padding:12px 9px 70px}.editor-topbar{align-items:flex-start;flex-direction:column}.editor-save{width:100%;display:grid;grid-template-columns:1fr 1fr}.editor-save>span{grid-column:1/-1}.editor-save .button{padding:0 10px}.editor-paper{padding:25px 18px;border-radius:12px}.toolbar{top:4px;max-height:132px;overflow-y:auto}.toolbar .image-upload-button{margin-left:0}.wysiwyg{min-height:420px}.image-tools{right:16px;top:auto;bottom:16px}
  .lightbox{padding:50px 12px 20px}
}
@media(max-width:520px){.header-actions>a.button{display:none}.article-footer .button{width:100%}.post-main h2{white-space:normal}.toolbar-group{border-left:0;padding-left:0}.news-list{padding-left:16px;padding-right:16px}}
