@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,600;9..144,700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Deep Forest Green Theme */
    --bg-body: #1a2f26;
    --bg-card: rgba(20, 50, 40, 0.7);
    --secondary-color: #10b981;
    --secondary-hover: #059669;
    --text-color: #f1f5f9;
    --text-muted: #cbd5e1;
    --header-height: 70px;
    --border-radius: 16px;
    --nav-bg: rgba(26, 47, 38, 0.85);
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-body);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-body);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.15), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(5, 150, 105, 0.1), transparent 40%);
    margin: 0;
    padding: 0;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    margin-top: 0;
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--secondary-hover);
}

/* Header & Nav */
header {
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.inner-wrap {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
    font-family: 'Fraunces', serif;
}

.logo {
    color: #fff;
}
.logo:hover {
    color: var(--secondary-color);
}

nav.top ol {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    font-size: 1rem;
}

nav.top a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    opacity: 0.8;
}

nav.top a:hover {
    opacity: 1;
    color: #fff;
}

nav.top a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav.top a:hover::after {
    width: 100%;
}

@media (max-width: 600px) {
  nav.top ol {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Main Content Layout */
.wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* Verso specific blocks */
.hl.lean.block {
  margin-top: 0;
  margin-bottom: 2.5rem;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 1rem;
}

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

.post-list > li {
  display: block;
  background-color: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin: 2rem 0;
  transition: transform 0.2s;
}

.post-list > li:hover {
  transform: translateY(-2px);
}

.post-list > li .title {
  font-family: 'Fraunces', serif;
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--text-color);
}

.read-more { display: none; }
.post-list > li .read-more::after {
  content: " »";
}

.categories {
  display: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
  color: var(--text-muted);
}
.categories:not(:empty) { display: block; }
.categories::before { content: "Category: "; }
.categories:has(li:nth-child(2))::before { content: "Categories: "; }
.categories li { display: inline; }
.categories li:not(:last-child)::after { content: ", "; }

.authors { display: none; color: var(--text-muted); }
.authors:not(:empty) { display: inline; }
.authors::before { content: "By "; }
.authors .author:not(:last-child)::after { content: ", "; }
.authors .author:last-child::after { content: ". "; }

.date { display: inline; color: var(--text-muted); }
.date:not(:empty)::before { content: "Posted "; }

nav.breadcrumbs {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}
nav.breadcrumbs ol {
  display: block;
  padding: 0;
}
nav.breadcrumbs ol li, nav.breadcrumbs ol li a {
  display: inline;
  padding: 0;
  position: inherit;
  text-wrap: nowrap;
}
nav.breadcrumbs ol li:not(:last-child)::after {
  content: " » ";
}

/* Sakura overrides */
p {
    color: var(--text-color);
}
blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
    color: var(--text-muted);
    background-color: rgba(16, 185, 129, 0.05);
    border-radius: 0 8px 8px 0;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
}
th {
    background-color: rgba(255, 255, 255, 0.05);
}
hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
