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

/* Base Typography */
body {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  background: #fff;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5em;
}

h1 { font-size: 1.8em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.25em; }

a { color: #21759b; text-decoration: none; }
a:hover { color: #333; }

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

/* Layout */
.wrap {
  max-width: 750px;
  margin: 0 auto;
  padding: 0 1.5em;
}

.site-content {
  padding: 2em 0;
}

/* Header & Hero */
.custom-header {
  position: relative;
}

.custom-header-media {
  overflow: hidden;
  max-height: 400px;
}

.custom-header-media img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.site-branding {
  background: rgba(0, 0, 0, 0.5);
  padding: 1em 0;
}

.site-branding .wrap {
  display: flex;
  align-items: center;
  gap: 1em;
}

.custom-logo-link {
  flex-shrink: 0;
}

.custom-logo {
  display: block;
  width: 80px;
  height: auto;
}

.site-title {
  font-size: 1.5em;
  font-weight: 700;
  margin: 0;
}

.site-title a {
  color: #fff;
  text-decoration: none;
}

.site-description {
  color: #ddd;
  font-size: 0.9em;
  margin: 0;
}

/* Navigation */
.navigation-top {
  background: #222;
}

.navigation-top .wrap {
  max-width: 750px;
}

.main-navigation {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.9em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.8em 1.5em;
  cursor: pointer;
}

.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.menu-item a {
  display: block;
  padding: 0.8em 1em;
  color: #fff;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}

.menu-item a:hover,
.current-menu-item a {
  color: #21759b;
  background: rgba(255, 255, 255, 0.05);
}

/* Content */
.entry-header {
  margin-bottom: 1.5em;
}

.entry-content p {
  margin-bottom: 1.2em;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.2em 1.5em;
}

.entry-content li {
  margin-bottom: 0.3em;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
}

.entry-content th,
.entry-content td {
  border: 1px solid #ddd;
  padding: 0.5em 0.75em;
  text-align: left;
}

.entry-content th {
  background: #f5f5f5;
  font-weight: 600;
}

.entry-content figure {
  margin: 1.2em 0;
}

.entry-content figure img {
  display: block;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  max-width: 750px;
  margin: 1em 0;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* Footer */
.site-footer {
  background: #222;
  color: #999;
  padding: 1.5em 0;
  margin-top: 2em;
  font-size: 0.85em;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .menu-wrap {
    display: none;
    width: 100%;
  }

  .menu-wrap.is-open {
    display: block;
  }

  .main-navigation {
    flex-wrap: wrap;
  }

  .menu {
    flex-direction: column;
    width: 100%;
  }

  .menu-item a {
    padding: 0.6em 1.5em;
    border-top: 1px solid #333;
  }

  .site-branding .wrap {
    flex-direction: column;
    text-align: center;
  }

  .custom-header-media img {
    height: 200px;
  }

  .site-title {
    font-size: 1.2em;
  }

  h1 { font-size: 1.4em; }
}
