:root {
  --color-primary: #4D9DA8;
  --color-accent: #E43131;
  --color-background: #fcf1d7;
  --color-text: #1A3A41;
  --color-text-secondary: #4A4A4A;
  --color-heading: var(--color-primary);
  --color-link: var(--color-primary);
  --color-border: var(--color-accent);
  --color-header-bg: var(--color-primary);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
}

p, ul {
  margin-bottom: 1em;
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

ul {
  list-style-type: disc;
  padding-left: 2em;
}
ul li {
  margin-bottom: 0.5em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Space Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

a {
  color: var(--color-link);
  text-decoration: underline;
  transition: all 0.3s ease;
}
a:hover {
  color: var(--color-accent);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-header-bg);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
}
.site-header ul {
  margin-bottom: 0;
}
.site-header ul li {
  margin-bottom: 0;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.main-nav .logo {
  font-size: 1.75rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--color-background);
}
.main-nav .nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
@media (max-width: 768px) {
  .main-nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-background);
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav .nav-links.active {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
.main-nav .nav-links a {
  color: var(--color-accent);
  text-decoration: none;
  transition: all 0.3s ease;
}
.main-nav .nav-links a:hover {
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-background);
  margin: 4px 0;
  transition: all 0.15s ease;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 3px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.post-preview {
  background: var(--color-background);
  border-radius: 0.5rem;
  padding: 1rem;
  transition: all 0.3s ease;
  border: 1px solid var(--color-border);
}
.post-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.post-preview h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.post-preview h2 a {
  color: var(--color-text);
  text-decoration: none;
}
.post-preview h2 a:hover {
  color: var(--color-accent);
}
.post-preview .post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}
.post-preview .post-meta .post-categories {
  display: flex;
  gap: 0.5rem;
}
.post-preview .post-meta .post-categories .category {
  background: var(--color-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.8em;
}
.post-preview .post-description {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 1rem;
}
.post-preview .post-preview-image {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.post {
  max-width: var(--wp--style--global--content-size);
  margin: 0 auto;
  padding: 2rem 0;
}
.post .post-header {
  margin-bottom: 3rem;
  text-align: center;
}
.post .post-header .wp-block-post-title {
  font-size: min(max(3rem, 7vw), 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1em;
}
.post .post-header .post-meta {
  color: var(--color-text-secondary);
  font-size: var(--wp--preset--font-size--small);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.post .post-header .post-meta .post-categories {
  display: flex;
  gap: 0.5rem;
}
.post .post-header .post-meta .post-categories .category {
  background: var(--color-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.8em;
}
.post .wp-block-post-featured-image {
  margin: 0 0 1em;
}
.post .wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.post .wp-block-post-content h2, .post .wp-block-post-content h3, .post .wp-block-post-content h4 {
  margin: 2rem 0 1rem;
}
.post .wp-block-post-content h2 {
  font-size: min(max(2.25rem, 5vw), 4rem);
  font-weight: 900;
  line-height: 1.2;
}
.post .wp-block-post-content h3 {
  font-size: min(max(1.875rem, 5vw), 3rem);
  font-weight: 900;
  line-height: 1.3;
}
.post .wp-block-post-content h4 {
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}
.post .wp-block-post-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}
.post .wp-block-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}
.post .wp-block-post-content img.align-left {
  float: left;
  margin-right: 2rem;
  margin-bottom: 1rem;
  max-width: 40%;
}
.post .wp-block-post-content img.align-right {
  float: right;
  margin-left: 2rem;
  margin-bottom: 1rem;
  max-width: 40%;
}
.post .wp-block-post-content img.full-width {
  width: 100%;
}
.post .wp-block-post-content::after {
  content: "";
  display: table;
  clear: both;
}
.post .wp-block-post-content pre {
  background: #f6f6f6;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875rem;
  margin: 1rem 0;
}
.post .wp-block-post-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
}
.post .post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
}
.post .post-footer .post-tags {
  margin-bottom: 1rem;
}
.post .post-footer .post-tags .tag {
  color: var(--color-text-secondary);
  font-size: var(--wp--preset--font-size--small);
  margin-right: 0.5rem;
  text-decoration: none;
}
.post .post-footer .post-tags .tag:hover {
  color: var(--color-accent);
}
.post .post-footer .post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}
.post .post-footer .post-navigation a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: all 0.3s ease;
}
.post .post-footer .post-navigation a:hover {
  color: var(--color-accent);
}
.post .post-footer .post-navigation a.prev-post {
  text-align: left;
}
.post .post-footer .post-navigation a.next-post {
  text-align: right;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
  color: var(--color-text-secondary);
  text-align: center;
}
.site-footer p {
  font-size: 0.8em;
  margin: 0 auto 1em;
  max-width: 400px;
}
.site-footer .analytics {
  font-size: 1em;
  font-style: italic;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  padding: 1rem;
}
.lightbox.active {
  display: flex;
  justify-content: center;
  align-items: center;
}
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: white;
  font-size: 2.25rem;
  cursor: pointer;
}

.feature-image {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
}
.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
  margin-top: 1.5rem;
}

h4 {
  font-size: 1.125rem;
  margin-top: 1.25rem;
}

:root {
  --wp--preset--font-size--small: 1rem;
  --wp--preset--font-size--medium: 1.5rem;
  --wp--preset--font-size--large: min(max(1.75rem, 5vw), 2.25rem);
  --wp--preset--font-size--x-large: min(max(2.25rem, 5vw), 3rem);
  --wp--style--global--content-size: 684px;
  --wp--style--global--wide-size: 1160px;
}