/* ═══════════════════════════════════════════
   ttbulut.blog — Editorial Design System v3
   Aeon · Substack · The Paris Review
   ═══════════════════════════════════════════ */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes revealLine {
    from { width: 0; }
    to { width: 48px; }
}

:root {
    --bg:             #F5F3EE;
    --bg-alt:         #EDEAE4;
    --bg-card:        #FDFCFA;
    --bg-elevated:    #FFFFFF;
    --bg-highlight:   #FDF6E3;

    --text:           #1B1918;
    --text-secondary: #4D4845;
    --text-muted:     #8A8279;
    --text-caption:   #AAA49B;

    --accent:         #1B1918;
    --link:           #7C4D27;
    --link-hover:     #A0653A;

    --border:         #E0DBD3;
    --border-subtle:  #E9E5DF;
    --divider:        #D4CFC6;

    --shadow-xs:      0 1px 2px rgba(27,25,24,0.03);
    --shadow-sm:      0 2px 4px rgba(27,25,24,0.04);
    --shadow:         0 2px 12px rgba(27,25,24,0.05);
    --shadow-md:      0 4px 20px rgba(27,25,24,0.06);
    --shadow-lg:      0 12px 40px rgba(27,25,24,0.08);

    --radius:         6px;
    --radius-sm:      4px;
    --radius-lg:      10px;

    --font-serif:     'Playfair Display', 'Georgia', serif;
    --font-sans:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:      'JetBrains Mono', monospace;

    --ease:           cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
    --transition:     0.25s var(--ease);
}

[data-theme="dark"] {
    --bg:             #111010;
    --bg-alt:         #1A1918;
    --bg-card:        #1F1E1C;
    --bg-elevated:    #262523;
    --bg-highlight:   #2A2517;

    --text:           #E6E2DB;
    --text-secondary: #B0AAA2;
    --text-muted:     #7A756D;
    --text-caption:   #5A5650;

    --accent:         #E6E2DB;
    --link:           #D4A574;
    --link-hover:     #E6BD92;

    --border:         #2C2A28;
    --border-subtle:  #242220;
    --divider:        #363331;

    --shadow-xs:      0 1px 2px rgba(0,0,0,0.12);
    --shadow-sm:      0 2px 4px rgba(0,0,0,0.18);
    --shadow:         0 2px 12px rgba(0,0,0,0.2);
    --shadow-md:      0 4px 20px rgba(0,0,0,0.25);
    --shadow-lg:      0 12px 40px rgba(0,0,0,0.35);
}

/* ═══ Reset ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--bg);
    color-scheme: light;
}
[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] { background: #111010; }
html[data-theme="light"] { background: #F5F3EE; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
html { overflow-x: hidden; }

::selection { background: rgba(124,77,39,0.14); color: var(--text); }
[data-theme="dark"] ::selection { background: rgba(212,165,116,0.18); }

a { color: var(--link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; display: block; }

/* Veri gelene kadar demo/HTML iskeleti gösterme */
html:not(.data-ready) main,
html:not(.data-ready) .hero,
html:not(.data-ready) .section,
html:not(.data-ready) .thought-card,
html:not(.data-ready) .footer {
    opacity: 0;
}
html.data-ready main,
html.data-ready .hero,
html.data-ready .section,
html.data-ready .thought-card,
html.data-ready .footer {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.container { max-width: 680px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.container-wide { max-width: 1040px; margin: 0 auto; padding: 0 2rem; width: 100%; }

/* ═══ Animated entry ═══ */
.anim-fade { animation: fadeUp 0.6s var(--ease-out) both; }
.anim-fade-d1 { animation-delay: 0.08s; }
.anim-fade-d2 { animation-delay: 0.16s; }
.anim-fade-d3 { animation-delay: 0.24s; }
.anim-fade-d4 { animation-delay: 0.32s; }

/* ═══ Buttons ═══ */
.btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.55rem 1.3rem; border: none; border-radius: var(--radius-sm);
    font-family: var(--font-sans); font-size: 0.82rem; font-weight: 500;
    cursor: pointer; transition: all var(--transition); text-decoration: none;
    letter-spacing: 0.02em;
}
.btn-primary {
    background: var(--text); color: var(--bg);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--bg); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.btn-outline:hover { border-color: var(--text); color: var(--text); }
.btn-danger { background: #B91C1C; color: #fff; }
.btn-sm { padding: 0.32rem 0.85rem; font-size: 0.78rem; }
.btn-ghost { background: none; border: none; color: var(--text-muted); padding: 0.3rem 0.4rem; font-family: var(--font-sans); font-size: 0.8rem; cursor: pointer; transition: color var(--transition); }
.btn-ghost:hover { color: var(--text); }

/* ═══ Navbar ═══ */
.navbar {
    border-bottom: 1px solid var(--border-subtle);
    position: sticky; top: 0; z-index: 1000;
    background: var(--bg);
    transition: box-shadow 0.3s var(--ease);
}
.navbar.scrolled { box-shadow: 0 1px 12px rgba(27,25,24,0.06); }
[data-theme="dark"] .navbar.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.2); }

.nav-container {
    display: flex; align-items: center; justify-content: space-between;
    height: 54px; max-width: 1040px; position: relative; width: 100%;
}

.logo {
    font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700;
    letter-spacing: -0.3px; color: var(--text) !important;
    min-width: 4.5rem; min-height: 1em;
    transition: opacity 0.15s var(--ease);
}
.logo:not(.logo-ready) { opacity: 0; }
.logo.logo-ready { opacity: 1; }
.logo:hover { opacity: 0.7; }
.logo .logo-dot { color: var(--text-caption); font-weight: 400; }

