:root {
    /* Greyscale variations */
    --dark-base: #000000;
    --dark-medium-darkest: #0a0a0a;
    --dark-medium-darker: #141414;
    --dark-medium: #1f1f1f;
    --dark-medium-lighter: #545454;
    --dark-medium-lightest: #878787;
    --dark-medium-lightest-30percent: rgba(84, 84, 84, 0.3);
    --dark-light: #d1d1d1;

    /* Colors */
    --light: white;
    --light-darker: #f8f9fa;

    /* Accent variations */
    --accent-base: crimson;
    --accent-hover: #dc143c;
    --accent-muted: #cd5c5c;
    --accent-light: #ff6b6b;
    --accent-dark: #8b0000;
    --accent-darker: #660000;
    --accent-darkest: #330000;

    /* Typography - Responsive Font Scale using clamp() */
    --font-xs: clamp(0.7rem, 0.8vw + 0.6rem, 0.8rem);      /* 0.7rem - 0.8rem */
    --font-sm: clamp(0.75rem, 0.8vw + 0.65rem, 0.85rem); /* 0.75rem - 0.85rem */
    /* Base */
    --font-md: clamp(1rem, 1.2vw + 0.8rem, 1.2rem);       /* 1rem - 1.2rem */
    --font-lg: clamp(1.1rem, 1.4vw + 0.8rem, 1.4rem);     /* 1.1rem - 1.4rem */
    --font-xl: clamp(1.3rem, 1.6vw + 1rem, 1.6rem);       /* 1.3rem - 1.6rem */
    --font-2xl: clamp(1.5rem, 2vw + 1.2rem, 2rem);        /* 1.5rem - 2rem */
    --font-3xl: clamp(2rem, 2.5vw + 1.5rem, 2.5rem);      /* 2rem - 2.5rem */
    --font-4xl: clamp(2.5rem, 3vw + 2rem, 3rem);         /* 2.5rem - 3rem */
    --font-5xl: clamp(3rem, 4vw + 2.5rem, 4rem);         /* 3rem - 4rem */
    
    /* Text shadows */
    --text-shadow-layered: 0px 0px 1px rgba(0,0,0,0.6), -1px 1px 2px rgba(0,0,0,0.6), 0 2px 4px rgba(0,0,0,0.3);
    --text-shadow-layered-small: 0px 0px 1px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 1);
    
    /* Responsive unified sizing scale */
    --xs: clamp(0.25rem, 0.5vw + 0.25rem, 0.5rem);    /* 4px to 8px */
    --sm: clamp(0.75rem, 1vw + 0.5rem, 1rem);        /* 12px to 16px */
    --md: clamp(1rem, 1.5vw + 0.75rem, 1.5rem);     /* 16px to 24px */
    --lg: clamp(1.5rem, 2vw + 1rem, 2rem);           /* 24px to 32px */
    --xl: clamp(2rem, 3vw + 1.5rem, 3rem);           /* 32px to 48px */
    
    /* Responsive font sizes using clamp() */
    --h1: clamp(2rem, 4vw + 1rem, 3rem);     /* 2rem to 3rem */
    --p: clamp(1rem, 1.5vw + 0.5rem, 1.2rem);  /* 1rem to 1.2rem */
    --p-small: clamp(0.875rem, 1vw + 0.5rem, 1rem); /* 0.875rem to 1rem */

    
    /* Responsive line-heights using clamp() */
    --tight: clamp(1.1, 0.1vw + 1.0, 1.2);    /* 1.1 to 1.2 */
    --normal: clamp(1.4, 0.2vw + 1.3, 1.6);  /* 1.4 to 1.6 */
    --relaxed: clamp(1.5, 0.3vw + 1.4, 1.8); /* 1.5 to 1.8 */
    
    /* Border radius */
    --radius: 0.5rem;
    
    /* Container */
    --container-max-width: 600px;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--lg);
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--dark-base);
    color: var(--dark-light);
    line-height: var(--relaxed);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

h1 {
    font-size: var(--h1);
    font-weight: 700;
    color: var(--accent-base);
    margin-bottom: var(--sm);
    line-height: var(--tight);
}

h2 {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--accent-base);
    margin-bottom: var(--sm);
    line-height: var(--tight);
    text-align: center;
}

h2 a {
    color: var(--accent-base);
    text-decoration: none;
    transition: color 0.2s ease;
}

h2 a:hover {
    color: var(--accent-hover);
}

.strike-through {
    text-decoration: line-through;
    opacity: 0.6;
}

p {
    font-size: var(--p);
    color: var(--dark-medium-lightest);
    margin-bottom: var(--lg);
    line-height: var(--relaxed);
}

