/* Ziertech — light, emerald-accented, sleek. */

:root {
  --zt-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --zt-shadow-sm: 0 1px 2px rgba(10, 20, 40, 0.04);
  --zt-shadow-md: 0 8px 24px -12px rgba(16, 185, 129, 0.25);
  --zt-shadow-lg: 0 24px 48px -24px rgba(16, 185, 129, 0.30);
}

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--wp--preset--color--accent); color: #fff; }

a { transition: color 150ms var(--zt-ease); }

/* ------------- Header ------------- */

.zt-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.zt-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--wp--preset--color--text);
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.zt-brand:hover { color: var(--wp--preset--color--accent-2); }

.zt-brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.zt-brand-sub {
  color: var(--wp--preset--color--muted);
  font-weight: 500;
}

/* ------------- Buttons ------------- */

.wp-block-button__link {
  transition: background 180ms var(--zt-ease), color 180ms var(--zt-ease),
              transform 180ms var(--zt-ease), box-shadow 180ms var(--zt-ease);
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.10);
}
.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(16, 185, 129, 0.45);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--wp--preset--color--text) !important;
  border: 1px solid var(--wp--preset--color--border) !important;
  box-shadow: none;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--wp--preset--color--accent) !important;
  color: var(--wp--preset--color--accent-2) !important;
}

/* Header pill CTA — slightly smaller, rounded */
.zt-cta-pill .wp-block-button__link {
  border-radius: 999px !important;
}

/* ------------- Hero ------------- */

.zt-hero {
  text-align: left;
}
.zt-hero h1 {
  margin: 0.5rem 0 1rem;
  max-width: 18ch;
}
.zt-hero .zt-lede {
  max-width: 50ch;
  margin: 0;
}
.zt-eyebrow { margin: 0 0 0.5rem; }

/* ------------- Post list ------------- */

.zt-section-eyebrow {
  margin: 0 0 var(--wp--preset--spacing--50);
}

.zt-post-list .wp-block-post-template {
  list-style: none;
  padding: 0;
  margin: 0;
}
.zt-post-list .wp-block-post-template > li {
  padding: var(--wp--preset--spacing--60) 0;
  border-bottom: 1px solid var(--wp--preset--color--border);
  list-style: none;
}
.zt-post-list .wp-block-post-template > li:last-child {
  border-bottom: 0;
}

.zt-post-row { gap: 0.4rem; }

.zt-post-date,
.zt-post-date * {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.75rem;
  color: var(--wp--preset--color--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 !important;
}

.zt-post-title { margin: 0 !important; transition: color 180ms var(--zt-ease); }
.zt-post-title a { text-decoration: none !important; color: var(--wp--preset--color--text); }
.zt-post-title a:hover { color: var(--wp--preset--color--accent-2); }

.zt-post-excerpt,
.zt-post-excerpt * {
  color: var(--wp--preset--color--muted) !important;
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0.25rem 0 0 !important;
}
.zt-post-excerpt .wp-block-post-excerpt__more-link {
  color: var(--wp--preset--color--accent-2) !important;
  font-weight: 600;
  margin-left: 0.25rem;
}

/* ------------- Inline code ------------- */

:not(pre) > code {
  font-family: var(--wp--preset--font-family--mono);
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 4px;
  padding: 0.125rem 0.375rem;
  font-size: 0.9em;
  color: var(--wp--preset--color--accent-dk);
}

/* ------------- Pagination ------------- */

.wp-block-query-pagination {
  margin-top: var(--wp--preset--spacing--60);
  gap: 0.5rem;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.875rem;
}
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
  border: 1px solid var(--wp--preset--color--border);
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  color: var(--wp--preset--color--text);
  text-decoration: none;
}
.wp-block-query-pagination a:hover,
.wp-block-query-pagination .page-numbers.current {
  border-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent-2);
}

/* ------------- CTA card ------------- */

.zt-cta-card {
  background: linear-gradient(180deg, #F6FFFD 0%, #CEFBF1 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.18);
  box-shadow: var(--zt-shadow-sm), var(--zt-shadow-md);
}
.zt-cta-card h2 { max-width: 22ch; }
.zt-cta-card > .wp-block-buttons { margin-top: var(--wp--preset--spacing--50); }

/* ------------- Featured image ------------- */
.wp-block-post-featured-image img {
  border-radius: 14px;
  border: 1px solid var(--wp--preset--color--border);
}

/* ------------- Footer ------------- */
.zt-footer {
  border-top: 1px solid var(--wp--preset--color--border);
}

/* ------------- Mobile ------------- */
@media (max-width: 600px) {
  .zt-brand-sub { display: none; }
  .wp-block-navigation { display: none; }
}
