/* =============================================================================
   LITERACONITE — Complete Style Overhaul
   Gothic literary journal: dark, minimal, editorial
   ============================================================================= */

/* ── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500&display=swap');

/* ── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  --lc-bg:        #080506;
  --lc-surface:   #0f0a0b;
  --lc-card:      rgba(255,255,255,.028);
  --lc-border:    rgba(255,255,255,.06);
  --lc-border-h:  rgba(255,255,255,.12);
  --lc-text:      #ede4dc;
  --lc-muted:     #9c8c84;
  --lc-faint:     rgba(237,228,220,.45);
  --lc-red:       #9b2b2b;
  --lc-red-glow:  rgba(155,43,43,.18);
  --lc-purple:    #6d4fa0;
  --lc-gold:      #c9a96e;
  --lc-width:     1140px;
  --lc-prose:     680px;
  --lc-radius:    14px;
  --lc-transition: 180ms ease;

  /* Override PaperMod dark vars */
  --theme:    var(--lc-bg);
  --entry:    var(--lc-surface);
  --primary:  var(--lc-text);
  --secondary: var(--lc-muted);
  --border:   var(--lc-border);
  --nav-width: var(--lc-width);
  --main-width: 1100px;
  --header-height: 56px;
}

/* ── Base Reset Overrides ─────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--lc-text);
  background: var(--lc-bg);
  background-image:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(100,20,20,.22), transparent),
    radial-gradient(ellipse 60% 30% at 100% 60%, rgba(80,30,90,.08), transparent);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a, button, body, h1, h2, h3, h4, h5, h6 {
  color: var(--lc-text);
}

a { text-decoration: none; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.lc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(8,5,6,.9);
  border-bottom: 1px solid var(--lc-border);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
}

.lc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--lc-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Wordmark */
.lc-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: .03em;
  color: var(--lc-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--lc-transition);
}

.lc-nav-logo:hover { color: #fff; }

.lc-nav-logo-mark {
  font-style: normal;
  font-size: .55rem;
  color: var(--lc-red);
  opacity: .85;
  line-height: 1;
  margin-top: .05rem;
}

/* Nav links */
.lc-nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lc-nav-menu a {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lc-muted);
  text-decoration: none;
  transition: color var(--lc-transition);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.lc-nav-menu a:hover {
  color: var(--lc-text);
}

.lc-nav-active {
  color: var(--lc-text) !important;
  border-bottom-color: var(--lc-red) !important;
}

@media (max-width: 600px) {
  .lc-nav-menu { gap: 1.2rem; }
  .lc-nav-menu a { font-size: .6rem; letter-spacing: .14em; }
}

/* ── Main container ───────────────────────────────────────────────────────── */
.main {
  max-width: var(--lc-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  min-height: calc(100vh - var(--header-height) - 60px);
}

/* List pages get slightly different bg */
.list .main {
  padding-top: 2rem;
}

/* ── LIST PAGE (section background) ──────────────────────────────────────── */
.list {
  background: var(--lc-bg);
}

/* ── Homepage ─────────────────────────────────────────────────────────────── */
.lc-main {
  max-width: var(--lc-width);
  margin: 0 auto;
}

/* Wordmark / hero header */
.lc-hero {
  margin: 0 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--lc-border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 2rem;
}

.lc-hero-title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: .02em;
  color: var(--lc-text);
  line-height: 1.15;
}

.lc-hero-sub {
  margin: 0;
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lc-muted);
  align-self: center;
}

.lc-hero-line { display: none; } /* replaced by border-bottom on hero */

/* ── Two-column grid ──────────────────────────────────────────────────────── */
.lc-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .lc-layout { grid-template-columns: 1fr; }
}

/* ── Feature card ─────────────────────────────────────────────────────────── */
.lc-feature {
  background: var(--lc-card);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  padding: 2rem 2rem 1.75rem;
  transition: border-color var(--lc-transition);
}

.lc-feature:hover { border-color: var(--lc-border-h); }