.nav-center { display: flex; gap: 0.1rem; }
.nav-link {
    color: var(--text-muted); font-size: 0.82rem; font-weight: 450;
    padding: 0.3rem 0.7rem; border-radius: var(--radius-sm);
    transition: all var(--transition); letter-spacing: 0.015em;
    position: relative;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); font-weight: 550; }
.nav-link.active::after {
    content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
    width: 16px; height: 1.5px; background: var(--text); border-radius: 1px;
}

.nav-right { display: flex; align-items: center; gap: 0.3rem; }
.search-btn, .theme-btn {
    background: none; border: none; padding: 0.4rem;
    cursor: pointer; color: var(--text-muted); display: flex;
    align-items: center; justify-content: center;
    transition: all var(--transition); border-radius: var(--radius-sm);
}
.search-btn:hover, .theme-btn:hover { color: var(--text); transform: scale(1.05); }

.hamburger {
    display: none; flex-direction: column; gap: 4px;
    background: none; border: none; cursor: pointer; padding: 0.45rem;
}
.hamburger span { width: 17px; height: 1.5px; background: var(--text); border-radius: 1px; transition: all 0.3s var(--ease); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ═══ Search Modal ═══ */
.search-modal {
    position: fixed; inset: 0; background: rgba(27,25,24,0.25);
    backdrop-filter: blur(8px); z-index: 2000;
    display: none; align-items: flex-start; justify-content: center; padding-top: 16vh;
    animation: fadeIn 0.2s var(--ease);
}
.search-modal.open { display: flex; }
.search-modal-content {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-lg); width: 92%; max-width: 520px;
    padding: 1.5rem; box-shadow: var(--shadow-lg);
    animation: fadeUp 0.3s var(--ease-out);
}
.search-modal-content input {
    width: 100%; border: none; background: none; font-size: 1rem;
    font-family: var(--font-sans); color: var(--text); outline: none;
    padding: 0.5rem 0; border-bottom: 1.5px solid var(--border); margin-bottom: 0.75rem;
}
.search-results { max-height: 260px; overflow-y: auto; }
.search-result-item { display: block; padding: 0.65rem 0.5rem; border-radius: var(--radius-sm); color: var(--text); transition: background var(--transition); }
.search-result-item:hover { background: var(--bg-alt); }
.search-result-item h4 { font-size: 0.88rem; font-weight: 550; margin-bottom: 0.1rem; font-family: var(--font-serif); }
.search-result-item p { font-size: 0.78rem; color: var(--text-muted); }
.search-hint { text-align: center; color: var(--text-caption); font-size: 0.72rem; margin-top: 0.6rem; letter-spacing: 0.04em; }

/* ═══ Hero ═══ */
.hero {
    padding: 6rem 0 1.5rem;
    text-align: center;
    position: relative;
}
.hero::after {
    content: ''; display: block; width: 48px; height: 1px;
    background: var(--divider); margin: 2.5rem auto 0;
    animation: revealLine 0.8s var(--ease-out) 0.5s both;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.2px;
    margin-bottom: 1.25rem;
    color: var(--text);
    animation: fadeUp 0.7s var(--ease-out) both;
}
.hero-title em {
    font-style: italic;
    font-weight: 400;
}
.hero-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.75;
    animation: fadeUp 0.7s var(--ease-out) 0.1s both;
}

/* ═══ Masthead ═══ */
.masthead {
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
    margin-bottom: 1.75rem;
    animation: fadeUp 0.6s var(--ease-out) both;
}
.masthead-label, .masthead-date {
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--text-caption);
}
.masthead-sep {
    width: 4px; height: 4px; border-radius: 50%; background: var(--divider);
}

.section--alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

/* ═══ Thought of the Day ═══ */
.thought-card {
    max-width: 560px;
    margin: 3rem auto 0;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    animation: fadeUp 0.7s var(--ease-out) 0.25s both;
}
.thought-card::before {
    content: '"';
    position: absolute;
    top: 0.25rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-serif);
    font-size: 4.5rem;
    color: var(--border);
    line-height: 1;
    pointer-events: none;
}
.thought-label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-caption);
    margin-bottom: 1.5rem;
}
.thought-text {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.55;
    color: var(--text);
    margin-bottom: 0.85rem;
}
.thought-author {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

/* ═══ Section ═══ */
.section { padding: 3.5rem 0; }
.section-header {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 2rem;
}
.section-header::after { display: none; }
.section-title {
    font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600;
    letter-spacing: -0.2px; position: relative; padding-bottom: 0.5rem;
}
.section-title::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 28px; height: 1.5px; background: var(--divider);
}
.section-subtitle {
    font-size: 0.76rem; color: var(--text-caption); letter-spacing: 0.03em;
    display: block; margin-top: 0.2rem;
}
.see-all {
    font-size: 0.78rem; color: var(--text-muted); font-weight: 450; letter-spacing: 0.02em;
    transition: color var(--transition);
}
.see-all:hover { color: var(--link); }

/* ═══ Page Header ═══ */
.page-header {
    padding: 4rem 0 2.5rem; text-align: center;
    position: relative;
}
.page-header::after {
    content: ''; display: block; width: 40px; height: 1px;
    background: var(--divider); margin: 1.5rem auto 0;
}
.page-header h1 {
    font-family: var(--font-serif); font-size: 2.2rem; font-weight: 600;
    letter-spacing: -0.4px; animation: fadeUp 0.6s var(--ease-out) both;
}
.page-header p {
    color: var(--text-muted); font-size: 0.92rem; margin-top: 0.5rem;
    animation: fadeUp 0.6s var(--ease-out) 0.08s both;
}

