/*
Theme Name: GayTelegraph
Theme URI: https://gaytelegraph.com
Author: GayTelegraph
Description: Dark Editorial — modern LGBTQ+ news magazine theme for the US market.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: gaytelegraph
Tags: news, magazine, minimal, dark, editorial
*/

/* =====================================================
   VARIABLES & RESET
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:    #111111;
  --white:  #FFFFFF;
  --gray:   #F5F5F3;
  --muted:  #666666;
  --faint:  #AAAAAA;
  --border: #E8E8E5;
  --dark-border: rgba(255,255,255,0.08);
  --accent: #f81a84;
  --accent-h: #d4148c;
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'JetBrains Mono', monospace;
  --max:   1200px;
  --ease:  0.18s ease;
  /* compat aliases */
  --color-accent: #f81a84;
  --color-ink: #111111;
  --color-ink-muted: #666666;
  --color-ink-faint: #AAAAAA;
  --color-paper: #FFFFFF;
  --color-surface: #F5F5F3;
  --color-border: #E8E8E5;
  --color-border-dark: #CCCCCC;
  --color-accent-hover: #d4148c;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1200px;
  --transition: 0.18s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--sans); font-weight: 400; color: var(--ink); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }
.no-posts { padding: 3rem 0; text-align: center; color: var(--muted); }

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1,h2,h3,h4,h5,h6 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--ink); }
.entry-content p  { margin-bottom: 1.4rem; font-size: 1.0625rem; line-height: 1.85; }
.entry-content h2 { font-size: 1.6rem; margin: 2.2rem 0 0.9rem; }
.entry-content h3 { font-size: 1.3rem; margin: 1.8rem 0 0.7rem; }
.entry-content blockquote { border-left: 3px solid var(--accent); padding: 0.8rem 1.5rem; margin: 2rem 0; font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--muted); }
.entry-content figure { margin: 2rem 0; }
.entry-content figcaption { font-size: 0.8rem; color: var(--faint); margin-top: 0.5rem; font-style: italic; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.entry-content ul, .entry-content ol { margin: 1rem 0 1.4rem 1.5rem; }
.entry-content ul li { list-style: disc; margin-bottom: 0.4rem; }
.entry-content ol li { list-style: decimal; margin-bottom: 0.4rem; }

/* =====================================================
   LAYOUT
   ===================================================== */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.site-content { display: grid; grid-template-columns: 1fr 300px; gap: 0; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.main-content { min-width: 0; }
.sidebar-area { border-left: 1px solid var(--border); padding-left: 2rem; padding-top: 2rem; }

/* =====================================================
   TOP BAR
   ===================================================== */
.top-bar { background: var(--ink); color: rgba(255,255,255,0.55); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 0; position: sticky; top: 0; z-index: 600; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-nav { display: flex; gap: 1.5rem; }
.top-bar-nav a { color: rgba(255,255,255,0.55); transition: color var(--ease); }
.top-bar-nav a:hover { color: #fff; }

/* =====================================================
   SITE HEADER
   ===================================================== */
.site-header { position: sticky; top: 34px; z-index: 500; background: var(--white); border-bottom: 1.5px solid var(--ink); transition: box-shadow 0.2s ease; }
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; position: relative; }

/* Brand */
.site-brand { flex-shrink: 0; }
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-icon { flex-shrink: 0; display: block; }
.brand-name { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.75rem); font-weight: 900; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }

/* Nav */
.primary-nav { display: flex; align-items: center; gap: 0; }
.nav-menu { display: flex; align-items: center; list-style: none; }
.nav-menu li { list-style: none; }
.nav-menu a { display: flex; align-items: center; padding: 0.45rem 0.72rem; font-size: 0.67rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; min-height: 44px; transition: color var(--ease), border-color var(--ease); }
.nav-menu a:hover, .nav-menu .current-menu-item > a, .nav-menu .current-menu-ancestor > a { color: var(--ink); border-bottom-color: var(--ink); }
.nav-search-btn { background: none; border: none; cursor: pointer; padding: 0.5rem 0.3rem 0.5rem 0.6rem; color: var(--muted); display: flex; align-items: center; min-height: 44px; transition: color var(--ease); }
.nav-search-btn:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; flex-direction: column; gap: 5px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 1px; transition: all var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   BREAKING TICKER
   ===================================================== */
.breaking-bar { background: var(--accent); color: #fff; padding: 6px 0; overflow: hidden; }
.breaking-bar .container { display: flex; align-items: center; gap: 1rem; }
.breaking-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; background: rgba(0,0,0,0.18); padding: 2px 9px; border-radius: 2px; }
.ticker-wrap { overflow: hidden; flex: 1; }
.ticker-content { display: flex; gap: 3rem; animation: ticker 30s linear infinite; white-space: nowrap; }
.ticker-content a { font-size: 0.8rem; color: #fff; opacity: 0.92; }
.ticker-content a:hover { opacity: 1; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =====================================================
   CATEGORY TAG & META
   ===================================================== */
.category-tag { display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.55rem; }
.category-tag a { color: var(--accent); }
.category-tag a:hover { color: var(--accent-h); }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem 0.4rem; font-size: 0.73rem; color: var(--faint); }
.post-meta .author { color: var(--ink); font-weight: 500; }
.post-meta .sep { opacity: 0.35; }

/* =====================================================
   SECTION HEADER
   ===================================================== */
.section-head { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0 0.9rem; border-bottom: 1px solid var(--border); }
.section-head h2 { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; font-family: var(--sans); color: var(--ink); position: relative; padding-left: 10px; }
.section-head h2::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 13px; background: var(--accent); }
.section-head .view-all { font-size: 0.68rem; color: var(--faint); transition: color var(--ease); }
.section-head .view-all:hover { color: var(--ink); }

/* =====================================================
   HERO — big image left, dark panel right
   ===================================================== */
.hero-section { border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1fr 360px; }

/* Left: full image with overlay */
.hero-main { position: relative; overflow: hidden; min-height: 420px; background: var(--ink); }
.hero-main .post-thumb { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 420px; }
.hero-main .post-thumb-placeholder { width: 100%; min-height: 420px; background: #1a1a2e; display: flex; align-items: center; justify-content: center; }
.hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 60%, transparent 100%); padding: 3rem 2rem 2rem; }
.hero-title { font-family: var(--serif); font-size: clamp(1.4rem, 2.8vw, 2.1rem); font-weight: 900; line-height: 1.15; color: #fff; letter-spacing: -0.02em; margin-bottom: 0.7rem; }
.hero-title a { color: #fff; }
.hero-title a:hover { color: var(--accent); }
.hero-excerpt { font-size: 0.9rem; color: rgba(255,255,255,0.72); line-height: 1.65; margin-bottom: 0.9rem; }
.hero-meta { display: flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; color: rgba(255,255,255,0.5); }
.hero-meta .author { color: rgba(255,255,255,0.8); font-weight: 500; }

/* Right: dark panel */
.hero-stack { background: var(--ink); display: flex; flex-direction: column; border-left: none; }
.hero-stack-item { padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--dark-border); display: flex; gap: 0.9rem; align-items: flex-start; }
.hero-stack-item:last-child { border-bottom: none; }
.stack-num { font-family: var(--serif); font-size: 1.7rem; font-weight: 900; color: rgba(255,255,255,0.1); line-height: 1; min-width: 1.8rem; padding-top: 2px; flex-shrink: 0; }
.stack-content { flex: 1; min-width: 0; }
.stack-cat { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.35rem; }
.stack-title { font-family: var(--serif); font-size: 0.88rem; font-weight: 700; line-height: 1.35; color: rgba(255,255,255,0.88); margin-bottom: 0.3rem; }
.stack-title a { color: rgba(255,255,255,0.88); }
.stack-title a:hover { color: var(--accent); }
.stack-date { font-size: 0.68rem; color: rgba(255,255,255,0.3); }

/* 300x250 ad slot in dark panel */
.hero-ad-slot { padding: 1.2rem 1.4rem; display: flex; justify-content: center; align-items: center; margin-top: auto; background: rgba(0,0,0,0.3); }
.ad-300 { width: 300px; height: 250px; background: #0a0a0a; border: 1px solid rgba(248,26,132,0.18); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; position: relative; }
.ad-300-label { position: absolute; top: 9px; font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.18); }
.ad-300-logo { display: flex; align-items: center; gap: 7px; }
.ad-300-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ad-300-name { font-family: var(--serif); font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.5); }
.ad-300-sub { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.2); }
.ad-300-size { font-size: 0.62rem; font-family: var(--mono); color: rgba(248,26,132,0.35); }

