/*
Theme Name: Solyn Skin
Theme URI: https://solynlog.com
Author: Solyn
Description: Editorial Magazine v3.0 — Korean Food & Travel Stories
Version: 3.0
*/

/* ═══════════════════════════════════════════════════════════════
   FONTS
═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════════ */
:root {
    /* Color — Light */
    --bg:           #FAFAF7;
    --bg-alt:       #F2F1EB;
    --ink:          #0F0F0F;
    --ink-soft:     #1A1A1A;
    --ink-medium:   #525252;
    --ink-muted:    #737373;
    --ink-faint:    #A3A3A3;
    --line:         rgba(15, 15, 15, 0.08);
    --line-strong:  rgba(15, 15, 15, 0.15);
    --accent:       #C95F3D;
    --accent-soft:  rgba(201, 95, 61, 0.1);
    --overlay:      rgba(15, 15, 15, 0.55);

    /* Layout */
    --max-w:        1440px;
    --content-w:    1200px;
    --article-w:    720px;
    --pad:          40px;
    --header-h:     88px;

    /* Type */
    --font-serif:   'Fraunces', 'Times New Roman', serif;
    --font-sans:    'Inter', 'Pretendard', -apple-system, sans-serif;
    --font-display: 'Fraunces', serif;

    /* Easing */
    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg:           #0F0F0F;
    --bg-alt:       #1A1A1A;
    --ink:          #FAFAF7;
    --ink-soft:     #E8E8E8;
    --ink-medium:   #A3A3A3;
    --ink-muted:    #737373;
    --ink-faint:    #525252;
    --line:         rgba(255, 255, 255, 0.08);
    --line-strong:  rgba(255, 255, 255, 0.18);
    --accent:       #E8825C;
    --accent-soft:  rgba(232, 130, 92, 0.12);
    --overlay:      rgba(0, 0, 0, 0.65);
}

/* ═══════════════════════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--accent); color: var(--bg); }
li { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    background: var(--bg);
    color: var(--ink);
    transition: background 0.4s var(--ease-smooth), color 0.4s var(--ease-smooth);
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   READING PROGRESS
═══════════════════════════════════════════════════════════════ */
#progress-bar {
    position: fixed; top: 0; left: 0; height: 2px; width: 0%;
    background: var(--accent); z-index: 9999;
    transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════ */
header#header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--line);
    transition: background 0.3s ease;
}
.admin-bar header#header { top: 32px; }
@media (max-width: 782px) { .admin-bar header#header { top: 46px; } }

.header-inner {
    max-width: var(--max-w); margin: 0 auto;
    padding: 22px var(--pad);
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 32px;
}

.header-meta {
    font-family: var(--font-serif);
    font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-muted);
}

.logo {
    font-family: var(--font-display);
    font-weight: 600; font-size: 1.45rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-style: italic;
    transition: opacity 0.2s;
}
.logo:hover { opacity: 0.7; }
.logo-mark { font-style: normal; font-weight: 700; }

.header-controls {
    display: flex; align-items: center; justify-content: flex-end; gap: 18px;
}

.nav-desktop {
    display: flex; align-items: center; gap: 28px;
}
.nav-desktop a {
    font-size: 0.78rem; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-medium);
    transition: color 0.2s;
    position: relative;
}
.nav-desktop a:hover, .nav-desktop a.current { color: var(--ink); }
.nav-desktop a.current::after {
    content: ''; position: absolute; bottom: -7px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}

.dark-toggle {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: background 0.2s;
    color: var(--ink-medium);
}
.dark-toggle:hover { background: var(--bg-alt); color: var(--ink); }
.dark-toggle svg { width: 16px; height: 16px; }

.mobile-menu-btn {
    display: none;
    flex-direction: column; gap: 5px;
    width: 34px; height: 34px;
    align-items: center; justify-content: center;
}
.mobile-menu-btn span {
    width: 18px; height: 1.5px; background: var(--ink);
    transition: all 0.3s var(--ease-out);
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
    display: none; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0; z-index: 99;
    background: var(--bg);
    padding: 110px 30px 40px;
    flex-direction: column; gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    font-family: var(--font-display);
    font-size: 2rem; font-weight: 400; font-style: italic;
    color: var(--ink);
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav-meta {
    margin-top: auto; padding-top: 24px;
    font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--ink-muted);
}

