:root {
  --ap-bg: #07111f;
  --ap-bg-soft: #0d1b2f;
  --ap-bg-deep: #050d18;
  --ap-surface: #10233d;
  --ap-surface-2: #132944;
  --ap-surface-3: #0f223a;
  --ap-card: rgba(16, 35, 61, 0.82);
  --ap-primary: #d7a53a;
  --ap-primary-hover: #bf8e28;
  --ap-primary-soft: rgba(215, 165, 58, 0.12);
  --ap-text: #f8fafc;
  --ap-heading: #ffffff;
  --ap-muted: #b4c2d3;
  --ap-border: rgba(255, 255, 255, 0.08);
  --ap-border-strong: rgba(255, 255, 255, 0.14);
  --ap-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --ap-radius: 20px;
  --ap-radius-sm: 14px;
  --ap-radius-lg: 28px;
  --ap-max: 1240px;
  --ap-transition: 0.25s ease;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ap-text);
  background:
    radial-gradient(circle at top left, rgba(215, 165, 58, 0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(65, 111, 173, 0.16), transparent 30%),
    linear-gradient(180deg, var(--ap-bg) 0%, #091626 52%, #0b1830 100%);
  line-height: 1.7;
}

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

a:hover {
  color: inherit;
}

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

.site {
  min-height: 100vh;
}

.site-container {
  width: min(var(--ap-max), calc(100% - 40px));
  margin-inline: auto;
}

.site-main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.75rem;
  color: var(--ap-heading);
  line-height: 1.15;
}

p {
  margin: 0 0 1rem;
  color: var(--ap-muted);
}

ul, ol {
  margin: 0 0 1rem 1.25rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.screen-reader-text:focus {
  top: 1rem;
  left: 1rem;
  z-index: 100000;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #111827;
  border-radius: 0.5rem;
}

.page-shell,
.post-card,
.widget {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow);
  backdrop-filter: blur(8px);
}

.page-shell,
.post-card {
  padding: 2rem;
}

.narrow-container {
  max-width: 860px;
}

.center-text {
  text-align: center;
}

.content-main {
  padding: 4rem 0 5rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
}

.no-sidebar .content-grid {
  grid-template-columns: minmax(0, 1fr);
}

.entry-title a {
  color: var(--ap-heading);
}

.entry-title a:hover {
  color: var(--ap-primary);
}

.entry-content > *:last-child,
.entry-summary > *:last-child,
.widget > *:last-child {
  margin-bottom: 0;
}

.widget {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.widget-title,
.entry-meta {
  color: var(--ap-muted);
}

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