:root {
    --page-max-width: 768px;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748B;
    --text-quaternary: #868e96;
    --text-muted: #94A3B8;
    --border-color-card-primary: #e9ecef;
}

/* ---- Reboot ---- */
* {
    z-index: 0;
}

*, ::after, ::before {
    box-sizing: border-box;
}

body, h1, h2, h3, h4, p, figure, blockquote, ul, ol {
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

blockquote {
    margin: 24px 0;
    padding-left: 20px;
    border-left: 2px solid #E5E7EB;
    color: var(--text-tertiary);
    font-style: italic;
}

img {
    width: 100%;
    vertical-align: middle;
}

iframe, pre {
    width: 100%
}

table {
    width: 100%;
    margin-bottom: 1rem;
    vertical-align: top;
    border-collapse: collapse;
}

th {
    text-align: inherit;
    text-align: -webkit-match-parent;
    font-weight: 600;
}

th, td {
    padding: 0.5rem;
    border: 1px solid var(--border-color-card-primary);
}

ol, ul {
    padding-left: 1rem;
}

ol.inside, ul.inside {
    list-style-position: inside;
}

button, select {
    text-transform: none;
}

button, input, optgroup, select, textarea {
    margin: 0;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
}

button {
    padding: 6px 12px;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border-radius: 4px;
    border: 1px solid #000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input, select, textarea {
    outline: none;
    padding: 8px;
    border-radius: 8px;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-justify {
    text-align: justify;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* ---- Navigation Bar ---- */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color-card-primary);
    position: sticky;
    top: 0;
    z-index: 99;
    padding: 1rem;
}

.nav-container {
    max-width: var(--page-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.025em;
    text-align: center;
    white-space: nowrap;
}

.nav-links {
    padding: 0;
    display: flex;
    gap: 1.25rem;
    list-style: none;
    font-size: 0.937rem;
    font-weight: 500;
}

.nav-links a {
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .nav-logo {
        flex: 1;
    }

    .nav-links {
        flex: 1;
        justify-content: center;
    }

    section {
        scroll-margin-top: 64px;
    }
}

/* Main Content Container */
.main-content {
    flex: 1;
    max-width: var(--page-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.main-content.single { padding: 2rem 0; }

/* Profile Card Section */
.profile-card {
    background: #ffffff;
    border: 1px solid var(--border-color-card-primary);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #dee2e6;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-name {
    font-size: 1.275rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.25rem;
}

.profile-bio {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 1.25rem;
}

/* Social Links Stack */
.links-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.link-btn {
    background: #f1f3f5;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.link-btn:hover {
    background: var(--border-color-card-primary);
    border-color: #ced4da;
}

/* ---- Sectioning ---- */
section {
    scroll-margin-top: 96px;
}

.feed-meta {
    display: flex;
    color: var(--text-tertiary);
}

.feed-title {
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.feed-meta .feed-title {
    flex: 1;
}

.feed-link {
    font-size: 0.875rem;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feed-link:hover {
    transform: translateX(-2px);
}

/* ---- Service Section ----*/
.services-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.service-card {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color-card-primary);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.icon-blue {
    background-color: #eff6ff;
    color: #2563eb;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.service-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ---- Post Section ----*/
.post-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-item {
    background: #ffffff;
    border: 1px solid var(--border-color-card-primary);
    border-radius: 12px;
    padding: 1.5rem;
}

.post-meta {
    font-size: 0.812rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 0.937rem;
}

.single .post-title {
    text-align: center;
}

.single figure {
    margin: 0 0 12px 0;
    padding: 0;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
}

.single .post-meta {
    text-align: center;
}

.single .post-footer {
    margin-top: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.single .post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
}

.single {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.single h1 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.single h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.single h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.single h4 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.single p {
    font-size: 1.125rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.single ul,
.single ol {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.single li {
    margin-bottom: 0.5rem;
}

.single img {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
}

@media (max-width: 640px) {
    .single {
        font-size: 1rem;
    }
    .single h2 {
        margin-top: 2.5rem;
    }
    .single p {
        margin-bottom: 1.25rem;
    }
}

/* ---- Site Footer ---- */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color-card-primary);
    padding: 2rem 1rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.footer-container {
    max-width: var(--page-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-links {
    padding: 0;
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a:hover {
    color: var(--text-primary);
}
