@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@400&display=swap');

:root {
  --bg:           #0d0f14;
  --bg-card:      #13151c;
  --bg-elevated:  #1a1d26;
  --border:       #22263a;
  --border-soft:  #1c1f2e;
  --text:         #ffffff;
  --text-muted:   #ffffff;
  --text-soft:    #ffffff;
  --gold:         #ffd700;
  --gold-light:   #ffd700;
  --gold-dim:     #ffd700;
  --gold-bg:      rgba(255,215,0,.08);
  --gold-border:  rgba(255,215,0,.2);
  --accent-teal:  #5eead4;
  --accent-warm:  #f59e6b;
  --danger:       #f87171;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --radius:       8px;
  --radius-lg:    16px;
  --max-w:        1200px;
  --max-w-narrow: 760px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: var(--max-w-narrow); }

.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1.25rem; border-radius: var(--radius); font-family: var(--font-body); font-size: .875rem; font-weight: 500; cursor: pointer; border: none; transition: all .2s ease; }
.btn-primary { background: var(--gold); color: #0d0f14; }
.btn-primary:hover { background: var(--gold-light); color: #0d0f14; }
.btn-outline { background: transparent; border: 1px solid var(--gold-border); color: var(--gold); }
.btn-outline:hover { background: var(--gold-bg); color: var(--gold-light); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }

.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: .9rem; border-left: 3px solid; }
.alert-success { background: rgba(94,234,212,.08); border-color: var(--accent-teal); color: var(--accent-teal); }
.alert-error { background: rgba(248,113,113,.08); border-color: var(--danger); color: var(--danger); }
.alert ul { margin: .5rem 0 0 1rem; }

.category-badge { display: inline-block; padding: .2rem .75rem; border-radius: 99px; font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; background: var(--gold-bg); color: var(--gold); border: 1px solid var(--gold-border); transition: all .2s; }
.category-badge:hover { background: rgba(212,168,67,.18); color: var(--gold-light); }
.category-badge.secondary { background: rgba(245,158,107,.08); color: var(--accent-warm); border-color: rgba(245,158,107,.2); }

.tag { display: inline-block; padding: .2rem .65rem; border-radius: var(--radius); font-size: .78rem; background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border); transition: all .2s; }
.tag:hover { border-color: var(--gold); color: var(--gold); }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(13,15,20,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-soft); }
.site-header .container { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.site-logo img { height: 38px; width: auto; }
.main-nav { display: flex; align-items: center; gap: .15rem; flex: 1; }
.main-nav a { padding: .4rem .7rem; border-radius: var(--radius); font-size: .85rem; color: var(--gold); transition: all .2s; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--gold); background: var(--gold-bg); }
.header-actions { margin-left: auto; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: .4rem; margin-left: auto; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; align-items: center; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: flex-start; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; gap: .2rem; z-index: 99; }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: .65rem .75rem; }
  .header-actions { display: none; }
}

.site-main { padding: 3rem 0 5rem; }

.post-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 4rem; padding-bottom: 4rem; border-bottom: 1px solid var(--border-soft); }
.post-featured .featured-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.post-featured .post-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; font-size: .8rem; color: var(--text-muted); flex-wrap: wrap; }
.post-featured h1 { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.2; margin-bottom: .75rem; color: var(--gold-light); }
.post-featured h1 a { color: inherit; }
.post-featured h1 a:hover { color: var(--gold); }
.post-excerpt { color: var(--text-soft); font-size: 1rem; margin-bottom: 1.5rem; line-height: 1.65; }
.reading-time { font-size: .8rem; color: var(--text-muted); }
.post-featured .author-strip { display: flex; align-items: center; gap: .65rem; }
.post-featured .author-strip img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-border); }
.post-featured .author-strip-name { font-size: .85rem; color: var(--text-soft); }
.post-featured .author-strip-name a { color: var(--gold); }
.post-featured .author-strip-name a:hover { color: var(--gold-light); }

@media (max-width: 768px) {
  .post-featured { grid-template-columns: 1fr; gap: 1.5rem; }
}

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; }
.post-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.post-card { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s, transform .25s, box-shadow .25s; }
.post-card:hover { border-color: var(--gold-border); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(212,168,67,.07); }

.card-image-wrap { position: relative; overflow: hidden; aspect-ratio: 16/9; background: var(--bg-elevated); flex-shrink: 0; }
.card-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .card-image-wrap img { transform: scale(1.05); }
.card-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--border); font-size: 2.5rem; }

.card-body { padding: 1.1rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; gap: .35rem; }
.card-body h2 { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.32; color: var(--gold-light); margin-top: .25rem; }
.card-body h2 a { color: inherit; }
.card-body h2 a:hover { color: var(--gold); }
.card-body p { color: var(--text-soft); font-size: .875rem; flex: 1; line-height: 1.6; }

