/* ===========================================================================
   Journal (blog) module
   ---------------------------------------------------------------------------
   Extends the existing theme rather than replacing it. All colours come from
   the :root tokens already defined in style.css, and every size follows the
   same rem-as-viewport-unit scale (html { font-size: .052vw }), so values are
   authored as if the design were 1920px wide and clamped with max() for small
   screens — exactly the convention used throughout style.css.
   ========================================================================= */

.blog-listing {
  padding-bottom: 60rem;
}

.blog-listing .holder,
.blog-single .holder {
    padding-left: var(--p1);
    padding-right: var(--p1);
}

/* --------------------------------------------------------- breadcrumbs -- */
.blog-crumbs {
    max-width: 1400rem;
    margin: 0 auto 40rem;
    font-size: max(11px, 13rem);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    opacity: .65;
}

.blog-crumbs a,
.blog-crumbs em {
    color: var(--c1);
    text-decoration: none;
    font-style: normal;
}

.blog-crumbs a:hover {
    color: var(--c2);
}

.blog-crumbs span {
    display: inline-block;
    margin: 0 8rem;
    opacity: .5;
}

.blog-crumbs em {
    color: var(--c2);
}

/* ------------------------------------------------------------- toolbar -- */
.blog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20rem 28rem;
    max-width: 1400rem;
    margin: 0 auto 70rem;
    padding-bottom: 26rem;
    border-bottom: 1px solid var(--sage-line);
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10rem 26rem;
}

.blog-filters a {
    position: relative;
    font-size: max(12px, 14rem);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c1);
    text-decoration: none;
    opacity: .7;
    padding-bottom: 6rem;
}

.blog-filters a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--c2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .6s var(--ease-out-expo);
}

.blog-filters a:hover,
.blog-filters a.is-active {
    opacity: 1;
    color: var(--c2);
}

.blog-filters a:hover::after,
.blog-filters a.is-active::after {
    transform: scaleX(1);
}

.blog-search {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid var(--sage-line);
    min-width: 240px;
}

.blog-search input[type="search"] {
    flex: 1;
    background: transparent;
    border: 0;
    color: var(--c1);
    font-family: 'Jost', Arial, sans-serif;
    font-size: max(14px, 16rem);
    font-weight: 300;
    padding: 8rem 4rem;
    -webkit-appearance: none;
    appearance: none;
}

.blog-search input[type="search"]::placeholder {
    color: var(--c1);
    opacity: .45;
}

.blog-search input[type="search"]:focus {
    outline: none;
    border-bottom-color: var(--c2);
}

.blog-search button {
    background: transparent;
    color: var(--c2);
    font-size: max(16px, 20rem);
    line-height: 1;
    padding: 6rem 4rem 6rem 12rem;
    cursor: pointer;
    transition: transform .3s var(--ease-out-expo);
}

.blog-search button:hover {
    transform: translateX(4px);
}

/* ----------------------------------------------------------- meta line -- */
.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8rem 18rem;
    margin: 0 0 18rem;
    font-size: max(11px, 13rem);
    letter-spacing: 1.8px;
    text-transform: uppercase;
    opacity: .75;
}

.blog-meta > span + span {
    position: relative;
    padding-left: 18rem;
}

.blog-meta > span + span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 8rem;
    min-width: 6px;
    height: 1px;
    background: currentColor;
    opacity: .6;
}

.blog-cat {
    color: var(--c2);
    text-decoration: none;
    border: 1px solid var(--sage-line);
    padding: 5rem 12rem;
    transition: border-color .3s linear, background .3s linear;
}

a.blog-cat:hover {
    border-color: var(--c2);
    background: rgba(220, 203, 179, .08);
}

/* ------------------------------------------------------------ hero post -- */
.blog-hero {
    display: flex;
    align-items: center;
    gap: 60rem;
    max-width: 1500rem;
    margin: 0 auto 110rem;
}

.blog-hero-media {
    display: block;
    flex: 0 0 55%;
    width: 55%;
    height: 560rem;
    min-height: 280px;
    background: rgba(255, 255, 255, .03);
}

.blog-hero-media img {
    width: 100%;
    transition: transform 1.2s var(--ease-out-expo);
}

.blog-hero-media:hover img {
    transform: scale(1.04);
}

.blog-hero-body {
    flex: 1;
    min-width: 0;
}