/* ═══ Featured Post (Lead Essay) ═══ */
.featured-post {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
    animation: fadeUp 0.7s var(--ease-out) 0.1s both;
}
.featured-post a { color: inherit; display: block; }
.featured-post a:hover .featured-title { color: var(--link); }
.featured-inner { display: flex; gap: 2.75rem; align-items: center; }
.featured-inner:not(:has(.featured-cover)) .featured-content { max-width: 720px; margin: 0 auto; text-align: center; }
.featured-inner:not(:has(.featured-cover)) .featured-excerpt { max-width: 560px; margin-left: auto; margin-right: auto; }
.featured-inner:not(:has(.featured-cover)) .featured-meta { justify-content: center; }
.featured-cover {
    width: 400px; height: 260px; flex-shrink: 0;
    background: var(--bg-alt); border-radius: var(--radius);
    overflow: hidden; position: relative;
}
.featured-cover::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(27,25,24,0.04) 100%);
}
.featured-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.featured-post a:hover .featured-cover img { transform: scale(1.03); }
.featured-content { flex: 1; }
.featured-label {
    font-size: 0.64rem; font-weight: 600; text-transform: uppercase;
    color: var(--text-caption); letter-spacing: 0.14em; margin-bottom: 0.7rem;
}
.featured-title {
    font-family: var(--font-serif); font-size: 1.75rem; line-height: 1.22;
    margin-bottom: 0.75rem; font-weight: 600; letter-spacing: -0.4px;
    transition: color 0.3s var(--ease);
}
.featured-excerpt {
    color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 1.25rem;
    line-height: 1.7; max-width: 400px;
}
.featured-meta {
    font-size: 0.76rem; color: var(--text-caption); display: flex; gap: 0.6rem;
    letter-spacing: 0.01em; align-items: center;
}
.featured-meta .sep { color: var(--border); font-size: 0.6rem; }
.featured-meta .featured-readmore { color: var(--link); font-weight: 500; }

/* ═══ Essay Cards ═══ */
.essays-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.25rem; }

.essay-card { display: flex; flex-direction: column; }
.essay-card a { color: inherit; display: flex; flex-direction: column; height: 100%; }
.essay-card a:hover .essay-title { color: var(--link); }
.essay-card a:hover .essay-cover img { transform: scale(1.03); }
.essay-cover {
    height: 190px; background: var(--bg-alt); border-radius: var(--radius);
    overflow: hidden; margin-bottom: 1.1rem; position: relative;
}
.essay-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.essay-tag {
    font-size: 0.62rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--text-caption); margin-bottom: 0.4rem;
}
.essay-title {
    font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.3;
    margin-bottom: 0.45rem; font-weight: 600; letter-spacing: -0.2px;
    transition: color 0.3s var(--ease);
}
.essay-excerpt {
    color: var(--text-secondary); font-size: 0.86rem; line-height: 1.6;
    flex: 1; margin-bottom: 0.85rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.essay-meta { font-size: 0.73rem; color: var(--text-caption); display: flex; gap: 0.6rem; align-items: center; }
.essay-meta .sep { color: var(--border); font-size: 0.55rem; }

/* ═══ Fragment Cards ═══ */
.fragments-list { display: flex; flex-direction: column; }

.fragment-card {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition);
}
.fragment-card:first-child { padding-top: 0; }
.fragment-card:last-child { border-bottom: none; }
.fragment-card a { color: inherit; }
.fragment-card a:hover .fragment-text { color: var(--link); }
.fragment-text {
    font-family: var(--font-serif); font-size: 1.08rem; font-style: italic;
    line-height: 1.65; margin-bottom: 0.55rem; transition: color 0.3s var(--ease);
    position: relative; padding-left: 1.25rem;
}
.fragment-text::before {
    content: ''; position: absolute; left: 0; top: 0.25rem;
    width: 2px; height: calc(100% - 0.5rem); background: var(--divider);
    border-radius: 1px;
}
.fragment-meta { font-size: 0.73rem; color: var(--text-caption); padding-left: 1.25rem; }

/* ═══ Debate Cards ═══ */
.debates-list { display: flex; flex-direction: column; gap: 1rem; }

.debate-card {
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.debate-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 3px; height: 100%; background: var(--link); opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.debate-card:hover { box-shadow: var(--shadow); border-color: var(--border); }
.debate-card:hover::before { opacity: 1; }
.debate-card a { color: inherit; }
.debate-card a:hover .debate-title { color: var(--link); }
.debate-tag {
    font-size: 0.62rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--link); margin-bottom: 0.45rem;
}
.debate-title {
    font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.3;
    margin-bottom: 0.45rem; font-weight: 600; transition: color 0.3s var(--ease);
}
.debate-excerpt { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 0.85rem; line-height: 1.6; }
.debate-footer { font-size: 0.73rem; color: var(--text-caption); display: flex; gap: 0.85rem; }