/* ═══════════════════════════════════════════════════════════════
   HERO — Magazine Cover
═══════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    height: clamp(560px, 88vh, 800px);
    overflow: hidden;
    margin-bottom: 80px;
}
.hero-image {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transform: scale(1.05);
    will-change: transform;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75) 100%);
}
.hero-inner {
    position: absolute; inset: 0;
    max-width: var(--max-w); margin: 0 auto;
    padding: 0 var(--pad) 80px;
    display: flex; flex-direction: column; justify-content: flex-end;
    z-index: 2; color: #fff;
}
.hero-tag {
    font-family: var(--font-serif);
    font-size: 0.7rem; font-weight: 500; font-style: italic;
    letter-spacing: 0.25em; text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
}
.hero-tag::before {
    content: ''; display: inline-block;
    width: 36px; height: 1px; background: rgba(255,255,255,0.6);
    vertical-align: middle; margin-right: 14px;
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.4rem, 6.5vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
    max-width: 960px;
    color: #fff;
}
.hero-title em { font-style: italic; font-weight: 300; }
.hero-excerpt {
    font-size: 1.1rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.9);
    max-width: 580px;
    margin-bottom: 32px;
    font-weight: 300;
}
.hero-cta {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 0.78rem; font-weight: 500;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: #fff;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    transition: gap 0.4s var(--ease-out), border-color 0.3s;
    width: fit-content;
}
.hero-cta:hover { gap: 18px; border-color: #fff; }
.hero-cta-arrow { transition: transform 0.4s var(--ease-out); }
.hero-cta:hover .hero-cta-arrow { transform: translateX(4px); }

.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem; letter-spacing: 0.3em;
    text-transform: uppercase; color: rgba(255,255,255,0.7);
    z-index: 3;
    animation: bounce 2.5s infinite var(--ease-smooth);
}
@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 6px); }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION SHELL
═══════════════════════════════════════════════════════════════ */
.section { padding: 0 var(--pad); margin-bottom: 120px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-header {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 32px; margin-bottom: 56px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.section-eyebrow {
    font-family: var(--font-serif);
    font-size: 0.72rem; font-weight: 500; font-style: italic;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 8px;
}
.section-title {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    line-height: 1.1; letter-spacing: -0.02em;
    color: var(--ink);
}
.section-title em { font-style: italic; font-weight: 300; }
.section-link {
    font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-medium);
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 4px;
    transition: color 0.2s, border-color 0.2s;
    flex-shrink: 0; align-self: flex-end;
}
.section-link:hover { color: var(--accent); border-color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   EDITORIAL INTRO
═══════════════════════════════════════════════════════════════ */
.editorial-intro {
    padding: 0 var(--pad);
    max-width: 920px; margin: 0 auto 100px;
    text-align: center;
}
.editorial-intro .eyebrow {
    font-family: var(--font-serif);
    font-size: 0.78rem; font-weight: 500; font-style: italic;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}
.editorial-intro p {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.4; letter-spacing: -0.01em;
    color: var(--ink-soft);
}
.editorial-intro p em { font-style: italic; }
.editorial-intro .signature {
    margin-top: 32px;
    font-family: var(--font-display);
    font-style: italic; font-weight: 400;
    font-size: 1rem;
    color: var(--ink-muted);
}

/* ═══════════════════════════════════════════════════════════════
   STORY GRID (Asymmetric Editorial)
═══════════════════════════════════════════════════════════════ */
.story-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 60px 40px;
}

.story {
    cursor: pointer;
}
.story-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--bg-alt);
    margin-bottom: 24px;
}
.story-image-inner {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 1.2s var(--ease-out);
}
.story:hover .story-image-inner { transform: scale(1.04); }

.story-meta {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.7rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 14px;
    font-weight: 500;
}
.story-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); }
.story-cat { color: var(--accent); }

.story-title {
    font-family: var(--font-display); font-weight: 400;
    font-size: 1.5rem; line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}