.blog-hero-body h2 {
    margin: 0 0 20rem;
    font-size: max(26px, 46rem);
}

.blog-hero-body h2 a,
.blog-card-body h3 a {
    color: var(--c1);
    text-decoration: none;
    transition: color .3s linear;
}

.blog-hero-body h2 a:hover,
.blog-card-body h3 a:hover {
    color: var(--c2);
}

.blog-hero-body p {
    max-width: 560rem;
    margin: 0 0 26rem;
    opacity: .8;
}

/* ---------------------------------------------------------------- grid -- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60rem 40rem;
    max-width: 1500rem;
    margin: 0 auto;
}

.blog-card {
    display: flex;
    flex-direction: column;
    padding-top: 24rem;
    border-top: 1px solid var(--sage-line);
}

.blog-card-media {
    display: block;
    height: 300rem;
    min-height: 200px;
    margin: 0 0 24rem;
    background: rgba(255, 255, 255, .03);
}

.blog-card-media img {
    width: 100%;
    transition: transform 1.2s var(--ease-out-expo);
}

.blog-card-media:hover img {
    transform: scale(1.05);
}

.blog-card-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg, rgba(220, 203, 179, .10) 0%, rgba(220, 203, 179, .02) 100%),
        url(../images/key.svg) 50% 50% no-repeat;
    background-size: auto, 60px auto;
    opacity: .5;
}

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

.blog-card-body h3 {
    font-family: 'NanumMyeongjo', Georgia, serif;
    font-size: max(19px, 26rem);
    font-weight: 400;
    line-height: 120%;
    letter-spacing: -0.5px;
    margin: 0 0 14rem;
}

.blog-card-body p {
    margin: 0 0 20rem;
    font-size: max(14px, 16rem);
    line-height: 155%;
    opacity: .75;
}

.blog-card-body .link-flash {
    margin-top: auto;
    align-self: flex-start;
}

/* ---------------------------------------------------------- empty state -- */
.blog-empty {
    max-width: 720rem;
    margin: 40rem auto 80rem;
    text-align: center;
}

.blog-empty .key-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 28rem;
}

.blog-empty h2 {
    margin: 0 0 16rem;
    text-align: center;
}

.blog-empty p {
    opacity: .8;
}

/* ---------------------------------------------------------- pagination -- */
.blog-pagination {
    max-width: 1500rem;
    margin: 90rem auto 0;
}

.blog-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10rem;
}

.blog-pagination li a,
.blog-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 10rem;
    font-size: max(13px, 15rem);
    letter-spacing: 1px;
    color: var(--c1);
    text-decoration: none;
    border: 1px solid var(--sage-line);
    transition: color .3s linear, border-color .3s linear, background .3s linear;
}

.blog-pagination li a:hover {
    color: var(--c4);
    background: var(--c2);
    border-color: var(--c2);
}

.blog-pagination li.is-current span {
    color: var(--c2);
    border-color: var(--c2);
}

.blog-pagination li.is-gap span {
    border-color: transparent;
    opacity: .5;
}

/* =========================================================================
   Single post
   ========================================================================= */

.blog-single-head {
    max-width: 1000rem;
    margin: 0 auto 46rem;
    text-align: center;
}

.blog-single-head .blog-meta {
    justify-content: center;
    margin-bottom: 24rem;
}

.blog-single-head h1 {
    margin: 0 0 26rem;
    font-size: max(30px, 76rem);
    line-height: 105%;
}

.blog-standfirst {
    max-width: 800rem;
    margin: 0 auto;
    font-size: max(16px, 21rem);
    line-height: 155%;
    opacity: .82;
}

.blog-single-media {
    max-width: 1400rem;
    height: 620rem;
    min-height: 240px;
    margin: 0 auto 80rem;
}

.blog-single-media img {
    width: 100%;
}

/* ------------------------------------------------------- article layout -- */
.blog-single-layout {
    display: flex;
    align-items: flex-start;
    gap: 80rem;
    max-width: 1390rem;
    margin: 0 auto;
}

.blog-body {
    flex: 1;
    min-width: 0;
    font-size: max(16px, 19rem);
    line-height: 168%;
}

.blog-aside {
    flex: 0 0 280rem;
    width: 280rem;
    min-width: 220px;
}