/* ═══ Filter / Tabs ═══ */
.tab-bar {
    display: flex; gap: 0; border-bottom: 1px solid var(--border);
    margin-bottom: 2rem; overflow-x: auto;
}
.tab-item {
    background: none; border: none; border-bottom: 2px solid transparent;
    padding: 0.6rem 1rem; font-family: var(--font-sans); font-size: 0.82rem;
    font-weight: 450; color: var(--text-muted); cursor: pointer;
    transition: all var(--transition); white-space: nowrap;
}
.tab-item:hover { color: var(--text); }
.tab-item.active { color: var(--text); font-weight: 550; border-bottom-color: var(--text); }

.filter-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.6rem; }
.filter-bar-right { display: flex; align-items: center; gap: 0.85rem; }
.result-count { font-size: 0.76rem; color: var(--text-caption); letter-spacing: 0.02em; }
.filter-tags { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.filter-tag {
    background: transparent; border: 1px solid var(--border); padding: 0.22rem 0.7rem;
    border-radius: 3px; font-size: 0.76rem; font-weight: 450; cursor: pointer;
    transition: all var(--transition); font-family: var(--font-sans); color: var(--text-muted);
}
.filter-tag:hover { border-color: var(--text); color: var(--text); }
.filter-tag.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.sort-select select {
    background: var(--bg-card); border: 1px solid var(--border); padding: 0.28rem 0.55rem;
    border-radius: var(--radius-sm); font-family: var(--font-sans); font-size: 0.76rem;
    color: var(--text); cursor: pointer;
}

/* ═══ Posts List ═══ */
.posts-list { display: flex; flex-direction: column; }
.post-list-item { border-bottom: 1px solid var(--border-subtle); transition: background 0.2s var(--ease); }
.post-list-item:first-child { border-top: 1px solid var(--border-subtle); }
.post-list-item:hover { background: var(--bg-alt); }
.post-list-item a { color: inherit; display: flex; gap: 1.5rem; padding: 1.25rem 0.75rem; }
.post-list-item a:hover h3 { color: var(--link); }
.post-list-thumb {
    width: 130px; height: 90px; border-radius: var(--radius-sm);
    background: var(--bg-alt); flex-shrink: 0; overflow: hidden;
}
.post-list-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.post-list-item:hover .post-list-thumb img { transform: scale(1.04); }
.post-list-info { flex: 1; }
.post-list-info .essay-tag { margin-bottom: 0.2rem; }
.post-list-info h3 {
    font-size: 1.02rem; margin-bottom: 0.2rem; font-family: var(--font-serif);
    font-weight: 600; line-height: 1.3; transition: color 0.3s var(--ease);
}
.post-list-info p {
    color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 0.35rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    line-height: 1.55;
}
.post-list-info .meta { font-size: 0.73rem; color: var(--text-caption); display: flex; gap: 0.7rem; }

/* ═══ Post Detail ═══ */
.post-detail { padding: 4rem 0 1.5rem; max-width: 650px; margin: 0 auto; }
.post-detail-header { margin-bottom: 2.5rem; text-align: center; animation: fadeUp 0.6s var(--ease-out) both; }
.post-detail-header .essay-tag { margin-bottom: 0.85rem; display: inline-block; }
.post-detail-header h1 {
    font-family: var(--font-serif); font-size: 2.5rem; line-height: 1.15;
    margin-bottom: 1rem; font-weight: 700; letter-spacing: -0.6px;
}
.post-detail-meta {
    display: flex; justify-content: center; gap: 0.5rem; color: var(--text-caption);
    font-size: 0.78rem; flex-wrap: wrap; padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border); align-items: center;
}
.post-detail-meta .sep { color: var(--border); font-size: 0.6rem; }
.post-detail-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: min(52vh, 440px);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 0 auto 2.5rem;
    background: var(--bg-alt);
    position: relative;
    isolation: isolate;
    animation: fadeUp 0.6s var(--ease-out) 0.1s both;
    box-shadow: var(--shadow-sm);
}
.post-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.post-detail-tags { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-bottom: 1.5rem; justify-content: center; }
.post-detail-tags .tag {
    background: var(--bg-alt); color: var(--text-muted); font-size: 0.73rem;
    padding: 0.15rem 0.5rem; border-radius: 3px;
}

/* TOC */
.post-toc {
    background: var(--bg-alt); border-radius: var(--radius); padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem; border-left: 2px solid var(--divider);
    animation: fadeUp 0.6s var(--ease-out) 0.15s both;
}
.post-toc-title {
    font-size: 0.66rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--text-caption); margin-bottom: 0.6rem;
}
.post-toc ol { list-style: none; counter-reset: toc; }
.post-toc li { counter-increment: toc; margin-bottom: 0.25rem; }
.post-toc li::before { content: counter(toc) "."; color: var(--text-caption); font-size: 0.76rem; margin-right: 0.35rem; }
.post-toc a { font-size: 0.84rem; color: var(--text-secondary); font-weight: 450; }
.post-toc a:hover { color: var(--link); }

/* Post Body */
.post-body { font-size: 1.06rem; line-height: 1.95; animation: fadeUp 0.6s var(--ease-out) 0.2s both; }
.post-body p { margin-bottom: 1.5rem; }
.post-body h2 {
    font-family: var(--font-serif); font-size: 1.5rem; margin: 3rem 0 0.85rem;
    font-weight: 600; letter-spacing: -0.2px; line-height: 1.25;
    padding-top: 1.5rem; border-top: 1px solid var(--border-subtle);
}
.post-body h3 { font-family: var(--font-serif); font-size: 1.15rem; margin: 2.25rem 0 0.6rem; font-weight: 600; }
.post-body ul, .post-body ol { margin: 1rem 0 1.5rem 1.25rem; }
.post-body li { margin-bottom: 0.5rem; }
.post-body blockquote {
    border-left: 2px solid var(--text);
    padding: 0.35rem 0 0.35rem 1.75rem;
    margin: 2.5rem 0;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.6;
}
.post-body code {
    background: var(--bg-alt); padding: 0.12rem 0.35rem; border-radius: 3px;
    font-size: 0.87em; font-family: var(--font-mono);
}
.post-body pre {
    background: var(--bg-alt); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm); padding: 1.25rem; overflow-x: auto; margin: 2rem 0;
}
.post-body pre code { background: none; padding: 0; }

