:root { --bg: #fafafa; --fg: #1a1a1a; --muted: #737373; --border: #e5e5e5; --accent: #000; --accent-hover: #404040; --sidebar-width: 260px; --max-width: 1000px; --card-bg: #ffffff; --shadow: 0 4px 20px rgba(0, 0, 0, 0.05); --radius: 12px; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--fg); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
.masthead { background: var(--card-bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(8px); background-color: rgba(255, 255, 255, 0.8); }
.masthead-inner { max-width: var(--max-width); margin: 0 auto; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
.site-name { font-size: 20px; font-weight: 800; color: var(--fg); text-decoration: none !important; letter-spacing: -0.5px; }
.masthead-nav a { margin-left: 24px; color: var(--muted); font-weight: 500; font-size: 14px; }
.masthead-nav a.btn { margin-left: 16px; padding: 8px 16px; background: var(--accent); color: #fff; border-radius: 6px; text-decoration: none; transition: background 0.2s; }
.masthead-nav a.btn:hover { background: var(--accent-hover); color: #fff; }
.masthead-nav a:hover { color: var(--fg); text-decoration: none; }
.page { max-width: var(--max-width); margin: 56px auto; padding: 0 24px; display: grid; grid-template-columns: var(--sidebar-width) 1fr; gap: 48px; }
.page.no-sidebar { grid-template-columns: 1fr; max-width: 720px; }
@media (max-width: 768px) { .page { grid-template-columns: 1fr; margin: 32px auto; gap: 32px; } }
.hero { text-align: center; margin-bottom: 56px; padding: 64px 24px; background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.hero h1 { margin: 0 0 16px; font-size: 40px; font-weight: 800; color: var(--fg); letter-spacing: -1px; }
.hero p { margin: 0; font-size: 20px; color: var(--muted); }
.author-card { text-align: center; padding: 40px 24px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 100px; }
.author-avatar { width: 100px; height: 100px; border-radius: 50%; background: var(--fg); color: #fff; font-size: 36px; line-height: 100px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 16px rgba(0,0,0,0.1); transition: transform 0.2s; }
a .author-avatar:hover { transform: scale(1.05); }
.author-name { font-weight: 700; font-size: 20px; margin-bottom: 4px; color: var(--fg); }
.author-bio { color: var(--muted); font-size: 14px; }
.post-list { display: flex; flex-direction: column; gap: 32px; }
.post-card { padding: 32px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0,0,0,0.02); transition: box-shadow 0.2s, transform 0.2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card h2 { margin: 0 0 12px; font-size: 28px; line-height: 1.3; font-weight: 700; letter-spacing: -0.5px; }
.post-card h2 a { color: var(--fg); }
.post-card h2 a:hover { color: var(--accent); text-decoration: none; }
.post-card .meta, .meta { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.post-card p { margin: 0; color: #525252; line-height: 1.7; font-size: 16px; }
.post-body { margin-top: 32px; font-size: 18px; color: #404040; line-height: 1.8; }
.post-body h2 { color: var(--fg); margin-top: 48px; margin-bottom: 24px; font-weight: 700; font-size: 28px; letter-spacing: -0.5px; }
.post-body h3 { color: var(--fg); margin-top: 32px; margin-bottom: 16px; font-weight: 600; font-size: 22px; }
.post-body p { margin-bottom: 24px; }
.post-body pre { background: #f5f5f5; color: #1a1a1a; padding: 20px; border-radius: var(--radius); overflow-x: auto; margin-bottom: 32px; font-size: 14px; border: 1px solid var(--border); }
.post-body code { background: #f5f5f5; color: #d946ef; padding: 3px 6px; border-radius: 4px; font-size: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.post-body pre code { background: transparent; color: inherit; padding: 0; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 32px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.post-body ul { padding-left: 20px; margin-bottom: 24px; }
.post-body li { margin-bottom: 8px; }
.post-body blockquote { border-left: 4px solid var(--accent); margin: 0 0 32px 0; padding: 16px 24px; color: #525252; font-style: italic; background: #fafafa; border-radius: 0 var(--radius) var(--radius) 0; }
.comments { margin-top: 80px; border-top: 1px solid var(--border); padding-top: 48px; }
.comments h2 { margin-top: 0; margin-bottom: 32px; font-size: 24px; font-weight: 700; }
.comment-list { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-direction: column; gap: 24px; }
.comment-list li { padding: 24px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0,0,0,0.02); margin-bottom: 0; }
.comment-list li:last-child { margin-bottom: 48px; }
.comment-meta { color: var(--muted); font-size: 14px; margin-bottom: 12px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.form { display: flex; flex-direction: column; gap: 20px; }
.form-center { max-width: 440px; margin: 64px auto; padding: 40px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-center h1 { text-align: center; margin-top: 0; margin-bottom: 32px; font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.form label { display: block; font-weight: 600; color: var(--fg); margin-bottom: 8px; font-size: 14px; }
.form input[type="text"], .form input[type="password"], .form textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 16px; font-family: inherit; background: #fafafa; transition: border-color 0.2s, box-shadow 0.2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05); background: #ffffff; }
.form button { background: var(--accent); color: #fff; border: none; padding: 14px 24px; border-radius: 8px; cursor: pointer; font-size: 16px; font-weight: 600; transition: background-color 0.2s, transform 0.1s; width: 100%; display: inline-flex; justify-content: center; align-items: center; }
.form button:hover { background: var(--accent-hover); }
.form button:active { transform: scale(0.98); }
.form .checkbox { display: flex; align-items: center; gap: 12px; font-weight: 500; margin-top: 8px; cursor: pointer; }
.form .checkbox input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--accent); }
.hint { color: var(--muted); font-size: 13px; }
.small-avatar { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: var(--fg); color: #fff; font-size: 12px; font-weight: 600; align-items: center; justify-content: center; margin-right: 6px; }
.meta-author { display: inline-flex; align-items: center; color: var(--fg); font-weight: 500; text-decoration: none; }
.meta-author:hover { text-decoration: underline; color: var(--accent); }
.profile-header { display: flex; align-items: center; gap: 24px; margin-bottom: 48px; padding: 40px; background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.profile-header .author-avatar { margin: 0; width: 80px; height: 80px; font-size: 32px; line-height: 80px; }
.profile-info h1 { margin: 0 0 8px; font-size: 28px; }
.profile-info p { margin: 0; color: var(--muted); }
