
/* The Base "Industrial Paper" */
html {
    background-color: #e8e4d8; /* Warm Beige */
    color: #2b2b2b;            /* Soft Black */
    font-family: "Segoe UI", Tahoma, Geneva, sans-serif;
    line-height: 1.6;
    padding: 5% 10%;           /* This creates the "centered" look naturally */
    scroll-behavior: smooth;
}

body {
    max-width: 700px;          /* Prevents text from stretching too far */
    margin: 0;                 /* Resets default browser margin */
}

/* Clean, Bold Heading */
h1 {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #2b2b2b;
    display: inline-block;     /* Only underlines the text, not the whole screen */
    padding-bottom: 5px;
}

h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #3a5c8b;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #2b2b2b;
}

/* Header element styling */
header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #2b2b2b;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 0.5rem;
    border-bottom: none;
    padding-bottom: 0;
    display: block;
}

header p {
    font-size: 1.2rem;
    font-style: italic;
    color: #5a5a5a;
    margin-bottom: 0;
}

header img {
    max-width: 120px;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

/* The "Wondering Child" Paragraphs */
p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    word-spacing: 0.05rem;
}

/* Blockquote Styling */
blockquote {
    margin: 1.5rem 0;
    padding: 0.5rem 1.5rem;
    border-left: 3px solid #a8a498;      /* Softer gray instead of black */
    background-color: transparent;       /* Remove heavy background */
    font-style: italic;
    color: #5a5a5a;                      /* Keep the softer text color */
    opacity: 0.9;                        /* Slight transparency for softness */
}

blockquote p {
    margin-bottom: 0;
}

blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    font-size: 0.9rem;
    color: #5a5a5a;
    font-weight: 500;
}

/* Code Block Container */
pre {
    background-color: #d4d0c4; /* Slightly darker than page background */
    border: 1px solid #a8a498;
    border-radius: 4px;
    padding: 1rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    font-family: "Consolas", "Monaco", "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Inline Code */
code {
    font-family: "Consolas", "Monaco", "Courier New", monospace;
    background-color: #d4d0c4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Code blocks inside pre */
pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

/* Custom Syntax Highlighting Colors */
.token-keyword {
    color: #8b3a3a; /* Dark red */
    font-weight: 600;
}

.token-string {
    color: #2d5d2d; /* Dark green */
}

.token-comment {
    color: #6b6b6b; /* Gray */
    font-style: italic;
}

.token-function {
    color: #3a5c8b; /* Dark blue */
    font-weight: 500;
}

.token-number {
    color: #8b6a3a; /* Dark brown */
}

.token-operator {
    color: #5a5a5a; /* Medium gray */
}

.token-type {
    color: #5c3a8b; /* Dark purple */
}

.token-variable {
    color: #2b2b2b; /* Same as base text */
}

.token-builtin {
    color: #8b3a5c; /* Dark magenta */
    font-weight: 600;
}

/* Footer Styling */
footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #2b2b2b;
    text-align: center;
    font-size: 0.85rem;
    color: #5a5a5a;
    font-weight: 500;
    letter-spacing: 0.05rem;
}

/* Link Styling */
a {
    color: #3a5c8b; /* Dark blue */
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover {
    color: #5c3a8b; /* Dark purple on hover */
    border-bottom-color: #5c3a8b;
}

a:active {
    color: #8b3a3a; /* Dark red when clicked */
    border-bottom-color: #8b3a3a;
}

/* Card Styling */
.card {
    border: 1px solid #2b2b2b;
    padding: 1rem;
    margin: 1.5rem auto;
    display: inline-block;
    text-align: center;
}

/* Project Cards Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.project-grid .card {
    border: 1px solid #2b2b2b;
    padding: 1.5rem;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
    margin: 0;
}

.project-grid .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.project-grid .card h3 {
    margin-top: 0;
    color: #3a5c8b;
    margin-bottom: 0.5rem;
}

.project-grid .card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Section Styling */
section {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #a8a498;
}

section:first-of-type {
    border-top: none;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #e8e4d8 0%, #d4d0c4 100%);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid #a8a498;
}

.hero p {
    margin-bottom: 0;
}

/* Navigation anchors */
nav {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-bottom: 1px solid #a8a498;
}

nav a {
    margin-right: 1.5rem;
    font-size: 0.95rem;
}

/* Sub-card for nested projects */
.sub-card {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f4f0e6 0%, #ece8dc 100%);
    border: 1px solid #c8c4b8;
    border-left: 4px solid #3a5c8b;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sub-card:hover {
    transform: translateX(2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}

.sub-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #3a5c8b;
    display: flex;
    align-items: center;
}

.sub-card h4::before {
    content: "↳";
    margin-right: 0.5rem;
    color: #5c3a8b;
    font-size: 0.85rem;
}

.sub-card p {
    font-size: 0.85rem;
    margin: 0;
    color: #5a5a5a;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
    html {
        padding: 3% 5%;
    }
    header h1 {
        font-size: 2rem;
    }
    nav a {
        display: block;
        margin: 0.5rem 0;
    }
}