.story:hover .story-title { color: var(--accent); }
.story-excerpt {
    font-size: 0.92rem; line-height: 1.6;
    color: var(--ink-medium);
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Layout variations */
.story.lead {
    grid-column: span 7;
}
.story.lead .story-image { aspect-ratio: 3 / 2; }
.story.lead .story-title { font-size: 2.4rem; }
.story.lead .story-excerpt { font-size: 1rem; -webkit-line-clamp: 3; line-clamp: 3; }

.story.feature {
    grid-column: span 5;
}
.story.feature .story-image { aspect-ratio: 4 / 5; }

.story.half {
    grid-column: span 6;
}
.story.half .story-image { aspect-ratio: 3 / 2; }

.story.third {
    grid-column: span 4;
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY INDEX (Numbered Magazine Style)
═══════════════════════════════════════════════════════════════ */
.cat-index {
    border-top: 1px solid var(--line);
}
.cat-index-row {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 36px 0;
    border-bottom: 1px solid var(--line);
    transition: padding 0.5s var(--ease-out);
    position: relative;
    overflow: hidden;
}
.cat-index-row:hover { padding-left: 24px; }
.cat-index-row::before {
    content: ''; position: absolute; inset: 0;
    background: var(--accent-soft); z-index: -1;
    opacity: 0; transition: opacity 0.4s ease;
}
.cat-index-row:hover::before { opacity: 1; }

.cat-num {
    font-family: var(--font-serif);
    font-size: 1rem; font-weight: 400; font-style: italic;
    color: var(--ink-faint);
}
.cat-name {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 400;
    line-height: 1; letter-spacing: -0.025em;
    color: var(--ink);
    transition: color 0.3s, transform 0.5s var(--ease-out);
}
.cat-index-row:hover .cat-name {
    color: var(--accent);
    transform: translateX(8px);
}
.cat-meta {
    font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink-muted);
    transition: color 0.3s;
}
.cat-index-row:hover .cat-meta { color: var(--ink); }

/* ═══════════════════════════════════════════════════════════════
   NEWSLETTER
═══════════════════════════════════════════════════════════════ */
.newsletter {
    padding: 100px var(--pad);
    background: var(--bg-alt);
    text-align: center;
    margin-bottom: 0;
}
.newsletter-inner { max-width: 620px; margin: 0 auto; }
.newsletter-eyebrow {
    font-family: var(--font-serif);
    font-size: 0.72rem; font-style: italic;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}
.newsletter h2 {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.2; letter-spacing: -0.02em;
    margin-bottom: 18px;
    color: var(--ink);
}
.newsletter h2 em { font-style: italic; font-weight: 300; }
.newsletter p {
    font-size: 1rem; color: var(--ink-medium); margin-bottom: 36px;
    line-height: 1.6;
}
.newsletter-form {
    display: flex; gap: 0;
    max-width: 460px; margin: 0 auto;
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 4px;
}
.newsletter-form input {
    flex: 1; padding: 14px 4px;
    background: transparent; border: none; outline: none;
    font-family: var(--font-sans); font-size: 0.95rem;
    color: var(--ink);
}
.newsletter-form input::placeholder { color: var(--ink-faint); }
.newsletter-form button {
    font-family: var(--font-sans);
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink); padding: 14px 4px;
    transition: color 0.2s;
}
.newsletter-form button:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
footer#footer {
    padding: 80px var(--pad) 40px;
    border-top: 1px solid var(--line);
    background: var(--bg);
}
.footer-inner {
    max-width: var(--max-w); margin: 0 auto;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}
.footer-brand .footer-logo {
    font-family: var(--font-display);
    font-size: 1.6rem; font-weight: 600; font-style: italic;
    letter-spacing: -0.02em;
    color: var(--ink); margin-bottom: 16px; display: block;
}
.footer-brand p {
    font-family: var(--font-display);
    font-size: 1rem; font-style: italic;
    color: var(--ink-medium);
    line-height: 1.55;
    max-width: 420px;
}
.footer-col h4 {
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 18px;
}
.footer-col a {
    display: block; font-size: 0.92rem;
    color: var(--ink-medium);
    padding: 6px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 32px; border-top: 1px solid var(--line);
    flex-wrap: wrap; gap: 16px;
    font-size: 0.78rem; color: var(--ink-muted);
}
.footer-bottom .made-with em {
    font-family: var(--font-display); font-style: italic;
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLE — Single Post
═══════════════════════════════════════════════════════════════ */
.article {
    max-width: var(--max-w); margin: 0 auto;
    padding: 60px var(--pad) 0;
}
.article-header {
    max-width: 880px; margin: 0 auto 60px;
    text-align: center;
}
.breadcrumb {
    font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 32px;
    display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.breadcrumb a { transition: color 0.2s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--ink-faint); }

.article-cat {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 0.74rem; font-weight: 500; font-style: italic;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}
.article-title {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.1; letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 32px;
}
.article-title em { font-style: italic; font-weight: 300; }
.article-meta {
    display: flex; justify-content: center;
    gap: 16px; font-size: 0.82rem;
    color: var(--ink-medium); flex-wrap: wrap;
}
.article-meta .dot { color: var(--ink-faint); }

.article-hero {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-alt);
    background-size: cover; background-position: center;
    margin-bottom: 60px;
}

