@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: #0a0a0a;
    color: #eee;
    margin: 0;
    padding: 20px;
}

main {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #5f5f5f;
    margin-bottom: 2rem;
}

a {
    color: #eee;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.hero {
    display: flex;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.logo {
    width: 150px;
    height: auto;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    flex: 0 0 auto;
    display: block;
    max-width: 150px;
    object-fit: contain;
    align-self: center;
}

.big-ass-name {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
}

.terminal {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    color: #d0d0d0;
    line-height: 1.4;
    font-size: 0.95rem;
}

.cursor {
    animation: blink 1s step-end infinite;
    color: #ffffff;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Grid layout */
.grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 1.5rem;
     margin-top: 2rem;
     align-items: start;
}

.card {
    position: relative;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    min-height: 100px;
    padding: 1.2rem 1rem 1rem 1rem;
    border-radius: 0;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.6);
    overflow: visible;
    min-width: 0;
}

.card-label {
    position: absolute;
    top: -0.2rem;
    left: -0.1rem;
    padding: 0 0.6rem 0.5rem 0;
    background: #0a0a0a;
    color: #e6e6e6;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 2;
}

.card-body {
    height: 100%;
    box-sizing: border-box;
    margin-top: 0.4rem;
    min-width: 0;
    overflow: hidden;
}

.card--wide {
     grid-column: 1 / -1;
     min-height: 160px;
}

@media (max-width: 780px) {
     .grid { grid-template-columns: 1fr; }
}

.primary {
    color: #ffffff;
}

.secondary {
    color: #bfbfbf;
}

/* Status cafe */
#statuscafe { 
    font-size: 0.9rem; 
}
#statuscafe-username { 
    margin-bottom: 0.5em; 
    font-size: 0.75rem;
    color: #bfbfbf; 
}

/* Listening card */
.listening-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.listening-cover {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
}
.listening-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.listening-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
}

.listening-artist,
.listening-album {
    font-size: 0.85rem;
    color: #bfbfbf;
    white-space: nowrap;
    overflow: hidden;
}

/* Activity card (Discord Rich Presence) */
.activity-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #bfbfbf;
    letter-spacing: 0.5px;
}

.activity-main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    min-width: 0;
}

.activity-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.activity-name {
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
}
.activity-details,
.activity-state {
    color: #bfbfbf;
    white-space: nowrap;
    overflow: hidden;
}
.activity-elapsed {
    font-size: 0.75rem;
    color: #bfbfbf;
    margin-top: 0.2rem;
}

/* Marquee3000 support */
.marquee3k {
    overflow: hidden;
    white-space: nowrap;
}
.marquee3k__copy {
    display: inline-block;
    padding-right: 2rem;
}

/* Post thumbnail grid used on index preview */
.post-thumb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}
.post-thumb {
    display: block;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 0.6rem;
    text-decoration: none;
    color: inherit;
}
.post-thumb-inner { min-height: 70px; overflow: hidden; }
.post-thumb-title { font-weight: 700; color: #fff; font-size: 0.95rem; }
.post-thumb-date { font-size: 0.8rem; color: #bfbfbf; margin-bottom: 0.25rem }
.post-thumb-desc { color: #d0d0d0; font-size: 0.85rem; margin-top: 0.35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.see-more-button {
    display: inline-block;
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

@media (max-width: 780px) {
    .post-thumb-grid { grid-template-columns: 1fr; }
}

/* Blog thumbnail grid */
.post-thumb-grid {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.post-thumb {
    flex: 1;
    min-width: 0;
}
.post-thumb a { text-decoration: none; color: inherit; }
.post-thumb-image {
    width: 100%;
    height: 90px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}
.post-thumb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.post-thumb-title { margin-top: 0.45rem; }