/* Editorial figures — no overlap, clear spacing */
.post-body img,
.post-body .post-figure img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    border-radius: 2px;
    box-shadow: none;
}
.post-body > img,
.post-body p > img {
    margin: 2.5rem auto;
    max-height: min(62vh, 520px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 2px;
    background: var(--bg-alt);
}
.post-figure {
    margin: 2.75rem 0;
    padding: 0;
    clear: both;
    position: relative;
    isolation: isolate;
    break-inside: avoid;
    page-break-inside: avoid;
}
.post-figure img {
    width: 100%;
    max-height: min(62vh, 520px);
    object-fit: cover;
    object-position: center;
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
}
.post-figure--contain img { object-fit: contain; max-height: min(70vh, 580px); background: var(--bg-alt); }
.post-figure--sm { max-width: 420px; margin-left: auto; margin-right: auto; }
.post-figure--sm img { max-height: 320px; }
.post-figure--md { max-width: 560px; margin-left: auto; margin-right: auto; }
.post-figure figcaption {
    margin-top: 0.65rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-caption);
    text-align: center;
    font-style: italic;
    letter-spacing: 0.01em;
}

.post-body a { color: var(--link); text-decoration: underline; text-decoration-color: rgba(124,77,39,0.3); text-underline-offset: 3px; transition: text-decoration-color var(--transition); }
.post-body a:hover { text-decoration-color: var(--link); }

.post-body .highlight-block {
    background: var(--bg-highlight); padding: 1.5rem 1.75rem; border-radius: var(--radius);
    margin: 2.5rem 0; border-left: 3px solid var(--link);
}
.post-body .highlight-block p { margin-bottom: 0; }

/* Footnotes */
.footnotes {
    margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
    font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7;
}
.footnotes-title {
    font-size: 0.66rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--text-caption); margin-bottom: 0.85rem;
}
.footnotes ol { padding-left: 1.25rem; }
.footnotes li { margin-bottom: 0.5rem; }
sup a { color: var(--link); font-size: 0.78em; text-decoration: none; font-weight: 600; }

.back-link { display: inline-block; font-size: 0.82rem; color: var(--text-muted); margin: 2rem auto 3rem; max-width: 650px; transition: color var(--transition); }
.back-link:hover { color: var(--link); }

/* ═══ Comments ═══ */
.comments-section { max-width: 650px; margin: 0 auto; padding: 2.5rem 0; border-top: 1px solid var(--border); }
.comments-title { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 1.5rem; font-weight: 600; }
.comments-title span { font-size: 0.82rem; color: var(--text-caption); font-family: var(--font-sans); font-weight: 400; }

.comment-form { margin-bottom: 2rem; }
.comment-form input, .comment-form textarea {
    width: 100%; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 0.6rem 0.85rem; font-family: var(--font-sans);
    font-size: 0.88rem; color: var(--text); margin-bottom: 0.5rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--text-muted); box-shadow: 0 0 0 3px rgba(27,25,24,0.04); }
.comment-form textarea { resize: vertical; min-height: 80px; }

.comment-item { padding: 1.15rem 0; border-bottom: 1px solid var(--border-subtle); }
.comment-item:last-child { border-bottom: none; }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.3rem; }
.comment-author { font-weight: 600; font-size: 0.85rem; }
.comment-date { font-size: 0.73rem; color: var(--text-caption); }
.comment-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; }
.comment-actions { margin-top: 0.35rem; }
.comment-reply { margin-left: 1.5rem; padding-left: 1rem; border-left: 1px solid var(--border-subtle); }
.reply-form { margin: 0.5rem 0; display: none; }
.reply-form.open { display: block; }
.reply-form textarea {
    width: 100%; padding: 0.45rem 0.7rem; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-family: var(--font-sans); font-size: 0.82rem;
    color: var(--text); background: var(--bg); resize: vertical; min-height: 55px;
}

