/* Holistic Magnified — classic blog templates
   Colors / type match the Next.js front end. */

:root {
  --hm-cream: #f9f5ea;
  --hm-card: #faf6f0;
  --hm-border: #ebe6df;
  --hm-dark: #321b07;
  --hm-ink: #251f15;
  --hm-brown: #84511d;
  --hm-brown-deep: #5b340d;
  --hm-muted: #8c7a6b;
  --hm-gold: #aa8f09;
  --hm-sand: #f8cd99;
  --hm-white: #ffffff;
  --font-public: "Public Sans", system-ui, sans-serif;
  --font-stix: "STIX Two Text", Georgia, "Times New Roman", serif;
}

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

body.hm-site {
  margin: 0;
  background: var(--hm-white);
  color: var(--hm-dark);
  font-family: var(--font-public);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--hm-brown);
  text-decoration: none;
}

a:hover {
  color: var(--hm-brown-deep);
}

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

/* —— Header —— */
.hm-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hm-border);
}

.hm-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.hm-header__nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.hm-header__nav a {
  color: var(--hm-dark);
  font-size: 15px;
  font-weight: 300;
}

.hm-header__nav a.is-active,
.hm-header__nav a:hover {
  font-weight: 700;
}

.hm-header__logo {
  justify-self: center;
}

.hm-header__logo img {
  max-height: 40px;
  width: auto;
}

.hm-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.hm-header__action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--hm-ink);
  font-size: 14px;
  font-weight: 400;
  transition: opacity 0.2s;
  text-decoration: none;
}

.hm-header__action-link:hover {
  opacity: 0.7;
  color: var(--hm-ink);
}

.hm-header__action-link svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

/* Labels only show on large screens (matches Next.js lg:inline) */
.hm-header__action-label {
  display: none;
  font-size: 15px;
}

.hm-header__menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--hm-brown);
  cursor: pointer;
  padding: 10px;
}

.hm-header__menu-btn span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.hm-header__mobile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1.25rem 1.25rem;
  background: var(--hm-cream);
  border-bottom: 1px solid var(--hm-border);
}

.hm-header__mobile[hidden] {
  display: none !important;
}

.hm-header__mobile a {
  color: var(--hm-dark);
  font-size: 15px;
  font-weight: 500;
  padding: 0.5rem 0;
}

@media (min-width: 768px) {
  .hm-header__nav {
    display: flex;
  }

  .hm-header__menu-btn,
  .hm-header__mobile {
    display: none !important;
  }

  .hm-header__inner {
    padding: 1.25rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .hm-header__action-label {
    display: inline;
  }
}

/* —— Blog layout —— */
.hm-blog {
  min-height: 60vh;
}

.hm-blog-hero {
  background: var(--hm-cream);
  border-radius: 0 0 24px 24px;
  margin: 0 10px;
  padding: 3rem 1.25rem 2.5rem;
}

.hm-blog-hero--list {
  margin-bottom: 2rem;
}

.hm-blog-hero__inner {
  max-width: 720px;
  margin: 0 auto;
}

.hm-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hm-gold);
}

.hm-blog-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-stix);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--hm-ink);
}

.hm-blog-meta,
.hm-blog-lede {
  margin: 0;
  color: var(--hm-muted);
  font-size: 14px;
  font-weight: 300;
}

.hm-blog-lede {
  font-size: 16px;
  max-width: 52ch;
  line-height: 1.6;
}

.hm-dot {
  margin: 0 0.4rem;
}

.hm-cats a {
  color: var(--hm-brown);
}

.hm-blog-featured {
  max-width: 920px;
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
}

.hm-blog-featured img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  max-height: 480px;
}

.hm-blog-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1rem;
  font-size: 16px;
  color: var(--hm-dark);
  font-weight: 300;
}

.hm-blog-content > *:first-child {
  margin-top: 0;
}

.hm-blog-content h2,
.hm-blog-content h3 {
  font-family: var(--font-stix);
  font-weight: 500;
  color: var(--hm-ink);
  margin: 2rem 0 0.75rem;
}

.hm-blog-content p,
.hm-blog-content ul,
.hm-blog-content ol {
  margin: 0 0 1.15rem;
}

.hm-blog-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hm-blog-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--hm-brown);
  background: var(--hm-cream);
  border-radius: 0 12px 12px 0;
  color: var(--hm-brown-deep);
  font-family: var(--font-stix);
  font-style: italic;
}

.hm-blog-content img {
  border-radius: 12px;
}

.hm-blog-foot {
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 0 1.25rem 2rem;
  border-top: 1px solid var(--hm-border);
  padding-top: 1.5rem;
}

.hm-blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hm-blog-tags a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--hm-cream);
  border: 1px solid var(--hm-border);
  color: var(--hm-brown);
  font-size: 12px;
  font-weight: 600;
}

.hm-blog-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 14px;
}

.hm-blog-nav__next {
  text-align: right;
}

.hm-blog-back a {
  font-size: 14px;
  font-weight: 600;
  color: var(--hm-dark);
}

