/* 3C Digital Systems — static site styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-900: #18181b;
  --zinc-950: #09090b;
  --emerald-100: #d1fae5;
  --emerald-400: #34d399;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --white: #ffffff;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace;
}

html {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--zinc-950);
  line-height: 1.5;
}

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

ul {
  list-style: none;
}

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

/* Layout */
.container {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-sm {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-xs {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-contact {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Animations */
@keyframes navEnter {
  from {
    opacity: 0;
    transform: translateY(-1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav,
  .nav-mobile,
  .nav-toggle span,
  .form-fade-panel,
  .btn {
    animation: none !important;
    transition: none !important;
  }
}

/* Navigation */
.nav {
  border-bottom: 1px solid var(--zinc-200);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
  animation: navEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.nav.nav-scrolled {
  box-shadow: 0 4px 24px rgba(9, 9, 11, 0.06);
  border-bottom-color: transparent;
}

.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.nav-logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--zinc-950);
  color: var(--white);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  font-size: 0.9375rem;
}

.nav-links a:not(.nav-cta) {
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--zinc-950);
  transition: width 0.25s ease;
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).is-active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--zinc-600);
  transition: color 0.15s;
}

.nav-cta {
  margin-left: 0.5rem;
  background: var(--zinc-950);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background 0.15s;
}

.nav-cta:hover {
  background: var(--zinc-900);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border: 1px solid var(--zinc-200);
  border-radius: 0.5rem;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
  background: var(--zinc-50);
  border-color: var(--zinc-300);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--zinc-950);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition:
    max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease,
    border-color 0.3s ease;
}

.nav-mobile.is-open {
  max-height: 18rem;
  opacity: 1;
  border-bottom-color: var(--zinc-200);
}

.nav-mobile-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile-inner a {
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--zinc-100);
  transform: translateX(-0.5rem);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease, color 0.15s;
}

.nav-mobile.is-open .nav-mobile-inner a {
  transform: translateX(0);
  opacity: 1;
}

.nav-mobile.is-open .nav-mobile-inner a:nth-child(1) { transition-delay: 0.05s; }
.nav-mobile.is-open .nav-mobile-inner a:nth-child(2) { transition-delay: 0.1s; }
.nav-mobile.is-open .nav-mobile-inner a:nth-child(3) { transition-delay: 0.15s; }
.nav-mobile.is-open .nav-mobile-inner a:nth-child(4) { transition-delay: 0.2s; }

.nav-mobile-inner .nav-cta {
  margin-top: 0.5rem;
  text-align: center;
  border-bottom: none;
  padding: 0.75rem 1.25rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* Footer */
.footer {
  border-top: 1px solid var(--zinc-200);
  margin-top: auto;
  padding: 2rem 0;
  font-size: 0.875rem;
  color: var(--zinc-500);
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer a:hover {
  color: var(--zinc-900);
  transition: color 0.15s;
}

/* Page wrapper */
.page {
  min-height: 100vh;
  background: var(--white);
}

/* Typography */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.125rem;
  font-size: 0.75rem;
  color: var(--zinc-500);
}

.eyebrow-wide {
  letter-spacing: 0.2em;
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.025em;
}

.text-zinc-600 { color: var(--zinc-600); }
.text-zinc-500 { color: var(--zinc-500); }
.text-zinc-400 { color: var(--zinc-400); }
.text-emerald-700 { color: var(--emerald-700); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.25rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background 0.15s, border-color 0.15s, transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(9, 9, 11, 0.08);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary {
  background: var(--zinc-950);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--zinc-900);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--zinc-200);
  color: var(--zinc-950);
}

.btn-secondary:hover {
  background: var(--zinc-50);
}

.btn-white {
  background: var(--white);
  border: 1px solid var(--zinc-200);
  color: var(--zinc-950);
}

.btn-white:hover {
  background: var(--zinc-100);
}

.btn-emerald {
  background: var(--emerald-600);
  color: var(--white);
}

.btn-emerald:hover {
  background: var(--emerald-700);
}

.btn-full {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.875rem;
}

