:root {
    --text-main: #111827;
    --text-muted: #6b7280;
    --bg-main: #ffffff;
    --bg-muted: #f9fafb;
    --border-color: #e5e7eb;
    --accent: #0f172a;
    --accent-hover: #374151;
    --link-color: #2563eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-color);
}
.nav-logo {
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -0.02em;
}
.nav-links a {
    margin-left: 24px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--text-main);
}

/* Layout Containers */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}
.article-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0;
}
h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 20px 0;
    line-height: 1.1;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 40px auto;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.card {
    display: block;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease-in-out;
}
.card:hover {
    border-color: var(--text-muted);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.08);
}
.card h3 {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card h3::after {
    content: "→";
    color: var(--text-muted);
    transition: transform 0.2s;
    opacity: 0;
    transform: translateX(-10px);
}
.card:hover h3::after {
    opacity: 1;
    transform: translateX(0);
    color: var(--text-main);
}
.card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.card h3 a {
    color: inherit;
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s;
}
.btn:hover {
    background-color: var(--accent-hover);
}
.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--border-color);
    margin-left: 12px;
}
.btn-outline:hover {
    background-color: var(--bg-muted);
}

/* Typography for Articles */
.breadcrumb {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 32px;
    font-weight: 500;
}
.breadcrumb:hover { color: var(--text-main); }
article h1 { font-size: 2.5rem; text-align: left; }
article h2 { margin-top: 48px; font-size: 1.5rem; letter-spacing: -0.02em; border-bottom: 1px solid var(--border-color); padding-bottom: 12px;}
article p { font-size: 1.05rem; color: #374151; margin-bottom: 24px; }
article a { color: var(--link-color); text-decoration: none; }
article a:hover { text-decoration: underline; }
code {
    background: #f1f5f9;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
    color: #0f172a;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 80px;
}
footer a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 12px;
}
footer a:hover { color: var(--text-main); }

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
}

.hero-title-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.hero-logo {
    width: 80px;
    height: auto;
    flex-shrink: 0;
    display: block;
}

.hero-title-wrapper h1 {
    margin: 0;
    text-align: left;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px 20px;
}

.hero {
    text-align: center;
    padding: 0 0 80px 0;
}