.lc-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: 1rem;
  padding: .22rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(155,43,43,.3);
  background: rgba(155,43,43,.08);
  color: #c47b7b;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.lc-feature-title {
  margin: 0 0 .75rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.lc-feature-title a { color: var(--lc-text); }
.lc-feature-title a:hover { color: #fff; }

.lc-feature-desc {
  margin: 0 0 1.25rem;
  color: var(--lc-muted);
  font-size: .97rem;
  line-height: 1.75;
  max-width: 42ch;
}

.lc-feature-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lc-muted);
}

.lc-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.lc-feature-tags span {
  color: var(--lc-muted);
  opacity: .7;
}

/* ── Stream sidebar ───────────────────────────────────────────────────────── */
.lc-stream {
  background: var(--lc-card);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  overflow: hidden;
}

.lc-stream-label {
  padding: .8rem 1.1rem .75rem;
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lc-muted);
  border-bottom: 1px solid var(--lc-border);
}

.lc-stream-item {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.038);
  transition: background var(--lc-transition);
}

.lc-stream-item:last-child { border-bottom: none; }

.lc-stream-item:hover { background: rgba(255,255,255,.025); }

.lc-dot {
  width: 7px;
  height: 7px;
  margin-top: .52rem;
  border-radius: 50%;
  flex: 0 0 7px;
}

.lc-dot-poetry {
  background: var(--lc-red);
  box-shadow: 0 0 0 2px var(--lc-red-glow);
}

.lc-dot-review {
  background: var(--lc-purple);
  box-shadow: 0 0 0 2px rgba(109,79,160,.18);
}

.lc-stream-body { min-width: 0; flex: 1; }

.lc-stream-body h3 {
  margin: 0 0 .18rem;
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.4;
  font-family: 'Playfair Display', Georgia, serif;
}

.lc-stream-body h3 a { color: var(--lc-text); }
.lc-stream-body h3 a:hover { color: #fff; }

.lc-stream-body time {
  color: var(--lc-muted);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ── Section / List page header ───────────────────────────────────────────── */
.page-header {
  margin: 0 0 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--lc-border);
}

.page-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: .02em;
  line-height: 1.2;
  margin: 0;
}

.post-description {
  margin-top: .6rem;
  font-size: .85rem;
  color: var(--lc-muted);
  letter-spacing: .04em;
}

/* ── List page entries ────────────────────────────────────────────────────── */
.post-entry {
  background: var(--lc-card);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  padding: 1.3rem 1.5rem;
  margin-bottom: .75rem;
  transition: border-color var(--lc-transition), background var(--lc-transition);
}

.post-entry:hover {
  border-color: var(--lc-border-h);
  background: rgba(255,255,255,.035);
}

.entry-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 .4rem;
}

.entry-header h2 a { color: var(--lc-text); }
.entry-header h2 a:hover { color: #fff; }

.entry-content {
  font-size: .9rem;
  color: var(--lc-muted);
  line-height: 1.65;
  margin-bottom: .55rem;
}

.entry-footer {
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--lc-muted);
  opacity: .7;
}

/* ── Single post ──────────────────────────────────────────────────────────── */
.post-single {
  max-width: var(--lc-prose);
  margin: 0 auto;
}

.post-header {
  margin: 0 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--lc-border);
}

/* Section chip on post */
.post-header .breadcrumbs {
  margin-bottom: .75rem;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lc-muted);
}

.post-header .breadcrumbs a { color: var(--lc-muted); }
.post-header .breadcrumbs a:hover { color: var(--lc-text); }

.post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .6rem;
}

.post-meta {
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--lc-muted);
  margin-top: .6rem;
}

.post-meta a {
  color: var(--lc-muted);
  text-decoration: none;
}

/* ── Article body typography ──────────────────────────────────────────────── */
.post-content {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.92;
  color: var(--lc-text);
  margin: 0;
}

.post-content p {
  margin-bottom: 1.4rem;
}

/* Drop cap */
.post-content > p:first-of-type::first-letter {
  float: left;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  font-weight: 600;
  line-height: .78;
  padding-right: .1rem;
  padding-top: .08rem;
  color: var(--lc-red);
}

