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

* {
    box-sizing: border-box;
}

a, #sitename { 
    text-decoration: none; 
    transition: color 0.3s ease;
}

a:link { color: var(--link-color); }
a:visited { color: var(--link-visited); }
a:hover { 
    color: var(--link-hover);
    text-decoration: underline; 
}



body, div {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-color);
    background-color: var(--bg-color);
}



p, ul, blockquote, pre {
    margin: 0 0 1.5em;
}

ul {
    list-style: none;
    padding-left: 1.5em;
    text-indent: -1em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    margin: 1.5em 0 0.75em;
    color: var(--heading-color);
    letter-spacing: -0.01em;
}

h1 {
    font-size: 2rem;
    margin-top: 1em;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4, h5, h6 {
    font-size: 1.125rem;
}

blockquote {
    font-style: italic;
    border-left: 3px solid var(--border-color);
    padding-left: 1em;
    margin-left: 0;
    color: var(--text-secondary);
}

pre, code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
    font-weight: 400;
}

pre {
    overflow: auto;
    background: var(--pre-bg);
    padding: 1.25em;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin: 1.5em 0;
}

code {
    background: var(--pre-bg);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}



.box {
    margin: 0 auto;
    padding: 0 24px;
    max-width: 1080px;
}

.s {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.ab a {
    display: block;
    margin: 0 0 1em;
    padding: 0.5em 0.75em;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.ab a:hover {
    background-color: var(--hover-bg);
    text-decoration: none;
}

#top {
    background: var(--top-bg);
    color: var(--top-text);
    margin: 0 0 2em;
    border-bottom: 16px solid var(--top-border);
    padding: 2em 0 1.5em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#sitename {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--top-text);
    letter-spacing: -0.02em;
}

#perm {
    color: var(--text-color);
    background: var(--pre-bg);
    border: 1px solid var(--border-color);
    padding: 0.25em 0.5em;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

.card {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 1.5em;
    margin-bottom: 1.5em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

/* Prog21-inspired sidebar styles */
.sidebar-section {
    margin-bottom: 2em;
}

.sidebar-section h2 {
    font-size: 1.25rem;
    margin: 0 0 0.75em;
}

.contact-links {
    font-size: 0.9rem;
    margin-bottom: 1em;
}

.contact-links a {
    text-decoration: none;
}

.about-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5em;
    color: var(--text-secondary);
}

button, .button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5em 1em;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: var(--button-bg);
    color: var(--button-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover, .button:hover {
    background: var(--button-hover-bg);
    border-color: var(--button-hover-border);
}



@media screen and (min-width: 768px) {
    blockquote, pre {
        margin-left: 1.5em;
    }
    
    .box {
        padding: 0 40px;
    }
    
    #c1 {
        width: 72%;
        float: left;
        padding-right: 2rem;
    }
    
    #c2 {
        width: 28%;
        float: right;
        padding-left: 1rem;
        border-left: 1px solid var(--border-color);
    }
}

@media screen and (min-width: 1200px) {
    .box {
        padding: 0 60px;
    }
}

/* Notion-style form elements */
input, textarea, select {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    padding: 0.5em 0.75em;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: all 0.2s ease;
    width: 100%;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--link-color);
    box-shadow: 0 0 0 2px rgba(45, 156, 219, 0.2);
}

/* Spacing utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
