/* Shared styles for all pages */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111;
    background: #fff;
    max-width: 60rem;
    margin: 0 auto;
    padding: 4rem 3rem;
}

/* Page width variants */
body.page-narrow {
    max-width: 50rem;
}

body.page-wide {
    max-width: 90rem;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Color palette variables */
:root {
    --pink: #e07088;
    --pink-light: #f7c4cf;
    --pink-icon: #e88098;

    --blue: #6ba3d6;
    --blue-light: #c4daf0;
    --blue-icon: #6ba3d6;

    --green: #7bc47f;
    --green-light: #c8e6c9;
    --green-icon: #7bc47f;

    --orange: #e8a86b;
    --orange-light: #f5d9be;
    --orange-icon: #e8a86b;
}

/* Default hover is pink (for home/about) */
a:hover {
    color: var(--pink);
}

.header {
    margin-bottom: 3rem;
}

.name {
    font-size: 1.25rem;
    font-weight: 600;
}

.name a:hover {
    color: var(--pink);
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    top: -0.1em;
}

.dot-pink { background: var(--pink-icon); }
.dot-blue { background: var(--blue-icon); }
.dot-green { background: var(--green-icon); }
.dot-orange { background: var(--orange-icon); }

.dot {
    transition: transform 0.2s ease;
}

a:hover .dot {
    transform: scale(1.3);
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 0.8rem;
    font-weight: 500;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

section {
    margin-bottom: 3rem;
}

.item {
    margin-bottom: 0.75rem;
}

.item a {
    display: block;
    padding: 0.5rem 0;
}

.item-title {
    font-weight: 500;
    margin-bottom: 0.15rem;
    color: #666;
}

.item-desc {
    font-size: 0.9rem;
    color: #666;
}

.footer {
    padding-top: 2rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #999;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #666;
    margin-right: 1.5rem;
}

.copyright {
    font-size: 0.8rem;
    color: #aaa;
}

/* Page-specific color overrides */

/* Writing pages (blue) */
.page-writing a:hover,
.page-writing .name a:hover,
.page-writing .footer-links a:hover,
.page-writing .item a:hover .item-title {
    color: var(--blue);
}

/* Projects pages (green) */
.page-projects a:hover,
.page-projects .name a:hover,
.page-projects .footer-links a:hover,
.page-projects .item a:hover .item-title {
    color: var(--green);
}

/* Art pages (orange) */
.page-art a:hover,
.page-art .name a:hover,
.page-art .footer-links a:hover,
.page-art .item a:hover .item-title {
    color: var(--orange);
}
