:root {
  --agti-ink: #0b1120;
  --agti-navy: #152033;
  --agti-teal: #63baa8;
  --agti-teal-deep: #087f6a;
  --agti-surface: #f7f8fa;
  --agti-text: #152033;
  --agti-muted: #5b677a;
  --agti-line: #e4e8ee;
}

body,
button,
input,
select,
textarea,
.wp-site-blocks,
.wp-block-post-title,
.wp-block-query-title,
.wp-block-post-excerpt,
.wp-block-post-date,
.wp-block-post-author-name {
  color: var(--agti-text);
  background: var(--agti-surface);
  font-family: Inter, "Open Sans", system-ui, sans-serif !important;
}

a { color: var(--agti-teal-deep); }
a:hover { color: var(--agti-teal); }

.wp-site-blocks h1,
.wp-site-blocks h2,
.wp-site-blocks h3,
.wp-site-blocks h4,
.wp-site-blocks h5,
.wp-site-blocks h6 {
  font-family: Inter, "Open Sans", system-ui, sans-serif !important;
  font-weight: 800;
  letter-spacing: -.035em;
}

.agti-site-header,
.agti-site-footer {
  color: #fff;
  background: var(--agti-ink);
}

.agti-site-header {
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.agti-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.agti-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 72px;
}

.agti-wordmark {
  color: #fff !important;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.08em;
  text-decoration: none;
}

.agti-wordmark span { color: var(--agti-teal); }

.agti-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .25rem 1.35rem;
}

.agti-nav a {
  color: rgba(226,232,240,.88) !important;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.agti-nav a:hover,
.agti-nav a[aria-current="page"] { color: var(--agti-teal) !important; }

.agti-nav .agti-contact {
  padding: .55rem .9rem;
  border-radius: 4px;
  color: #fff !important;
  background: var(--agti-teal-deep);
}

.agti-nav .agti-contact:hover {
  color: #fff !important;
  background: #066755;
}

.agti-blog-hero {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  color: #fff;
  background: radial-gradient(circle at 84% 0%, rgba(99,186,168,.12), transparent 45%), linear-gradient(145deg, var(--agti-ink), var(--agti-navy));
}

.agti-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--agti-teal);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.agti-blog-hero h1,
.agti-post-hero h1 {
  max-width: 800px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-family: Inter, "Open Sans", system-ui, sans-serif !important;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
}

.agti-blog-hero p {
  max-width: 640px;
  margin: 1.25rem 0 0;
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1.7;
}

.agti-content {
  width: min(1360px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.agti-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr)) !important;
  width: 100%;
  max-width: none !important;
  gap: 1.5rem;
}

.agti-content .wp-block-query,
.agti-content .wp-block-query .wp-block-post-template {
  width: 100%;
  max-width: none !important;
}

.agti-post-grid .wp-block-post {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.75rem;
  border: 1px solid var(--agti-line);
  border-top: 3px solid var(--agti-teal);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15,23,42,.05);
}

.agti-post-grid .wp-block-post-title {
  margin: .7rem 0;
  font-size: clamp(1.25rem, 1.65vw, 1.6rem);
  font-weight: 800;
  line-height: 1.25;
}

.agti-post-grid .wp-block-post-title a {
  color: var(--agti-text);
  text-decoration: none;
}

.agti-post-grid .wp-block-post-date,
.agti-post-grid .wp-block-post-author-name,
.agti-post-grid .wp-block-post-excerpt {
  color: var(--agti-muted);
  font-size: .95rem;
  line-height: 1.65;
}

.agti-post-grid .wp-block-read-more {
  margin-top: auto;
  color: var(--agti-teal-deep);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.agti-post-hero {
  padding: clamp(3rem, 7vw, 6rem) 0 2.5rem;
  color: #fff;
  background: linear-gradient(145deg, var(--agti-ink), var(--agti-navy));
}

.agti-post-hero .wp-block-post-date,
.agti-post-hero .wp-block-post-terms,
.agti-post-hero .wp-block-post-author-name,
.agti-post-hero a { color: #94a3b8; }

.agti-prose {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  font-size: 1.08rem;
  line-height: 1.8;
}

.agti-prose h2,
.agti-prose h3 {
  margin-top: 2.4em;
  color: var(--agti-text);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.agti-prose h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.agti-prose img { border-radius: 8px; }

.agti-site-footer { padding: 3.5rem 0 1.25rem; }

.agti-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.agti-site-footer h2 {
  margin: 0 0 .9rem;
  color: #fff;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.agti-site-footer p,
.agti-site-footer li,
.agti-site-footer a {
  color: #94a3b8;
  font-size: .92rem;
  line-height: 1.7;
  text-decoration: none;
}

.agti-site-footer ul { margin: 0; padding: 0; list-style: none; }
.agti-site-footer a:hover { color: var(--agti-teal); }

.agti-footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #94a3b8;
  font-size: .8rem;
}

@media (max-width: 760px) {
  .agti-header-row { min-height: auto; padding: 1rem 0; align-items: flex-start; }
  .agti-nav { gap: .55rem .9rem; }
  .agti-nav a { font-size: .62rem; }
  .agti-post-grid,
  .agti-footer-grid { grid-template-columns: 1fr; }

  .agti-content { width: min(100% - 2rem, 1360px); }
}