/* =====================================================
   CARDS GRID
   ===================================================== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-bottom: 1px solid var(--border); }
.post-card { border-right: 1px solid var(--border); overflow: hidden; }
.post-card:last-child { border-right: none; }
.card-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.card-thumb-placeholder { width: 100%; aspect-ratio: 16/9; background: var(--gray); }
.card-body { padding: 1.1rem 1.2rem 1.3rem; }
.card-title { font-family: var(--serif); font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.5rem; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.55rem; }

/* =====================================================
   970x250 BILLBOARD AD
   ===================================================== */
.billboard-ad { background: var(--ink); height: 130px; display: flex; align-items: center; justify-content: center; position: relative; border-top: 1px solid #1a1a1a; border-bottom: 1px solid #1a1a1a; }
.billboard-ad-label { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.18); white-space: nowrap; }
.billboard-ad-inner { display: flex; align-items: center; gap: 24px; }
.billboard-ad-logo { display: flex; align-items: center; gap: 8px; }
.billboard-ad-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.billboard-ad-name { font-family: var(--serif); font-size: 18px; font-weight: 900; color: rgba(255,255,255,0.45); letter-spacing: -0.02em; }
.billboard-ad-sep { width: 1px; height: 44px; background: rgba(255,255,255,0.08); }
.billboard-ad-text { display: flex; flex-direction: column; gap: 4px; }
.billboard-ad-text span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.22); }
.billboard-ad-text small { font-size: 0.62rem; font-family: var(--mono); color: rgba(248,26,132,0.3); }

