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

:root {
    --cyan: #009de0;
    --magenta: #c4007a;
    --orange: #ff6600;
    --pink: #ff00ff;
    --black: #000000;
    --white: #ffffff;
    --grey: #f5f5f5;
}

body {
    font-family: 'aglet-mono', monospace;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--cyan);
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    height: 85px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.main-nav a {
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a:hover {
    color: var(--magenta);
}

.main-nav a.active {
    color: var(--magenta);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--magenta);
}

/* Shop Link Button Style */
.main-nav a.shop-link {
    background: var(--white);
    color: var(--cyan);
    border: 2px solid var(--cyan);
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-nav a.shop-link:hover {
    background: var(--cyan);
    color: var(--white);
    border-color: var(--cyan);
}

.main-nav a.shop-link::after {
    display: none;
}

/* Single Column Layout */
.single-column-layout {
    margin-top: 160px;
    padding: 3rem 0;
    min-height: calc(100vh - 160px);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 3-Column Parallax Layout */
.three-column-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 160px;
    padding: 0;
    max-width: 100%;
    min-height: calc(100vh - 160px);
}

.column {
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 120px);
    padding: 3rem 2rem;
    border-right: 1px solid var(--cyan);
    scroll-behavior: smooth;
}

.column:last-child {
    border-right: none;
}

.column::-webkit-scrollbar {
    width: 8px;
}

.column::-webkit-scrollbar-track {
    background: var(--grey);
}

.column::-webkit-scrollbar-thumb {
    background: var(--cyan);
    border-radius: 4px;
}

.column::-webkit-scrollbar-thumb:hover {
    background: var(--magenta);
}

.column-content {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Column specific styling */
.column-1 {
    background: var(--white);
}

.column-2 {
    background: var(--grey);
}

.column-3 {
    background: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'aglet-mono', monospace;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--black);
}

h1 {
    font-size: 1.75rem;
    color: var(--magenta);
}

h2 {
    font-size: 1.25rem;
    color: var(--cyan);
    margin-top: 2rem;
}

h3 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
    text-align: justify;
}

a {
    color: var(--cyan);
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem 0;
}

.feature-image {
    width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 8px;
}

/* News/Blog specific */
.post-list {
    list-style: none;
    padding: 0;
}

.post-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--cyan);
}

.post-item:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-title a {
    color: var(--black);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--magenta);
}

.post-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.post-excerpt {
    margin-top: 0.5rem;
    color: #333;
}

.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--cyan);
}

.read-more:hover {
    color: var(--magenta);
}

/* Quote/Callout boxes */
blockquote {
    padding: 1.5rem;
    margin: 2rem 0;
    background: var(--grey);
    border-left: 4px solid var(--magenta);
    font-style: italic;
}

/* Lists */
ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Buttons/Links */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--cyan);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.button:hover {
    background: var(--magenta);
    color: var(--white);
}

/* Footer */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

.site-footer a {
    color: var(--cyan);
}

.site-footer a:hover {
    color: var(--magenta);
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--black);
}

.mobile-menu-toggle .material-symbols-outlined {
    font-size: 2rem;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--cyan);
    z-index: 1000;
    padding: 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--white);
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.mobile-nav-close .material-symbols-outlined {
    font-size: 2rem;
}

.mobile-nav a {
    display: block;
    padding: 1rem 0;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: padding-left 0.3s ease;
}

.mobile-nav a:hover {
    padding-left: 1rem;
}

.mobile-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 1rem;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .three-column-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .column {
        height: auto;
        min-height: 50vh;
        overflow-y: visible;
        border-right: none;
        border-bottom: 1px solid var(--cyan);
    }
    
    .column:last-child {
        border-bottom: none;
    }
    
    .site-header {
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .column {
        padding: 2rem 1rem;
    }
    
    /* Remove justified text on mobile for better readability */
    p {
        text-align: left;
    }
}

/* Featured Post Styles */
.featured-post {
    background: var(--grey);
    overflow: hidden;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.featured-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    margin: 0;
}

.featured-content {
    padding: 2rem;
}

.featured-label {
    display: inline-block;
    background: var(--magenta);
    color: var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.featured-content h2 {
    font-size: 2rem;
    color: var(--black);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.featured-content h2 a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-content h2 a:hover {
    color: var(--magenta);
}

.featured-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.featured-excerpt {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--cyan);
    border-radius: 4px;
    font-family: 'aglet-mono', monospace;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--magenta);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .button {
    margin-top: 0.5rem;
}

/* Spacing for View All links on home page */
.column-content > p:has(a[href^="/projects/"]),
.column-content > p:has(a[href^="/news/"]) {
    margin-top: 2.5rem;
}

/* Print styles */
@media print {
    .site-header,
    .main-nav {
        display: none;
    }
    
    .three-column-layout {
        grid-template-columns: 1fr;
        margin-top: 0;
    }
    
    .column {
        height: auto;
        overflow: visible;
        page-break-inside: avoid;
    }
}
