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

:root {
    --bg: #0a0a0a;
    --bg-alt: #111111;
    --bg-elevated: #1a1a1a;
    --text: #e8e8e8;
    --text-light: #b8b8b8;
    --text-muted: #6b6b6b;
    --border: #252525;
    --border-light: #1f1f1f;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --code-bg: #0f0f0f;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --max-width: 900px;
    --spacing: 2rem;
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}



a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 2.5rem;
    margin-top: 0;
    font-weight: 700;
}

h2 {
    font-size: 1.875rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
    color: var(--text-light);
}

p {
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.lesson-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}
/* ═══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════════ */

.navbar {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    margin-bottom: 4rem;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo--link {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

.navbar-logo--link:hover {
    color: var(--accent);
}

.navbar-logo--img {
    height: 36px;
}

.navbar-items {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.navbar-item--link {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 400;
    position: relative;
    padding: 0.25rem 0;
}

.navbar-item--link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.navbar-item--link:hover {
    color: var(--text);
}

.navbar-item--link:hover::after {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════════════════════════════ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem !important;
    padding-bottom: 1.25rem !important;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}
.lesson-container .breadcrumb {
    margin: 0 var(--spacing);
}

.breadcrumb a {
    color: var(--text-light);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb-separator {
    color: var(--text-muted);
    opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════
   HERO / PAGE HEADER
══════════════════════════════════════════════════════════════════ */

.hero {
    text-align: center;
    padding: 4rem 0 5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 5rem;
}

.hero--image {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
}

.hero--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.subtitle {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero>p:last-of-type {
    max-width: 680px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.page-header {
    margin-bottom: 3.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.page-header h1 {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 0;
    line-height: 1.7;
}

.page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.page-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLE HEADER (Technical)
══════════════════════════════════════════════════════════════════ */

.article-header {
    margin-bottom: 3.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.article-header h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.article-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    font-family: var(--font-mono);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.article-meta-item strong {
    color: var(--text-light);
    font-weight: 500;
}

.article-meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-light);
    font-family: var(--font-mono);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.article-tag {
    padding: 0.4rem 0.8rem;
    background: var(--accent);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text);
    font-family: var(--font-mono);
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
}

.article-tag:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   FILTERS
══════════════════════════════════════════════════════════════════ */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.category-selector {
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    color: var(--text-light);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6b6b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.category-selector:hover {
    border-color: var(--accent);
    color: var(--text);
}

.category-selector:focus {
    outline: none;
    border-color: var(--accent);
    color: var(--text);
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.9rem;
    background: var(--bg-alt);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-mono);
    font-weight: 500;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLES GRID / CARDS
══════════════════════════════════════════════════════════════════ */

.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.article-card,
.article_card {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.article-card::before,
.article_card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover,
.article_card:hover {
    padding-left: 1rem;
    border-left-color: var(--accent);
}

.article-card:hover::before,
.article_card:hover::before {
    opacity: 1;
}

.article_card--top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.article_card--title,
.article-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.article_card--category {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.article_card--description,
.article-excerpt {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.article_card--bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.article_card--date,
.article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.article_card--tags,
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article_card--tag,
.tag {
    font-size: 0.75rem;
    color: var(--text);
    font-family: var(--font-mono);
    padding: 0.35rem 0.7rem;
    background: var(--accent);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
}

.article_card--tag:hover,
.tag:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLE DETAIL
══════════════════════════════════════════════════════════════════ */

.article--container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
}

.article--wrapper {
    margin-bottom: 5rem;
}

.article--picture-wrapper {
    margin-bottom: 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.article--picture-wrapper img {
    width: 100%;
    display: block;
}

.article--content {
    padding: 0;
}

/* ═══════════════════════════════════════════════════════════════
   EDUCATION
══════════════════════════════════════════════════════════════════ */

.course-grid {
    display: grid;
    gap: 1.5rem;
}

.course-card {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-alt);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.course-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.course-card h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--accent);
    font-weight: 600;
}

.course-version {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.course-card p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.course-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.module-list {
    display: grid;
    gap: 1rem;
}

.module-item {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-alt);
    transition: all 0.3s ease;
    position: relative;
}

.module-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-item:hover {
    border-color: var(--accent);
    transform: translateX(6px);
}

.module-item:hover::before {
    opacity: 1;
}

.module-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.module-item h3 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--text);
    font-weight: 600;
}

.module-order {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    background: var(--bg);
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-weight: 600;
}

.module-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.module-lesson-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.lesson-list {
    display: grid;
    gap: 0.75rem;
}

.lesson-item {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-alt);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
}

.lesson-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lesson-item:hover {
    border-color: var(--accent);
    transform: translateX(6px);
}

.lesson-item:hover::before {
    opacity: 1;
}

.lesson-order {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    min-width: 2.5rem;
    text-align: center;
    font-weight: 600;
    background: var(--bg);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.lesson-item-content {
    flex: 1;
}

.lesson-item h4 {
    font-size: 1.1rem;
    margin: 0 0 0.35rem 0;
    color: var(--text);
    font-weight: 600;
}

.lesson-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.lesson-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem !important;
    padding-top: 2.5rem;
    border-top: 2px solid var(--border);
    gap: 1.5rem;
    margin: 0 var(--spacing);
}

.lesson-nav-link {
    padding: 0.875rem 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 0.9rem;
    background: var(--bg-alt);
    transition: all 0.3s ease;
    font-weight: 500;
    flex: 1;
    text-align: center;
}

.lesson-nav-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
    transform: translateY(-2px);
}

.lesson-nav-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   TABLE OF CONTENTS
══════════════════════════════════════════════════════════════════ */

.toc {
    position: sticky;
    top: 2rem;
    padding: 0;
    background: transparent;
    border: none;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.toc:empty {
    display: none;
}

.toc #toc-list:empty {
    display: none;
}

.toc #toc-list:empty~h3 {
    display: none;
}

.toc h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
    font-family: var(--font-mono);
    font-weight: 500;
    opacity: 0.6;
}

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

.toc li {
    margin-bottom: 0.25rem;
}

.toc a {
    display: block;
    padding: 0.35rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    transition: all 0.2s;
    line-height: 1.5;
}

.toc a:hover {
    color: var(--text-light);
    border-left-color: var(--border);
}

.toc a.active {
    color: var(--accent);
    border-left-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════════════════════════ */

.about-section {
    margin-bottom: 5rem;
}

.about-section h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text);
    font-weight: 600;
}

.name-meaning {
    background: var(--bg-alt);
    padding: 2.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid var(--border);
}

.name-meaning .kanji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.name-meaning p {
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.8;
}

.projects {
    display: grid;
    gap: 1.5rem;
}

.project-card {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    background: var(--bg-alt);
}

.project-card h3 {
    margin: 0;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

.project-card p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.7;
}

.profiles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.profile-link {
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
    background: var(--bg-alt);
}

.profile-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   CERTIFICATIONS / CVE
══════════════════════════════════════════════════════════════════ */

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.certification-card {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    background: var(--bg-alt);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.certification-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.certification-card img {
    width: 70px;
    height: 70px;
    margin-bottom: 1.25rem;
}

.certification-card h3 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.certification-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.cve-card {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    background: var(--bg-alt);
    transition: all 0.3s ease;
}

.cve-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.cve-id {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.cve-severity {
    display: inline-block;
    padding: 0.35rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.cve-severity.critical {
    background: #7f1d1d;
    color: #fca5a5;
}

.cve-severity.high {
    background: #7c2d12;
    color: #fdba74;
}

.cve-severity.medium {
    background: #78350f;
    color: #fcd34d;
}

.cve-severity.low {
    background: #14532d;
    color: #86efac;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════════ */

footer {
    margin-top: 8rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-credits {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

/* ═══════════════════════════════════════════════════════════════
   ERROR PAGES
══════════════════════════════════════════════════════════════════ */

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 3rem;
}

.error-code {
    font-family: var(--font-mono);
    font-size: 5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.error-message {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.error-page a {
    padding: 0.875rem 2rem;
    background: var(--accent);
    color: white;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.error-page a:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   MAINTENANCE / PASSWORD FORM
══════════════════════════════════════════════════════════════════ */

.maintenance {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 3rem;
}

.maintenance h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.maintenance p {
    color: var(--text-light);
}

.password-form {
    max-width: 450px;
    margin: 5rem auto;
    padding: 3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    background: var(--bg-alt);
}

.password-form h2 {
    margin-bottom: 2rem;
}

.password-form input[type="password"] {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s;
}

.password-form input[type="password"]:focus {
    outline: none;
    border-color: var(--accent);
}

.password-form button {
    width: 100%;
    padding: 0.875rem;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.password-form button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.message-wrapper {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    :root {
        --spacing: 1.5rem;
        font-size: 16px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .navbar-items {
        gap: 1.25rem;
    }

    .navbar-item--link {
        font-size: 0.9rem;
    }

    .article--container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .toc {
        position: static;
        max-height: none;
        margin-top: 3rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .lesson-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .lesson-nav-link {
        width: 100%;
    }

    .article_header-meta {
        flex-direction: column;
        gap: 1rem;
    }
}