.article-body {
    max-width: var(--article-w); margin: 0 auto;
    font-family: var(--font-serif);
    font-size: 1.18rem;
    line-height: 1.75;
    color: var(--ink-soft);
    font-weight: 400;
}
.article-body p { margin-bottom: 1.5em; font-family: var(--font-serif); }

/* Drop cap */

.article-body h2 {
    font-family: var(--font-display); font-weight: 500;
    font-size: 2rem; line-height: 1.25; letter-spacing: -0.02em;
    margin: 2.5em 0 0.8em; color: var(--ink);
}
.article-body h3 {
    font-family: var(--font-display); font-weight: 500;
    font-size: 1.5rem; line-height: 1.3;
    margin: 2em 0 0.6em; color: var(--ink);
}
.article-body img {
    max-width: 100%; width: 100%;
    margin: 2.5em 0; border-radius: 2px;
}
.article-body img.full-bleed {
    max-width: 100vw; margin-left: calc(-50vw + 50%);
    width: 100vw; border-radius: 0;
}
.article-body a {
    color: var(--ink); text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 4px; text-decoration-thickness: 1.5px;
    transition: color 0.2s;
}
.article-body a:hover { color: var(--accent); }
.article-body ul, .article-body ol { margin: 1.5em 0; padding-left: 1.4em; }
.article-body li { margin-bottom: 0.6em; list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body strong { font-weight: 600; color: var(--ink); }

blockquote {
    margin: 2.5em 0;
    padding: 0 0 0 32px;
    border-left: 2px solid var(--accent);
    font-family: var(--font-display); font-style: italic;
    font-size: 1.5rem; line-height: 1.5;
    color: var(--ink);
    font-weight: 400;
}

/* Pull quote */
.article-body blockquote.pull {
    margin: 3em -40px;
    border-left: none; padding: 0;
    font-size: 2rem; text-align: center;
    color: var(--ink);
    position: relative;
}
.article-body blockquote.pull::before {
    content: '"';
    display: block; font-size: 4rem;
    color: var(--accent); line-height: 0.5;
    margin-bottom: 20px;
}

/* Article footer / author / nav */
.article-footer {
    max-width: var(--article-w); margin: 80px auto 0;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}
.article-share {
    display: flex; align-items: center; gap: 24px;
    font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 60px;
}
.article-share a { color: var(--ink-medium); transition: color 0.2s; }
.article-share a:hover { color: var(--accent); }

.article-author {
    display: flex; align-items: center; gap: 20px;
    padding: 36px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 60px;
}
.article-author-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--bg-alt);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 1.6rem; font-style: italic;
    color: var(--accent); flex-shrink: 0;
}
.article-author-info .label {
    font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-muted); margin-bottom: 4px;
}
.article-author-info .name {
    font-family: var(--font-display); font-style: italic;
    font-size: 1.2rem; color: var(--ink); margin-bottom: 4px;
}
.article-author-info .bio { font-size: 0.85rem; color: var(--ink-medium); }

.article-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    margin-bottom: 80px;
}
.article-nav-item {
    padding: 24px 0;
    transition: opacity 0.3s;
}
.article-nav-item.prev { padding-right: 24px; border-right: 1px solid var(--line); }
.article-nav-item.next { text-align: right; padding-left: 24px; }
.article-nav-item .label {
    font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink-muted); margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.article-nav-item.next .label { justify-content: flex-end; }
.article-nav-item .title {
    font-family: var(--font-display);
    font-size: 1.1rem; line-height: 1.35;
    color: var(--ink); transition: color 0.2s;
}
.article-nav-item:hover .title { color: var(--accent); }

/* Related */
.related-stories {
    max-width: var(--max-w); margin: 0 auto;
    padding: 80px var(--pad) 100px;
    border-top: 1px solid var(--line);
}

/* ═══════════════════════════════════════════════════════════════
   ARCHIVE / CATEGORY PAGE
═══════════════════════════════════════════════════════════════ */
.archive-hero {
    padding: 120px var(--pad) 80px;
    text-align: center;
    border-bottom: 1px solid var(--line);
    margin-bottom: 80px;
}
.archive-eyebrow {
    font-family: var(--font-serif);
    font-size: 0.8rem; font-weight: 500; font-style: italic;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}
