@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #f8f9fa;
    --text: #333;
    --heading: #1a1a1a;
    --muted: #666;
    --card: #fff;
    --border: #eee;
    --accent: #0066cc;
    --pill-bg: #e9ecef;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 720px;
    width: 100%;
    margin: 40px auto;
    padding: 40px 30px;
    background: var(--card);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.container--wide {
    max-width: 860px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--heading);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--heading);
    margin: 0 0 1rem 0;
}

.meta {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.skill-pill {
    background: var(--pill-bg);
    color: #444;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
}

.content p {
    font-size: 1.1rem;
    margin-bottom: 1.5em;
    text-align: justify;
}

.content p:last-child {
    margin-bottom: 0;
}

.hire {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    color: var(--accent);
    font-weight: 500;
}

.nav-links {
    text-align: center;
    margin-top: 24px;
    font-size: 1rem;
}

.nav-links a {
    margin: 0 12px;
}

.recent-posts {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.recent-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li {
    margin-bottom: 12px;
}

.recent-posts .post-date {
    color: var(--muted);
    font-size: 0.9rem;
}

.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-list li {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.post-list li:last-child {
    border-bottom: none;
}

.post-list h3 {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
}

.post-meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.article-content {
    font-size: 1.05rem;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    color: var(--heading);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.article-content p {
    margin-bottom: 1.2em;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.article-content th,
.article-content td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
}

.article-content th {
    background: var(--pill-bg);
}

.article-content blockquote {
    border-left: 4px solid var(--accent);
    margin: 1.5em 0;
    padding: 0.5em 1em;
    color: var(--muted);
}

.article-content code {
    background: var(--pill-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.article-content pre {
    background: #1e1e1e;
    color: #f8f8f2;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
}

.article-content pre code {
    background: none;
    padding: 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.flash {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.flash--success {
    background: #d4edda;
    color: #155724;
}

.flash--error {
    background: #f8d7da;
    color: #721c24;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-actions a,
.admin-actions button {
    margin-left: 8px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    background: var(--pill-bg);
    text-decoration: none;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn--primary:hover {
    background: #0052a3;
    color: #fff;
}

.btn--danger {
    color: #c0392b;
    border-color: #c0392b;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    font-weight: 600;
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge--published {
    background: #d4edda;
    color: #155724;
}

.badge--draft {
    background: var(--pill-bg);
    color: var(--muted);
}