/* —— List / cards —— */
.hm-blog-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.hm-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .hm-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hm-blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hm-card {
  margin: 0;
  background: var(--hm-white);
  border: 1px solid var(--hm-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hm-card:hover {
  border-color: #d9c9b0;
  transform: translateY(-2px);
}

.hm-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.hm-card__media {
  margin: 0;
  aspect-ratio: 16 / 10;
  background: var(--hm-cream);
  overflow: hidden;
}

.hm-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hm-card__media--empty {
  background: linear-gradient(135deg, var(--hm-cream), #f0e6d4);
}

.hm-card__body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.hm-card__meta {
  margin: 0;
  font-size: 12px;
  color: var(--hm-muted);
}

.hm-card__title {
  margin: 0;
  font-family: var(--font-stix);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--hm-brown);
}

.hm-card:hover .hm-card__title {
  color: var(--hm-brown-deep);
}

.hm-card__excerpt {
  margin: 0;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--hm-muted);
  line-height: 1.5;
  flex: 1;
}

.hm-card__cta {
  margin-top: 0.5rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--hm-dark);
}

.hm-blog-empty {
  text-align: center;
  color: var(--hm-muted);
  padding: 3rem 1rem;
}

.hm-pagination {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.hm-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.hm-pagination a,
.hm-pagination span {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--hm-border);
  font-size: 13px;
  color: var(--hm-dark);
  background: var(--hm-white);
}

.hm-pagination .current {
  background: var(--hm-cream);
  border-color: #e5d0a6;
  font-weight: 600;
}

/* —— Footer —— */
.hm-footer {
  padding: 10px;
  background: var(--hm-white);
}

.hm-footer__panel {
  background: var(--hm-brown-deep);
  color: #f9f5ea;
  border-radius: 24px;
  padding: 2.5rem 1.5rem 1.5rem;
}

.hm-footer__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .hm-footer__panel {
    padding: 3.5rem 2.5rem 1.75rem;
  }

  .hm-footer__grid {
    grid-template-columns: 1.2fr 1.8fr;
    gap: 3rem;
  }
}

.hm-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hm-footer__logo img {
  width: 48px;
  height: 48px;
}

.hm-footer__logo strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hm-footer__logo em {
  display: block;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hm-sand);
  font-weight: 500;
}

.hm-footer__brand p {
  margin: 0 0 1.5rem;
  max-width: 42ch;
  font-size: 14px;
  font-weight: 300;
  color: rgba(244, 234, 211, 0.9);
  line-height: 1.6;
}

.hm-footer__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, #b2926a, #f8cd99, #b2926b);
  color: #482400 !important;
  font-size: 14px;
  font-weight: 600;
}

.hm-footer__email {
  color: #fff9f0 !important;
  font-size: 14px;
  font-weight: 600;
}

.hm-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1.25rem;
}

@media (min-width: 768px) {
  .hm-footer__cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hm-footer__cols h3 {
  margin: 0 0 0.85rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hm-sand);
}

.hm-footer__cols a {
  display: block;
  color: rgba(249, 245, 234, 0.9);
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 0.55rem;
}

.hm-footer__cols a:hover {
  color: #fff;
}

.hm-footer__disclaimer {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  font-size: 12px;
  font-weight: 300;
  color: #f7f5f3;
  line-height: 1.55;
  max-width: 70ch;
}

.hm-footer__bar {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(244, 234, 211, 0.2);
  font-size: 12px;
  color: rgba(244, 234, 211, 0.8);
}

.hm-footer__bar p {
  margin: 0;
}

.hm-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.65rem;
  margin-top: 0.75rem;
  font-size: 12px;
  color: rgba(244, 234, 211, 0.8);
}

.hm-footer__legal a {
  color: inherit;
}

.hm-footer__legal a:hover {
  color: #ffffff;
}

.hm-footer__legal-sep {
  opacity: 0.7;
}

@media (min-width: 768px) {
  .hm-footer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .hm-footer__legal {
    margin-top: 0;
  }
}

/* —— Static pages (page.php) —— */
.hm-page-hero {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(248, 205, 153, 0.35), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(170, 143, 9, 0.12), transparent 50%),
    var(--hm-cream);
}

.hm-page-eyebrow {
  margin-bottom: 1rem;
}

.hm-page-eyebrow__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(89deg, #b2926a 0%, #f8cd99 50%, #b2926b 100%);
  color: var(--hm-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hm-page-title__accent {
  font-style: italic;
  font-weight: 500;
  color: var(--hm-brown);
}

.hm-page-content a {
  color: var(--hm-brown);
}

.hm-page-content a:hover {
  color: var(--hm-brown-deep);
}

.hm-page-content blockquote {
  border-left-color: var(--hm-gold);
}

.hm-page-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0 0;
  font-size: 14px;
  font-weight: 600;
}

.hm-page-pagination__label {
  color: var(--hm-muted);
  font-weight: 400;
  margin-right: 0.25rem;
}

.hm-page-pagination a {
  color: var(--hm-brown);
}