.archive-title {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1; letter-spacing: -0.03em;
    color: var(--ink); margin-bottom: 24px;
}
.archive-title em { font-style: italic; }
.archive-desc {
    max-width: 580px; margin: 0 auto;
    font-size: 1.05rem; line-height: 1.6;
    color: var(--ink-medium);
}

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════════ */
.pagination {
    display: flex; justify-content: center; gap: 8px;
    margin: 60px 0 0;
    padding-top: 40px;
}
.pagination a, .pagination span {
    font-family: var(--font-serif);
    font-size: 0.95rem; font-style: italic;
    color: var(--ink-muted);
    padding: 10px 14px;
    transition: color 0.2s;
}
.pagination a:hover { color: var(--ink); }
.pagination .current { color: var(--accent); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   REVEAL ANIMATION
═══════════════════════════════════════════════════════════════ */
/* Hero text reveal stagger */
.hero-tag, .hero-title, .hero-excerpt, .hero-cta {
    opacity: 0; transform: translateY(20px);
    animation: heroReveal 1s var(--ease-out) forwards;
}
.hero-title { animation-delay: 0.15s; }
.hero-excerpt { animation-delay: 0.3s; }
.hero-cta { animation-delay: 0.45s; }
@keyframes heroReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   ADSENSE SLOTS — 비어있을 땐 자동으로 안 보임
═══════════════════════════════════════════════════════════════ */
.ad-slot {
    max-width: 728px;
    margin: 80px auto;
    padding: 0 var(--pad);
    text-align: center;
    font-family: var(--font-sans);
}
/* 자식 노드가 없으면(=AdSense 코드 미삽입) 완전히 숨김 */
.ad-slot:empty { display: none; }

/* 광고 위/아래 'Advertisement' 라벨 (들어왔을 때만 표시) */
.ad-slot:not(:empty)::before {
    content: 'Advertisement';
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 18px;
}

/* 본문 안 광고는 좁게 */
.ad-slot.ad-article-end,
.ad-slot.ad-before-related {
    max-width: var(--article-w);
}

/* 모바일에서 마진 줄임 */
@media (max-width: 768px) {
    .ad-slot:not(:empty) { margin: 50px auto; }
}

/* ═══════════════════════════════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════════════════════════════ */
#back-to-top {
    position: fixed; bottom: 32px; right: 32px; z-index: 50;
    width: 44px; height: 44px;
    background: var(--ink); color: var(--bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(16px); pointer-events: none;
    transition: all 0.3s var(--ease-out);
}
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover { background: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   NO POSTS / ERROR
═══════════════════════════════════════════════════════════════ */
.empty-state {
    padding: 120px var(--pad);
    text-align: center;
}
.empty-state h2 {
    font-family: var(--font-display); font-weight: 400; font-style: italic;
    font-size: 2rem; color: var(--ink); margin-bottom: 16px;
}
.empty-state p { color: var(--ink-medium); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    :root { --pad: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-brand { grid-column: span 2; }
    .story.lead, .story.feature { grid-column: span 6; }
    .story.lead .story-title { font-size: 1.9rem; }
    .article-body blockquote.pull { margin: 2em 0; font-size: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    :root { --pad: 22px; --header-h: 70px; }
    .header-inner { grid-template-columns: 1fr auto; }
    .header-meta { display: none; }
    .nav-desktop { display: none; }
    .mobile-menu-btn { display: flex; }

    .hero { height: clamp(500px, 80vh, 640px); margin-bottom: 60px; }
    .hero-inner { padding-bottom: 50px; }
    .hero-excerpt { font-size: 1rem; }

    .editorial-intro { margin-bottom: 70px; }

    .section { margin-bottom: 80px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 20px; }

    .story-grid { grid-template-columns: 1fr; gap: 50px; }
    .story.lead, .story.feature, .story.half, .story.third {
        grid-column: span 1;
    }
    .story.lead .story-image { aspect-ratio: 4/5; }
    .story.lead .story-title { font-size: 1.7rem; }

    .cat-index-row {
        grid-template-columns: 32px 1fr;
        padding: 28px 0; gap: 18px;
    }
    .cat-index-row .cat-meta { grid-column: 1/-1; padding-left: 50px; }
    .cat-name { font-size: 2rem; }

    .newsletter { padding: 70px var(--pad); }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-brand { grid-column: span 1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    .article { padding: 40px var(--pad) 0; }
    .article-body { font-size: 1.08rem; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }

/* ═══════════════════════════════════════════════════════════════
   REVEAL — 순수 CSS fade-in (JS 의존 없음, 항상 끝에 visible)
═══════════════════════════════════════════════════════════════ */
@keyframes solynFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.reveal {
    animation: solynFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
    /* JS 비활성/실패해도 보장: */
    opacity: 1 !important;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