/* =====================================================
   LIST + TRENDING
   ===================================================== */
.two-col-section { display: grid; grid-template-columns: 2fr 1fr; gap: 0; border-bottom: 1px solid var(--border); }
.list-col { padding: 0 2rem 2rem 0; border-right: 1px solid var(--border); }
.trend-col { padding: 0 0 2rem 1.8rem; }

.list-post { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.list-post:last-child { border-bottom: none; }
.list-thumb-link { display: block; flex-shrink: 0; }
.list-thumb { width: 80px; height: 60px; object-fit: cover; display: block; }
.list-thumb-placeholder { width: 80px; height: 60px; background: var(--gray); flex-shrink: 0; }
.list-post-body { flex: 1; min-width: 0; }
.list-post-title { font-family: var(--serif); font-size: 0.92rem; font-weight: 700; line-height: 1.32; margin-bottom: 0.25rem; }
.list-post-title a:hover { color: var(--accent); }
.list-post-meta { font-size: 0.7rem; color: var(--faint); }

.trend-item { display: flex; gap: 0.8rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.trend-item:last-child { border-bottom: none; }
.trend-num { font-family: var(--serif); font-size: 1.5rem; font-weight: 900; color: var(--border); min-width: 1.6rem; line-height: 1.2; flex-shrink: 0; }
.trend-cat { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 0.18rem; }
.trend-title { font-size: 0.84rem; font-weight: 500; line-height: 1.38; color: var(--ink); }
.trend-title a:hover { color: var(--accent); }

/* =====================================================
   SINGLE POST
   ===================================================== */
.single-header { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--border); }
.single-title { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 1rem; }
.single-deck { font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--muted); line-height: 1.6; margin-bottom: 1.2rem; }
.byline { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.byline-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--gray); }
.byline-avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline-name { font-size: 0.85rem; font-weight: 600; }
.byline-date { font-size: 0.72rem; color: var(--faint); }
.featured-image { margin: 2rem 0; }
.featured-image img { width: 100%; }
.featured-image .caption { font-size: 0.78rem; color: var(--faint); font-style: italic; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.share-bar { display: flex; align-items: center; gap: 0.8rem; padding: 1.2rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 2rem 0; flex-wrap: wrap; }
.share-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }
.share-btn { display: inline-flex; align-items: center; padding: 0.35rem 0.9rem; font-size: 0.73rem; font-weight: 500; border: 1px solid var(--border); border-radius: 2px; background: transparent; cursor: pointer; transition: all var(--ease); font-family: var(--sans); }
.share-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.post-tags { padding: 1rem 0; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.post-tags a { display: inline-block; padding: 0.22rem 0.65rem; font-size: 0.7rem; border: 1px solid var(--border); border-radius: 2px; margin: 0.18rem; color: var(--muted); transition: all var(--ease); }
.post-tags a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.related-posts { padding: 2rem 0; border-top: 1px solid var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1rem; }
.related-post-title { font-family: var(--serif); font-size: 0.95rem; font-weight: 700; margin: 0.5rem 0 0.3rem; }
.related-post-title a:hover { color: var(--accent); }

/* =====================================================
   ARCHIVE
   ===================================================== */
.archive-header { padding: 2rem 0 1.5rem; border-bottom: 2px solid var(--ink); }
.archive-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--faint); margin-bottom: 0.4rem; }
.archive-title { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 900; }
.archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--border); }
.archive-card { padding: 1.6rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.archive-card:nth-child(even) { border-right: none; }
.archive-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 0.9rem; }
.archive-thumb-placeholder { width: 100%; aspect-ratio: 16/9; background: var(--gray); margin-bottom: 0.9rem; }
.archive-card-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; line-height: 1.28; margin-bottom: 0.45rem; }
.archive-card-title a:hover { color: var(--accent); }
.archive-excerpt { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.pagination { display: flex; justify-content: center; gap: 0.3rem; padding: 2rem 0; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; font-size: 0.85rem; border: 1px solid var(--border); transition: all var(--ease); }
.page-numbers.current, .page-numbers:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* =====================================================
   SIDEBAR
   ===================================================== */
.widget { margin-bottom: 2.5rem; }
.widget-title { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; font-family: var(--sans); color: var(--ink); padding-bottom: 0.65rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; position: relative; padding-left: 10px; }
.widget-title::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%) translateY(-3px); width: 3px; height: 12px; background: var(--accent); }
.newsletter-widget { background: var(--gray); padding: 1.4rem; margin-bottom: 2rem; }
.newsletter-widget h3 { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 0.4rem; }
.newsletter-widget p { font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.55; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.5rem; }
.newsletter-form input { width: 100%; padding: 0.6rem 0.8rem; font-size: 0.84rem; border: 1px solid var(--border); background: var(--white); font-family: var(--sans); outline: none; }
.newsletter-form input:focus { border-color: var(--ink); }
.widget-post { display: flex; gap: 0.8rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.widget-post:last-child { border-bottom: none; }
.widget-thumb { width: 62px; height: 46px; object-fit: cover; flex-shrink: 0; background: var(--gray); }
.widget-post-title { font-size: 0.82rem; font-weight: 500; line-height: 1.35; margin-bottom: 0.18rem; }
.widget-post-title a:hover { color: var(--accent); }
.widget-post-meta { font-size: 0.68rem; color: var(--faint); }
.widget-categories li { display: flex; justify-content: space-between; padding: 0.45rem 0; border-bottom: 1px solid var(--border); font-size: 0.84rem; }
.widget-categories li:last-child { border-bottom: none; }
.widget-categories a:hover { color: var(--accent); }
.widget-categories .count { color: var(--faint); font-size: 0.74rem; }

/* =====================================================
   AUTHOR PAGE
   ===================================================== */
.author-header { padding: 2.5rem 0 2rem; border-bottom: 2px solid var(--ink); display: flex; gap: 2rem; align-items: flex-start; }
.author-avatar { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--gray); }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--faint); margin-bottom: 0.3rem; }
.author-name { font-family: var(--serif); font-size: clamp(1.4rem,3vw,2rem); font-weight: 900; margin-bottom: 0.4rem; }
.author-jobtitle { font-size: 0.78rem; color: var(--accent); font-weight: 600; margin-bottom: 0.7rem; letter-spacing: 0.04em; }
.author-bio { font-size: 0.93rem; color: var(--muted); line-height: 1.7; max-width: 580px; }
.author-social { display: flex; gap: 0.7rem; margin-top: 1rem; flex-wrap: wrap; }
.author-social a { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); padding: 0.28rem 0.75rem; border-radius: 2px; transition: all var(--ease); }
.author-social a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* =====================================================
   FOOTER — dark
   ===================================================== */
