:root {
    --bg-color: #0a0a0a;
    --card-bg: #141414;
    --text-main: #e0e0e0;
    --text-muted: #888;
    --accent-purple: #9d4edd;
    --accent-blue: #7180ab;
    --accent-green: #00d400;
    --border-style: 2px solid #555;
    --border-bright: 2px solid var(--accent-purple);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: "Lucida Console", "Lucida Sans Typewriter", monospace;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 16px;
}

.site-wrapper {
    max-width: 960px;
    margin: 0 auto;
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-left: var(--border-style);
    border-right: var(--border-style);
    box-shadow: 0 0 100px rgba(0,0,0,1);
}

header-top {
    padding: 3rem 1rem;
    text-align: center;
    border-bottom: var(--border-style);
    background-image: url('/images/daikichi.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

header {
    padding: 3rem 1rem;
    text-align: center;
    border-bottom: var(--border-style);

}

header-top h1 {
    color: var(--accent-purple);
    font-size: 2.2rem;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin: 0;
}

nav {
    margin-top: 1.5rem;
}

nav a {
    color: var(--accent-blue);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--accent-green);
}

/* Layout container */
.container {
    display: flex;
    flex: 1; /* Pushes footer to bottom */
    padding: 3rem 2rem;
    gap: 3rem;
}

/* main content */
.content {
    flex: 3;
    min-width: 0;
    overflow-wrap: break-word;
}

.content h2 {
    color: var(--accent-purple);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* recent activity grid */
.recent-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.recent-item {
    position: relative;
    aspect-ratio: 4/3;
    display: block;
    text-decoration: none;
    border: var(--border-bright);
}

.recent-item:hover {
    border-color: var(--accent-green);
}

.recent-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;

}

.recent-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a1a, #111);
}

.recent-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    pointer-events: none;
}

.recent-card-overlay .recent-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.recent-card-overlay .recent-meta {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.recent-subtitle {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);  /* this looks good for now? */
}

.featured-header {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent-purple);
    text-align: center
}

/* sidebar */
.sidebar {
    flex: 1;
    min-width: 0;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.sidebar-section {
    margin-bottom: 2.5rem;
    border: var(--border-style);
    padding: 1rem;
}

.sidebar h3 {
    color: var(--accent-green);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-top: 0;
    margin-bottom: 1rem;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 0.75rem;
}

.sidebar a {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding-left: 5px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.sidebar a:hover {
    color: var(--accent-purple);
}

/* header */
.post-header {
    margin-bottom: 2rem;
}

/* the metadata */
.post-meta {
    font-size: 1.0rem;
    color: var(--text-muted);
}
/* subtitle, muted*/
.post-title {
    font-size: 1.4rem;
    color: var(--text-muted);
    font-style: italic;
}
.post-headline {
    font-size: 1.6rem;
    color: var(--accent-green);
    text-align: center;
    margin: 0 0 0.5rem;
    /* font-style: italic; */
    line-height: 1.4;
}

.post-header h2 {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 400;
    margin: 0 0 0.5rem;
}

.post-header {
    margin-bottom: 2rem;
}

.post-body {
    width: 100%;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border: 2px solid #555;
    position: relative;
}


.post-body blockquote {
    border-left: 4px solid var(--accent-purple);
    margin: 2.5rem 0;
    padding: 0.5rem 1.5rem;
    color: var(--text-muted);
    font-style: italic;
    font-size: 1.1rem;
}

/* Tags */
.post-tags {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #222;
}

.tag-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag-list li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.tag-list li a:hover {
    color: var(--accent-green);
}

/* profile section */
.profile {
    text-align: center;
    padding-bottom: 2rem;
    border: (--border-style);
}

.avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--accent-purple);
    display: block;
    position: relative;
}

.profile h3 {
    border-left: none !important;
    padding-left: 0 !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
}

.profile p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    font-size: 0.9rem;
    color: var(--accent-blue);
    text-decoration: none;
}

.social-links a:hover {
    color: var(--accent-green);
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 1rem;
    border-top: var(--border-style);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.back-to-top {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 5px 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.back-to-top:hover {
    color: var(--accent-green);
    border-color: var(--accent-green);
}

@media (max-width: 850px) {
    .container {
        flex-direction: column;
        gap: 4rem;
    }
    
    .sidebar {
        position: static;
    }
}
