/*
Theme Name: Killer Lite Blog
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: A lightweight custom WordPress theme with a strong editorial blog layout, featured posts section, and clean typography.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: killer-lite-blog
*/

:root {
  --bg: #0b1020;
  --surface: #121a2f;
  --surface-2: #ffffff;
  --text: #0f172a;
  --muted: #5b6476;
  --line: #e7ebf2;
  --brand: #6d5efc;
  --brand-2: #18c29c;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #f7f9fc;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0; border: 0; height: 1px; width: 1px; overflow: hidden;
}
.site-header {
  background: linear-gradient(135deg, #0a1020 0%, #131d36 100%);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.branding a {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.site-description {
  margin: 4px 0 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
}
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.main-navigation a {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.98rem;
}
.hero {
  background: linear-gradient(135deg, #0a1020 0%, #131d36 100%);
  color: var(--white);
  padding: 50px 0 42px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 28px;
  align-items: stretch;
}
.featured-main,
.featured-side article,
.post-card,
.sidebar-card,
.single-card,
.page-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.featured-main {
  position: relative;
  min-height: 430px;
  display: grid;
}
.featured-main.has-thumb .featured-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.featured-main.has-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,14,28,0.1), rgba(8,14,28,0.75));
}
.featured-main-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 36px;
  color: var(--white);
}
.badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(109, 94, 252, 0.16);
  color: #d8d3ff;
  border: 1px solid rgba(255,255,255,0.14);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.featured-main h1,
.featured-main h2 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.meta,
.entry-meta,
.post-meta {
  color: var(--muted);
  font-size: .92rem;
}
.featured-main .meta,
.featured-side .meta { color: rgba(255,255,255,0.8); }
.featured-side {
  display: grid;
  gap: 20px;
}
.featured-side article {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.08);
}
.featured-side .thumb img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.featured-side .content {
  padding: 18px 20px 20px;
}
.featured-side h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}
.content-area {
  padding: 42px 0 70px;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 24px;
}
.post-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.post-card-body {
  padding: 22px;
}
.post-card h2,
.post-card h3 {
  margin: 10px 0 12px;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.excerpt { color: var(--muted); }
.button-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 700;
}
.section-title {
  margin: 0 0 22px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}
.sidebar {
  display: grid;
  gap: 22px;
  align-content: start;
}
.sidebar-card {
  padding: 22px;
}
.sidebar-card h3,
.widget-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.widget li:last-child { border-bottom: 0; }
.widget_search input[type="search"],
.search-form input[type="search"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 1rem;
}
button,
input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: var(--white);
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}
.single-card,
.page-card {
  padding: 28px;
}
.entry-title,
.page-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.entry-content p,
.page-content p { margin: 0 0 1.15em; }
.entry-content h2,
.page-content h2,
.entry-content h3,
.page-content h3 {
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.entry-content { font-size: 1.06rem; }
.archive-header {
  margin-bottom: 26px;
}
.archive-title {
  margin: 0 0 8px;
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
}
.pagination {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
}
.pagination .current {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}
.site-footer {
  background: #0b1020;
  color: rgba(255,255,255,0.8);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
@media (max-width: 1024px) {
  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }
  .posts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .header-inner,
  .main-navigation ul,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero { padding-top: 28px; }
  .featured-main { min-height: 360px; }
  .featured-main-content { padding: 24px; }
  .posts-grid { grid-template-columns: 1fr; }
  .single-card,
  .page-card { padding: 22px; }
}