.site-footer { background: var(--ink); margin-top: 4rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; border-bottom: 1px solid var(--dark-border); }
.footer-brand-name { font-family: var(--serif); font-size: 1.7rem; font-weight: 900; color: #fff; margin-bottom: 0.7rem; letter-spacing: -0.03em; }
.footer-brand p { font-size: 0.8rem; color: rgba(255,255,255,0.4); line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--dark-border); }
.footer-col ul li { padding: 0.32rem 0; }
.footer-col ul a { font-size: 0.82rem; color: rgba(255,255,255,0.5); transition: color var(--ease); }
.footer-col ul a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 0; font-size: 0.72rem; color: rgba(255,255,255,0.22); }
.footer-legal { display: flex; gap: 1.4rem; }
.footer-legal a { color: rgba(255,255,255,0.22); transition: color var(--ease); }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* =====================================================
   SEARCH OVERLAY
   ===================================================== */
.search-overlay { position: fixed; inset: 0; background: rgba(10,10,10,0.96); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.22s ease; }
.search-overlay.active { opacity: 1; pointer-events: all; }
.search-inner { width: 100%; max-width: 600px; padding: 2rem; }
.search-inner input { width: 100%; background: transparent; border: none; border-bottom: 1.5px solid rgba(255,255,255,0.3); color: #fff; font-size: 2rem; font-family: var(--serif); padding: 0.5rem 0; outline: none; }
.search-inner input::placeholder { color: rgba(255,255,255,0.25); }
.search-close { position: absolute; top: 2rem; right: 2rem; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; opacity: 0.5; }
.search-close:hover { opacity: 1; }
.search-hint { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin-top: 0.8rem; letter-spacing: 0.04em; }

/* =====================================================
   BUTTONS & MISC
   ===================================================== */
.btn-primary { display: block; width: 100%; padding: 0.72rem 1rem; background: var(--ink); color: #fff; font-size: 0.76rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; text-align: center; border: none; cursor: pointer; transition: background var(--ease); font-family: var(--sans); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.read-more { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); border-bottom: 1.5px solid var(--ink); padding-bottom: 1px; margin-top: 0.5rem; transition: color var(--ease), border-color var(--ease); }
.read-more:hover { color: var(--accent); border-color: var(--accent); }
#reading-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: var(--accent); z-index: 9998; transition: width 0.1s linear; }

/* =====================================================
   TABLET ≤1024px
   ===================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 300px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid .post-card:nth-child(2) { border-right: none; }
  .cards-grid .post-card:nth-child(3) { grid-column: span 2; border-right: none; border-top: 1px solid var(--border); display: flex; gap: 1rem; align-items: flex-start; }
  .cards-grid .post-card:nth-child(3) .card-thumb,
  .cards-grid .post-card:nth-child(3) .card-thumb-placeholder { width: 200px; flex-shrink: 0; aspect-ratio: unset; height: 130px; }
  .cards-grid .post-card:nth-child(3) .card-body { padding-left: 0; }
}

/* =====================================================
   MOBILE ≤768px
   ===================================================== */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .site-content { grid-template-columns: 1fr; padding: 0 1rem; }
  .sidebar-area { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 2rem; margin-top: 2rem; }
  .top-bar-nav { display: none; }
  .site-header { top: 34px; }
  .header-inner { height: 52px; }
  .brand-name { font-size: 1.2rem; }
  .brand-icon { width: 42px !important; height: 26px !important; }

  /* NAV DROPDOWN */
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 1.5px);
    left: -1rem;
    right: -1rem;
    background: var(--white);
    border-bottom: 2px solid var(--ink);
    z-index: 400;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 60vh;
    overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { border-bottom: 1px solid var(--border); }
  .nav-menu li:last-child { border-bottom: none; }
  .nav-menu a { padding: 0.85rem 1.2rem; font-size: 0.76rem; border-bottom: none; min-height: 48px; width: 100%; }
  .nav-menu a:hover { background: var(--gray); color: var(--ink); border-bottom: none; }

  /* Hero */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { min-height: 260px; }
  .hero-main .post-thumb { min-height: 260px; }
  .hero-main .post-thumb-placeholder { min-height: 260px; }
  .hero-stack { display: none; }
  .hero-ad-slot { display: none; }
  .hero-title { font-size: clamp(1.3rem,5.5vw,1.75rem); }
  .hero-excerpt { display: none; }

  /* Cards — horizontal row layout */
  .cards-grid { display: flex; flex-direction: column; border-bottom: 1px solid var(--border); }
  .post-card { display: flex; flex-direction: row; align-items: flex-start; border-right: none; border-bottom: 1px solid var(--border); }
  .post-card:last-child { border-bottom: none; }
  .post-card > a:first-child { flex-shrink: 0; }
  .post-card .card-thumb,
  .post-card .card-thumb-placeholder { width: 90px; height: 70px; aspect-ratio: unset; flex-shrink: 0; }
  .post-card .card-body { padding: 0.7rem 0.9rem; flex: 1; min-width: 0; }
  .post-card .card-excerpt { display: none; }
  .post-card .card-title { font-size: 0.88rem; line-height: 1.3; margin-bottom: 0.3rem; }
  .post-card .category-tag { font-size: 0.58rem; margin-bottom: 0.2rem; }

  /* Billboard — smaller on mobile */
  .billboard-ad { height: 80px; }
  .billboard-ad-logo { display: none; }
  .billboard-ad-sep { display: none; }

  /* Two col */
  .two-col-section { grid-template-columns: 1fr; }
  .list-col { padding: 0 0 1.5rem; border-right: none; border-bottom: 1px solid var(--border); }
  .trend-col { padding: 1.5rem 0 0; }

  /* List posts — horizontal row */
  .list-post { gap: 0.8rem; padding: 0.8rem 0; }
  .list-thumb { width: 90px; height: 68px; }
  .list-thumb-placeholder { width: 90px; height: 68px; }
  .list-post-title { font-size: 0.88rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .list-post-meta { font-size: 0.68rem; }
  .category-tag { font-size: 0.58rem; }

  /* Section */
  .section-head { padding: 1.1rem 0 0.7rem; }

  /* Archive */
  .archive-grid { grid-template-columns: 1fr; }
  .archive-card { border-right: none; }
  .related-grid { grid-template-columns: 1fr; }

  /* Footer */
  .site-footer { margin-top: 2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.7rem; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 1rem; }

  /* Author */
  .author-header { flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 1.05rem; }
  .post-card .card-thumb, .post-card .card-thumb-placeholder { width: 76px; height: 58px; }
  .list-thumb { width: 76px; height: 58px; }
  .list-thumb-placeholder { width: 76px; height: 58px; }
  .single-title { font-size: 1.5rem; }
  .newsletter-strip-title { font-size: 1.2rem; }
}

/* Author bio box in single post */
.author-bio-box { background: var(--gray); padding: 1.4rem; display: flex; gap: 1rem; align-items: flex-start; margin: 2rem 0; }
.author-bio-avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.author-bio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-bio-label { font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.2rem; }
.author-bio-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; color: var(--ink); }
.author-bio-text { font-size: 0.84rem; color: var(--muted); line-height: 1.6; }
