/* Definitely Filipino — minimalist flex layout */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #2d3748;
  background: #fff;
}

a { color: #3182ce; text-decoration: none; }
a:hover { color: #2b6cb0; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #edf2f7;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  gap: 16px;
}

.site-logo a { display: flex; align-items: center; }
.site-logo__text {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: -0.02em;
}
.site-logo__text:hover { color: #3182ce; }

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 4px;
}

.site-nav__list a {
  display: block;
  padding: 10px 16px;
  color: #4a5568;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
}

.site-nav__list a:hover { color: #3182ce; background: #f7fafc; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 32px;
  padding: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span { display: block; height: 2px; background: #4a5568; }
.nav-overlay { display: none; }

.page-main {
  min-height: 60vh;
  padding: 32px 0 48px;
}

.page-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 8px;
}

.page-header h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.3;
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-content--wide { max-width: 1100px; }

.post-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-card {
  padding-bottom: 28px;
  border-bottom: 1px solid #edf2f7;
}

.post-card:last-child { border-bottom: none; padding-bottom: 0; }

.post-card__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
}

.post-card__title a { color: #1a202c; }
.post-card__title a:hover { color: #3182ce; }

.post-card__meta {
  margin: 0 0 10px;
  font-size: 14px;
  color: #718096;
}

.post-card__excerpt { margin: 0; color: #4a5568; }

.post-card__more { margin: 12px 0 0; font-size: 15px; font-weight: 500; }

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #edf2f7;
}

.pagination a, .pagination span {
  padding: 8px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 14px;
}

.pagination span { background: #f7fafc; color: #718096; }

.blog-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-card {
  padding: 20px;
  border: 1px solid #edf2f7;
  border-radius: 6px;
}

.blog-title { margin: 0 0 8px; font-size: 1.15rem; }
.blog-title a { color: #1a202c; }
.blog-preview p { margin: 0; color: #4a5568; font-size: 15px; }

.blog-page-title {
  max-width: 1100px;
  margin: 0 auto 24px;
  padding: 0 20px;
  font-size: 1.75rem;
  color: #1a202c;
}

.site-footer {
  background: #1a202c;
  color: #e2e8f0;
  margin-top: auto;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px;
  text-align: center;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.site-footer__nav a { color: #e2e8f0; font-size: 14px; }
.site-footer__nav a:hover { color: #fff; }

.site-footer__copy { margin: 0; font-size: 14px; color: #a0aec0; }

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

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 85vw);
    height: 100vh;
    padding: 72px 20px 24px;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 200;
  }

  .site-nav.is-open { transform: translateX(0); }

  .site-nav__list { flex-direction: column; align-items: stretch; }
  .site-nav__list a { padding: 14px 12px; }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 150;
  }

  body.nav-open { overflow: hidden; }
}
