/* Securitae — dark navy, blue/violet brand gradient. */

:root {
  color-scheme: dark;
  --zt-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --brand-grad: linear-gradient(135deg, #6E6FFF 0%, #5A86FF 50%, #3DAAFF 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(110,111,255,0.18) 0%, rgba(61,170,255,0.10) 100%);
  --zt-shadow-md: 0 12px 32px -16px rgba(90, 134, 255, 0.45);
}

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  background: var(--wp--preset--color--bg);
}

::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(11, 23, 54, 0.65);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.zt-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--wp--preset--color--text);
  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;
}

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

/* ------------- 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(90, 134, 255, 0.20);
}
.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(90, 134, 255, 0.55);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--wp--preset--color--text) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !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;
}

.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: 52ch;
  margin: 0;
}
.zt-eyebrow { margin: 0 0 0.5rem; }

.zt-h1-grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Subtle ambient brand glow behind hero */
.zt-hero {
  position: relative;
  isolation: isolate;
}
.zt-hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 65%;
  background: radial-gradient(ellipse 60% 70% at 30% 20%, rgba(110,111,255,0.20), transparent 70%),
              radial-gradient(ellipse 50% 60% at 80% 10%, rgba(61,170,255,0.15), transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(20px);
}

/* ------------- 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--success);
}
pre code {
  text-shadow: 0 0 12px rgba(1, 232, 123, 0.08);
}

/* ------------- 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: var(--brand-grad-soft), var(--wp--preset--color--surface) !important;
  border: 1px solid rgba(110, 111, 255, 0.20);
  box-shadow: var(--zt-shadow-md);
  position: relative;
  overflow: hidden;
}
.zt-cta-card::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 100%;
  background: radial-gradient(ellipse, rgba(110,111,255,0.25), transparent 70%);
  pointer-events: none;
}
.zt-cta-card h2 { max-width: 22ch; }
.zt-cta-card > .wp-block-buttons { margin-top: var(--wp--preset--spacing--50); position: relative; z-index: 1; }

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

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