html{
    width: 100vw;
    height: auto;
    margin: 0;
}
body {
    font-family: 'Roboto Mono', monospace; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    overflow-x: hidden;
}
body::-webkit-scrollbar {
    display: none;
}
/* top nav bar css*/
nav{
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}
#site-name{
    font-weight: 600;
    padding-left: 15px;
}
#site-name:hover{
    text-decoration: underline;
}
#nav-links > a{
    text-decoration: underline;
    padding-right: 20px;
}

a{
    color: black;
    text-decoration: none;
}
/* site header css */
header{
    text-align: center;
}
header > h1, p{
    margin: 0;
}

/* main content css */
main{
    display: flex;
    justify-content: center;
    width: 1330px;
    height: fit-content;
    gap: 1rem;
}

/* sidebar css */
#sidebar{
    width: 400px;
    overflow: none;
}
.sidebar-content{
    font-size: 14px;
}
.sidebar-content > ul{
    padding: 0;
}
li{
    list-style-type: none;
    text-align: left;
}
.section-title{
    font-size: 16px;
    padding-bottom: 10px;
    border-bottom: solid 2px;
}
.sb-important{
    font-weight: 600;
}

/* blog grid css */
#blog{
    width: 920px;
    overflow-y: scroll;
}
.post-grid{
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
    justify-content: center;
}

/* card link wrapper — removes default anchor styling */
.card-link {
    text-decoration: none;
    color: inherit;
}
.card-link:hover .card {
    opacity: 0.85;
}

.card{
    width: 275px;
    height: 350px;
}
.post-img{
    width: 275px;
    height: 200px;
    object-fit: cover;
}
/* full-width image on individual post pages */
.post-img--full {
    width: 100%;
    height: auto;
    max-height: 400px;
}
h3, h4{
    margin: 0px;
}
.post-info{
    display: flex;
    padding-block: 10px;
}
.card > p{
    font-size: 12px;
}

/* full post body */
.post-full {
    padding-bottom: 2rem;
}
.post-body {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 1rem;
}

a:hover{
    text-decoration: underline;
}