/* Journal — gallery studio redesign (list + detail) */
body.site-body--blogs {
    --site-ink: #111318;
    --site-ink-soft: #3a4150;
    --site-muted: #6b7385;
    --site-paper: #f4f5f7;
    --site-surface: #ffffff;
    --site-accent: #e11d48;
    --site-accent-soft: rgba(225, 29, 72, 0.1);
    --site-line: rgba(17, 19, 24, 0.1);
    --site-max: 1200px;
    color: var(--site-ink);
    background:
        radial-gradient(900px 480px at 0% 0%, rgba(225, 29, 72, 0.06), transparent 55%),
        radial-gradient(800px 500px at 100% 10%, rgba(17, 19, 24, 0.05), transparent 50%),
        var(--site-paper);
}

body.site-body--blogs .site-header {
    background: rgba(244, 245, 247, 0.88);
    border-bottom-color: var(--site-line);
}

body.site-body--blogs .site-nav__cta {
    border-color: var(--site-ink);
    color: var(--site-ink);
}

body.site-body--blogs .site-nav__cta:hover {
    background: var(--site-ink);
    color: #fff;
}

body.site-body--blogs .site-footer {
    background: var(--site-surface);
}

/* ——— LIST: Split hero ——— */
.jn-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: min(86vh, 46rem);
    border-bottom: 1px solid var(--site-line);
}

.jn-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 3rem 3.5rem;
    max-width: 36rem;
    margin-left: max(0px, calc((100vw - var(--site-max)) / 2));
    animation: jn-in 0.9s var(--site-ease) both;
}

.jn-hero__label {
    margin: 0 0 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--site-accent);
}

.jn-hero__brand {
    margin: 0;
    font-family: var(--site-font-display);
    font-weight: 700;
    font-size: clamp(3.75rem, 9vw, 6.5rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: var(--site-ink);
}

.jn-hero__title {
    margin: 1.5rem 0 0;
    font-family: var(--site-font-body);
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--site-ink-soft);
    max-width: 28rem;
}

.jn-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.jn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.25s var(--site-ease), background 0.2s ease, color 0.2s ease;
}

.jn-btn--solid {
    background: var(--site-ink);
    color: #fff;
}

.jn-btn--solid:hover {
    background: var(--site-accent);
    transform: translateY(-1px);
}

.jn-btn--ghost {
    border: 1px solid var(--site-line);
    color: var(--site-ink);
    background: rgba(255, 255, 255, 0.55);
}

.jn-btn--ghost:hover {
    border-color: var(--site-ink);
}

.jn-hero__visual {
    position: relative;
    align-self: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1a1d24;
    animation: jn-in 1s var(--site-ease) 0.1s both;
}

.jn-hero__visual--square {
    aspect-ratio: 1 / 1;
    max-width: min(100%, 28rem);
    margin-inline: auto;
    border-radius: 1rem;
}

.jn-hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.15) contrast(1.05);
    transform: scale(1.02);
    transition: transform 1.2s var(--site-ease), filter 1.2s ease;
}

.jn-hero:hover .jn-hero__visual img {
    transform: scale(1.06);
    filter: grayscale(0) contrast(1.05);
}

.jn-hero__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(244, 245, 247, 0.55) 0%, transparent 28%),
        linear-gradient(180deg, transparent 60%, rgba(17, 19, 24, 0.35) 100%);
    pointer-events: none;
}

/* ——— LIST: Feed ——— */
.jn-section {
    padding: 3.5rem 0 5rem;
}

.jn-wrap {
    width: min(100% - 2.5rem, var(--site-max));
    margin-inline: auto;
}

.jn-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.jn-bar__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.jn-bar__title {
    margin: 0;
    font-family: var(--site-font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.jn-search {
    display: flex;
    width: min(100%, 17rem);
    background: var(--site-surface);
    border: 1px solid var(--site-line);
    border-radius: 999px;
    overflow: hidden;
}

.jn-search:focus-within {
    border-color: var(--site-ink);
    box-shadow: 0 0 0 3px rgba(17, 19, 24, 0.06);
}

.jn-search input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 0.7rem 1rem;
    font: inherit;
    font-size: 0.875rem;
    outline: none;
    min-width: 0;
}

.jn-search button {
    border: 0;
    background: transparent;
    color: var(--site-accent);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0 1rem 0 0.25rem;
    cursor: pointer;
}

.jn-clear {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--site-muted);
    text-decoration: none;
}

.jn-clear:hover {
    color: var(--site-accent);
}

.jn-featured {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 0;
    margin-bottom: 2rem;
    background: var(--site-surface);
    border: 1px solid var(--site-line);
    border-radius: 1.25rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    animation: jn-in 0.85s var(--site-ease) 0.08s both;
}

.jn-featured:hover .jn-featured__media img {
    transform: scale(1.04);
}

