/* NAMOO ART SERVICE / ECOVILLE — Blog (journal) */
@import url('../css/tokens.css');

:root {
    --bl-line: rgba(0, 0, 0, 0.09);
    --bl-text: #111;
    --bl-sub: #444;
    --bl-muted: #888;
    --bl-bg-soft: #F7F7F5;
    --bl-read: 46rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
    color: var(--bl-text);
    background: #fff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
    overflow-wrap: break-word;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* —— Header (same as product pages) —— */
header {
    position: fixed; top: 0; left: 0; width: 100%;
    height: var(--header-h); z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    display: flex; align-items: center;
    border-bottom: 1px solid var(--bl-line);
}
.header-inner {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    max-width: var(--container-max); margin: 0 auto;
    padding-left: var(--container-pad); padding-right: var(--container-pad);
}
.logo-img { height: clamp(2.75rem, 8vw, 3.875rem); width: auto; object-fit: contain; }
.nav-links { display: flex; gap: clamp(1.5rem, 4vw, 3.125rem); list-style: none; }
.nav-links a {
    white-space: nowrap;
    font-size: clamp(0.875rem, 1.5vw, 1rem); font-weight: 600;
    text-transform: uppercase; color: #333; letter-spacing: 0.3px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #000; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.mobile-menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.mobile-menu-toggle span { display: block; width: 28px; height: 2px; background: #000; }

main { padding-top: var(--header-h); }

/* —— Blog list —— */
.bl-hero {
    padding: clamp(4rem, 9vw, 7rem) var(--container-pad) clamp(2.5rem, 5vw, 3.5rem);
    max-width: var(--container-max); margin: 0 auto; text-align: center;
}
.bl-eyebrow {
    font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--bl-muted); margin-bottom: 1rem;
}
.bl-hero h1 {
    font-size: clamp(2.25rem, 6vw, 3.375rem); font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.15; text-transform: uppercase;
}
.bl-hero p {
    margin: 1.25rem auto 0; max-width: 36rem;
    font-size: var(--font-lead); color: var(--bl-sub);
}

.bl-filters {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
    padding: 0 var(--container-pad) clamp(2.5rem, 5vw, 3.5rem);
}
.bl-filter {
    border: 1px solid #ddd; background: #fff; color: #333;
    padding: 0.55rem 1.1rem; font-size: 0.875rem; font-weight: 600;
    cursor: pointer; border-radius: 999px; font-family: inherit;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.bl-filter:hover { border-color: #000; }
.bl-filter[aria-pressed="true"] { background: #000; color: #fff; border-color: #000; }

.bl-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px; max-width: 1400px; margin: 0 auto;
    padding: 0 clamp(1.25rem, 3vw, 2.5rem) var(--section-gap);
}
.bl-card {
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid #ececec; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bl-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08); }
.bl-card-thumb { aspect-ratio: 16 / 10; background: #f0f0f0; overflow: hidden; }
.bl-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bl-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bl-card-meta { font-size: 12px; color: #999; font-weight: 500; letter-spacing: 0.3px; display: flex; gap: 0.6rem; }
.bl-card-cat { color: #000; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.bl-card-title { font-size: 18px; font-weight: 700; line-height: 1.4; color: #111; }
.bl-card-summary { font-size: 13.5px; color: #666; line-height: 1.65; flex: 1; }
.bl-card-more { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.bl-empty { grid-column: 1 / -1; text-align: center; color: #777; padding: 3rem 0; }

/* —— Article —— */
.bl-article { max-width: var(--bl-read); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 1.5rem) 0; }
.bl-crumb { font-size: 0.8125rem; color: var(--bl-muted); margin-bottom: 1.5rem; }
.bl-crumb a { text-decoration: underline; text-underline-offset: 3px; }
.bl-article h1 {
    font-size: clamp(1.75rem, 4.6vw, 2.5rem); font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.3;
}
.bl-article .bl-lede { margin-top: 1.25rem; font-size: 1.125rem; color: var(--bl-sub); line-height: 1.75; }
.bl-byline {
    display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center;
    margin: 1.75rem 0 2rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--bl-line);
    font-size: 0.875rem; color: var(--bl-muted);
}
.bl-byline strong { color: #000; font-weight: 700; }
.bl-cover { margin: 0 calc(50% - min(50vw, 32rem)) 2.5rem; }
.bl-cover img { width: 100%; max-height: 32rem; object-fit: cover; }
.bl-cover figcaption { font-size: 0.8125rem; color: var(--bl-muted); padding: 0.6rem clamp(1.25rem, 4vw, 0rem) 0; text-align: center; }

.bl-body { font-size: 1.0625rem; line-height: 1.95; color: #222; }
.bl-body > * + * { margin-top: 1.4em; }
.bl-body h2 {
    font-size: clamp(1.375rem, 3vw, 1.625rem); font-weight: 800; letter-spacing: -0.02em;
    line-height: 1.4; margin-top: 2.6em; padding-top: 1.2em; border-top: 1px solid var(--bl-line);
}
.bl-body h3 { font-size: 1.1875rem; font-weight: 700; margin-top: 2em; }
.bl-body ul, .bl-body ol { padding-left: 1.3em; }
.bl-body li + li { margin-top: 0.45em; }
.bl-body strong { color: #000; }
.bl-body a { text-decoration: underline; text-underline-offset: 3px; }
.bl-body blockquote {
    border-left: 3px solid #000; padding: 0.25rem 0 0.25rem 1.25rem;
    font-size: 1.125rem; color: #000; font-weight: 600;
}
.bl-body table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.6; }
.bl-body th, .bl-body td { border-bottom: 1px solid var(--bl-line); padding: 0.75rem 0.5rem; text-align: left; vertical-align: top; }
.bl-body th { font-weight: 700; color: #000; border-bottom-color: #000; }
.bl-body .bl-table-wrap { overflow-x: auto; }

.bl-summary-box {
    background: var(--bl-bg-soft); padding: 1.5rem 1.75rem; border: 1px solid #ebe8e1;
}
.bl-summary-box h2 { margin: 0 0 0.75rem !important; padding: 0 !important; border: 0 !important; font-size: 1rem !important; letter-spacing: 0.1em; text-transform: uppercase; }
.bl-summary-box ul { margin: 0; }

.bl-author {
    display: flex; gap: 1.25rem; align-items: center;
    margin: 4rem 0 0; padding: 1.75rem 0; border-top: 1px solid #000; border-bottom: 1px solid var(--bl-line);
}
.bl-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: #f2f2f2; }
.bl-author-name { font-weight: 800; font-size: 1rem; }
.bl-author-role { font-size: 0.875rem; color: var(--bl-sub); line-height: 1.6; margin-top: 0.2rem; }

.bl-related { max-width: 1400px; margin: 0 auto; padding: clamp(4rem, 8vw, 6rem) 0 0; }
.bl-related h2 {
    text-align: center; font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800;
    text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 2.5rem;
}
.bl-related .bl-grid { padding-bottom: clamp(4rem, 8vw, 6rem); }

@media (min-width: 768px) and (max-width: 1180px) {
    header .nav-links { gap: 14px; }
    header .nav-links a { font-size: 12.5px; letter-spacing: 0; }
    header .logo-img { height: 46px; }
}
@media (max-width: 1023px) {
    .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .mobile-menu-toggle { display: flex; }
    header nav { display: none; }
    header.menu-open nav {
        display: block; position: absolute; top: var(--header-h); left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--bl-line); padding: 1.25rem;
    }
    header.menu-open .nav-links { flex-direction: column; gap: 1rem; }
    .bl-grid { grid-template-columns: 1fr; gap: 20px; }
    .bl-cover { margin-left: calc(-1 * clamp(1.25rem, 4vw, 1.5rem)); margin-right: calc(-1 * clamp(1.25rem, 4vw, 1.5rem)); }
    .bl-body { font-size: 1rem; line-height: 1.9; }
}
