/*

lab.new
Blog Styles
February 2026

*/

/* Variables */
:root {
    --page-background-color: #ffffff;
    --fallback-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    /* UI */
    --ui-primary-color: #FF5500;
    --ui-background-color: rgba(255, 255, 255, 0.95);
    --ui-border: 0.5px solid #dedede;
    --ui-text-color: #222222;
    --ui-font-family: 'DM Sans', sans-serif;
    --ui-font-size: 12px;
    --ui-font-weight: 450;

    /* Buttons */
    --button-primary-background-color: var(--ui-primary-color);
    --button-primary-hover-background-color: color-mix(in srgb, var(--ui-primary-color) 92%, black);
    --button-press-scale: 0.945;
    --button-press-transition: transform 0.1s ease-out;
    --button-border-radius: 8px;

    /* Blog Layout */
    --blog-header-height: 56px;
    --blog-content-max-width: 620px;
}

/* Global */
html {
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--page-background-color);
    margin: 0;
    padding: 0;
    font-family: var(--ui-font-family), var(--fallback-font-family);
    color: var(--ui-text-color);
}

*:focus {
    outline: none;
}

/* Typography */
h1 {
    font-family: var(--ui-font-family);
    font-size: 32px;
    font-weight: 600;
    color: var(--ui-text-color);
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    font-family: var(--ui-font-family);
    font-size: 15px;
    font-weight: 400;
    color: var(--ui-text-color);
    margin: 0 0 16px 0;
    line-height: 1.7;
}

a {
    color: var(--ui-primary-color);
    font-family: var(--ui-font-family);
    font-size: inherit;
    font-weight: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.blog-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--blog-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background-color: var(--page-background-color);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.blog-header .logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.blog-header .logo {
    width: 24px;
    height: 24px;
    color: var(--ui-text-color);
    margin-top: 1px;
}

.blog-header .logo-text {
    font-family: var(--ui-font-family);
    font-size: 16px;
    font-weight: 500;
    color: var(--ui-text-color);
}

.blog-header .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.blog-header .header-link {
    font-family: var(--ui-font-family);
    font-size: 13px;
    font-weight: 450;
    color: var(--ui-text-color);
    opacity: 0.7;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.blog-header .header-link:hover {
    opacity: 1;
    text-decoration: none;
}

/* Blog Content */
.blog-layout {
    margin-top: var(--blog-header-height);
    display: flex;
    justify-content: center;
    min-height: calc(100vh - var(--blog-header-height));
    padding: 48px 24px 80px;
}

.blog-content {
    max-width: var(--blog-content-max-width);
    width: 100%;
}

/* Post Meta */
.post-date {
    font-family: var(--ui-font-family);
    font-size: 13px;
    font-weight: 500;
    color: var(--ui-text-color);
    opacity: 0.5;
    margin-bottom: 8px;
}

/* Video Embed */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 65%;
    margin: 24px 0 32px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

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

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 20px;
    background-color: var(--button-primary-background-color);
    color: #ffffff;
    font-family: var(--ui-font-family);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--button-border-radius);
    text-decoration: none;
    transform: scale(1);
    transition: var(--button-press-transition);
    margin-top: 8px;
}

.cta-button:hover {
    background-color: var(--button-primary-hover-background-color);
    text-decoration: none;
}

.cta-button:active {
    transform: scale(var(--button-press-scale));
}

/* Responsive */
@media (max-width: 600px) {
    .blog-layout {
        padding: 32px 20px 60px;
    }
    .blog-header {
        padding: 0 16px;
    }
    .blog-header .header-right {
        gap: 14px;
    }
    h1 {
        font-size: 26px;
    }
}
