/* ============================================================
   blog.css — Ziu Studio journal

   Deliberately standalone rather than an extension of style.css.
   style.css sets `cursor: none` globally for the homepage's custom
   cursor, which has no JS counterpart on these pages — importing it
   would leave blog readers with no cursor at all. The tokens and
   typography below mirror it by hand instead.

   Palette: Pure White 70%, Raisin Black 10%, Burnt Orange 20%.
   Burnt Orange is a text accent only. Never a fill.
   ============================================================ */

:root {
    --bg-color: #FFFFFF;
    --text-color: #231F20;
    --accent: #B04925;
    --font-primary: 'Bricolage Grotesque', sans-serif;
    --font-secondary: 'Urbanist', sans-serif;
    --container-padding: 4vw;
    --measure: 44rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(176, 73, 37, 0.15);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-secondary);
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ------------------------
   Header
   ------------------------ */
.blog-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem var(--container-padding);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.blog-header__logo img {
    height: 42px;
    width: auto;
    transition: opacity 0.3s ease;
}

.blog-header__logo:hover img {
    opacity: 0.75;
}

.blog-header__nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.blog-header__nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.blog-header__nav a:hover {
    color: var(--accent);
}

.blog-header__cta {
    padding: 0.55rem 1.4rem;
    border-radius: 4px;
    background: var(--text-color);
    color: var(--bg-color) !important;
    border: 1px solid var(--text-color);
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.3s ease, transform 0.3s ease;
}

.blog-header__cta:hover {
    background: #000000;
    border-color: #000000;
    transform: translateY(-1px);
}

/* ------------------------
   Layout
   ------------------------ */
.blog-main {
    padding: 5rem var(--container-padding) 6rem;
    min-height: 60vh;
}

/* ------------------------
   Listing
   ------------------------ */
.blog-index {
    max-width: 62rem;
    margin: 0 auto;
}

.blog-index__head {
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 2.5rem;
}

.blog-index__head h1 {
    font-size: clamp(2.75rem, 7vw, 5rem);
    margin-bottom: 1rem;
}

.blog-index__head p {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: rgba(0, 0, 0, 0.55);
    max-width: var(--measure);
}

.post-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

/* The empty-state button is a flex child here — without this it stretches
   the full width of the column. */
.post-list>.blog-btn {
    align-self: flex-start;
}

.post-card {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.post-card__link {
    display: grid;
    grid-template-columns: 18rem 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2.5rem 0;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.post-card__media {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
}

.post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card__link:hover .post-card__media img {
    transform: scale(1.04);
}

.post-card__date {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.post-card__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.post-card__link:hover .post-card__title {
    color: var(--accent);
}

.post-card__summary {
    color: rgba(0, 0, 0, 0.6);
    max-width: var(--measure);
    margin-bottom: 1rem;
}

.post-card__more {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.45);
}

.blog-empty {
    font-size: 1.15rem;
    color: rgba(0, 0, 0, 0.55);
    margin-bottom: 2rem;
    max-width: var(--measure);
}

/* ------------------------
   Article
   ------------------------ */
.post {
    max-width: var(--measure);
    margin: 0 auto;
}

.post__back {
    display: inline-block;
    margin-bottom: 2.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post__back:hover {
    color: var(--accent);
}

.post__head {
    margin-bottom: 2.5rem;
}

.post__title {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    margin-bottom: 1.25rem;
}

.post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(0, 0, 0, 0.45);
}

.post__meta time {
    color: var(--accent);
    font-weight: 500;
}

.post__cover {
    margin-bottom: 3rem;
}

.post__cover img {
    width: 100%;
    border-radius: 10px;
}

/* Body copy */
.post__body {
    font-size: 1.15rem;
    line-height: 1.75;
    color: rgba(35, 31, 32, 0.86);
}

.post__body>*+* {
    margin-top: 1.5rem;
}

.post__body h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.15rem);
    margin-top: 3rem;
    color: var(--text-color);
}

.post__body h3 {
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    margin-top: 2.5rem;
    color: var(--text-color);
}

.post__body h4 {
    font-size: 1.1rem;
    margin-top: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.55);
}

.post__body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.post__body strong {
    font-weight: 600;
    color: var(--text-color);
}

.post__body ul,
.post__body ol {
    padding-left: 1.4rem;
}

.post__body li+li {
    margin-top: 0.6rem;
}

.post__body blockquote {
    border-left: 2px solid var(--accent);
    padding-left: 1.5rem;
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--text-color);
    font-family: var(--font-primary);
    font-weight: 300;
}

.post__body blockquote>*+* {
    margin-top: 1rem;
}

.post__body figure img {
    width: 100%;
    border-radius: 8px;
}

.post__body hr {
    border: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
}

.post__body pre {
    background: #F6F5F4;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

.post__body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: #F6F5F4;
    padding: 0.15em 0.4em;
    border-radius: 4px;
}

.post__body pre code {
    background: none;
    padding: 0;
}

/* Post footer CTA */
.post__cta {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.post__cta p {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    line-height: 1.35;
    margin-bottom: 1.5rem;
    max-width: 30rem;
}

.blog-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-btn:hover {
    background: #000000;
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* ------------------------
   Footer
   ------------------------ */
.blog-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 3rem var(--container-padding) 2rem;
}

.blog-footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.blog-footer__logo {
    height: 40px;
    width: auto;
}

.blog-footer__links,
.blog-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.blog-footer__links a,
.blog-footer__social a {
    color: var(--text-color);
    opacity: 0.6;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.blog-footer__links a:hover,
.blog-footer__social a:hover {
    opacity: 1;
    color: var(--accent);
}

.blog-footer__bottom {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1.5rem;
}

/* ------------------------
   Responsive
   ------------------------ */
@media (max-width: 900px) {
    .post-card__link {
        grid-template-columns: 12rem 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 5vw;
    }

    .blog-main {
        padding: 3rem var(--container-padding) 4rem;
    }

    .blog-header__logo img {
        height: 32px;
    }

    .blog-header__nav {
        gap: 0.7rem;
    }

    .blog-header__nav a {
        font-size: 0.72rem;
        letter-spacing: 0.03em;
    }

    .blog-header__cta {
        padding: 0.45rem 0.85rem;
        font-size: 0.7rem;
    }

    .blog-index__head {
        margin-bottom: 2.5rem;
        padding-bottom: 1.5rem;
    }

    .post-card__link {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 2rem 0;
    }

    .post-card__media {
        aspect-ratio: 16 / 9;
    }

    .post__body {
        font-size: 1.05rem;
    }

    .post__body blockquote {
        font-size: 1.15rem;
        padding-left: 1.1rem;
    }

    .blog-footer__content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .blog-header__nav a {
        font-size: 0.63rem;
    }

    .blog-header__cta {
        padding: 0.4rem 0.7rem;
        font-size: 0.63rem;
    }
}

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

    html {
        scroll-behavior: auto;
    }

    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