.jn-featured:hover .jn-featured__title {
    color: var(--site-accent);
}

.jn-featured__media {
    margin: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8eaef;
}

.jn-featured__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--site-ease);
}

.jn-featured__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.85rem;
    padding: 2rem 2.25rem;
}

.jn-chip {
    display: inline-flex;
    width: fit-content;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: var(--site-accent-soft);
    color: var(--site-accent);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jn-featured__title {
    margin: 0;
    font-family: var(--site-font-display);
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

.jn-featured__excerpt {
    margin: 0;
    color: var(--site-muted);
    font-size: 0.975rem;
    line-height: 1.6;
}

.jn-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--site-muted);
}

.jn-meta__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--site-accent);
}

.jn-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.jn-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: var(--site-surface);
    border: 1px solid var(--site-line);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s var(--site-ease), box-shadow 0.3s ease;
    animation: jn-in 0.75s var(--site-ease) both;
}

.jn-card:nth-child(1) { animation-delay: 0.08s; }
.jn-card:nth-child(2) { animation-delay: 0.14s; }
.jn-card:nth-child(3) { animation-delay: 0.2s; }
.jn-card:nth-child(4) { animation-delay: 0.26s; }
.jn-card:nth-child(5) { animation-delay: 0.32s; }
.jn-card:nth-child(6) { animation-delay: 0.38s; }
.jn-card:nth-child(7) { animation-delay: 0.44s; }
.jn-card:nth-child(8) { animation-delay: 0.5s; }
.jn-card:nth-child(9) { animation-delay: 0.56s; }

.jn-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(17, 19, 24, 0.08);
}

.jn-card:hover .jn-card__title {
    color: var(--site-accent);
}

.jn-card:hover .jn-card__media img {
    transform: scale(1.05);
}

.jn-card__media {
    margin: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8eaef;
}

.jn-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--site-ease);
}

.jn-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.15rem 1.2rem 1.35rem;
    flex: 1;
}

.jn-card__title {
    margin: 0;
    font-family: var(--site-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jn-card__excerpt {
    margin: 0;
    color: var(--site-muted);
    font-size: 0.875rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jn-mark {
    padding: 0.05em 0.2em;
    border-radius: 0.25em;
    background: rgba(225, 29, 72, 0.16);
    color: inherit;
    font-weight: 700;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.jn-hero__title .jn-mark,
.jn-card__title .jn-mark {
    background: rgba(225, 29, 72, 0.18);
}

.jn-empty {
    padding: 3rem 1.25rem;
    text-align: center;
    color: var(--site-muted);
    background: var(--site-surface);
    border: 1px dashed var(--site-line);
    border-radius: 1rem;
}

.blogs-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 2.5rem;
}

.blogs-pagination a,
.blogs-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.7rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--site-line);
    background: var(--site-surface);
    color: var(--site-ink-soft);
}

.blogs-pagination a:hover {
    border-color: var(--site-accent);
    color: var(--site-accent);
}

.blogs-pagination .is-active {
    background: var(--site-ink);
    border-color: var(--site-ink);
    color: #fff;
}

.blogs-pagination .is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.jn-topics {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--site-line);
}

.jn-topics__label {
    margin: 0 0 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--site-muted);
}

.jn-topics__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.jn-topic {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--site-line);
    background: var(--site-surface);
    color: var(--site-ink);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.jn-topic:hover {
    border-color: var(--site-accent);
    color: var(--site-accent);
}

.jn-topic__count {
    color: var(--site-muted);
    font-size: 0.75rem;
}

.cat-hero__title {
    font-size: clamp(2.75rem, 7vw, 4.75rem) !important;
    line-height: 1.05 !important;
}

.cat-subtopics {
    margin-top: 0;
    margin-bottom: 2rem;
    padding-top: 0;
    border-top: 0;
}

.cat-about {
    margin-top: 3.5rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--site-line);
}

.cat-about__title {
    margin: 0 0 1rem;
    font-family: var(--site-font-display);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cat-about__body {
    max-width: 44rem;
}

.jn-hero__copy .post-crumb {
    margin-bottom: 1.25rem;
}

/* ——— DETAIL ——— */
.post-header {
    padding: 3.25rem 0 2rem;
    animation: jn-in 0.85s var(--site-ease) both;
}

.post-header__inner {
    width: min(100% - 2.5rem, 46rem);
    margin-inline: auto;
}

.post-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--site-muted);
}

.post-crumb a {
    color: var(--site-muted);
    text-decoration: none;
}

.post-crumb a:hover {
    color: var(--site-accent);
}

.post-crumb__sep {
    opacity: 0.5;
}

.post-kicker {
    margin: 0 0 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--site-accent);
}

.post-title {
    margin: 0;
    font-family: var(--site-font-display);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--site-ink);
}

