:root { --ink: #16202a; --muted: #596673; --surface: #ffffff; --canvas: #f4f7f8; --line: #d9e0e4; --accent: #007a78; --accent-dark: #005f5d; --danger: #9c2420; --success: #106b40; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-size: 16px; line-height: 1.65; }
a { color: var(--accent-dark); text-underline-offset: 0.16em; }
img { display: block; max-width: 100%; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); font-family: Arial, sans-serif; }
.site-header .container { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header a { font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.site-header .brand { color: var(--ink); font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase; }
.page-content { padding: 64px 0 80px; }
.page-heading { max-width: 680px; margin-bottom: 36px; }
.eyebrow, .post-date { margin: 0 0 8px; color: var(--accent-dark); font-family: Arial, sans-serif; font-size: 0.77rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.05; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 4px 16px rgb(22 32 42 / 6%); }
.post-image-link { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #dce5e6; }
.post-image-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
.post-image-link:hover img { transform: scale(1.035); }
.post-card-content { padding: 24px; }
.post-card h1 { font-size: 1.55rem; line-height: 1.2; }
.post-card h1 a { color: var(--ink); text-decoration: none; }
.post-card p:not(.post-date) { color: var(--muted); }
.read-more, .back-link { font-family: Arial, sans-serif; font-size: 0.9rem; font-weight: 700; }
.read-more { text-decoration: none; }
.empty-state, .not-found { max-width: 680px; padding: 28px; background: var(--surface); border: 1px solid var(--line); }
.post-detail { max-width: 820px; }
.post-detail h1 { margin-bottom: 28px; }
.detail-image { width: 100%; max-height: 520px; margin-bottom: 30px; object-fit: cover; border-radius: 4px; }
.post-content { font-size: 1.13rem; }
.post-content h1, .post-content h2, .post-content h3 { margin: 1.7em 0 0.5em; line-height: 1.2; }
.post-content h1 { font-size: 1.7rem; }.post-content h2 { font-size: 1.45rem; }.post-content h3 { font-size: 1.2rem; }
.post-content p, .post-content ul, .post-content ol, .post-content blockquote { margin: 0 0 1.25em; }
.post-content blockquote { padding-left: 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.back-link { display: inline-block; margin-top: 40px; }
.button { display: inline-block; border: 0; border-radius: 4px; padding: 12px 18px; background: var(--accent); color: #fff; cursor: pointer; font-family: Arial, sans-serif; font-size: 0.95rem; font-weight: 700; text-decoration: none; }
.button:hover, .button:focus { background: var(--accent-dark); }
.admin-page { max-width: 760px; }
.post-form { display: grid; gap: 9px; padding: 30px; background: var(--surface); border: 1px solid var(--line); }
.post-form label { margin-top: 10px; font-family: Arial, sans-serif; font-size: 0.9rem; font-weight: 700; }
.post-form input, .post-form textarea { width: 100%; border: 1px solid #aebbc1; border-radius: 3px; padding: 11px; background: #fff; color: var(--ink); font: inherit; }
.post-form input:focus, .post-form textarea:focus { outline: 3px solid rgb(0 122 120 / 20%); border-color: var(--accent); }
.html-help { padding: 13px 15px; background: #eef6f6; border-left: 3px solid var(--accent); color: var(--muted); font-family: Arial, sans-serif; font-size: 0.84rem; line-height: 1.5; }
.html-help strong { color: var(--ink); }.html-help p { margin: 5px 0 0; }.html-help code { color: #124f4e; font-family: Consolas, monospace; font-size: 0.78rem; overflow-wrap: anywhere; }
.post-form .button { justify-self: start; margin-top: 14px; }
.admin-list { display: grid; gap: 12px; }
.admin-list-item { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px; background: var(--surface); border: 1px solid var(--line); }
.admin-list-item h2 { margin: 0; font-size: 1.2rem; line-height: 1.25; }.admin-list-item p { margin: 5px 0 0; color: var(--muted); font-size: 0.9rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }.secondary-button { background: #53636c; }.secondary-button:hover, .secondary-button:focus { background: #38454c; }
.admin-image-preview { width: min(100%, 380px); max-height: 240px; margin-bottom: 8px; object-fit: cover; border: 1px solid var(--line); }
.delete-form { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }.delete-button { background: var(--danger); }.delete-button:hover, .delete-button:focus { background: #741b17; }
.notice { margin: 0 0 22px; padding: 14px 18px; border-left: 4px solid; }
.notice p { margin: 0; }.notice ul { margin: 8px 0 0; }.notice.error { background: #fff3f2; border-color: var(--danger); color: #641713; }.notice.success { background: #eef9f3; border-color: var(--success); color: #08462a; }
@media (max-width: 820px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .container { width: min(100% - 28px, 1120px); }.page-content { padding: 40px 0 56px; }.post-grid { grid-template-columns: 1fr; }.post-form { padding: 20px; }.post-card-content { padding: 20px; }.admin-list-item { align-items: flex-start; flex-direction: column; gap: 14px; } }