/* ===================================================
   TEMPLATE 02 — DARK EDITORIAL MAGAZINE
   Polished: v1.2 — system fonts
   =================================================== */

:root {
    --bg:         #0d0d0d;
    --bg-2:       #161616;
    --bg-3:       #1e1e1e;
    --text:       #f0ece3;
    --text-muted: #7a7167;
    --text-dim:   #2e2b26;
    --accent:     #f59e0b;
    --accent-2:   #ef4444;
    --border:     #252525;
    --r-sm: 6px; --r-md: 12px; --r-lg: 20px;
    --serif: Georgia, 'Times New Roman', serif;
    --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --t: .3s cubic-bezier(.4,0,.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: var(--t); }
img { display: block; max-width: 100%; height: auto; }
.container { max-width: 1260px; margin: 0 auto; padding: 0 1.5rem; }

/* HEADER */
.top-bar { background: var(--accent); color: #000; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: .4rem 1rem; }
.nav-bar { background: var(--bg); border-bottom: 1px solid var(--border); }
.nav-bar-inner { max-width: 1260px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 2rem; }
.logo { font-family: var(--serif); font-size: 1.9rem; font-weight: 900; letter-spacing: -.03em; }
.logo em { color: var(--accent); font-style: normal; }
.main-nav { display: flex; align-items: center; gap: .25rem; font-size: .875rem; font-weight: 500; }
.main-nav a { padding: .5rem .9rem; border-radius: var(--r-sm); color: var(--text-muted); position: relative; }
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--accent); }
.main-nav a.active::after { content: ''; position: absolute; bottom: -21px; left: .9rem; right: .9rem; height: 2px; background: var(--accent); border-radius: 2px; }
@media(max-width:900px){ .main-nav { display: none; } }

/* AD SLOTS */
.ad-wrapper { display: flex; flex-direction: column; align-items: center; margin: 1.5rem auto; }
.ad-label { color: var(--text-muted); font-size: .65rem; letter-spacing: .1em; font-weight: 700; text-transform: uppercase; margin-bottom: .25rem; }
.ad { display: flex; align-items: center; justify-content: center; background: var(--bg-2); border: 1px dashed var(--border); border-radius: var(--r-md); overflow: hidden; width: 100%; text-align: center; }
.ad-label { color: #3d3830; font-size: .75rem; letter-spacing: .1em; font-weight: 700; text-transform: uppercase; }
.ad-728 { width: 100%; max-width: 728px; height: 90px; }
@media (max-width: 768px) { .ad-728 { max-width: 300px; height: 100px; } }
.ad-300x250 { width: 100%; max-width: 300px; height: 250px; }
.ad-300x600 { width: 100%; max-width: 300px; height: 600px; }
.ad-in-feed { width: 100%; height: 260px; }
.ad-strip { width: 100%; height: 100px; margin: 2rem 0; }

/* HERO */
.hero { padding: 2em 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 3px; border-radius: var(--r-lg); overflow: hidden; }
@media(max-width:960px){ .hero-grid { grid-template-columns: 1fr; } }
.hero-main { position: relative; display: block; min-height: 460px; overflow: hidden; grid-row: 1/3; }
@media(max-width:960px){ .hero-main { min-height: 300px; grid-row: auto; } }
.hero-main img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .6s ease; }
.hero-main:hover img { transform: scale(1.03); }
.hero-main-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.97) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.15) 75%, transparent 100%); }
.hero-main-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem; }
.hero-side { display: flex; flex-direction: column; gap: 3px; }
.hero-side-item { position: relative; display: block; flex: 1; min-height: 170px; overflow: hidden; }
.hero-side-item img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .5s ease; }
.hero-side-item:hover img { transform: scale(1.04); }
.hero-side-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.4) 55%, rgba(0,0,0,.1) 100%); }
.hero-side-content { position: absolute; bottom: 0; left: 0; right: 0; top:0; padding: 1.25rem; }

