/* ==========================================================================
   WordPress: inner pages, posts, menus and admin bar
   ========================================================================== */

/* Admin bar offset for the fixed header */
.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* Current menu item from WordPress menus */
.site-nav .current-menu-item > a:not([href*="#"]) {
  color: var(--bronze-2);
}

/* Page banner ------------------------------------------------------------ */
.page-banner {
  position: relative;
  overflow: hidden;
  padding: 11rem 0 4.5rem;
  background: var(--ink);
  color: #fff;
}

.page-banner-bg {
  position: absolute;
  inset: 0;
}

.page-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.page-banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(22, 23, 20, 0.95), rgba(22, 23, 20, 0.6));
}

.page-banner .container {
  position: relative;
}

.page-banner h1 {
  margin: 1rem 0 1.2rem;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 900;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.breadcrumbs a:hover {
  color: var(--bronze-2);
}

/* Page content ----------------------------------------------------------- */
.container-narrow {
  max-width: 900px;
}

.entry-thumb img {
  width: 100%;
  height: auto;
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
}

.entry-content {
  font-size: 1.06rem;
}

.entry-content > * + * {
  margin-top: 1.2rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2.2rem;
}

.entry-content h3 {
  font-size: 1.5rem;
}

.entry-content a {
  color: var(--bronze-deep);
  text-decoration: underline;
}

.entry-content ul,
.entry-content ol {
  padding-inline-start: 1.4rem;
}

.entry-content ul {
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content img {
  height: auto;
  border-radius: var(--radius);
}

.entry-content blockquote {
  padding: 1.2rem 1.5rem;
  border-inline-start: 3px solid var(--bronze);
  border-radius: var(--radius);
  background: var(--paper);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 0.7rem;
  border: 1px solid var(--line);
}

.alignleft {
  float: left;
  margin: 0 0 1rem 1.5rem;
}

.alignright {
  float: right;
  margin: 0 1.5rem 1rem 0;
}

.aligncenter {
  margin-inline: auto;
}

.wp-caption-text,
figcaption {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Posts grid ------------------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.post-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.post-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card-body {
  padding: 1.6rem;
}

.post-card-body small {
  color: var(--bronze);
  font-weight: 700;
}

.post-card-body h2 {
  margin: 0.4rem 0 0.7rem;
  font-size: 1.3rem;
}

.post-card-body p {
  margin-bottom: 1.2rem;
  color: var(--muted);
}

.pagination,
.post-navigation {
  margin-top: 3rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.post-navigation .nav-links {
  justify-content: space-between;
}

.post-navigation small {
  display: block;
  color: var(--bronze);
  font-weight: 700;
}

.page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 0.9rem;
  border-radius: 999px;
  background: var(--paper);
  font-weight: 700;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--ink);
  color: #fff;
}

/* Empty state / 404 ------------------------------------------------------ */
.empty-state {
  text-align: center;
}

.empty-state p {
  margin-bottom: 2rem;
  color: var(--muted);
}

.empty-state .hero-actions {
  justify-content: center;
}

.search-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.search-form input[type="search"] {
  min-width: 260px;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font: inherit;
}

.search-form input[type="submit"] {
  padding: 0.8rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Comments --------------------------------------------------------------- */
.comments-area {
  margin-top: 3rem;
}

.comment-list {
  margin: 1.5rem 0;
}

.comment-body {
  margin-bottom: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius);
  background: var(--paper);
}

.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font: inherit;
}

.comment-form .submit {
  padding: 0.8rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--bronze);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Projects: info as a link */
a.project-info {
  color: inherit;
}
