.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2em;
}

.about-intro {
    margin-bottom: var(--space-8);
}

.bio-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: var(--space-8);
    width: 100%;
}

.avatar-column {
    margin: var(--space-6) 0;
    display: flex;
    justify-content: center;
    align-self: center;
    width: 100%;
}

.bio-columns-flow {
    column-count: 2;
    column-gap: var(--space-8);
    width: 100%;
    text-align: left;
}

.bio-columns-flow p {
    break-inside: avoid;
    margin-bottom: var(--space-4);
    font-size: var(--text-base);
    line-height: 1.6;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .bio-columns-flow {
        column-count: 1;
    }
}

.author-headshot {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-headshot:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .author-headshot {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .author-headshot:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* First bio paragraph uses display font */
.about-intro .intro-text {
    font-family: var(--font-secondary);
    font-size: var(--text-2xl);
    font-weight: normal;
    line-height: 1.3;
    color: var(--heading-color);
    margin-bottom: var(--space-6);
    text-align: left;
    max-width: 900px;
}

/* Remaining bio paragraphs */
.bio-columns-flow p {
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: var(--space-3);
    max-width: none;
    color: var(--text-color);
}

.bio-columns-flow p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .author-headshot {
        max-width: 220px;
    }

    .about-intro .intro-text {
        font-size: var(--text-xl);
    }
}

/* Theme and seasonal text color overrides */
[data-theme="dark"] .about-intro .intro-text,
body[data-theme="dark"] .about-intro p:nth-of-type(1) {
    color: var(--heading-color);
}

[data-theme="light"] .about-intro .intro-text,
body[data-theme="light"] .about-intro p:nth-of-type(1) {
    color: var(--heading-color);
}

/* Remove redundant typography styles */

.darkwing-sprite {
    display: block;
    margin: var(--space-8) auto;
    cursor: pointer;
    transition: transform 0.1s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    border-radius: 8px;
    padding: 8px;
}

.darkwing-sprite:hover {
    transform: scale(1.05);
}

.darkwing-sprite:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

@keyframes darkwing-look {
    0% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(-15deg) scale(1.1);
    }

    50% {
        transform: rotate(15deg) scale(1.1);
    }

    75% {
        transform: rotate(-8deg) scale(1.05);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

.darkwing-sprite.looking {
    animation: darkwing-look 0.8s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .darkwing-sprite.looking {
        animation: none !important;
    }

    .darkwing-sprite:hover {
        transform: none !important;
    }
}

.reading-section,
.recently-watched {
    margin-top: var(--space-8);
    margin-bottom: var(--space-8);
}

.currently-reading {
    margin-top: var(--space-8);
    padding: 0;
    background: none;
    border-radius: 0;
}

.logo {
    text-align: center;
    font-family: var(--font-secondary);
    font-size: clamp(2.5rem, 3.25rem + 4.8vw, 5.516rem);
    color: var(--accent-color);
}

.career-timeline {
    margin-top: var(--space-8);
    padding-top: 0;
}

.career-timeline h2,
.reading-section h2,
.animate-fade-in.recently-watched h2 {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    margin-bottom: var(--space-4);
    border-bottom: 2px solid rgba(var(--accent-rgb), 0.15);
    padding-bottom: var(--space-2);
    display: block;
    font-weight: 700;
}

.timeline-intro,
.section-intro {
    color: var(--skills-color);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    max-width: 65ch;
}

.bio-grid .bio-column p {
    max-width: 100%;
}

.section-intro a {
    color: var(--skills-color);
}

.section-intro a:hover {
    color: var(--accent-color);
}

.book-entry {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-3);
    align-items: start;
    margin-bottom: var(--space-4);
}

.book-cover {
    width: 150px;
    height: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-cover:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .book-cover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .book-cover:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.book-info h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--space-1);
    color: var(--heading-color);
    font-family: var(--font-secondary);
}

.book-info h3 a {
    color: var(--heading-color);
    text-decoration: none;
}