/* Hero */
.hero {
  max-width: 64rem;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--zinc-200);
  font-size: 0.75rem;
  letter-spacing: 0.0625rem;
  text-transform: uppercase;
  color: var(--zinc-500);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.375rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-lead {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  font-size: 1.25rem;
  color: var(--zinc-600);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

.hero-meta {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: 0.875rem;
  color: var(--zinc-500);
  flex-wrap: wrap;
}

.dot {
  width: 0.25rem;
  height: 0.25rem;
  background: var(--zinc-300);
  border-radius: 50%;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-lg {
  padding: 5rem 0;
}

.section-bordered {
  border-bottom: 1px solid var(--zinc-200);
}

.section-bg-zinc {
  background: var(--zinc-50);
  border-top: 1px solid var(--zinc-200);
  border-bottom: 1px solid var(--zinc-200);
}

.section-dark {
  background: var(--zinc-950);
  color: var(--white);
}

/* Grid */
.grid-2 {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

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

.grid-4 {
  display: grid;
  gap: 1.25rem;
}

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

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--zinc-200);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover,
.card-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(9, 9, 11, 0.06);
  border-color: var(--zinc-300);
}

.card-lg {
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-flex {
  display: flex;
  flex-direction: column;
}

.card-flex ul {
  margin-top: auto;
}

/* Lead magnet */
.badge-emerald {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--emerald-100);
  color: var(--emerald-700);
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

.form-box {
  background: var(--zinc-50);
  border: 1px solid var(--zinc-200);
  padding: 2rem;
  border-radius: 1rem;
}

.form-fade-wrap {
  position: relative;
  min-height: 12rem;
}

.form-fade-panel {
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-fade-panel.is-entering {
  opacity: 0;
  transform: translateY(1rem);
}

.form-fade-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.form-fade-panel.is-leaving {
  opacity: 0;
  transform: translateY(-0.75rem);
  pointer-events: none;
}

.form-box h3,
.form-box .form-title {
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  border: 1px solid var(--zinc-200);
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--white);
  color: var(--zinc-950);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: 2px solid var(--zinc-300);
  outline-offset: 1px;
}

.form-textarea {
  min-height: 6rem;
  resize: vertical;
}

.form-hint {
  font-size: 0.6875rem;
  text-align: center;
  color: var(--zinc-500);
  margin-top: 0.75rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-success {
  text-align: center;
}

.form-success .form-title {
  margin-bottom: 1rem;
}

.hidden {
  display: none !important;
}

/* Capabilities header */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-header p {
  max-width: 28rem;
  font-size: 1.125rem;
  color: var(--zinc-600);
}

.capability-card h3 {
  font-size: 1.3125rem;
  margin-bottom: 0.75rem;
}

.capability-card p {
  color: var(--zinc-600);
  margin-bottom: 1.5rem;
}

.capability-card ul {
  font-size: 0.9375rem;
  color: var(--zinc-600);
}

.capability-card li {
  margin-bottom: 0.5rem;
}

/* Process steps */
.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1875rem;
  color: var(--emerald-400);
  margin-bottom: 1rem;
}

.step h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--zinc-400);
  font-size: 0.9375rem;
  line-height: 1.625;
}

.process-grid {
  display: grid;
  gap: 2.5rem 2rem;
}

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

/* Outcomes */
.outcome-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.outcome-card p {
  color: var(--zinc-600);
}

/* CTA section */
.cta-section {
  border-top: 1px solid var(--zinc-200);
  background: var(--zinc-50);
  padding: 4rem 0;
}

.cta-inner {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.cta-inner h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.cta-inner .lead {
  font-size: 1.25rem;
  color: var(--zinc-600);
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
  }
}

.guarantee {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--emerald-700);
  font-weight: 500;
}

/* About / Services content pages */
.content-page {
  max-width: 56rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.content-page-narrow {
  max-width: 48rem;
}

.content-page h1 {
  font-size: clamp(2.25rem, 5vw, 3rem);
  margin-bottom: 2rem;
}

.content-page .prose {
  color: var(--zinc-600);
  font-size: 1.125rem;
  line-height: 1.75;
}

.content-page .prose p {
  margin-bottom: 1.5rem;
}

.content-page .prose h2 {
  font-size: 1.875rem;
  color: var(--zinc-950);
  padding-top: 1.5rem;
  margin-bottom: 1rem;
}

.content-page .prose strong {
  color: var(--zinc-950);
  font-weight: 600;
}

.content-page .prose ul {
  list-style: none;
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
}

.content-page .prose ul li {
  margin-bottom: 0.5rem;
}

.content-page .prose a {
  text-decoration: underline;
}

.content-page .prose .emphasis {
  font-weight: 500;
  color: var(--zinc-950);
}

.content-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--zinc-200);
}

.content-footer a {
  font-size: 0.875rem;
  font-weight: 500;
}

.content-footer a:hover {
  color: var(--zinc-600);
}

/* Services page */
.services-intro {
  max-width: 48rem;
  margin-bottom: 3.5rem;
}

.services-intro h1 {
  margin-bottom: 1.25rem;
}

.services-intro .lead {
  font-size: 1.25rem;
  color: var(--zinc-600);
}

.services-intro .note {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.services-intro .note a {
  text-decoration: underline;
}

.service-block {
  margin-bottom: 4rem;
}

.service-block h2 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.service-block .body {
  max-width: 48rem;
  font-size: 1.0625rem;
  color: var(--zinc-600);
}

.service-block .body p {
  margin-bottom: 1rem;
}

.service-block ul {
  display: grid;
  gap: 0.5rem 2rem;
  padding-top: 0.75rem;
  font-size: 0.9375rem;
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--zinc-600);
}

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

