/*
Theme Name: Digiliquidity Blog
Theme URI: https://digiliquidity.com/blog
Author: OpenAI
Description: Custom static-export-friendly blog theme matching the Digiliquidity header.
Version: 1.0.0
Text Domain: digiliquidity-blog
*/

@font-face {
  font-family: 'Avenir DLC';
  src: url('assets/fonts/Avenir-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --dlc-black: #252525;
  --dlc-gray: #9f9f9f;
  --dlc-gray-light: rgba(37, 37, 37, 0.8);
  --dlc-white: #ffffff;
  --dlc-border: #e9e4db;
  --dlc-bg: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Avenir DLC', sans-serif;
  color: var(--dlc-black);
  background: var(--dlc-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.site-shell {
  min-height: 100vh;
}

.container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(252, 251, 248, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(37, 37, 37, 0.08);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
}

.site-logo img {
  width: 120px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.site-nav li {
  padding: 4px 20px;
}

.site-nav a {
  font-size: 16px;
  font-weight: 700;
  color: var(--dlc-black);
}

.site-nav a.current {
  text-decoration: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dlc-black);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

.hero-band {
  padding: 72px 0 40px;
}

.hero-title {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 700;
  margin: 0;
}

.hero-copy {
  margin: 16px 0 0;
  max-width: 720px;
  font-size: 22px;
  line-height: 1.35;
  color: var(--dlc-gray-light);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  padding-bottom: 72px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.post-card,
.post-full {
  background: var(--dlc-white);
  border: 1px solid var(--dlc-border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 34px rgba(20, 20, 20, 0.04);
}

.post-card-title,
.post-full-title {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  margin: 0 0 14px;
}

.post-card-title {
  font-size: 30px;
}

.post-meta {
  color: var(--dlc-gray);
  font-size: 14px;
  margin-bottom: 14px;
}

.post-excerpt,
.post-content {
  color: var(--dlc-gray-light);
  font-size: 18px;
  line-height: 1.7;
}

.post-content p:first-child,
.post-excerpt p:first-child {
  margin-top: 0;
}

.post-content a,
.post-excerpt a,
.sidebar-panel a,
.pagination a,
.pagination span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.read-more {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 700;
}

.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-panel {
  background: var(--dlc-white);
  border: 1px solid var(--dlc-border);
  border-radius: 18px;
  padding: 22px;
}

.sidebar-panel h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.sidebar-panel p,
.sidebar-panel li {
  color: var(--dlc-gray-light);
  line-height: 1.6;
}

.sidebar-panel ul {
  margin: 0;
  padding-left: 18px;
}

.pagination {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--dlc-border);
  border-radius: 999px;
  background: var(--dlc-white);
}

.pagination .current {
  background: var(--dlc-black);
  color: var(--dlc-white);
  border-color: var(--dlc-black);
  text-decoration: none;
}

.site-footer {
  background: var(--dlc-black);
  color: var(--dlc-gray);
  padding: 36px 0;
  font-size: 13px;
  line-height: 1.7;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 991px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--dlc-white);
    padding: 84px 30px 30px;
    box-shadow: -4px 0 12px rgba(0,0,0,0.1);
    transition: right .3s ease;
  }

  .site-nav.open {
    right: 0;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav li {
    padding: 12px 0;
  }

  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .site-logo img { width: 88px; }
  .hero-band { padding: 48px 0 24px; }
  .hero-copy { font-size: 18px; }
  .post-card, .post-full, .sidebar-panel { padding: 18px; }
}