.blog-aside-inner {
    position: sticky;
    top: 130rem;
    padding-left: 30rem;
    border-left: 1px solid var(--sage-line);
}

.blog-aside-label {
    display: block;
    margin: 0 0 14rem;
    font-size: max(11px, 13rem);
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--c2);
}

.blog-share,
.blog-tags,
.blog-aside-cta {
    margin: 0 0 40rem;
}

.blog-share ul li,
.blog-tags ul {
    display: block;
}

.blog-share ul li a {
    display: block;
    padding: 5rem 0;
    font-size: max(14px, 16rem);
    color: var(--c1);
    text-decoration: none;
    opacity: .8;
}

.blog-share ul li a:hover {
    color: var(--c2);
    opacity: 1;
}

.blog-tags ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8rem;
}

.blog-tags ul li a {
    display: inline-block;
    padding: 5rem 12rem;
    font-size: max(11px, 13rem);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--c1);
    text-decoration: none;
    border: 1px solid var(--sage-line);
    transition: color .3s linear, border-color .3s linear;
}

.blog-tags ul li a:hover {
    color: var(--c2);
    border-color: var(--c2);
}

.blog-aside-cta p {
    margin: 0 0 14rem;
    font-size: max(14px, 16rem);
    line-height: 150%;
    opacity: .78;
}

/* --------------------------------------------- editor content typography -- */
.blog-body > *:first-child {
    margin-top: 0;
}

.blog-body p {
    margin: 0 0 30rem;
    opacity: .88;
}

.blog-body h2 {
    font-size: max(24px, 40rem);
    line-height: 115%;
    letter-spacing: -1px;
    margin: 60rem 0 22rem;
}

.blog-body h3 {
    font-family: 'NanumMyeongjo', Georgia, serif;
    font-size: max(20px, 30rem);
    font-weight: 400;
    line-height: 120%;
    margin: 48rem 0 18rem;
}

.blog-body h4 {
    font-family: 'Jost', Arial, sans-serif;
    font-size: max(16px, 20rem);
    font-weight: 400;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--c2);
    margin: 40rem 0 16rem;
}

.blog-body a {
    color: var(--c2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-body a:hover {
    color: var(--c1);
}

.blog-body ul,
.blog-body ol {
    margin: 0 0 30rem;
    padding-left: 24rem;
    opacity: .88;
}

.blog-body ul li,
.blog-body ol li {
    position: relative;
    margin: 0 0 12rem;
    padding-left: 18rem;
    list-style: none;
}

.blog-body ol {
    counter-reset: blog-ol;
}

.blog-body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13rem;
    width: 8px;
    height: 1px;
    background: var(--c2);
}

.blog-body ol li::before {
    counter-increment: blog-ol;
    content: counter(blog-ol) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--c2);
}

.blog-body blockquote {
    margin: 46rem 0;
    padding: 4rem 0 4rem 34rem;
    border-left: 1px solid var(--c2);
    font-family: 'NanumMyeongjo', Georgia, serif;
    font-size: max(19px, 26rem);
    line-height: 145%;
    color: var(--c2);
}

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

.blog-body img {
    width: 100%;
    height: auto;
    margin: 12rem 0;
}

.blog-body figure {
    margin: 46rem 0;
}

.blog-body figcaption {
    margin-top: 12rem;
    font-size: max(12px, 14rem);
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .6;
}

.blog-body hr {
    height: 1px;
    margin: 56rem 0;
    background: var(--sage-line);
}

.blog-body table {
    width: 100%;
    margin: 0 0 34rem;
    border-collapse: collapse;
    font-size: max(14px, 16rem);
}

.blog-body table th,
.blog-body table td {
    padding: 12rem 14rem;
    text-align: left;
    border-bottom: 1px solid var(--sage-line);
}

.blog-body table th {
    color: var(--c2);
    font-weight: 400;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-size: max(12px, 14rem);
}

.blog-body iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin: 34rem 0;
    border: 0;
}

.blog-body code {
    padding: 2px 6px;
    background: rgba(255, 255, 255, .06);
    font-size: .9em;
}

/* ------------------------------------------------------------------ FAQ -- */
.blog-faq {
    max-width: 1312rem;
    margin: 110rem auto 0;
}

.blog-faq h2 {
    margin: 0 0 34rem;
}

.faq-accordion details {
    border-top: 1px solid var(--sage-line);
}

