/* Base styling derived from home.css */
@font-face {
    /* font-family: '0xProto Nerd Font'; */
    /* src: url('../fonts/0xProtoNerdFont-Regular.ttf') format('truetype'); */
    font-weight: normal;
    font-style: normal;
}

:root {
    --background-color: black;
    --text-color: white;
    --primary-color: #D4A5A5;
    --primary-color-rgb: 212, 165, 165; /* RGB value for --primary-color */
}

html {
    /* font-family: '0xProto Nerd Font'; */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

body {
    margin: 0;
    padding: 1rem;
}

.main-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Styles - Reusing structure and border from home.css */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--primary-color);
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.header-link:hover {
    text-decoration: underline;
}

h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

p {
    line-height: 1.6;
    margin: 0.75rem 0;
    text-align: justify;
}

ul {
    line-height: 1.8;
    margin: 1rem 0;
    padding-left: 2rem;
}

li {
    margin: 0.5rem 0;
}

/* Table of Contents */
.toc {
    background: rgba(212, 165, 165, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.toc h2 {
    margin-top: 0;
    border-bottom: none;
}

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

.toc li {
    margin: 0.5rem 0;
}

.toc a {
    color: var(--primary-color);
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

/* Sections */
section {
    margin-bottom: 3rem;
    padding: 0;
}

section h2 {
    scroll-margin-top: 5rem;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: underline;
}

a:hover {
    opacity: 0.8;
}

/* Footer Note */
.footer-note {
    background: rgba(212, 165, 165, 0.08);
    border: 1px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 3rem;
    text-align: center;
}

.footer-note p {
    margin: 0;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1rem;
    }

    .main-container {
        padding: 0;
    }

    p {
        text-align: left;
    }
}
