/* Core Structural resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fafafa;
    color: #222;
    padding: 2rem;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

header nav a {
    text-decoration: none;
    color: #666;
}

/* Functional Invisible Inputs for the Tabs */
input[type="radio"] {
    display: none;
}

/* Tab Layout Controls */
.portfolio-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-menu {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid #ddd;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
}

.tab-menu label {
    cursor: pointer;
    font-weight: 500;
    color: #888;
    transition: color 0.2s ease;
}

/* Content Panel Visibility Mechanics */
.content-section {
    display: none;
}

#tab-art:checked ~ .tab-menu label[for="tab-art"],
#tab-writing:checked ~ .tab-menu label[for="tab-writing"],
#tab-photos:checked ~ .tab-menu label[for="tab-photos"] {
    color: #000;
    font-weight: 600;
}

#tab-art:checked ~ #art-content,
#tab-writing:checked ~ #writing-content,
#tab-photos:checked ~ #photos-content {
    display: block;
}

/* Photo and Artwork CSS Responsive Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

/* Simple Styling for the Writing Section */
.writing-list {
    max-width: 700px;
}

.writing-item {
    margin-bottom: 2.5rem;
}

.writing-item h2 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.writing-item .date {
    font-size: 0.85rem;
    color: #888;
}

.writing-item p {
    margin-top: 0.5rem;
    line-height: 1.6;
}