/* ═══ Categories Grid ═══ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.1rem;
}
.category-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    background: var(--bg-card);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    min-height: 180px;
}
.category-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--link);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
    transform-origin: left;
}
.category-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--divider);
}
.category-card:hover::after { transform: scaleX(1); }
.category-card a {
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}
.category-card h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.category-card .cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border-radius: 50%;
    background: var(--bg-alt);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
    font-family: var(--font-serif);
}
.category-card .cat-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 1rem;
    flex: 1;
}
.category-card .cat-cta {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--link);
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.25s var(--ease);
}
.category-card:hover .cat-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ═══ About ═══ */
.about-page { padding: 4rem 0; max-width: 620px; margin: 0 auto; }
.about-header { margin-bottom: 2.5rem; }
.about-kicker {
    font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--text-caption); margin-bottom: 1.5rem;
    text-align: center;
}
.about-hero { display: flex; gap: 2rem; align-items: center; animation: fadeUp 0.6s var(--ease-out) both; }
.avatar-placeholder-large {
    width: 88px; height: 88px; border-radius: 50%;
    background: var(--text); color: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; font-weight: 700; font-family: var(--font-serif); flex-shrink: 0;
    box-shadow: var(--shadow-sm); overflow: hidden;
}
.avatar-placeholder-large.has-photo { background: var(--bg-alt); padding: 0; }
.avatar-placeholder-large img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-intro h1 { font-family: var(--font-serif); font-size: 1.6rem; margin-bottom: 0.3rem; font-weight: 600; letter-spacing: -0.3px; }
.about-lead { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.65; }
.about-body { font-size: 1.02rem; line-height: 1.9; animation: fadeUp 0.6s var(--ease-out) 0.1s both; }
.about-body p { margin-bottom: 1.35rem; }
.about-body h2 {
    font-family: var(--font-serif); margin: 2.5rem 0 0.85rem; font-weight: 600; font-size: 1.25rem;
    padding-top: 1.5rem; border-top: 1px solid var(--border-subtle);
}
.about-pullquote {
    font-family: var(--font-serif); font-size: 1.25rem; font-style: italic;
    line-height: 1.6; color: var(--text-secondary);
    border-left: 2px solid var(--divider); padding-left: 1.5rem;
    margin: 0 0 2rem;
}
.about-pillars {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
    margin: 2.5rem 0; padding: 1.75rem 0;
    border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
}
.about-pillar h3 { font-family: var(--font-serif); font-size: 0.95rem; margin-bottom: 0.35rem; }
.about-pillar p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; margin-top: 1rem; }
.social-card {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.7rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: all var(--transition); color: var(--text-secondary); font-size: 0.85rem;
    font-weight: 450;
}
.social-card:hover { border-color: var(--text); color: var(--text); box-shadow: var(--shadow-xs); }

.contact-form {
    margin-top: 1.5rem; display: grid; gap: 0.75rem;
    max-width: 520px;
}
.contact-form input, .contact-form textarea {
    width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--border);
    border-radius: var(--radius-sm); background: var(--bg-elevated); color: var(--text);
    font-family: var(--font-sans); font-size: 0.9rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--text-muted); }

/* ═══ Empty State ═══ */
.empty-state { text-align: center; padding: 5rem 2rem; animation: fadeUp 0.7s var(--ease-out) both; }
.empty-state::before {
    content: ''; display: block; width: 32px; height: 32px;
    border: 2px solid var(--border); border-radius: 50%;
    margin: 0 auto 1.25rem; position: relative;
}
.empty-state h3 { font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 0.4rem; font-weight: 600; }
.empty-state p { color: var(--text-muted); margin-bottom: 1.75rem; font-size: 0.9rem; max-width: 300px; margin-left: auto; margin-right: auto; }

/* ═══ Newsletter / Subscribe ═══ */
.subscribe-section {
    text-align: center; padding: 3.5rem 2rem;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    margin: 1rem 0 0;
}
.subscribe-section .section-title { display: inline-block; }
.subscribe-desc { color: var(--text-muted); font-size: 0.9rem; margin: 0.5rem auto 1.5rem; max-width: 360px; }
.subscribe-form { display: flex; gap: 0.5rem; max-width: 380px; margin: 0 auto; }
.subscribe-form input {
    flex: 1; border: 1px solid var(--border); background: var(--bg-card);
    border-radius: var(--radius-sm); padding: 0.55rem 0.85rem; font-family: var(--font-sans);
    font-size: 0.85rem; color: var(--text);
}
.subscribe-form input:focus { outline: none; border-color: var(--text-muted); }

/* ═══ Footer ═══ */
.footer { margin-top: auto; border-top: 1px solid var(--border); padding: 2.5rem 0 1.75rem; }
.footer:has(.subscribe-section) { padding-top: 0; border-top: none; }
.footer-top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.25rem 2rem; flex-wrap: wrap;
    padding-bottom: 1.35rem; margin-bottom: 1.15rem;
    border-bottom: 1px solid var(--border-subtle);
}
.footer-top .logo { font-size: 1.15rem; line-height: 1; }
.footer-nav {
    display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem;
    align-items: center;
}
.footer-nav a {
    font-family: var(--font-sans);
    font-size: 0.78rem; letter-spacing: 0.02em;
    color: var(--text-muted); font-weight: 500;
    transition: color var(--transition);
}
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1rem 2rem; flex-wrap: wrap;
}
.footer-tagline {
    color: var(--text-muted); font-size: 0.8rem; line-height: 1.55;
    max-width: 36rem; margin: 0;
}
.footer-copy {
    color: var(--text-caption); font-size: 0.72rem;
    letter-spacing: 0.02em; margin: 0; white-space: nowrap;
}

/* ═══ Toast ═══ */
.toast {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    background: var(--text); color: var(--bg);
    border-radius: var(--radius-sm); padding: 0.65rem 1.15rem;
    box-shadow: var(--shadow-lg); z-index: 3000;
    font-size: 0.82rem; font-weight: 500;
    transform: translateY(80px); opacity: 0; transition: all 0.35s var(--ease-out);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: #B91C1C; color: #fff; }

/* ═══ Reading Progress ═══ */
.reading-progress {
    position: fixed; top: 0; left: 0; height: 2px;
    background: var(--link); width: 0; z-index: 2001;
    transition: width 0.1s linear;
}

/* ═══ Cover Placeholders ═══ */
.featured-cover--empty,
.essay-cover--empty {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--border-subtle) 100%);
    position: relative;
}
.featured-cover--empty::after,
.essay-cover--empty::after {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(
        -45deg, transparent, transparent 8px,
        rgba(27,25,24,0.02) 8px, rgba(27,25,24,0.02) 9px
    );
}