/* LABELS */
.plabel { display: inline-block; max-width: max-content; padding: .2rem .75rem; border-radius: 4px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: #000; margin-bottom: .6rem; white-space: nowrap; }
.plabel.red { background: var(--accent-2); color: #fff; }

/* HERO TYPOGRAPHY */
.hero-main-title { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 900; line-height: 1.2; color: #fff; margin-bottom: .75rem; text-shadow: 0 2px 12px rgba(0,0,0,.8), 0 1px 3px rgba(0,0,0,.9); }
.hero-main-title a:hover { color: var(--accent); }
.hero-meta { font-size: .8rem; color: rgba(255,255,255,.85); display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: .25rem; text-shadow: 0 1px 4px rgba(0,0,0,.9); }
.hero-meta img { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); display: block; flex-shrink: 0; }
.hero-side-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: #fff; margin-bottom: .4rem; text-shadow: 0 2px 8px rgba(0,0,0,.95), 0 1px 3px rgba(0,0,0,1); }
.hero-side-title a:hover { color: var(--accent); }
.hero-side-meta { font-size: .72rem; color: rgba(255,255,255,.7); text-shadow: 0 1px 4px rgba(0,0,0,.9); }

/* PAGE BODY LAYOUT */
.page-body { padding: 3.5rem 0 5rem; }
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
@media(max-width:960px){ .two-col { grid-template-columns: 1fr; } }

/* SECTION HEADING */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.section-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 900; display: flex; align-items: center; gap: .65rem; }
.section-title::before { content: ''; width: 4px; height: 1.3em; background: var(--accent); border-radius: 2px; flex-shrink: 0; }
.section-more { font-size: .78rem; font-weight: 600; color: var(--accent); letter-spacing: .05em; text-transform: uppercase; }
.section-more:hover { color: var(--text); }

/* POST ROW (horizontal card) */
.post-list { display: flex; flex-direction: column; gap: 1.5rem; }
.post-row { display: grid; grid-template-columns: 200px 1fr; background: var(--bg-2); border-radius: var(--r-md); border: 1px solid var(--border); overflow: hidden; transition: var(--t); }
.post-row:hover { border-color: rgba(245,158,11,.25); background: var(--bg-3); transform: translateX(4px); box-shadow: 0 8px 32px rgba(0,0,0,.5); }
.post-row-thumb { overflow: hidden; flex-shrink: 0; }
.post-row-thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 140px; transition: transform .5s ease; }
.post-row:hover .post-row-thumb img { transform: scale(1.06); }
.post-row-body { padding: 1.25rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.post-row-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; line-height: 1.35; margin-bottom: .4rem; }
.post-row-title a:hover { color: var(--accent); }
.post-row-excerpt { color: var(--text-muted); font-size: .875rem; margin-bottom: .75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-row-meta { font-size: .76rem; color: var(--text-muted); display: flex; align-items: center; gap: .6rem; }
.post-row-meta .author { display: flex; align-items: center; gap: .35rem; }
.post-row-meta .author img { width: 20px; height: 20px; border-radius: 50%; }
.post-row-meta .author:hover { color: var(--accent); }
@media(max-width:580px){ .post-row { grid-template-columns: 110px 1fr; } }

/* POST TILE (grid card) */
.post-grid-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.post-tile { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: var(--t); }
.post-tile:hover { border-color: rgba(245,158,11,.25); transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,.7); }
.post-tile-thumb { aspect-ratio: 16/10; overflow: hidden; flex-shrink: 0; }
.post-tile-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-tile:hover .post-tile-thumb img { transform: scale(1.05); }
.post-tile-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.post-tile-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; line-height: 1.35; margin-bottom: .6rem; align-self: stretch; }
.post-tile-title a:hover { color: var(--accent); }
.post-tile-excerpt { color: var(--text-muted); font-size: .85rem; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-tile-meta { font-size: .76rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: .85rem; display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: auto; }
.post-tile-meta .author { display: flex; align-items: center; gap: .4rem; }
.post-tile-meta .author img { width: 20px; height: 20px; border-radius: 50%; }
.post-tile-meta .author:hover { color: var(--accent); }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 1.75rem; position: sticky; top: 80px; }
.widget { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.5rem; }
.widget-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 900; margin-bottom: 1.1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }

/* Popular list */
.popular-list { display: flex; flex-direction: column; gap: 0; }
.popular-item { display: flex; align-items: flex-start; gap: .85rem; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.pop-num { font-family: var(--serif); font-size: 1.6rem; font-weight: 900; color: rgba(245,158,11,.2); line-height: 1; min-width: 26px; }
.pop-title { font-size: .875rem; font-weight: 600; line-height: 1.35; }
.pop-title a:hover { color: var(--accent); }
.pop-date { font-size: .72rem; color: var(--text-muted); margin-top: .2rem; }

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .45rem; }
.ttag { padding: .28rem .75rem; border-radius: 4px; font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; background: var(--bg-3); color: var(--text-muted); border: 1px solid var(--border); transition: var(--t); }
.ttag:hover, .ttag.active { background: var(--accent); color: #000; border-color: var(--accent); }

/* Newsletter */
.widget-nl { background: linear-gradient(135deg, #18120a 0%, #0d0d0d 100%); border-color: #2a2008; }
.nl-desc { font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; }
.nl-form { display: flex; flex-direction: column; gap: .6rem; }
.nl-input { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--r-sm); padding: .6rem .9rem; color: var(--text); font-family: var(--sans); font-size: .85rem; outline: none; transition: var(--t); }
.nl-input:focus { border-color: var(--accent); }
.nl-btn { background: var(--accent); color: #000; border: none; border-radius: var(--r-sm); padding: .6rem 1rem; cursor: pointer; font-weight: 700; font-family: var(--sans); transition: var(--t); }
.nl-btn:hover { background: #fbbf24; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 3rem; }
.pg { display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--bg-2); color: var(--text-muted); font-size: .875rem; font-weight: 500; padding: 0 .75rem; transition: var(--t); }
.pg:hover:not(.off) { border-color: var(--accent); color: var(--accent); }
.pg.on { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 700; }
.pg.off { opacity: .4; pointer-events: none; }

/* DIVIDER */
.divider { height: 1px; background: var(--border); margin: 3rem 0; }

/* SINGLE POST */
.post-header-wrap { max-width: 820px; margin: 0 auto 2.5rem; text-align: center; }
.post-single-title { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 900; line-height: 1.15; margin: 1rem 0 1.5rem; }
.post-single-meta { display: flex; align-items: center; justify-content: center; gap: 1.25rem; font-size: .85rem; color: var(--text-muted); flex-wrap: wrap; }
.post-single-meta .author { display: flex; align-items: center; gap: .5rem; color: var(--text); font-weight: 500; }
.post-single-meta .author img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--accent); }
.post-single-meta .author:hover { color: var(--accent); }
.post-hero-img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21/9; margin-bottom: 3.5rem; box-shadow: 0 24px 60px rgba(0,0,0,.8); }
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.post-content-wrap { max-width: 820px; margin: 0 auto; }
.post-body { font-size: 1.1rem; line-height: 1.85; }
.post-body h2 { font-family: var(--serif); font-size: 1.75rem; font-weight: 900; margin: 3rem 0 1rem; padding-left: 1rem; border-left: 3px solid var(--accent); }
.post-body h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; margin: 2rem 0 .75rem; }
.post-body p { margin-bottom: 1.5rem; color: #ccc5b9; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote { border-left: 3px solid var(--accent); padding: 1.5rem 2rem; background: var(--bg-2); border-radius: 0 var(--r-md) var(--r-md) 0; margin: 2.5rem 0; font-family: var(--serif); font-size: 1.25rem; font-style: italic; }
.post-body ul, .post-body ol { margin-bottom: 1.5rem; padding-left: 1.75rem; color: #ccc5b9; }
.post-body li { margin-bottom: .5rem; }
.post-body img { border-radius: var(--r-md); margin: 2.5rem 0; width: 100%; }
.post-body figure { margin: 2.5rem 0; width: 100%; }
.post-body figure img { margin: 0; }
.post-body figcaption { text-align: center; font-size: .85rem; color: var(--text-muted); margin-top: .75rem; font-style: italic; }

.illustration-credits { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .875rem; color: var(--text-muted); font-style: italic; }

.related-posts { margin-top: 4rem; border-top: 2px solid var(--border); padding-top: 2.5rem; }
.related-posts-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 900; margin-bottom: 1.5rem; border-left: 3px solid var(--accent); padding-left: 1rem; }

.post-footer-tags { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.post-footer-tags span { font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.ad-in-article { max-width: 728px; width: 100%; height: 90px; }
@media (max-width: 768px) { .ad-in-article { max-width: 300px; height: 100px; } }

/* Contact Form */
.contact-form-container { background: var(--bg-2); padding: 2.5rem; border-radius: var(--r-md); border: 1px solid var(--border); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .5rem; font-size: .9rem; color: var(--text); }
.form-control { width: 100%; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--r-sm); font-family: var(--sans); font-size: 1rem; background: var(--bg-3); color: var(--text); }
.form-control:focus { outline: none; border-color: var(--accent); }
textarea.form-control { resize: vertical; min-height: 120px; }
.btn-submit { background: var(--accent); color: #000; border: none; padding: .8rem 2rem; border-radius: var(--r-sm); font-size: 1rem; font-weight: 700; cursor: pointer; transition: var(--t); font-family: var(--sans); }
.btn-submit:hover { background: #fbbf24; }
.cf-turnstile { margin-bottom: 1.5rem; }

/* AUTHOR PAGE */
.author-hero { padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--border); margin-bottom: 3rem; }
.author-hero-inner { display: flex; align-items: center; gap: 2.5rem; }
@media(max-width:640px){ .author-hero-inner { flex-direction: column; text-align: center; } }
.author-avatar-lg { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); box-shadow: 0 0 0 6px rgba(245,158,11,.12); flex-shrink: 0; }
.author-name-lg { font-family: var(--serif); font-size: 2.25rem; font-weight: 900; margin-bottom: .4rem; }
.author-role { color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .85rem; }
.author-bio-txt { color: var(--text-muted); max-width: 520px; }

/* TAG PAGE */
.tag-hero { text-align: center; padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--border); margin-bottom: 3rem; }
.tag-hero-label { color: var(--text-muted); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .65rem; }
.tag-hero-name { font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; color: var(--accent); margin-bottom: .75rem; }
.tag-hero-count { color: var(--text-muted); font-size: .875rem; }

/* STATIC PAGE */
.static-header { padding: 3rem 0 2.5rem; text-align: center; border-bottom: 1px solid var(--border); margin-bottom: 3rem; }
.static-title { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; margin-bottom: .75rem; }
.static-subtitle { color: var(--text-muted); }
.static-body { max-width: 780px; margin: 0 auto; }
.static-body h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 900; margin: 2.5rem 0 1rem; }
.static-body p { margin-bottom: 1.25rem; color: #ccc5b9; font-size: 1.05rem; line-height: 1.8; }
.static-body ul { padding-left: 1.75rem; margin-bottom: 1.25rem; color: #ccc5b9; }
.static-body li { margin-bottom: .5rem; font-size: 1.05rem; line-height: 1.8; }

/* FOOTER */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3.5rem; }
@media(max-width:900px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media(max-width:520px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-muted); font-size: .875rem; line-height: 1.7; margin-top: .75rem; }
.footer-col-title { font-family: var(--serif); font-size: .95rem; font-weight: 900; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { color: var(--text-muted); font-size: .875rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.25rem 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; font-size: .78rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

/* Responsive Ad Banner Slots - 2 Separate Codes */
.ad-desktop { display: flex !important; }
.ad-mobile { display: none !important; }

@media (max-width: 768px) {
    .ad-desktop { display: none !important; }
    .ad-mobile { display: flex !important; width: 300px !important; height: 100px !important; align-items: center; justify-content: center; }
}


.link-list-widget ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.link-list-widget li {
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2) !important;
    font-size: 0.95rem;
    line-height: 1.4;
}
.link-list-widget li:last-child {
    border-bottom: none !important;
}
.link-list-widget a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
}
.link-list-widget a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.center {
	text-align: center;
}

h1 {
	font-family: var(--serif); 
	font-size: 2.2rem; 
	font-weight: 900; 
	line-height: 1.2; 
	margin-bottom: 0.5rem;
}

.author-list {
    list-style: none;
}

.author-list li:last-child {
    margin-bottom: 0;
}

.author-list a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.author-list img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-main);
}

.author-posts {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.author-list li:hover {
	transform: translateX(4px);
    box-shadow: rgba(0, 0, 0, 0.5) 0px 8px 32px;
    border-color: rgba(245, 158, 11, 0.25);
    background: var(--bg-3);
}