:root {
    --bg-color: #ffffff;
    --text-color: #373737;
    --accent-color: #000000;
    --font-main: 'Inter', sans-serif;
    --font-header: 'EB Garamond', serif;

    /* Tag Colors */
    --col-bio: #179b1b;
    --col-deep: #1f77c0;
    --col-ed: #e79a00cd;
    --col-mar: #b21549;
    --col-fin: #9C27B0;

    /* Theme Variables - Light Mode Default */
    --button-bg: var(--bg-color);
    --button-hover: #f0f0f0;
    --button-active-bg: var(--text-color);
    --button-active-text: var(--bg-color);
}

[data-theme="dark"] {
    --bg-color: #000000;
    --text-color: #d4d4d4;
    --accent-color: #ffffff;
    --button-hover: #333333;

    /* Adjust tag colors for dark mode if needed, or keep them vibrant */
    --col-bio: #4caf50;
    --col-deep: #42a5f5;
    --col-ed: #ffa726;
    --col-mar: #ef5350;
    --col-fin: #ab47bc;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    letter-spacing: -0.03em;
    /* Inter -3% character width */
    font-size: 14px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; Removed to prevent top cut-off on scroll */
}

/* Play Button */
/* Controls Container */
.controls-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 15px;
    z-index: 100;
}

/* Control Buttons */
.control-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--button-bg);
    border: 1px solid var(--text-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.control-button:hover {
    background: var(--button-hover);
}

.control-button.active {
    background: var(--button-active-bg);
    color: var(--button-active-text);
}

.control-button svg {
    width: 20px;
    height: 20px;
}

/* View Transition Styles */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}


/* Main Content */
.content {
    max-width: 450px;
    /* Reduced from 650px per request */
    padding: 80px 20px;
    /* "Good top and bottom padding" */
    text-align: left;
    width: 100%;
    margin: auto;
    /* Vertically center if possible, otherwise scroll safe */
}

header {
    margin-bottom: 40px;
    text-align: left;
}

header h1 {
    font-family: var(--font-header);
    font-size: 28px;
    font-weight: 400;
    color: var(--text-color);
    /* Fixed to use variable */
    letter-spacing: normal;
    /* Garamond shouldn't have the -3% of Inter */
    cursor: default;
    position: relative;
    display: inline-block;
    min-width: 100px;
}

/* Glitch Effect Classes */
/* Staggered Effect Removed - Instant Switch now */

/* Manifesto Text */
.manifesto p {
    margin-bottom: 24px;
    transition: opacity 0.5s ease;
}

.manifesto p.highlight {
    color: var(--text-color);
    /* No special highlight distinct from main text unless requested. User said "text #373737". */
}

.manifesto p.highlight-binary {
    border-left: none;
    /* Removed the border from previous design */
    padding-left: 0;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 0.5px 4px;
    /* Generous padding */
    border: 1px solid var(--text-color);
    /* B&W default */
    color: var(--text-color);
    /* B&W default */
    border-radius: 4px;
    font-size: 0.9em;
    margin: 2px 4px;
    /* Space between tags */
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tag:hover {
    color: var(--tag-color);
    border-color: var(--tag-color);
    background: rgba(0, 0, 0, 0.03);
    /* Subtle background tint on hover */
}

/* Specific Tag Colors via CSS variables locally scoped if supported, or just separate classes */
/* Start by removing specific class colors from non-hover state */
.tag-bio {
    margin-left: 0;
    --tag-color: var(--col-bio);
}

.tag-deep {
    --tag-color: var(--col-deep);
}

.tag-ed {
    --tag-color: var(--col-ed);
}

.tag-mar {
    --tag-color: var(--col-mar);
}

.tag-fin {
    --tag-color: var(--col-fin);
}

/* Audio Sync States */
.manifesto.playing p {
    opacity: 0.5;
    /* Fade out all future/inactive */
}

.manifesto.playing p.active {
    opacity: 1;
    /* Highlight current and past */
}

/* Contact Line specific */
.contact-line {
    margin-top: 50px;
    font-size: 14px;
    opacity: 0.8;
}

.contact-line a {
    color: var(--text-color);
    text-decoration: underline;
}

.contact-line a:hover {
    text-decoration: none;
    background: var(--button-hover);
}

/* Footer (legacy cleanup, moved to last line of manifesto per request) */
.contact-footer {
    display: none;
}