/* lupus.260313.css — Lupus obrt web design */

/* === TOKENS === */
:root {
    --intro-color: #00b478;
    --pico-font-family-serif: "Source Serif 4", serif;
    --pico-font-family-sans-serif: "Inter", sans-serif;
    --pico-font-family: var(--pico-font-family-serif);
    --pico-line-height: 1.65;
    --meta-color: #00b478;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --pico-color: #e3e6e9;
    }
}

[data-theme="dark"] {
    --pico-color: #e3e6e9;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --pico-color: #1d2128;
    }
}

[data-theme="light"] {
    --pico-color: #1d2128;
}

/* === ARTICLE TYPOGRAPHY === */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bold-color: #ffffff;
    }
}

[data-theme="dark"] {
    --bold-color: #ffffff;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bold-color: #111318;
    }
}

[data-theme="light"] {
    --bold-color: #111318;
}

article strong,
article b {
    color: var(--bold-color);
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--pico-font-family-sans-serif);
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* === SIMPLE TEXT PAGE === */
.simple-text-content {
    width: 80%;
    margin: 3rem auto;
}

/* === SITE HEADER / NAV === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: color-mix(
        in srgb,
        var(--pico-background-color) 88%,
        transparent
    );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--pico-muted-border-color);
}

.site-header nav {
    margin-bottom: 0;
}

.site-header nav img {
    display: block;
}

.theme-toggle {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--pico-muted-color);
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    transition: color 0.2s;
}

.theme-toggle:hover {
    color: var(--pico-primary);
}

nav ul li a {
    font-family: var(--pico-font-family-sans-serif);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
}

/* === BREADCRUMB === */
.breadcrumb-bar {
    border-bottom: 1px solid var(--pico-muted-border-color);
    padding-block: 0.5rem;
}

.breadcrumb-bar nav {
    margin-bottom: 0;
}

nav[aria-label="breadcrumb"] ul {
    margin: 0;
    padding: 0;
}

nav[aria-label="breadcrumb"] ul li,
nav[aria-label="breadcrumb"] ul li a {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pico-muted-color);
}

nav[aria-label="breadcrumb"] ul li a:hover {
    color: var(--pico-primary);
}

/* === SECTION LABEL === */
.section-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pico-primary);
    margin-bottom: 0.75rem;
}

/* === HERO === */
.hero {
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(4rem, 7vw, 6rem);
    border-bottom: 1px solid var(--pico-muted-border-color);
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    max-width: 20ch;
    margin-top: 1.25rem;
    margin-bottom: 2rem;
}

.hero-body {
    font-size: 1.15rem;
    max-width: 55ch;
    color: var(--pico-muted-color);
    margin-bottom: 0;
}

.hero-body p:last-child {
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 2.5rem;
}

.hero-actions [role="button"] {
    margin-bottom: 0;
}

/* === FEATURED POST (last_blog_post) === */
.featured-section {
    padding: clamp(4rem, 7vw, 6rem) 0;
}

.featured-inner {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .featured-inner {
        grid-template-columns: 3fr 2fr;
        gap: 4rem;
    }
}

.featured-inner figure {
    margin: 0;
    border-radius: var(--pico-border-radius);
    overflow: hidden;
    aspect-ratio: 16/10;
}

.featured-inner figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-meta {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pico-primary);
    margin-bottom: 0.75rem;
}

.featured-inner h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.featured-inner h2 a {
    color: inherit;
    text-decoration: none;
}

.featured-inner h2 a:hover {
    color: var(--pico-primary);
}

.featured-inner p {
    color: var(--pico-muted-color);
    margin-bottom: 1.5rem;
}

/* === BLOG INDEX === */
.blog-header {
    padding: clamp(3rem, 5vw, 4.5rem) 0 2rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
    margin-bottom: 3rem;
}

.blog-header h1 {
    margin-bottom: 0.5rem;
}

.blog-grid {
    display: grid;
    column-gap: 2rem;
    row-gap: 3.5rem;
    padding-bottom: 4rem;
}

@media (min-width: 640px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    display: flex;
    flex-direction: column;
}

.blog-card-image {
    display: block;
    border-radius: var(--pico-border-radius);
    overflow: hidden;
    aspect-ratio: 3/2;
    margin-bottom: 1rem;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.04);
}

.blog-card h2 {
    font-size: 1.15rem;
    line-height: 1.25;
    margin-bottom: 0.6rem;
}

.blog-card h2 a {
    color: inherit;
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: var(--pico-primary);
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--pico-muted-color);
    flex: 1;
    margin-bottom: 0.75rem;
}

.blog-card-footer {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.66rem;
    color: var(--meta-color);
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--pico-muted-border-color);
}

/* === BLOG POST === */
.post-layout {
    display: grid;
    gap: 4rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
}

@media (min-width: 900px) {
    .post-layout {
        grid-template-columns: 3fr 1fr;
        align-items: start;
    }
}

.post-cover {
    margin: 0 0 3rem;
    border-radius: var(--pico-border-radius);
    overflow: hidden;
}

.post-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.post-meta {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    color: var(--meta-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.post-header h1 {
    margin-bottom: 1rem;
}

.post-intro {
    font-size: 1.15rem;
    color: var(--intro-color);
    line-height: 1.6;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
    margin-bottom: 1.5rem;
}

.post-sidebar {
    font-size: 0.9rem;
}

@media (min-width: 900px) {
    .post-sidebar {
        position: sticky;
        top: 6rem;
    }
}

.sidebar-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pico-primary);
    display: block;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
}

/* === TAG PILLS === */
.tag-list,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pico-muted-color);
    background-color: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 2rem;
    padding: 0.2rem 0.65rem;
    white-space: nowrap;
    text-decoration: none;
    transition:
        color 0.2s,
        border-color 0.2s;
}

a.tag-pill:hover {
    color: var(--pico-primary);
    border-color: var(--pico-primary);
    text-decoration: none;
}

.tag-cloud .tag-pill small {
    font-size: 0.65rem;
    color: var(--pico-primary);
    font-style: normal;
}

.post-tags {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--pico-muted-border-color);
}

.blog-tags-footer {
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--pico-muted-border-color);
    padding-bottom: 3rem;
}

/* === ARTICLE CONTENT BLOCKS === */
article > div,
article > figure {
    margin-bottom: 2rem;
}

/* === SIDEBAR BLOCKS === */
.sidebar-block {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
}

.sidebar-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-block p {
    font-size: 0.85rem;
    color: var(--pico-muted-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* === FEATURE TEXT BLOCK === */
.block-feature-text {
    border: 1px solid color-mix(in srgb, var(--pico-primary) 40%, transparent);
    border-left: 4px solid var(--pico-primary);
    border-radius: var(--pico-border-radius);
    background-color: color-mix(
        in srgb,
        var(--pico-primary) 8%,
        var(--pico-background-color)
    );
    padding: 1.25rem 1.5rem;
    margin-block: 1.5rem;
    margin-inline: 2rem;
    font-size: 0.9rem;
}

.block-feature-text > *:last-child {
    margin-bottom: 0;
}

/* === FOOTER === */
.site-footer {
    margin-top: 4rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--pico-muted-border-color);
    font-size: 0.85rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand strong {
    font-family: var(--pico-font-family-sans-serif);
    font-weight: 800;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.footer-copyright {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    color: var(--pico-muted-color);
    margin-top: 0.5rem;
}

.footer-heading {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pico-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-contact p {
    margin-bottom: 0.25rem;
    color: var(--pico-muted-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

.footer-social a {
    color: var(--pico-muted-color);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--pico-primary);
}