/* Headings inside article */
.post-content h2,
.md-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 2.5rem 0 1rem;
  color: var(--lc-text);
}

.post-content h3,
.md-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  margin: 2rem 0 .75rem;
  color: var(--lc-text);
}

/* Blockquote */
.post-content blockquote {
  margin: 2rem 0;
  padding: 1.1rem 1.5rem;
  border-left: 2px solid var(--lc-red);
  background: rgba(155,43,43,.05);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--lc-faint);
}

.post-content blockquote p { margin-bottom: 0; }

/* Links in content */
.post-content a {
  color: var(--lc-text);
  border-bottom: 1px solid rgba(237,228,220,.25);
  transition: border-color var(--lc-transition);
}

.post-content a:hover {
  border-color: var(--lc-text);
}

/* ── TOC ──────────────────────────────────────────────────────────────────── */
details.toc {
  margin-bottom: 2rem;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
}

details.toc summary {
  padding: .7rem 1.2rem;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--lc-muted);
}

.toc a {
  color: var(--lc-muted);
  font-size: .88rem;
}

.toc a:hover { color: var(--lc-text); }

/* ── Post tags ────────────────────────────────────────────────────────────── */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-tags a {
  display: inline-block;
  padding: .25rem .75rem;
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lc-muted);
  border: 1px solid var(--lc-border);
  border-radius: 999px;
  background: transparent;
  transition: border-color var(--lc-transition), color var(--lc-transition);
  line-height: 1.8;
}

.post-tags a:hover {
  border-color: var(--lc-border-h);
  color: var(--lc-text);
}

/* ── Post nav (prev/next) ─────────────────────────────────────────────────── */
.paginav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 2.5rem;
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  overflow: hidden;
  background: var(--lc-border);
}

.paginav a {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--lc-card);
  transition: background var(--lc-transition);
}

.paginav a:hover { background: rgba(255,255,255,.04); }

.paginav .title {
  display: block;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lc-muted);
  margin-bottom: .35rem;
}

.paginav .next { text-align: right; }

.paginav span:not(.title) {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: .95rem;
  font-style: italic;
  color: var(--lc-text);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Post footer ──────────────────────────────────────────────────────────── */
.post-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--lc-border);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--lc-border);
  background: transparent;
  font-size: .72rem;
  color: var(--lc-muted);
  letter-spacing: .06em;
}

/* ── Pagination ───────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: .5rem;
  margin-top: 2rem;
  justify-content: center;
}

.pagination a {
  display: inline-block;
  padding: .4rem 1rem;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lc-muted);
  border: 1px solid var(--lc-border);
  border-radius: 999px;
  background: transparent;
  transition: border-color var(--lc-transition), color var(--lc-transition);
}

.pagination a:hover {
  color: var(--lc-text);
  border-color: var(--lc-border-h);
}

/* ── Archive ──────────────────────────────────────────────────────────────── */
.archive-year {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 400;
  color: var(--lc-muted);
  margin: 2rem 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--lc-border);
}

.archive-entry {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.03);
  font-size: .92rem;
}

.archive-entry-title a { color: var(--lc-text); }
.archive-entry-title a:hover { color: #fff; }

.archive-count,
.archive-entry time {
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lc-muted);
  white-space: nowrap;
}

/* ── Search ───────────────────────────────────────────────────────────────── */
#searchInput {
  width: 100%;
  padding: .75rem 1rem;
  font-size: .95rem;
  font-family: inherit;
  color: var(--lc-text);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  outline: none;
  transition: border-color var(--lc-transition);
}

#searchInput:focus {
  border-color: var(--lc-border-h);
}

#searchResults .post-entry { margin-top: .75rem; }

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--lc-bg); }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.18);
}

/* ── Selection ────────────────────────────────────────────────────────────── */
::selection {
  background: rgba(155,43,43,.35);
  color: #fff;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .main { padding: 1.5rem 1rem 3rem; }
  .lc-hero { margin-bottom: 1.75rem; flex-direction: column; gap: .3rem; }
  .post-title { font-size: 1.8rem; }
  .paginav { grid-template-columns: 1fr; }
  .paginav .next { text-align: left; }
}