/* ═══ Post Type Variants ═══ */
.post-detail--fragment .post-detail-header h1 { font-size: 2rem; font-style: italic; }
.post-detail--fragment .post-body { font-family: var(--font-serif); font-size: 1.2rem; line-height: 2; }
.post-detail--fragment .post-body p:first-child { font-size: 1.35rem; font-style: italic; }

.debate-thesis {
    background: var(--bg-alt); border-left: 3px solid var(--link);
    padding: 1.25rem 1.5rem; margin-bottom: 2rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.debate-thesis-label {
    font-size: 0.64rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--link); margin-bottom: 0.5rem;
}
.debate-thesis p { font-family: var(--font-serif); font-size: 1.1rem; font-style: italic; line-height: 1.65; margin: 0; }

.post-actions { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); }

/* ═══ Author Box ═══ */
.author-box {
    display: flex; gap: 1.25rem; align-items: flex-start;
    margin-top: 3rem; padding: 1.75rem; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--bg-card);
}
.author-box-avatar {
    width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
    background: var(--text); color: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-serif); font-weight: 700; font-size: 0.95rem;
    overflow: hidden;
}
.author-box-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-box-label {
    font-size: 0.64rem; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--text-caption); margin-bottom: 0.2rem;
}
.author-box-body h3 { font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: 0.25rem; }
.author-box-body p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 0.5rem; }
.author-box-link { font-size: 0.8rem; font-weight: 500; }

/* ═══ Post Prev/Next ═══ */
.post-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
    margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle);
}
.post-nav-item {
    display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem;
    border: 1px solid var(--border); border-radius: var(--radius); color: inherit;
    transition: all var(--transition);
}
.post-nav-item:hover { border-color: var(--text-muted); color: inherit; box-shadow: var(--shadow-sm); }
.post-nav-item span { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-caption); }
.post-nav-item strong { font-family: var(--font-serif); font-size: 0.95rem; font-weight: 600; line-height: 1.35; }
.post-nav-next { text-align: right; }

/* ═══ Related Posts ═══ */
.related-posts { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.related-title { font-family: var(--font-serif); font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.related-list { display: flex; flex-direction: column; gap: 0; }
.related-item {
    display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem 1rem;
    align-items: baseline; padding: 0.85rem 0; border-bottom: 1px solid var(--border-subtle);
    color: inherit; transition: background var(--transition);
}
.related-item:hover { background: var(--bg-alt); color: inherit; }
.related-item:hover .related-item-title { color: var(--link); }
.related-item-title { font-family: var(--font-serif); font-size: 0.95rem; font-weight: 550; transition: color var(--transition); }
.related-item-date { font-size: 0.73rem; color: var(--text-caption); white-space: nowrap; }

/* ═══ Quote Popup ═══ */
.quote-popup {
    position: fixed; background: var(--text); color: var(--bg);
    padding: 0.35rem 0.75rem; border-radius: var(--radius-sm);
    font-size: 0.78rem; font-weight: 500; cursor: pointer; z-index: 100;
    box-shadow: var(--shadow-md); border: none; font-family: var(--font-sans);
}

/* ═══ Editorial Onboarding (empty state) ═══ */
.onboarding-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
    margin-top: 2rem; text-align: left;
}
.onboarding-card {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem; background: var(--bg-card);
}
.onboarding-card h4 { font-family: var(--font-serif); font-size: 0.95rem; margin-bottom: 0.35rem; }
.onboarding-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }

.comments-empty { color: var(--text-muted); text-align: center; padding: 2rem; font-size: 0.88rem; }
.reply-actions { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.reply-actions input {
    flex: 1; padding: 0.35rem 0.65rem; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-family: var(--font-sans); font-size: 0.82rem;
    color: var(--text); background: var(--bg-card);
}

.footer-admin-link { opacity: 0.5; font-size: 0.78rem !important; }

/* ═══ A4 Makale Okuyucu ═══ */
.post-detail--article,
.post-detail--a4 { max-width: 52rem; }
.post-detail--article .post-detail-header,
.post-detail--a4 .post-detail-header { margin-bottom: 1.75rem; }
.a4-meta-line {
    display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap;
    font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.04em;
    text-transform: uppercase; margin-bottom: 1.25rem;
}
.a4-reader {
    display: flex; flex-direction: column; align-items: center;
    gap: 1.35rem; margin: 0.5rem 0 2rem;
    animation: fadeUp 0.55s var(--ease-out) both;
}
.a4-stage { width: 100%; display: flex; justify-content: center; }
.a4-sheet {
    width: min(100%, 44rem);
    aspect-ratio: 210 / 297;
    background: linear-gradient(180deg, rgba(255,253,248,0.55) 0%, transparent 30%), #FFFEF9;
    color: #1B1918;
    border: 1px solid rgba(27, 25, 24, 0.08);
    box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 12px 40px rgba(27, 25, 24, 0.08), 0 2px 8px rgba(27, 25, 24, 0.04);
    position: relative; overflow: hidden; border-radius: 2px;
    transition: box-shadow 0.35s var(--ease);
}
[data-theme="dark"] .a4-sheet {
    background: #F7F4EE;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.04);
}
.a4-sheet.is-turning { box-shadow: 0 18px 50px rgba(27, 25, 24, 0.12), 0 2px 8px rgba(27, 25, 24, 0.05); }
.a4-margin { position: absolute; inset: 7.5% 9% 8.5%; overflow: hidden; }
.a4-flow {
    height: 100%; width: 100%; column-fill: auto; column-gap: 0;
    will-change: transform; transition: transform 0.5s var(--ease-out);
}
.a4-flow.post-body {
    animation: none;
    font-size: clamp(0.92rem, 1.55vw, 1.05rem);
    line-height: 1.85; color: #1B1918;
}
.a4-flow.post-body p { margin-bottom: 1.15rem; }
.a4-flow.post-body h2 {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    margin: 1.4rem 0 0.7rem; color: #1B1918;
}
.a4-flow.post-body h2:first-child { margin-top: 0; }
.a4-flow.post-body blockquote { border-left-color: #C4B5A0; color: #4D4845; margin: 1.25rem 0; }
.a4-flow .post-figure,
.a4-flow > img,
.a4-flow p > img {
    margin: 0.85rem 0;
    max-width: 100%;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}
.a4-flow .post-figure img,
.a4-flow img {
    max-height: 210px !important;
    width: 100%;
    object-fit: cover;
    border: 1px solid rgba(27,25,24,0.08);
}
.a4-corner {
    position: absolute; right: 1.1rem; bottom: 0.85rem;
    font-size: 0.72rem; letter-spacing: 0.08em; color: #8A8279;
    font-variant-numeric: tabular-nums;
}
.a4-nav {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; flex-wrap: wrap; width: min(100%, 44rem);
}
.a4-nav-btn {
    appearance: none; border: 1px solid var(--border); background: var(--bg-elevated);
    color: var(--text); font-family: var(--font-sans); font-size: 0.84rem; font-weight: 500;
    padding: 0.65rem 1.1rem; border-radius: var(--radius-sm); cursor: pointer;
    transition: background var(--transition), border-color var(--transition), opacity var(--transition);
}
.a4-nav-btn:hover:not(:disabled) { border-color: var(--text-muted); background: var(--bg-card); }
.a4-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.a4-nav-status {
    min-width: 7.5rem; text-align: center; font-size: 0.82rem;
    color: var(--text-secondary); font-variant-numeric: tabular-nums;
}
.a4-nav-status strong { color: var(--text); font-weight: 600; }
.a4-hint { font-size: 0.75rem; color: var(--text-caption); text-align: center; margin-top: -0.5rem; }
.post-toc--paged a { cursor: pointer; }

/* ═══ Responsive ═══ */
@media (max-width: 960px) {
    .featured-inner { flex-direction: column; align-items: stretch; gap: 1.25rem; }
    .featured-cover { width: 100%; max-width: none; height: 220px; }
    .featured-excerpt { max-width: none; }
    .featured-title { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .nav-center {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--bg); border-bottom: 1px solid var(--border);
        flex-direction: column; padding: 0.75rem 1.25rem; gap: 0.1rem;
        box-shadow: var(--shadow-md); z-index: 1001;
    }
    .nav-center.open { display: flex; }
    .nav-link { padding: 0.7rem 0.5rem; font-size: 0.9rem; }
    .hamburger { display: flex; }
    .hero { padding: 3.25rem 0 1rem; }
    .hero-title { font-size: clamp(1.75rem, 8vw, 2.2rem); word-break: break-word; }
    .thought-card { padding: 1.75rem 1.15rem; }
    .thought-text { font-size: 1.08rem; }
    .essays-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .essay-title, .post-list-info h3, .featured-title, .post-detail-header h1 {
        overflow-wrap: anywhere; word-break: break-word;
    }
    .featured-cover { height: 200px; }
    .featured-title { font-size: 1.35rem; }
    .post-list-item a { flex-direction: column; gap: 0.75rem; }
    .post-list-thumb { width: 100%; height: 140px; }
    .post-detail-header h1 { font-size: 1.7rem; }
    .post-detail-cover { max-height: 220px; }
    .post-body { font-size: 1.02rem; line-height: 1.85; overflow-wrap: anywhere; }
    .post-body pre { font-size: 0.82rem; }
    .footer-top { align-items: flex-start; }
    .footer-bottom { flex-direction: column; gap: 0.45rem; }
    .footer-copy { white-space: normal; }
    .about-hero { flex-direction: column; text-align: center; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .container { padding: 0 1.15rem; }
    .container-wide { padding: 0 1.15rem; }
    .subscribe-form { flex-direction: column; }
    .tab-bar { gap: 0; -webkit-overflow-scrolling: touch; }
    .onboarding-grid { grid-template-columns: 1fr; }
    .related-item { grid-template-columns: 1fr; gap: 0.25rem; }
    .about-pillars { grid-template-columns: 1fr; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav-next { text-align: left; }
    .author-box { flex-direction: column; align-items: center; text-align: center; }
    .a4-reader { gap: 1rem; margin: 0.25rem 0 1.5rem; }
    .a4-sheet { width: 100%; border-radius: 0; }
    .a4-nav { gap: 0.65rem; width: 100%; }
    .a4-nav-btn { padding: 0.7rem 0.9rem; font-size: 0.82rem; flex: 1; min-width: 0; }
    .a4-hint { display: none; }
    .toast {
        left: 1rem; right: 1rem; bottom: 1rem;
        width: auto; max-width: none; text-align: center;
    }
    .page-header h1 { font-size: 1.75rem; }
    .social-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
    .categories-grid { grid-template-columns: 1fr; }
}