.faq-accordion details:last-child {
    border-bottom: 1px solid var(--sage-line);
}

.faq-accordion summary {
    position: relative;
    display: block;
    padding: 26rem 46rem 26rem 0;
    font-family: 'NanumMyeongjo', Georgia, serif;
    font-size: max(17px, 23rem);
    line-height: 135%;
    cursor: pointer;
    list-style: none;
    transition: color .3s linear;
}

.faq-accordion summary::-webkit-details-marker {
    display: none;
}

.faq-accordion summary:hover {
    color: var(--c2);
}

.faq-accordion summary::after {
    content: "+";
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c2);
    font-family: 'Jost', Arial, sans-serif;
    font-size: max(20px, 26rem);
    line-height: 1;
    transition: transform .3s var(--ease-out-expo);
}

.faq-accordion details[open] summary::after {
    content: "–";
}

.faq-accordion .faq-answer {
    padding: 0 46rem 28rem 0;
}

.faq-accordion .faq-answer p {
    margin: 0;
    line-height: 160%;
    opacity: .8;
}

/* ------------------------------------------------------ previous / next -- */
.blog-adjacent {
    display: flex;
    justify-content: space-between;
    gap: 30rem;
    max-width: 1300rem;
    margin: 110rem auto 0;
    padding-top: 34rem;
    border-top: 1px solid var(--sage-line);
}

.blog-adjacent a {
    max-width: 46%;
    color: var(--c1);
    text-decoration: none;
}

.blog-adjacent a.next {
    margin-left: auto;
    text-align: right;
}

.blog-adjacent a span {
    display: block;
    margin: 0 0 10rem;
    font-size: max(11px, 13rem);
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--c2);
}

.blog-adjacent a strong {
    display: block;
    font-family: 'NanumMyeongjo', Georgia, serif;
    font-size: max(16px, 22rem);
    font-weight: 400;
    line-height: 130%;
    transition: color .3s linear;
}

.blog-adjacent a:hover strong {
    color: var(--c2);
}

/* --------------------------------------------------------------- related -- */
.blog-related {
    max-width: 1500rem;
    margin: 120rem auto 0;
}

.blog-related h2 {
    margin: 0 0 46rem;
    text-align: center;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media screen and (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 1023px) {
    .blog-hero {
        flex-direction: column;
        align-items: stretch;
        gap: 26px;
        margin-bottom: 60px;
    }

    .blog-hero-media {
        flex: none;
        width: 100%;
        height: 300px;
    }

    .blog-single-layout {
        flex-direction: column;
        gap: 50px;
    }

    .blog-aside {
        flex: none;
        width: 100%;
    }

    .blog-aside-inner {
        position: static;
        padding-left: 0;
        padding-top: 30px;
        border-left: 0;
        border-top: 1px solid var(--sage-line);
    }

    .blog-share ul {
        display: flex;
        flex-wrap: wrap;
        gap: 18px;
    }

    .blog-share ul li a {
        padding: 0;
    }

    .blog-single-media {
        height: 320px;
        margin-bottom: 46px;
    }
}

@media screen and (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .blog-toolbar {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 40px;
    }

    .blog-search {
        width: 100%;
    }

    .blog-card-media {
        height: 220px;
    }

    .blog-body {
        font-size: 16px;
    }

    .blog-adjacent {
        flex-direction: column;
        gap: 26px;
    }

    .blog-adjacent a,
    .blog-adjacent a.next {
        max-width: 100%;
        text-align: left;
        margin-left: 0;
    }

    .blog-pagination {
        margin-top: 50px;
    }

    .blog-related,
    .blog-faq {
        margin-top: 60px;
    }
}

/* -------------------------------------------------- accessibility floor -- */
.blog-filters a:focus-visible,
.blog-crumbs a:focus-visible,
.blog-card-body h3 a:focus-visible,
.blog-hero-body h2 a:focus-visible,
.blog-pagination a:focus-visible,
.blog-tags ul li a:focus-visible,
.blog-share ul li a:focus-visible,
.faq-accordion summary:focus-visible {
    outline: 2px solid var(--c2);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .blog-card-media img,
    .blog-hero-media img,
    .blog-search button,
    .blog-filters a::after {
        transition: none;
    }

    .blog-card-media:hover img,
    .blog-hero-media:hover img {
        transform: none;
    }
}