.card-author-strip { display: flex; align-items: center; gap: .65rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--border-soft); }
.card-author-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-border); flex-shrink: 0; }
.card-author-placeholder { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-elevated); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .8rem; color: var(--text-muted); font-family: var(--font-display); flex-shrink: 0; }
.card-author-info { flex: 1; min-width: 0; }
.card-author-name { font-size: .83rem; font-weight: 500; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-author-name a { color: var(--gold); text-decoration: none; }
.card-author-name a:hover { color: var(--gold-light); }
.card-author-date { font-size: .74rem; color: var(--text-muted); margin-top: .1rem; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 3rem; font-size: .9rem; color: var(--text-muted); }
.pagination a { color: var(--gold); }

.archive-header { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-soft); }
.archive-header h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); color: var(--gold-light); margin-bottom: .5rem; }
.archive-header p { color: var(--text-soft); max-width: 600px; }
.archive-count { font-size: .85rem; color: var(--text-muted); margin-top: .5rem; }
.no-posts { color: var(--text-muted); text-align: center; padding: 3rem 0; }

.single-post .site-main { padding-top: 2.5rem; }
.article-header { margin-bottom: 2rem; }
.article-cats { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.article-title { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.18; color: var(--gold-light); margin-bottom: 1rem; }
.article-excerpt { font-size: 1.12rem; color: var(--text-soft); line-height: 1.65; margin-bottom: 1.5rem; font-style: italic; font-family: var(--font-display); }

.article-byline { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); margin-bottom: 2rem; }
.byline-authors { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.byline-author { display: flex; align-items: center; gap: .75rem; }
.byline-author-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-border); flex-shrink: 0; }
.byline-author-placeholder { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-elevated); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--text-muted); flex-shrink: 0; }
.byline-author-name { font-size: .9rem; font-weight: 500; color: var(--text); }
.byline-author-name a { color: var(--gold); }
.byline-author-name a:hover { color: var(--gold-light); }
.byline-author-sub { font-size: .76rem; color: var(--text-muted); margin-top: .1rem; }
.byline-meta { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--text-muted); white-space: nowrap; }

.article-hero { margin: 0 0 2.5rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.article-hero img { width: 100%; max-height: 540px; object-fit: cover; }
.article-hero figcaption {
  padding: .6rem 1rem;
  font-size: .75rem;
  color: #ffd700;
  background: var(--bg-card);
  border-top: 1px solid var(--border-soft);
  font-style: italic;
  text-align: center;
}

.article-content { font-size: 1.08rem; line-height: 1.88; color: var(--text); }
.article-content h2 { font-family: var(--font-display); font-size: 1.65rem; color: var(--gold-light); margin: 2.5rem 0 .75rem; }
.article-content h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); margin: 2rem 0 .5rem; }
.article-content h4 { color: var(--text-soft); margin: 1.5rem 0 .4rem; font-size: 1rem; }
.article-content p { margin-bottom: 1.4rem; }
.article-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--gold-light); }
.article-content ul, .article-content ol { margin: 0 0 1.4rem 1.5rem; }
.article-content li { margin-bottom: .4rem; }
.article-content blockquote { margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 3px solid var(--gold); background: var(--gold-bg); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--gold-light); }
.article-content pre { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; overflow-x: auto; margin-bottom: 1.4rem; font-family: var(--font-mono); font-size: .875rem; }
.article-content code { font-family: var(--font-mono); font-size: .875em; background: var(--bg-elevated); padding: .15em .4em; border-radius: 4px; color: var(--accent-teal); }
.article-content pre code { background: none; padding: 0; color: var(--text); }
.article-content img { border-radius: var(--radius); border: 1px solid var(--border); margin: 1.5rem 0; }
.article-content hr { border: none; border-top: 1px solid var(--border-soft); margin: 2.5rem 0; }
.ql-content .ql-align-center { text-align: center; }
.ql-content .ql-align-right { text-align: right; }

.article-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2.5rem 0; padding-top: 1.5rem; border-top: 1px solid var(--border-soft); }

.author-bios { margin: 3rem 0; }
.author-bios-heading { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--gold-border); }
.author-bio-card { display: grid; grid-template-columns: 88px 1fr; gap: 1.5rem; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1rem; align-items: start; transition: border-color .2s; }
.author-bio-card:hover { border-color: var(--gold-border); }
.author-bio-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold-border); }
.author-bio-avatar-placeholder { width: 80px; height: 80px; border-radius: 50%; background: var(--bg-elevated); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; color: var(--text-muted); }
.author-bio-name { font-size: 1.05rem; font-weight: 600; margin-bottom: .35rem; }
.author-bio-name a { color: var(--gold); }
.author-bio-name a:hover { color: var(--gold-light); }
.author-bio-text { font-size: .9rem; color: var(--text-soft); margin-bottom: .85rem; line-height: 1.65; }
.author-social { display: flex; gap: .5rem; flex-wrap: wrap; }
.author-social a { font-size: .78rem; color: var(--text-muted); border: 1px solid var(--border); padding: .22rem .65rem; border-radius: var(--radius); transition: all .2s; }
.author-social a:hover { color: var(--gold); border-color: var(--gold-border); background: var(--gold-bg); }