/* Contact page */
.contact-page {
  max-width: 32rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.contact-page h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.contact-page .lead {
  font-size: 1.125rem;
  color: var(--zinc-600);
}

.contact-page .note {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.contact-disclaimer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--zinc-500);
}

/* Utility */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.leading-relaxed { line-height: 1.625; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }

/* Breadcrumbs */
.breadcrumbs {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
  font-size: 0.8125rem;
  color: var(--zinc-500);
}

.breadcrumbs a:hover {
  color: var(--zinc-900);
}

.breadcrumbs span {
  margin: 0 0.5rem;
}

/* FAQ — SEO & AEO */
.faq-section {
  padding: 5rem 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--zinc-200);
  border-radius: 0.75rem;
  padding: 0 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: var(--zinc-300);
  box-shadow: 0 4px 16px rgba(9, 9, 11, 0.04);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0625rem;
  padding: 1.125rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--zinc-400);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--zinc-600);
  font-size: 1rem;
  line-height: 1.7;
  padding-bottom: 1.125rem;
}

/* Blog — Justin Welsh–style archive & essays */
.blog-archive {
  padding: 4rem 1.5rem 5rem;
}

.blog-archive-inner,
.essay-wrap {
  max-width: 40rem;
  margin: 0 auto;
}

.blog-archive h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
}

.blog-entries {
  list-style: none;
}

.blog-entry {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--zinc-200);
}

.blog-entry:first-child {
  padding-top: 0;
}

.blog-entry-category {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--zinc-500);
  margin-bottom: 0.5rem;
}

.blog-entry-category:hover {
  color: var(--zinc-950);
}

.blog-entry-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.blog-entry-title a {
  transition: color 0.15s;
}

.blog-entry-title a:hover {
  color: var(--zinc-600);
}

.blog-entry-title .blog-entry-badge {
  display: inline-block;
  margin-left: 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald-700);
  background: var(--emerald-100);
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

.blog-entry-excerpt {
  color: var(--zinc-600);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  max-width: 36rem;
}

.blog-entry-meta {
  font-size: 0.8125rem;
  color: var(--zinc-400);
  letter-spacing: 0.01em;
}

/* Essay (single post) */
.essay-page {
  padding: 3rem 1.5rem 5rem;
}

.essay-back {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--zinc-500);
  margin-bottom: 2.5rem;
  transition: color 0.15s;
}

.essay-back:hover {
  color: var(--zinc-950);
}

.essay-category {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--zinc-500);
  margin-bottom: 1rem;
}

.essay-category:hover {
  color: var(--zinc-950);
}

.essay h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.essay-byline {
  font-size: 0.9375rem;
  color: var(--zinc-500);
  margin-bottom: 2rem;
}

.essay-byline em {
  font-style: normal;
  color: var(--zinc-400);
}

.essay-divider {
  border: none;
  border-top: 1px solid var(--zinc-200);
  margin: 0 0 2.5rem;
}

.essay-body {
  color: var(--zinc-700);
  font-size: 1.125rem;
  line-height: 1.8;
}

.essay-body h2 {
  color: var(--zinc-950);
  font-size: 1.375rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
}

.essay-body h3 {
  color: var(--zinc-950);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.essay-body p {
  margin-bottom: 1.5rem;
}

.essay-body ul,
.essay-body ol {
  margin: 0 0 1.5rem 1.25rem;
}

.essay-body li {
  margin-bottom: 0.625rem;
}

.essay-body a {
  color: var(--zinc-950);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.essay-body a:hover {
  color: var(--zinc-600);
}

.essay-body strong {
  color: var(--zinc-950);
  font-weight: 600;
}

.essay-related {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--zinc-200);
}

.essay-related h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--zinc-950);
}

.essay-related ul {
  list-style: none;
}

.essay-related li {
  margin-bottom: 0.875rem;
}

.essay-related a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--zinc-950);
  transition: color 0.15s;
}

.essay-related a:hover {
  color: var(--zinc-600);
}

.essay-related .related-meta {
  font-size: 0.8125rem;
  color: var(--zinc-400);
  font-weight: 400;
  margin-left: 0.5rem;
}

.essay-newsletter {
  margin-top: 4rem;
  padding: 2.5rem 0 0;
  border-top: 1px solid var(--zinc-200);
  text-align: center;
}

.essay-newsletter h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.essay-newsletter p {
  color: var(--zinc-600);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.essay-newsletter-note {
  font-size: 0.75rem;
  color: var(--zinc-400);
  margin-top: 1rem;
}