@font-face {
    font-family: 'CutiveMono';
    src: url('../fonts/CutiveMono-Regular.woff') format('woff');
}

header {
    font-family: 'CutiveMono', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 10px 0;
    color: #252525;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

header a {
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

body {
    font-family: 'CutiveMono', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background: #f5ecd7;
    margin: 0;
    padding: 0;
    text-align: center;
}

header img {
    height: 40px;
    margin-right: 8px;
    vertical-align: middle;
}

nav {
    margin: 20px 0;
}

nav a {
    text-decoration: none;
    margin: 0 15px;
    color: #7c5e3c;
    font-weight: bold;
}

a {
    color: #7c5e3c;
}

section {
    padding: 20px;
}

.content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.tagline {
    margin: 0;
    color: #7c5e3c;
}

.date {
    margin-top: -10px;
    color: #7c5e3c;
}

footer {
    background: #ddd;
    padding: 10px;
    margin-top: 20px;
}

/* Project cards on the home page */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.card {
    display: block;
    padding-bottom: 10px;
    background: #ffffff;
    border: 1px solid #7c5e3c;
    color: inherit;
    text-decoration: none;
}

.card:hover {
    opacity: 0.8;
}

.card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid #7c5e3c;
}

.card .title {
    display: block;
    padding: 8px 10px 0;
    color: #7c5e3c;
    font-weight: bold;
}

.card .subtitle {
    display: block;
    padding: 0 10px;
    font-size: 14px;
}

/* Post pages */

figure {
    margin: 20px 0;
    text-align: center;
}

figure img {
    max-width: 100%;
    height: auto;
}

figcaption {
    font-size: 14px;
    color: #7c5e3c;
}

.video {
    max-width: 720px;
    aspect-ratio: 16 / 9;
    margin: 20px auto;
}

.video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
}

.post-nav a {
    margin: 0;
}

.gallery {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.gallery img {
    height: 180px;
    width: auto;
    display: block;
    border: 1px solid #7c5e3c;
    cursor: pointer;
}

.gallery img:hover {
    opacity: 0.8;
}

#lightbox {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#lightbox.open {
    display: flex;
}

#lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
}