.book-info h3 a:hover {
    color: var(--accent-color);
}

.book-author {
    font-size: var(--text-sm);
    color: var(--skills-color);
    opacity: 1;
    margin-top: 0;
    margin-bottom: var(--space-6);
    font-style: normal;
    font-weight: 500;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.book-info>p:not(.book-author) {
    margin-top: 0;
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: 0;
    opacity: 0.8;
    color: var(--skills-color);
}

.books-callout {
    margin-top: var(--space-3);
    font-size: var(--text-xs);
}

.books-callout p {
    margin-bottom: 0;
    color: var(--text-color);
}

.books-callout a {
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: underline;
}

.books-callout a:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .book-entry {
        display: flex;
        flex-direction: column;
        gap: var(--space-3);
    }

    .book-cover {
        max-width: 200px;
        margin: 0 auto;
    }
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.reviews-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-6);
    color: var(--skills-color);
    font-size: var(--text-base);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid rgba(var(--accent-rgb), 0.3);
}

.timeline-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0 0.75rem 1rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.55rem;
    top: 1rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
}

.timeline-item.current::before {
    background: var(--accent-color);
}

.timeline-item.personal::before {
    border-style: dashed;
}

.timeline-item.personal .timeline-role {
    font-style: italic;
}

.timeline-year {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--accent-color);
    min-width: 80px;
    font-weight: 600;
}

.timeline-role {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.4;
}

.timeline-company,
a.timeline-company {
    color: var(--skills-color);
    text-decoration: underline;
}

a.timeline-company:hover {
    color: var(--accent-color);
}

@media (max-width: 500px) {
    .timeline-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .timeline-year {
        min-width: auto;
    }
}

/* Recent Writing Section */
.recent-writing-section {
    margin-top: var(--space-8);
    padding: var(--space-6);
    background: rgba(var(--accent-rgb), 0.04);
    border-radius: 12px;
}

.recent-writing-section h2 {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    margin-bottom: var(--space-4);
    border-bottom: 2px solid rgba(var(--accent-rgb), 0.15);
    padding-bottom: var(--space-2);
    display: block;
    font-weight: 700;
    margin-top: 0;
}

.writing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-4);
}

.writing-column {
    display: flex;
    flex-direction: column;
}

.writing-source {
    display: inline-block;
    width: fit-content;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--accent-color);
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
    text-transform: uppercase;
}

.writing-container {
    flex: 1;
}

.article-entry {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .article-image {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .article-image:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.article-info h3 {
    font-family: var(--font-secondary);
    font-size: var(--text-xl);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: var(--space-2);
    color: var(--heading-color);
}

.article-info h3 a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-info h3 a:hover {
    color: var(--accent-color);
}

.article-meta {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--accent-color);
    opacity: 0.9;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-2);
}

.article-excerpt {
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: var(--space-2);
}

.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.category-tag {
    font-size: var(--text-xs);
    padding: 4px 12px;
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 12px;
    color: var(--accent-color);
}

.article-loading {
    text-align: center;
    padding: var(--space-4);
    color: var(--skills-color);
    font-size: var(--text-sm);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .writing-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

/* Loading Spinners */
.spinner {
    width: 40px;
    height: 40px;
    position: relative;
    margin: var(--space-8) auto;
}

.double-bounce1,
.double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--accent-color);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-animation: sk-bounce 2.0s infinite ease-in-out;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
}

@-webkit-keyframes sk-bounce {

    0%,
    100% {
        -webkit-transform: scale(0.0)
    }

    50% {
        -webkit-transform: scale(1.0)
    }
}

@keyframes sk-bounce {

    0%,
    100% {
        transform: scale(0.0);
        -webkit-transform: scale(0.0);
    }

    50% {
        transform: scale(1.0);
        -webkit-transform: scale(1.0);
    }
}

/* Adjusting existing loading containers to center spinners */
.article-loading,
.reviews-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}