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

:root {
    --bg: #0a0a0f;
    --fg: #ffffff;
    --accent: #ff6b35;
    --accent2: #00d4ff;
    --muted: #666677;
}

body {
    font-family: 'Courier New', monospace;
    color: var(--fg);
    background: var(--bg);
}

.container {
    height: 100vh;
    padding-left: 200px;
    padding-right: 80px;
    position: relative;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 200px;
    right: 80px;
    bottom: 0;
    background: rgba(10, 10, 15, 0.97);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 40px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.gallery-overlay::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.gallery-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.gallery-home {
    position: fixed;
    top: 50%;
    right: 80px;
    transform: translateY(-50%);
    font-size: 4rem;
    color: var(--accent);
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 201;
    line-height: 1;
}

.gallery-home:hover {
    color: var(--accent2);
}

.spots-overlay {
    position: absolute;
    top: 0;
    left: 200px;
    right: 80px;
    bottom: 0;
    background: rgba(10, 10, 15, 0.97);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.spots-overlay::-webkit-scrollbar {
    display: none;
}

.spots-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.spots-home {
    position: fixed;
    top: 50%;
    right: 80px;
    transform: translateY(-50%);
    font-size: 4rem;
    color: var(--accent);
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 201;
    line-height: 1;
}

.spots-home:hover {
    color: var(--accent2);
}

.books-home {
    position: fixed;
    top: 50%;
    right: 80px;
    transform: translateY(-50%);
    font-size: 4rem;
    color: var(--accent);
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 201;
    line-height: 1;
}

.books-home:hover {
    color: var(--accent2);
}

.spots-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
    padding-top: calc(50vh - 280px);
    padding-bottom: 60px;
}

.spots-category {
    display: flex;
    flex-direction: column;
}

.spots-title {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent2);
    margin-bottom: 16px;
}

.spots-item {
    font-family: 'Courier New', monospace;
    font-size: 0.725rem;
    color: var(--fg);
    margin-bottom: 8px;
    cursor: pointer;
    transition: color 0.2s ease;
    padding-left: 20px;
    text-indent: -20px;
}

.spots-item:hover {
    color: var(--accent2);
}

#books-container .spots-item {
    white-space: nowrap;
    overflow: visible;
    text-indent: 0;
    padding-left: 0;
}

#books-container .spots-category {
    max-width: none;
}

#books-container.spots-container {
    grid-template-columns: 1fr;
    max-width: none;
}

.book-author {
    color: #975959;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 60px auto 0;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.shape-message {
    position: absolute;
    top: calc(50vh - 280px);
    left: 200px;
    right: 80px;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--accent2);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    text-align: center;
    letter-spacing: 0.05em;
}

.shape-message.show {
    opacity: 1;
}

.header {
    position: fixed;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    z-index: 10;
}

.name {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 0.9;
    color: var(--accent);
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.tagline {
    display: none;
}

.top-section {
    position: absolute;
    top: calc(50vh - 280px);
    left: 200px;
    right: 80px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 800px;
    margin: 0 auto;
}

.category {
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    line-height: 1;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.writings-cat {
    color: var(--accent2);
}

.shenanigans-cat {
    color: var(--accent);
}

.image-container {
    position: absolute;
    top: 48%;
    left: calc(50% + 60px);
    transform: translate(-50%, -50%);
    display: none;
}

.profile-image {
    max-width: 350px;
    height: auto;
    border-radius: 4px;
}

.image-caption {
    font-size: 0.625rem;
    font-style: italic;
    color: #999999;
    text-align: center;
    margin-top: 12px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.quote-container {
    position: absolute;
    top: 50%;
    left: 200px;
    right: 80px;
    transform: translateY(-50%);
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-family: 'Noto Serif', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--fg);
    margin-bottom: 16px;
    font-style: italic;
    font-weight: 200;
}

.quote-attribution {
    font-family: 'Courier New', monospace;
    font-size: 0.625rem;
    color: #b4b4b4;
    letter-spacing: 0.05em;
}

.bottom-section {
    position: absolute;
    bottom: calc(50vh - 280px);
    left: 200px;
    right: 80px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 800px;
    margin: 0 auto;
}

.shenanigans-list {
    text-align: right;
}

.item {
    font-size: 0.725rem;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--fg);
}

.writing:hover {
    color: var(--accent2);
}

.shenanigan:hover {
    color: var(--accent);
}

.item a {
    color: inherit;
    text-decoration: none;
}

.item a:hover {
    color: inherit;
}

/* Decorative shapes */
.shape {
    position: absolute;
    pointer-events: auto;
    opacity: 0.3;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 5;
}

.shape-square {
    width: 60px;
    height: 60px;
    border: 2px solid var(--accent);
    bottom: 15vh;
    right: 120px;
    transform: rotate(45deg);
}

.shape-square:hover {
    transform: rotate(45deg) scale(1.2);
    opacity: 0.6;
}

.shape-line {
    width: 120px;
    height: 2px;
    background: var(--accent2);
    top: 45%;
    right: 100px;
}

.shape-line:hover {
    width: 140px;
    opacity: 0.6;
}

.shape-circle-small {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    bottom: 32vh;
    left: 220px;
}

.shape-circle-small:hover {
    transform: scale(1.3);
    opacity: 0.6;
}

.shape-circle-topright {
    width: 50px;
    height: 50px;
    background: var(--accent2);
    border-radius: 50%;
    top: 20vh;
    right: 150px;
}

.shape-circle-topright:hover {
    transform: scale(1.2);
    opacity: 0.5;
}

.shape-line-vertical {
    width: 2px;
    height: 80px;
    background: var(--accent2);
    bottom: 27vh;
    left: 280px;
}

.shape-line-vertical:hover {
    height: 100px;
    opacity: 0.6;
}

.shape-circle-large {
    width: 120px;
    height: 120px;
    border: 2px solid var(--accent2);
    top: 48%;
    left: 230px;
    opacity: 0.15;
}

.shape-circle-large:hover {
    transform: scale(1.1);
    opacity: 0.3;
}

