/*
Theme Name: Christian Stevens
Theme URI: https://christian-stevens.com/
Author: Christian Stevens
Description: Custom personal site theme for a modern SEO and AI search consultant portfolio.
Version: 1.0.0
Text Domain: christian-stevens
*/

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

:root {
  --bg: #0c0d0f;
  --surface: #141518;
  --surface-2: #1b1c20;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(255,255,255,0.12);
  --text-primary: #e8e6e1;
  --text-secondary: #8a8880;
  --text-muted: #4a4946;
  --accent: #4a9eff;
  --accent-dim: rgba(74,158,255,0.12);
  --accent-border: rgba(74,158,255,0.3);
  --serif: 'Gloock', Georgia, serif;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

main {
  min-height: 100vh;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 4rem;
  border-bottom: 1px solid var(--border);
  background: rgba(12,13,15,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.admin-bar nav {
  top: 32px;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo span,
.text-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links .current-page-ancestor > a,
.nav-links a[aria-current="page"] {
  color: var(--text-primary);
}

.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent-border);
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover,
.nav-cta[aria-current="page"] {
  background: var(--accent-dim);
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before,
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: var(--surface);
  z-index: 0;
}

.hero::before,
.page-hero::before {
  display: none;
}

.hero::after,
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      var(--border) 0px,
      var(--border) 1px,
      transparent 1px,
      transparent calc(100% / 12)
    );
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.hero-left,
.hero-right,
.page-hero-copy,
.page-hero-panel {
  position: relative;
  z-index: 1;
}

.hero-left {
  padding: 6rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

.hero-eyebrow,
.section-label,
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow {
  margin-bottom: 2rem;
}

.hero-eyebrow::before,
.section-label::before,
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero-headline,
.page-title,
.cta-headline,
.section-hl,
.about-headline,
.card-headline {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-headline {
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 2rem;
}

.hero-headline em,
.page-title em,
.cta-headline em,
.about-headline em,
.section-hl em,
.card-headline em {
  font-style: italic;
  color: var(--accent);
}

.headline-lock {
  white-space: nowrap;
}

.hero-body,
.about-body,
.section-copy,
.page-intro,
.step-body,
.service-body,
.body-copy,
.writing-excerpt,
.detail-list li,
.contact-copy,
.metric-copy {
  color: var(--text-secondary);
  font-weight: 300;
}

.hero-body {
  font-size: 17px;
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 3rem;
}

.hero-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.text-link {
  font-family: var(--mono);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.1em;
}

.btn-primary {
  font-size: 12px;
  font-weight: 500;
  color: var(--bg);
  background: var(--text-primary);
  padding: 0.875rem 2rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}

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

.btn-secondary,
.text-link {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.btn-secondary::after,
.text-link::after {
  content: '→';
  font-family: sans-serif;
}

.btn-secondary:hover,
.text-link:hover {
  color: var(--text-primary);
}

.hero-bg-text {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  z-index: 0;
}

.hero-card,
.panel-card,
.info-card,
.quote-card,
.contact-card {
  background: var(--bg);
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  overflow: hidden;
}

.hero-card,
.panel-card {
  width: 100%;
  max-width: 430px;
}

.card-titlebar {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.card-title-text {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.card-body,
.panel-body {
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 2;
}

.line-label { color: var(--text-muted); }
.line-key { color: #a78bfa; }
.line-val { color: var(--accent); }
.line-str { color: #34d399; }
.line-num { color: #fb923c; }
.line-comment { color: var(--text-muted); font-style: italic; }
.line-indent { padding-left: 1.5rem; }

.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.strip-inner {
  display: inline-block;
  animation: marquee 24s linear infinite;
}

.strip-inner span {
  margin: 0 3rem;
}

.strip-inner .dot-sep {
  color: var(--accent);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.container,
.page-shell,
.process-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 8rem 4rem;
}

.section-tight-top {
  padding-top: 0;
}

.section-header {
  margin-bottom: 4rem;
}

.section-label {
  font-size: 10px;
  margin-bottom: 1rem;
}

.section-hl {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  margin-top: 0.5rem;
}

.about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.about-headline {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.1;
  margin-bottom: 2rem;
}

.about-body,
.section-copy,
.page-intro,
.body-copy,
.contact-copy {
  font-size: 17px;
  line-height: 1.85;
}

.about-body {
  margin-bottom: 1.5rem;
  max-width: 580px;
}

.inline-tag,
.mini-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: 2px;
  padding: 0 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.services-grid,
.cards-grid,
.metrics-grid,
.writing-grid,
.contact-grid {
  display: grid;
  gap: 0;
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.service-card,
.content-card {
  position: relative;
  padding: 2.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
}

.service-card:hover,
.content-card:hover {
  background: var(--surface);
}

.services-grid .service-card:nth-child(3n) {
  border-right: none;
}

.services-grid .service-card:nth-last-child(-n + 3) {
  border-bottom: none;
}

.service-num,
.card-kicker,
.metric-value,
.timeline-step {
  font-family: var(--mono);
  letter-spacing: 0.15em;
}

.service-num,
.card-kicker,
.timeline-step {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.service-num {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.service-num::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background: var(--border-accent);
}

.service-title,
.card-title,
.timeline-title,
.writing-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.service-body,
.card-copy,
.timeline-copy,
.writing-excerpt,
.metric-copy {
  font-size: 14px;
  line-height: 1.75;
}

.service-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
}

.service-card:hover .service-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

.process {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-inner {
  padding: 8rem 4rem;
}

.process-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 5rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-accent);
  z-index: 0;
}

.step {
  padding: 0 2rem 0 0;
  position: relative;
  z-index: 1;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent-border);
  margin-bottom: 2rem;
}

.step:first-child .step-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.step-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.step-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.step-body {
  font-size: 13.5px;
  line-height: 1.7;
}

.cta-section {
  padding: 10rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.cta-headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.cta-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer-logo span { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links .current-menu-item > a,
.footer-links .current_page_item > a {
  color: var(--text-secondary);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wp-site-blocks,
.site-main {
  min-height: 100vh;
}

.entry-content > * + * {
  margin-top: 1.5rem;
}

.entry-content a {
  color: var(--accent);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
}

.footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
}

.page-hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 2rem;
  align-items: center;
  padding: 10rem 4rem 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero-copy,
.page-hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero-copy {
  max-width: 820px;
}

.page-title {
  font-size: clamp(2.75rem, 5vw, 4.75rem);
  line-height: 1.05;
  max-width: none;
  margin: 1.5rem 0;
}

.page-intro {
  max-width: 620px;
  margin-bottom: 2rem;
}

.panel-card {
  margin-left: auto;
}

.detail-list,
.inline-list {
  list-style: none;
}

.detail-list li,
.inline-list li {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

.detail-list li:first-child,
.inline-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.inline-list li:last-child,
.detail-list li:last-child {
  padding-bottom: 0;
}

.inline-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.inline-list li {
  border-top: 1px solid var(--border-accent);
}

.inline-list strong,
.detail-list strong,
.metric-value,
.meta-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cards-grid {
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.cards-grid .content-card:nth-child(3n) {
  border-right: none;
}

.cards-grid .content-card:nth-last-child(-n + 3) {
  border-bottom: none;
}

.metrics-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.info-card,
.quote-card,
.contact-card {
  padding: 2rem;
}

.metric-value {
  display: block;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.story-grid,
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.stack {
  display: grid;
  gap: 1.5rem;
}

.quote-card {
  background: linear-gradient(180deg, rgba(74,158,255,0.1), rgba(20,21,24,0.95));
}

.quote-card p {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.35;
}

.timeline {
  display: grid;
  gap: 1.5rem;
}

.timeline-item {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
}

.timeline-item:first-child {
  padding-top: 0;
  border-top: none;
}

.timeline-copy {
  color: var(--text-secondary);
}

.writing-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.writing-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(20,21,24,0.72);
  transition: border-color 0.2s, transform 0.2s;
}

.writing-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.writing-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.contact-layout {
  align-items: start;
}

.contact-card .card-headline {
  font-size: 1.8rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.contact-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.meta-label {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.section-rule {
  height: 1px;
  background: var(--border);
  margin: 0 4rem;
}

@media (max-width: 1100px) {
  nav,
  .section,
  .process-inner,
  .cta-section,
  footer,
  .page-hero {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero,
  .page-hero,
  .about,
  .story-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero::before,
  .page-hero::before {
    width: 100%;
    height: 45%;
    top: auto;
    bottom: 0;
  }

  .hero-right,
  .page-hero-panel {
    padding-top: 0;
  }

  .panel-card {
    margin-left: 0;
  }

  .services-grid,
  .cards-grid,
  .process-steps,
  .inline-list,
  .metrics-grid,
  .contact-grid,
  .writing-grid {
    grid-template-columns: 1fr;
  }

  .services-grid .service-card,
  .cards-grid .content-card {
    border-right: none;
  }

  .services-grid .service-card:not(:last-child),
  .cards-grid .content-card:not(:last-child) {
    border-bottom: 1px solid var(--border);
  }

  .process-steps::before {
    display: none;
  }

  .step {
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  body.admin-bar nav {
    top: 46px;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero,
  .page-hero {
    padding-top: 9rem;
  }

  .hero-left,
  .hero-right {
    padding: 3rem 2rem;
  }

  .hero-actions,
  .button-row,
  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-bg-text {
    display: none;
  }

  .section-rule {
    margin: 0 2rem;
  }
}
