/*
Theme Name: The Liminal Mind
Theme URI: https://ourliminalmind.com
Author: Annelie
Description: A dark, liminal WordPress theme for psychology, fiction, and the unreal.
Version: 1.0
*/

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0e1220;
  color: #e6e6eb;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: #b6c2ff;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem 1rem;
}

.cardold {
  background: linear-gradient(180deg, #151a33, #0e1220);
  padding: 1.5rem;
  border-radius: 10px;
}

.main-nav {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  z-index: 10;
}

.main-nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
  background: rgba(14,18,32,0.9);
  backdrop-filter: blur(6px);
  padding: 1rem 2rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  font-family: Inter, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e6e6eb;
  opacity: 0.85;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  opacity: 1;
  color: #b6c2ff;
}

.main-nav ul {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  display: inline-flex !important;
  margin: 0;
  padding: 0;
}

.main-nav li + li {
  margin-left: 2rem;
}
.main-nav .main-menu {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.main-nav .main-menu li {
  display: inline-flex;
}

.main-nav .main-menu li + li {
  margin-left: 2rem;
}
.main-nav ul {
  display: flex !important;
}
.pps-series-post-details{
  background: rgba(255,255,255,.06);
  border-left: 3px solid #6fa8ff;
  padding: .6em .9em;
  margin: 1em 0 1.5em;
  font-size: .9em;
  border-radius: 6px;
}

.pps-series-post-details a{
  color: #9bbcff;
  text-decoration: none;
}

.pps-series-post-details a:hover{
  text-decoration: underline;
}
.pps-series-post-details{
  background: url('/wp-content/themes/ditt-tema/img/series.png') no-repeat left center;
  padding-left: 60px; /* plats för bilden */
}

.pps-series-post-details *{
  display:none; /* döljer all text */
}



/* ===== HERO ===== */
.hero {
  max-width: 800px;
  margin: 6rem auto 4rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.1rem;
  color: #666;
}

/* ===== GRID ===== */
.card-grid {
  max-width: 1100px;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* ===== CARD ===== */

.card ajhgf {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 500;
}

.card {
  background: #0e1220;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card h2,
.card h3 {
  margin-top: 0rem;
  margin-bottom: 0rem;
}

.card p { margin: 0; }
.card p + p { margin-top: 1rem; } /* om du vill ha glapp bara mellan stycken */

.card h2 a {
  margin-top: 0;
}
.card h2 { margin: 0 !important; }

.card .excerpt-link {
  display: inline-block;
  margin: 0rem;
}


.card .excerpt { margin: 0; }

/* ===== FEATURED ===== */
.card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #f5f5f5, #ffffff);
}

/* ===== LABEL ===== */
.label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
}
.pps-series-post-details{ background: rgba(255,255,255,.06) !important; }

.related { margin-top: 3rem; }
.related-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.related-card { display: block; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; text-decoration: none; }
.related-title { font-weight: 700; margin-bottom: 6px; }
.related-excerpt { opacity: .85; }
.related-card:hover { transform: translateY(-1px); }

.olm-library-archive {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.olm-library-header {
  margin-bottom: 2.5rem;
}

.olm-library-header h1 {
  margin-bottom: 0.75rem;
  font-size: 2.4rem;
  line-height: 1.15;
}

.olm-library-description {
  font-size: 1.05rem;
  line-height: 1.75;
  opacity: 0.9;
}

.olm-child-topics {
  margin-bottom: 3rem;
}

.olm-child-topics h2 {
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.olm-topic-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.olm-topic-list li {
  margin-bottom: 0.5rem;
}

.olm-topic-list a {
  text-decoration: none;
}

.olm-topic-posts {
  margin-top: 2rem;
}

.olm-essay-card {
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.olm-essay-title {
  margin-bottom: 0.6rem;
  font-size: 1.45rem;
  line-height: 1.3;
}

.olm-essay-title a {
  text-decoration: none;
}

.olm-essay-excerpt {
  line-height: 1.7;
  opacity: 0.92;
}

.olm-pagination {
  margin-top: 2rem;
}
