/* =============================================================================
   Base — matches agentiv.ai exactly
   ============================================================================= */

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

html, body {
  min-height: 100%;
}

body {
  position: relative;
  font-family: 'Spectral', Georgia, Cambria, 'Times New Roman', Times, serif;
  background: #fff;
  color: #000;
  line-height: 1.75;
  padding: 48px 48px 64px;
}

@media (max-width: 640px) {
  body {
    padding: 20px 28px 48px;
  }
}

main {
  max-width: 760px;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =============================================================================
   Navigation
   ============================================================================= */

.site-nav {
  max-width: 760px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4rem;
  gap: 1.5rem;
}

.nav-brand {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  opacity: 0.85;
  flex-shrink: 0;
}

.nav-brand:hover {
  opacity: 0.45;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  opacity: 0.55;
  transition: opacity 0.15s;
}

.nav-links a:hover {
  opacity: 0.3;
}

.nav-links a.active {
  opacity: 0.85;
}

/* =============================================================================
   Homepage
   ============================================================================= */

.eyebrow {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  opacity: 0.85;
}

.list {
  display: grid;
  gap: 2.25rem;
  margin-top: 1.8rem;
}

.item {
  display: grid;
  gap: 0.35rem;
}

.item-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  opacity: 0.85;
}

.item-copy {
  font-size: 1.05rem;
  max-width: 72ch;
  opacity: 0.92;
  margin-top: 0.45rem;
}

/* =============================================================================
   Bottom bar — Principals + Latest
   ============================================================================= */

.bottom-bar {
  margin-top: 3.5rem;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.bottom-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bottom-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  opacity: 0.35;
}

.bottom-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  opacity: 0.72;
}

.bottom-content a {
  transition: opacity 0.15s;
}

.bottom-content a:hover {
  opacity: 0.35;
}

.bottom-content--articles {
  flex-direction: column;
  gap: 0.4rem;
}

.articles-preview-title {
  font-size: 0.9rem;
  opacity: 0.72;
  transition: opacity 0.15s;
}

.articles-preview-title:hover {
  opacity: 0.35;
}

/* =============================================================================
   Watermark logo
   ============================================================================= */

.graphic {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 140px;
  opacity: 0.14;
  pointer-events: none;
}

@media (max-width: 640px) {
  .graphic {
    right: 16px;
    bottom: 16px;
    width: 110px;
  }
}

/* =============================================================================
   Articles listing page
   ============================================================================= */

.page-heading {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 2.5rem;
}

.article-list {
  display: grid;
  gap: 2.25rem;
}

.article-list-item {
  display: grid;
  gap: 0.35rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 1.5rem;
}

.article-list-date {
  font-size: 0.75rem;
  opacity: 0.4;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.article-list-title {
  font-size: 1.15rem;
  font-weight: 600;
  opacity: 0.9;
  display: inline;
  transition: opacity 0.15s;
}

.article-list-title:hover {
  opacity: 0.45;
}

.article-list-excerpt {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-top: 0.35rem;
  max-width: 68ch;
  line-height: 1.6;
}

.article-list-tags {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
}

.article-list-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.4;
}

/* =============================================================================
   Blog post
   ============================================================================= */

.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.post-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 28ch;
}

.post-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.4;
}

/* Prose */
.post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.92;
}

.post-body h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  opacity: 0.85;
  margin-top: 3rem;
  margin-bottom: 0.75rem;
}

.post-body h3 {
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.85;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.post-body p {
  margin-bottom: 1.3rem;
}

.post-body ul,
.post-body ol {
  margin-left: 1.4rem;
  margin-bottom: 1.3rem;
}

.post-body ul { list-style-type: disc; }
.post-body ol { list-style-type: decimal; }

.post-body li {
  margin-bottom: 0.3rem;
}

.post-body a {
  transition: opacity 0.15s;
}

.post-body a:hover {
  opacity: 0.45;
}

.post-body strong {
  font-weight: 700;
}

.post-body em {
  font-style: italic;
}

.post-body blockquote {
  border-left: 2px solid rgba(0, 0, 0, 0.15);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  opacity: 0.75;
  font-style: italic;
}

.post-body code {
  font-family: 'Fira Code', 'Menlo', 'Courier New', monospace;
  font-size: 0.875em;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

.post-body pre {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-body pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
}

.post-body hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 2.5rem 0;
}

.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.post-footer a {
  transition: opacity 0.15s;
}

.post-footer a:hover {
  opacity: 0.3;
}

/* =============================================================================
   About page
   ============================================================================= */

.about-body {
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.92;
}

.about-body h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  opacity: 0.5;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.about-body p {
  margin-bottom: 1.1rem;
  max-width: 68ch;
}

.about-body a {
  transition: opacity 0.15s;
}

.about-body a:hover {
  opacity: 0.45;
}
