

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

:root {
    --max-width: 900px;
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-body: #374151;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-accent: #2563eb;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
}

.header {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.header h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin: 0;
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
    background-color: var(--color-text);
}

.nav-pills > li > a {
    color: var(--color-muted);
    font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

p, li {
    color: var(--color-body);
}

a {
    color: var(--color-accent);
}

/* Entry cards */
.entry {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.entry:last-of-type {
    border-bottom: none;
}

.entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.entry-date {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
}

.entry-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-muted);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
    background: #f9fafb;
    white-space: nowrap;
}

.entry-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text);
    margin: 0 0 0.75rem;
}

/* Responsive, aspect-ratio locked video embeds */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
    margin-bottom: 1rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.video-row .video-wrapper {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 260px;
    margin-bottom: 0;
}

footer {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

footer p {
    color: var(--color-muted);
    font-size: 0.85rem;
}
