:root {
  --bg: #000000;
  --green: #245a31;
  --green-dark: #1b4726;
  --green-glow: rgba(36, 90, 49, 0.35);
  --glass: rgba(255, 255, 255, 0.26);
  --glass-strong: rgba(255, 255, 255, 0.38);
  --ink: #0a1c2b;
  --ink-soft: #1e3a50;
  --ink-strong: #06121d;
  --border: rgba(255, 255, 255, 0.52);
  --shadow: rgba(4, 17, 30, 0.2);
  --button: rgba(135, 160, 171, 0.78);
  --button-dark: rgba(113, 136, 146, 0.86);
  --danger: rgba(144, 62, 78, 0.92);
  --ok: #174d31;
  --radius: 22px;
  --font-sans: Arial, Helvetica, "Segoe UI", sans-serif;
  --font-mono: "Lucida Console", "Courier New", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; font-family: var(--font-sans); color: var(--ink); }
img { max-width: 100%; display: block; }
.mono { font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: lowercase; }
.landing-body { background: #000; min-height: 100vh; }
.terminal-screen { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.landing-link-wrap { text-align: center; }
.landing-link { display: inline-block; color: var(--green); text-decoration: none; font-size: clamp(1.3rem, 3.6vw, 2.2rem); letter-spacing: 0.06em; text-shadow: 0 0 14px var(--green-glow); padding: 0.5rem 0.7rem; border-radius: 12px; }
.blink-link { animation: blinkSlow 2.8s ease-in-out infinite; }
.blink-title { color: var(--green-dark); text-shadow: 0 0 10px rgba(27,71,38,0.22); animation: blinkText 1.8s steps(1,end) infinite; font-weight: 900; }
@keyframes blinkText { 0%,55%{opacity:1;} 56%,100%{opacity:.78;} }
@keyframes blinkSlow { 0%,100%{opacity:1;} 50%{opacity:.42;} }
.access-body, .blog-body { min-height: 100vh; background-position: center; background-size: cover; background-repeat: no-repeat; background-attachment: fixed; }
.access-body { background-image: linear-gradient(140deg, rgba(237, 246, 255, 0.38), rgba(208, 237, 242, 0.18)), url('background.jpg'); }
.blog-body { background-image: linear-gradient(140deg, rgba(241, 247, 250, 0.03), rgba(133, 184, 199, 0.02)), url('background.jpg'); }
.background-overlay { position: fixed; inset: 0; background: linear-gradient(180deg, rgba(7,16,28,0.06), rgba(255,255,255,0.02)); pointer-events: none; }
.access-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; position: relative; z-index: 1; }
.glass-panel, .glass-strip { background: rgba(255, 255, 255, 0.30); border: 1px solid rgba(255,255,255,0.58); box-shadow: 0 18px 50px rgba(6, 21, 36, 0.18); backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%); }
.outlined-card { border: 1px solid var(--border); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28), 0 14px 28px rgba(17, 41, 62, 0.10); }
.access-panel { width: min(100%, 460px); padding: 1.4rem; border-radius: var(--radius); }
.console-head { display: flex; align-items: center; gap: .65rem; color: var(--ink-soft); font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(36,90,49,0.55); }
.access-panel h1 { text-align: center; margin: 1.2rem 0 .5rem; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.access-copy { text-align: center; color: var(--ink-soft); margin-bottom: 1rem; }
.access-form, .admin-form { display: grid; gap: .8rem; }
.access-form input, .admin-form input, .admin-form textarea { width: 100%; border-radius: 16px; border: 1px solid rgba(112, 161, 173, 0.48); padding: .95rem 1rem; font: inherit; color: var(--ink); background: rgba(255,255,255,0.88); }
.access-form button, .admin-form button, .ghost-button { border: 1px solid rgba(87, 159, 116, 0.30); border-radius: 999px; padding: .82rem 1.1rem; font: inherit; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.access-form button, .admin-form button { background: rgba(56,101,70,.20); color: #153021; font-weight: 800; }
.ghost-button { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; color: #102532; background: var(--button-dark); font-weight: 800; }
.ghost-button:hover, .admin-form button:hover, .access-form button:hover { transform: translateY(-1px); }
.access-message { min-height: 1.3rem; text-align: center; color: #7f2449; font-weight: 700; }
.admin-ok { min-height: 1.3rem; text-align: center; color: var(--ok); font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 10; width: min(530px, calc(100% - 1.2rem)); margin: .8rem auto 0; border-radius: 18px; padding: .75rem .9rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; }
.header-actions.left { justify-self: start; }
.header-actions.right { justify-self: end; }
.brand-wrap { justify-self: center; text-align: center; }
.header-brand { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 950; }
.blog-layout { position: relative; z-index: 1; width: min(530px, calc(100% - 1.2rem)); margin: 1rem auto 2rem; }
.hero-strip { width: 100%; border-radius: 20px; padding: 1rem 1.15rem; margin-bottom: 1rem; }
.hero-strip p { margin: 0; color: var(--ink-strong); font-weight: 700; line-height: 1.55; }
.posts-grid { display: grid; gap: 1rem; }
.post-card { width: 100%; border-radius: 22px; padding: 1rem 1.1rem 1.1rem; }
.post-meta { display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; color: var(--ink-soft); font-size: .88rem; font-weight: 700; }
.post-title { margin: .55rem 0 .8rem; font-size: clamp(1.18rem, 2.1vw, 1.42rem); line-height: 1.25; color: var(--ink-strong); font-weight: 900; }
.post-text { margin: 0; color: var(--ink-strong); line-height: 1.65; font-size: 1rem; font-weight: 700; }
.post-image { width: 100%; height: auto; max-height: 360px; object-fit: cover; border-radius: 16px; margin: 0 0 .85rem; border: 1px solid rgba(255,255,255,.58); cursor: zoom-in; }
.admin-body .post-image { max-height: 210px; }
.admin-layout { position: relative; z-index: 1; width: min(920px, calc(100% - 1.2rem)); margin: 1rem auto 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.editor-panel, .preview-panel { border-radius: 22px; padding: 1rem 1.1rem; }
.editor-panel h1, .preview-panel h2 { margin-top: 0; color: var(--ink-strong); }
.admin-note { color: var(--ink-soft); font-size: .95rem; }
.admin-buttons { display: flex; gap: .75rem; }
.delete-form { margin-top: .85rem; }
.danger { background: var(--danger) !important; color: #fff !important; border-color: rgba(90, 16, 33, 0.24) !important; }
.image-modal { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; }
.image-modal.open { display: flex; }
.image-modal-inner { position: relative; max-width: min(92vw, 1100px); max-height: 90vh; }
.image-modal-inner img { max-width: 100%; max-height: 90vh; border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.image-modal-close { position: absolute; top: .5rem; right: .5rem; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 999px; background: rgba(255,255,255,.86); color: #102532; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 820px) { .admin-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .site-header, .blog-layout { width: min(530px, calc(100% - 1rem)); }
  .site-header { grid-template-columns: auto 1fr auto; padding: .7rem; }
  .header-brand { font-size: 1.05rem; }
  .post-card, .hero-strip { padding: .95rem; }
  .post-title { font-size: 1.1rem; }
  .post-text { font-size: .98rem; }
  .ghost-button, .access-form button, .admin-form button { padding: .72rem .95rem; }
}
