/*!
 * Glory Theme — Generic pages / 404 / default editor content
 */

.glory-section{
  padding-block: clamp(2rem, 5vw, 4rem);
}

.glory-page,
.glory-empty-state{
  max-width: min(52rem, 100%);
  margin-inline: auto;
}

.glory-entry-header{
  margin-bottom: 1.25rem;
}

.glory-entry-title{
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--glory-title-color, var(--glory-heading-color, var(--text)));
}

.glory-muted{
  color: var(--glory-text-color, var(--muted));
  font-size: clamp(0.9375rem, 1.4vw, 1rem);
  line-height: 1.65;
}

.glory-entry-content{
  color: var(--glory-text-color, var(--text));
  line-height: 1.75;
}

.glory-entry-content > * + *{
  margin-block-start: 1.2em;
}

.glory-entry-content h2,
.glory-entry-content h3,
.glory-entry-content h4{
  color: var(--glory-heading-color, var(--text));
  line-height: 1.25;
}

.glory-entry-content h2{ font-size: clamp(1.4rem, 3vw, 1.9rem); }
.glory-entry-content h3{ font-size: clamp(1.15rem, 2.4vw, 1.45rem); }
.glory-entry-content h4{ font-size: clamp(1rem, 2vw, 1.15rem); }

.glory-entry-content p,
.glory-entry-content li,
.glory-entry-content blockquote,
.glory-entry-content figcaption,
.glory-entry-content td,
.glory-entry-content th{
  color: var(--glory-text-color, var(--text));
}

.glory-entry-content a{
  color: var(--glory-link-color, var(--brand));
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.glory-entry-content blockquote{
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-inline-start: 4px solid var(--brand);
  background: rgba(8,77,59,.05);
  border-radius: var(--radius-sm);
}
html[data-theme="dark"] .glory-entry-content blockquote{
  background: rgba(52,211,153,.08);
}

.glory-entry-content pre,
.glory-entry-content code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.glory-entry-content pre{
  overflow: auto;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(15,23,42,.04);
}
html[data-theme="dark"] .glory-entry-content pre{
  background: rgba(230,232,239,.06);
}

.glory-entry-content table{
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.glory-entry-content th,
.glory-entry-content td{
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  text-align: start;
}

.glory-entry-content img,
.glory-entry-content iframe,
.glory-entry-content video{
  max-width: 100%;
  border-radius: var(--radius-sm);
}

.glory-entry-content .wp-block-image,
.glory-entry-content .wp-block-embed,
.glory-entry-content .wp-block-gallery{
  margin: 1.4rem 0;
}

.glory-empty-state{
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow2);
}

.glory-empty-state .search-form,
.search-form{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  max-width: 36rem;
  margin: 1.25rem auto 0;
}

.search-form label{
  min-width: 0;
}

.search-form .search-field{
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
}

.search-form .search-submit{
  min-height: 44px;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  cursor: pointer;
}

@media (max-width: 520px){
  .glory-section{
    padding-block: 1.5rem 2.25rem;
  }

  .glory-empty-state .search-form,
  .search-form{
    grid-template-columns: 1fr;
  }
}
