/*!
Theme Name: Logbook
Theme URI: https://www.kevintyk.com
Author: Kevin Tsui
Author URI: https://www.kevintyk.com
Description: A minimalist, high-contrast personal blog theme designed for clarity, hosted on Raspberry Pi 5.
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: _s
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

_s is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
}

body {
    background-color: #f8f9fa;
    color: #1a1a1a;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 1.1rem;
    line-height: 1.75;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- PAGE TRANSITION --- */
#primary {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- LAYOUT --- */
.site {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#primary {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 25px;
}

@media screen and (max-width: 768px) {
    #primary {
        padding: 0 20px;
    }
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    clear: both;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.25;
    color: #111111;
    font-weight: 700;
}

h1 {
    font-size: 2.75rem;
    margin-top: 5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.1rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.6rem;
}

p {
    margin-bottom: 1.8rem;
}

a {
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
    width: 100%;
    padding: 4rem 0 2rem 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 4rem;
    background-color: #ffffff;
}

.site-branding {
    text-align: center;
    margin-bottom: 2.5rem;
}

.site-title {
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 0;
    color: #111111;
}

.site-description {
    font-size: 0.85rem;
    color: #888888;
    margin: 0.75rem 0 0;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.main-navigation {
    text-align: center;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.main-navigation a {
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #444444;
    position: relative;
    padding: 5px 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: #1a1a1a;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-navigation a:hover::after {
    width: 100%;
}

.main-navigation a:hover {
    color: #1a1a1a;
}

/* --- POST STYLING --- */
article {
    background-color: #ffffff;
    padding: 3rem;
    margin-bottom: 3rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

article:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

@media screen and (max-width: 768px) {
    article {
        padding: 2rem;
    }
}

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

.entry-title {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.entry-meta {
    font-size: 0.8rem;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.entry-meta::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 1px;
    background-color: #e0e0e0;
}

.entry-content {
    margin-bottom: 0;
}

/* --- FOOTER --- */
.site-footer {
    width: 100%;
    margin-top: 6rem;
    padding: 4rem 0;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    color: #999999;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.site-info p {
    margin: 0;
}

/* --- POSTS NAVIGATION --- */
.posts-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 4rem 0;
}

.posts-navigation .nav-links li {
    margin: 0;
}

.posts-navigation .nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: #1a1a1a;
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.posts-navigation .nav-links a:hover {
    background-color: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
}

@media screen and (max-width: 480px) {
    .posts-navigation .nav-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}