.post-deck {
    margin: 1.15rem 0 0;
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--site-ink-soft);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2.5rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--site-line);
}

.post-meta__label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--site-muted);
}

.post-meta__author,
.post-meta__date {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--site-ink);
}

.post-cover {
    width: min(100% - 2.5rem, var(--site-max));
    margin: 0.5rem auto 2.75rem;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1rem;
    background: #e8eaef;
    border: 1px solid var(--site-line);
    animation: jn-in 0.9s var(--site-ease) 0.08s both;
}

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

.post-content {
    width: min(100% - 2.5rem, 44rem);
    margin: 0 auto;
    padding-bottom: 1rem;
}

.post-prose {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--site-ink-soft);
}

.post-prose > *:first-child {
    margin-top: 0;
}

.post-prose h1,
.post-prose h2,
.post-prose h3,
.post-prose h4 {
    font-family: var(--site-font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--site-ink);
    margin: 2.35rem 0 0.8rem;
}

.post-prose h2 {
    font-size: clamp(1.55rem, 2.8vw, 1.9rem);
}

.post-prose h3 {
    font-size: 1.35rem;
}

.post-prose p {
    margin: 0 0 1.2rem;
}

.post-prose a {
    color: var(--site-accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.post-prose strong,
.post-prose b {
    color: var(--site-ink);
    font-weight: 600;
}

.post-prose ul,
.post-prose ol {
    margin: 0 0 1.25rem;
    padding-left: 1.2rem;
}

.post-prose li {
    margin-bottom: 0.4rem;
}

.post-prose li::marker {
    color: var(--site-accent);
}

.post-prose blockquote {
    margin: 1.85rem 0;
    padding: 1rem 1.15rem;
    border-left: 3px solid var(--site-accent);
    border-radius: 0 0.75rem 0.75rem 0;
    background: rgba(225, 29, 72, 0.05);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.55;
    color: var(--site-ink);
}

.post-prose img,
.post-prose video {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    background: #e8eaef;
}

.post-prose hr {
    border: 0;
    height: 1px;
    margin: 2.25rem 0;
    background: var(--site-line);
}

.post-prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    padding: 0.1em 0.35em;
    border-radius: 0.3rem;
    background: #eef0f4;
}

.post-prose pre {
    overflow-x: auto;
    padding: 1rem 1.15rem;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    background: #111318;
    color: #f4f5f7;
}

.post-prose pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.post-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.post-prose th,
.post-prose td {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--site-line);
    text-align: left;
}

.post-prose th {
    background: #f4f5f7;
    color: var(--site-ink);
}

.post-cta {
    width: min(100% - 2.5rem, 44rem);
    margin: 2.5rem auto 4rem;
}

.post-cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--site-line);
    border-radius: 1rem;
    background: var(--site-surface);
}

.post-cta__label {
    margin: 0 0 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--site-accent);
}

.post-cta__text {
    margin: 0;
    max-width: 26rem;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--site-ink);
}

.post-related {
    padding: 0 0 5rem;
}

.post-related .jn-related__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.post-related .jn-related__head h2 {
    margin: 0;
    font-family: var(--site-font-display);
    font-size: 1.65rem;
    font-weight: 700;
}

.post-related .jn-related__head a {
    color: var(--site-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.post-related .jn-related__head a:hover {
    color: var(--site-accent);
}

.post-related .jn-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@keyframes jn-in {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 980px) {
    .jn-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .jn-hero__copy {
        margin-left: 0;
        padding: 3.5rem 1.25rem 2rem;
        max-width: none;
    }

    .jn-hero__visual {
        aspect-ratio: 16 / 9;
        min-height: 0;
        order: -1;
    }

    .jn-hero__visual--square {
        aspect-ratio: 1 / 1;
        max-width: min(100%, 20rem);
        margin-bottom: 0.5rem;
    }

    .jn-hero__visual::after {
        background: linear-gradient(180deg, transparent 40%, rgba(244, 245, 247, 0.9) 100%);
    }

    .jn-featured {
        grid-template-columns: 1fr;
    }

    .jn-grid,
    .jn-related .jn-grid,
    .post-related .jn-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .jn-grid,
    .jn-related .jn-grid,
    .post-related .jn-grid {
        grid-template-columns: 1fr;
    }

    .post-header__inner,
    .post-content,
    .post-cta,
    .post-cover {
        width: min(100% - 1.25rem, 46rem);
    }

    .post-header {
        padding-top: 2.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jn-hero__copy,
    .jn-hero__visual,
    .jn-featured,
    .jn-card,
    .post-header,
    .post-cover {
        animation: none !important;
    }

    .jn-card:hover,
    .jn-featured:hover .jn-featured__media img,
    .jn-card:hover .jn-card__media img,
    .jn-hero:hover .jn-hero__visual img {
        transform: none;
    }
}