.nav-link {
    display: inline-block;
    padding: var(--sm) var(--lg);
    background-color: var(--accent-base);
    color: var(--light);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.nav-link:hover {
    background-color: var(--accent-hover);
}

.description {
    padding: var(--md);
    background-color: var(--dark-medium);
    border-radius: var(--radius);
    margin-bottom: var(--lg);
}

.clickable-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.clickable-card:hover {
    background-color: var(--dark-medium-darker);
    border-color: var(--accent-base);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.2);
}

.clickable-card:hover h2 {
    color: var(--accent-base);
}

.content-left {
    text-align: left;
    max-width: none;
}

.content-left h2,
.content-left h4 {
    text-align: left;
    margin-bottom: var(--sm);
    margin-top: 0;
}

.content-left p {
    text-align: left;
    margin-bottom: var(--md);
}

.content-left ul {
    text-align: left;
    margin-bottom: var(--md);
    padding-left: var(--md);
}

.content-left li {
    margin-bottom: var(--xs);
    line-height: var(--normal);
}

.content-left .nav-link {
    display: inline-block;
}

/* Description text */
#description {
    color: var(--dark-medium-lighter);
    text-align: center;
    margin: var(--md) 0 var(--lg) 0;
    font-size: var(--p-small);
    opacity: var(--description-opacity);
    transition: opacity 0.3s ease;
}

#description a {
    text-decoration: none;
    color: var(--dark-medium-lighter);
    transition: color 0.3s ease;
}

#description a:hover {
    color: var(--accent-base);
}

input, textarea, select {
    caret-color: var(--accent-base);
}

/* Prototypes Section Styles */
.prototypes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--md);
    margin-bottom: var(--lg);
    padding: var(--xl);
}

.prototype-card {
    background-color: var(--dark-medium);
    border-radius: var(--radius);
    transition: all 0.2s ease;
    border: 1px solid transparent;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
    padding: var(--md);
}

.prototype-card:hover {
    background-color: var(--dark-medium-darker);
    border-color: var(--accent-base);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.1);
}

.prototype-content h3 {
    margin: 0 0 var(--sm) 0;
    font-size: var(--font-lg);
    line-height: var(--tight);
    color: var(--dark-light);
    transition: color 0.2s ease;
}

.prototype-card:hover .prototype-content h3 {
    color: var(--accent-base);
}

.prototype-content p {
    color: var(--dark-medium-lighter);
    font-size: var(--font-sm);
    line-height: var(--normal);
    margin-bottom: var(--sm);
}

.prototype-content ul {
    text-align: left;
    margin-bottom: 0;
    padding-left: var(--md);
}

.prototype-content li {
    margin-bottom: var(--xs);
    line-height: var(--normal);
    color: var(--dark-medium-lighter);
    font-size: var(--font-sm);
}

/* Thoughts Section Styles */
.section-description {
    text-align: center;
    color: var(--dark-medium-lighter);
    margin-bottom: var(--lg);
    font-size: var(--p-small);
}

.thoughts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--md);
    margin-bottom: var(--lg);
    padding: var(--xl);
}

.thought-card {
    background-color: var(--dark-medium);
    border-radius: var(--radius);
    transition: all 0.2s ease;
    border: 1px solid transparent;
    overflow: hidden;
}

.thought-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: var(--md);
}

.thought-card:hover {
    background-color: var(--dark-medium-darker);
    border-color: var(--accent-base);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.1);
}

.thought-image {
    margin: calc(-1 * var(--md)) calc(-1 * var(--md)) var(--md) calc(-1 * var(--md));
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    background-color: var(--dark-medium-darker);
}

.thought-image img,
.thought-image picture {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.thought-card:hover .thought-image img,
.thought-card:hover .thought-image picture {
    transform: scale(1.05);
}

.thought-title {
    margin: 0 0 var(--sm) 0;
    font-size: var(--font-lg);
    line-height: var(--tight);
    color: var(--dark-light);
    transition: color 0.2s ease;
}

.thought-card:hover .thought-title {
    color: var(--accent-base);
}

.thought-meta {
    display: flex;
    flex-direction: column;
    gap: var(--xs);
    margin-bottom: var(--sm);
}

.thought-date {
    color: var(--dark-medium-lighter);
    font-size: var(--font-sm);
}

.thought-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--xs);
}

.tag {
    background-color: var(--dark-medium-darker);
    color: var(--dark-medium-lightest);
    padding: 2px var(--xs);
    border-radius: calc(var(--radius) / 2);
    font-size: var(--font-xs);
    font-weight: 500;
}

.thought-excerpt {
    color: var(--dark-medium-lighter);
    font-size: var(--font-sm);
    line-height: var(--normal);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .prototypes-grid,
    .thoughts-grid {
        grid-template-columns: 1fr;
        padding: var(--md);
    }
    
    .thought-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}