.comments-section { margin: 3rem 0; padding-top: 2rem; border-top: 1px solid var(--border-soft); }
.comments-section h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-light); margin-bottom: 1.5rem; }
.comment { padding: 1.25rem; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border-soft); margin-bottom: 1rem; }
.comment strong { font-size: .9rem; }
.comment time { font-size: .78rem; color: var(--text-muted); margin-left: .5rem; }
.comment p { margin-top: .5rem; font-size: .95rem; color: var(--text-soft); }
.comment-form { margin-top: 2.5rem; }
.comment-form h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold-light); margin-bottom: 1.25rem; }
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.comment-form input, .comment-form textarea { width: 100%; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); padding: .65rem 1rem; border-radius: var(--radius); font-family: var(--font-body); font-size: .95rem; transition: border-color .2s; margin-bottom: 1rem; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--gold); }

.related-posts { background: var(--bg-card); border-top: 1px solid var(--border-soft); padding: 3rem 0; margin-top: 3rem; }
.related-posts h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-light); margin-bottom: 1.75rem; }
.related-posts .post-card { background: var(--bg-elevated); }

.submissions-page .page-header { margin-bottom: 2.5rem; }
.submissions-page .page-header h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.75rem); color: var(--gold-light); margin-bottom: .5rem; }
.submissions-page .page-header p { color: var(--text-soft); font-size: 1.05rem; }
.submission-guidelines { background: var(--bg-card); border: 1px solid var(--gold-border); border-radius: var(--radius-lg); padding: 1.5rem 2rem; margin-bottom: 2.5rem; }
.submission-guidelines h2 { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); margin-bottom: .75rem; }
.submission-guidelines ul { margin-left: 1.25rem; }
.submission-guidelines li { color: var(--text-soft); font-size: .95rem; margin-bottom: .4rem; }
.submission-form fieldset { border: none; padding: 0; margin: 0 0 2rem; }
.submission-form legend { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold-light); margin-bottom: 1.25rem; padding-bottom: .5rem; border-bottom: 1px solid var(--gold-border); width: 100%; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 500; color: var(--text-soft); margin-bottom: .4rem; }
.form-group label .hint { color: var(--text-muted); font-weight: 400; }
.form-group input, .form-group textarea, .form-group select { width: 100%; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); padding: .65rem 1rem; border-radius: var(--radius); font-family: var(--font-body); font-size: .95rem; transition: border-color .2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--gold); }
.form-group select { appearance: none; cursor: pointer; }
.form-group textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-actions { margin-top: 2rem; }

.ql-toolbar { background: var(--bg-elevated) !important; border-color: var(--border) !important; border-radius: var(--radius) var(--radius) 0 0; }
.ql-container { background: var(--bg-card) !important; border-color: var(--border) !important; border-radius: 0 0 var(--radius) var(--radius); color: var(--text) !important; font-family: var(--font-body) !important; font-size: .95rem !important; }
.ql-editor { min-height: 300px; }
.ql-toolbar .ql-stroke { stroke: var(--text-muted) !important; }
.ql-toolbar .ql-fill { fill: var(--text-muted) !important; }
.ql-toolbar button:hover .ql-stroke { stroke: var(--gold) !important; }
.ql-toolbar button:hover .ql-fill { fill: var(--gold) !important; }
.ql-toolbar .ql-picker-label { color: var(--text-muted) !important; }

.site-footer { background: var(--bg-card); border-top: 1px solid var(--border-soft); padding: 3.5rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 3rem; margin-bottom: 3rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 34px; margin-bottom: .75rem; }
.footer-brand p { font-size: .9rem; color: var(--text-muted); }
.footer-links h4, .footer-subscribe h4 { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: .75rem; }
.footer-links { display: flex; flex-direction: column; gap: .35rem; }
.footer-links a { font-size: .9rem; color: var(--text-muted); transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-subscribe form { display: flex; gap: .5rem; margin-bottom: .5rem; }
.footer-subscribe input { flex: 1; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text); padding: .55rem .85rem; border-radius: var(--radius); font-family: var(--font-body); font-size: .875rem; transition: border-color .2s; }
.footer-subscribe input:focus { outline: none; border-color: var(--gold); }
#subscribe-msg { font-size: .82rem; color: var(--accent-teal); min-height: 1.2em; }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid var(--border-soft); font-size: .82rem; color: var(--text-muted); text-align: center; }

.article-content figure {
  margin: 2rem 0;
}
.article-content figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 0;
}
.article-content figcaption {
  text-align: center;
  font-size: .75rem;
  color: #ffd700;
  margin-top: .5rem;
  font-style: italic;
  line-height: 1.5;
}

.article-content img { display: block; margin: 1.5rem auto; }
.article-content img.img-left { margin-left: 0; margin-right: auto; float: left; margin-right: 1.5rem; margin-bottom: 1rem; max-width: 50%; }
.article-content img.img-right { margin-right: 0; margin-left: auto; float: right; margin-left: 1.5rem; margin-bottom: 1rem; max-width: 50%; }
.article-content img.img-full { width: 100%; max-width: 100%; }
.article-content::after { content: ''; display: table; clear: both; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }