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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 12px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #000;
    text-transform: uppercase;
    padding: 1.5rem;
    text-align: center;
}

header {
    background: #fff;
    padding: 3rem 1rem;
    text-align: center;
}

header h1 {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    word-spacing: 0.1em;
    transform: scaleX(0.9);
    margin-bottom: 0.5rem;
}

header p {
    color: #333;
}

header h3 {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

main {
    flex: 1;
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 600px) {
    body {
        padding: 0.75rem;
    }

    header {
        padding: 2rem 0.5rem;
    }

    header h1 {
        font-size: 2.5rem;
    }

    main {
        padding: 0.5rem;
    }

    section {
        padding: 0.5rem;
    }
}

section {
    padding: 1.5rem;
}

section h2 {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Collapsible section styles */
section h2.collapsible {
    cursor: pointer;
    user-select: none;
    position: relative;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-touch-callout: none;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    touch-action: manipulation;
    -webkit-appearance: none;
    outline: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
}

section h2.collapsible:active,
section h2.collapsible:focus,
section h2.collapsible:focus-visible,
section h2.collapsible:focus-within,
section h2.collapsible:visited,
section h2.collapsible:target,
section h2.collapsible:hover {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    text-decoration: none !important;
}

section h2.collapsible *,
section h2.collapsible .toggle-icon {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    filter: none !important;
    opacity: 1 !important;
}

@media (hover: hover) {
    section h2.collapsible {
        transition: opacity 0.2s ease;
    }

    section h2.collapsible:hover {
        opacity: 0.6;
    }
}

@media (hover: hover) {
    .collapsible {
        transition: opacity 0.2s ease;
    }

    .collapsible:hover {
        opacity: 0.6;
    }

    .collapsible:active {
        opacity: 0.6;
    }
}

.toggle-icon {
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.section-content {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease 0.3s;
    opacity: 1;
}

.section-content.collapsed {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s, opacity 0.3s ease;
}

section p {
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

section p:last-child {
    margin-bottom: 0;
}

a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.5;
}

footer {
    padding: 1rem;
    text-align: center;
    color: #666;
}

/* Writing Links Section */
.writing-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.writing-entry {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.writing-entry.hidden {
    display: none;
}

.writing-title {
    font-weight: 600;
    font-size: 12px;
    display: block;
    border-bottom: none;
}

.writing-date {
    font-size: 10px;
    color: #666;
    font-weight: 300;
    display: block;
}

.writing-description {
    font-size: 12px;
    line-height: 1.6;
    color: #333;
    font-weight: 300;
}

.writing-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.writing-button {
    background: none;
    border: 1px solid #000;
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.writing-button:hover {
    opacity: 0.5;
}

.writing-button:focus {
    outline: none;
    opacity: 1;
}

.writing-button:active {
    opacity: 0.5;
}

.writing-button.hidden {
    display: none;
}

@media (max-width: 600px) {
    .writing-list {
        gap: 2rem;
    }
}

/* Commentator Section */
.commentator-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.commentator-entry {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.commentator-entry.hidden {
    display: none;
}

.commentator-title {
    font-weight: 600;
    font-size: 12px;
    display: block;
    border-bottom: none;
}

.commentator-date {
    font-size: 10px;
    color: #666;
    font-weight: 300;
    display: block;
}

.commentator-description {
    font-size: 12px;
    line-height: 1.6;
    color: #333;
    font-weight: 300;
}

.commentator-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.commentator-button {
    background: none;
    border: 1px solid #000;
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.commentator-button:hover {
    opacity: 0.5;
}

.commentator-button:focus {
    outline: none;
    opacity: 1;
}

.commentator-button:active {
    opacity: 0.5;
}

.commentator-button.hidden {
    display: none;
}

@media (max-width: 600px) {
    .commentator-list {
        gap: 2rem;
    }
}

/* Podcast List */
.podcast-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.podcast-entry {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.podcast-link {
    font-weight: 600;
    font-size: 12px;
    display: inline;
    border-bottom: none;
}

.podcast-date {
    font-size: 10px;
    color: #666;
    font-weight: 300;
    display: block;
}

.podcast-description {
    font-size: 12px;
    color: #333;
    font-weight: 300;
    line-height: 1.6;
}

/* Webring / Personal Sites */
.webring {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.webring-entry {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.webring-link {
    font-weight: 600;
    font-size: 12px;
    display: inline;
    border-bottom: none;
}

.webring-url {
    font-size: 10px;
    color: #666;
    font-weight: 300;
    display: block;
    border-bottom: none;
}

.webring-description {
    font-size: 12px;
    color: #333;
    font-weight: 300;
    line-height: 1.6;
}

/* Picturebook List */
.book-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.book-entry {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    align-items: center;
}

.book-number {
    font-size: 10px;
    font-weight: 600;
    color: #666;
}

.book-cover {
    width: 120px;
}

.book-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.book-title {
    font-weight: 600;
    font-size: 12px;
    display: block;
}

.book-author {
    font-size: 10px;
    color: #666;
    font-weight: 300;
    display: block;
}

.book-note {
    margin-top: 0.5rem;
    font-size: 12px;
    color: #333;
    font-weight: 300;
    line-height: 1.6;
}
