@font-face {
    font-family: 'IBMPlexMono';
    src: url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400&display=swap');
}

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

body {
    font-family: 'IBM Plex Mono', monospace;
    background-color: #fffef7;
    color: #1a1a1a;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

.ascii-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #8b7355;
    overflow: hidden;
}

.ascii-header pre {
    font-size: clamp(4px, 0.8vw, 10px);
    line-height: 1;
    margin: 0 auto;
    display: inline-block;
}

nav {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #8b7355;
}

nav a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    margin: 0 15px;
    padding: 5px 10px;
    border-bottom: 1px solid transparent;
}

nav a:hover, nav a.active {
    border-bottom: 1px solid #8b7355;
    background-color: rgba(139, 115, 85, 0.05);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

#gallery {
    background-image: url('path-to-your-texture-image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 30px;
    border-radius: 0;
}

#gallery h2 {
    background-color: rgba(255, 254, 247, 0.9);
    padding: 10px 20px;
    display: inline-block;
    margin-bottom: 30px;
    
}

#gallery .gallery-grid {
    background-color: rgba(255, 254, 247, 0.85);
    padding: 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }
    
    .about-box {
        grid-row: span 3;
    }
}

.box {
    border: 1px solid #8b7355;
    padding: 30px;
    min-height: 250px;
    background-color: rgba(139, 115, 85, 0.02);
}

.portrait-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #8b7355;
    padding: 20px;
    background-color: rgba(139, 115, 85, 0.02);
}

.portrait-box pre {
    font-size: clamp(3px, 0.45vw, 6px);
    line-height: 1;
}

h1 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #1a1a1a;
    text-decoration-line: underline;
    text-decoration-color: #1a1a1a;
}

h2 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #1a1a1a;
    text-decoration: underline; 

}

p {
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.log-entry {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(139, 115, 85, 0.2);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-date {
    font-size: 11px;
    color: #df6552;
    margin-bottom: 5px;
}

.log-title {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.log-content {
    font-size: 13px;
    line-height: 1.6;
    color: #3a3a3a;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    border: 1px solid black;
    padding: 5px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gallery-item h3 {
    font-size: 14px;
    font-weight: 400;
    color: #fffef7;
    background-color: #1a1a1a;
    padding-left: 2px;
}

.gallery-item p {
    margin-top: 20px;
    font-size: 12px;
    color: #1a1a1a;
}

.gallery-item .tags {
    font-size: 12px;
    color: #df6552;
}

.quote-box {
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: #666;
    cursor: pointer;
    transition: background-color 0.2s;
    min-height: 120px;
}

.home-gallery-box {
    min-height: 120px;
}

.home-gallery-box .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.home-gallery-box .gallery-item {
    min-height: 80px;
    padding: 5px;
}

.home-gallery-box .gallery-item h3 {
    font-size: 12px;
}

.home-gallery-box .gallery-item p {
    font-size: 11px;
}

.quote-box:hover {
    background-color: #fafafa;
}

.quote-box p {
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    text-align: center;
    
}

.footer a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #1a1a1a;
}

.footer a:hover {
    background-color: #1a1a1a;
    color: #fffef7;
}

.footer p {
    margin-top: 10px;
    font-size: 12px;
}
a {
    text-decoration: none;   
}
.custom-bullets {
    list-style: none;
    padding-left: 0;
}

.custom-bullets li::before {
    content: "[*] ";
    color: #1a1a1a;
    font-size: 14px;
    font-weight: bold;
}
.href {
    color: inherit;       
    text-decoration: none;
}
.href:hover {
    text-decoration: underline; 
    color: inherit;             
}
ul {
    font-size: 14px;
}
strong {
    font-weight: bold; 
}
h3 {
    font-weight: 400;
    text-decoration: underline; 
}