/* ── About page styles ── */

/* Active nav link indicator */
.nav-active {
  border-bottom: 2px solid var(--dark);
  padding-bottom: 1px;
}

/* ── Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  flex-shrink: 0;
  justify-self: end;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--dark);
  transition: transform 0.22s ease, opacity 0.22s ease, width 0.22s ease;
}

.nav-hamburger span:nth-child(1) { width: 22px; }
.nav-hamburger span:nth-child(2) { width: 14px; }
.nav-hamburger span:nth-child(3) { width: 22px; }

header.nav-open .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  width: 22px;
}

header.nav-open .nav-hamburger span:nth-child(2) {
  opacity: 0;
  width: 0;
}

header.nav-open .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 22px;
}

/* ── Mobile nav panel ── */
.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid rgba(13, 13, 13, 0.12);
  padding: 0.5rem 0 0.75rem;
}

.mobile-nav a {
  color: var(--dark);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(13, 13, 13, 0.07);
  transition: opacity 0.15s;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  opacity: 0.55;
}

/* ── Mobile breakpoint ── */
@media (max-width: 768px) {
  header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
  }

  .logo {
    flex: 1;
  }

  .wordmark {
    width: min-content;
    white-space: normal;
    line-height: 1.25;
  }

  .nav-center {
    display: none;
  }

  .header-nav {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .mobile-nav {
    width: 100%;
  }

  header.nav-open .mobile-nav {
    display: flex;
  }
}

.about-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2.5rem 5rem;
}

/* ── Blog hero (index + post pages) ── */
.blog-hero-wrap {
  position: relative;
  z-index: 1;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2.5rem 0;
}

.blog-hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0 2.5rem;
  border-bottom: 2px solid var(--dark);
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .blog-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 0 2rem;
  }
}

/* Graphic block — solid panel with subtle grid (no checkerboard) */
.blog-hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 160px;
  background-color: var(--dark);
  border: 2px solid var(--dark);
  /* Subtle line grid only — reads as design, not broken image */
  background-image:
    linear-gradient(rgba(232, 232, 232, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 232, 232, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0;
}

.blog-hero-visual::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

/* GIF / image in center of panel */
.blog-hero-visual-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Label on panel — enough padding so it never clips */
.blog-hero-visual-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(232, 232, 232, 0.55);
  z-index: 1;
}

.blog-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-hero .blog-hero-eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* Technical-style tags (e.g. BLOG · UPDATES) */
.blog-hero-tags {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.blog-hero .blog-hero-title {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.blog-hero .blog-hero-lead {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.65);
  max-width: 420px;
}

/* ── Blog post entry (same for every post) ── */
.blog-post {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 2.5rem 4rem;
}

.blog-back {
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
}

.blog-back a {
  color: var(--dark);
  text-decoration: none;
  opacity: 0.8;
}

.blog-back a:hover {
  opacity: 1;
}

.blog-post .post-meta {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.7;
  color: var(--dark);
}

.blog-post .post-body {
  font-size: 0.95rem;
  line-height: 1.65;
}

.blog-post .post-body p {
  margin-bottom: 1rem;
  color: rgba(0, 0, 0, 0.75);
}

.blog-post .post-body p:last-child {
  margin-bottom: 0;
}

.blog-post .post-body h2 {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin: 2rem 0 0.75rem;
  color: var(--dark);
}

.blog-post .post-body h2:first-child {
  margin-top: 0;
}

.blog-post .post-body h3 {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin: 1.5rem 0 0.5rem;
  color: var(--dark);
}

.blog-post .post-body a {
  color: var(--dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-post .post-body a:hover {
  opacity: 0.75;
}

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

.blog-post .post-body + .about-grid {
  margin-top: 2rem;
}

/* Post title (single h1 per post) */
.blog-post > h1 {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

/* ── Hero ── */
.about-hero {
  padding: 4rem 0 3.5rem;
  border-bottom: 2px solid var(--dark);
  margin-bottom: 0;
}

.about-eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.about-title {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.about-lead {
  font-size: 0.92rem;
  line-height: 1.9;
  color: rgba(0, 0, 0, 0.68);
  max-width: 600px;
}

/* ── Sections ── */
.about-grid {
  display: flex;
  flex-direction: column;
}

.about-section {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.about-section:last-child {
  border-bottom: none;
}

.section-num {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 0.25rem;
}

.section-title {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.section-text {
  font-size: 0.86rem;
  line-height: 1.95;
  color: rgba(0, 0, 0, 0.70);
  margin-bottom: 1rem;
}

.section-text:last-child {
  margin-bottom: 0;
}

.section-text a {
  color: var(--dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-text a:hover {
  opacity: 0.7;
}

.seller-pay-callout {
  margin-top: 1.35rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--dark);
  background: rgba(0, 0, 0, 0.04);
  font-size: 0.84rem;
}

.seller-pay-callout code {
  background: rgba(0, 0, 0, 0.07);
}

code {
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 5px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85em;
  letter-spacing: 0;
}

/* ── Ordered list ── */
.section-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  counter-reset: steps;
}

.section-list li {
  font-size: 0.86rem;
  line-height: 1.95;
  color: rgba(0, 0, 0, 0.70);
  padding-left: 1.5rem;
  position: relative;
  counter-increment: steps;
}

.section-list li::before {
  content: counter(steps) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--dark);
  font-size: 0.7rem;
}

/* ── Payment cards ── */
.payment-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.payment-card {
  background: var(--dark);
  padding: 1.5rem;
}

.payment-card-label {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--bg);
  margin-bottom: 0.85rem;
}

.payment-card p {
  font-size: 0.79rem;
  line-height: 1.9;
  color: rgba(232, 232, 232, 0.62);
}

.payment-card p strong {
  color: rgba(232, 232, 232, 0.85);
  font-weight: 500;
}

/* ── CTA ── */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cta-btn {
  display: inline-block;
  background: var(--dark);
  color: var(--bg);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 11px 20px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.cta-btn:hover {
  opacity: 0.8;
}

.cta-btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}

/* ── Back link (reused from skill.css) ── */
.back-link {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--dark);
}

/* ── Economics triangle ── */
.econ-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.econ-card {
  border: 2px solid var(--dark);
  padding: 1.5rem;
}

.econ-card-label {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--dark);
  margin-bottom: 0.85rem;
}

.econ-card p {
  font-size: 0.79rem;
  line-height: 1.9;
  color: rgba(0, 0, 0, 0.70);
}

.econ-card-highlight {
  background: var(--dark);
  border-color: var(--dark);
}

.econ-card-highlight .econ-card-label {
  color: var(--bg);
}

.econ-card-highlight p {
  color: rgba(232, 232, 232, 0.55);
}

/* ── Audience list ── */
.audience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0.25rem;
}

.audience-item {
  padding-left: 1.25rem;
  border-left: 3px solid var(--dark);
}

.audience-label {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.audience-item p {
  font-size: 0.86rem;
  line-height: 1.95;
  color: rgba(0, 0, 0, 0.70);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .about-section {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .payment-cards {
    grid-template-columns: 1fr;
  }

  .econ-cards {
    grid-template-columns: 1fr;
  }
}
