@import url("convergence-visuals.css");

/* ---------- Perspectives / long-form essays ---------- */
.perspective-page-head p {
  max-width: 760px;
}

.perspective-section {
  padding-top: 72px;
}

.perspective-shell {
  max-width: 900px;
}

/* ---------- Perspectives index ---------- */
.perspective-index {
  display: grid;
  gap: 28px;
}

.perspective-index-card {
  padding: 30px 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.perspective-index-card:hover {
  border-color: var(--cyan-dim);
  transform: translateY(-2px);
}

.perspective-index-card-primary {
  border-left: 2px solid var(--green);
}

.perspective-index-card-primary:hover {
  border-color: var(--green-dim);
  border-left-color: var(--green);
}

.perspective-index-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.perspective-index-meta .perspective-section-label {
  margin-bottom: 0;
}

.perspective-index-date {
  color: var(--muted);
  font: 11px/1.2 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: right;
}

.perspective-index-card h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.08;
}

.perspective-index-summary {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.perspective-index-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.perspective-index-link,
.perspective-index-status {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: 12px/1.2 var(--font-mono);
  letter-spacing: .03em;
}

.perspective-index-link {
  color: var(--cyan);
  text-decoration: none;
}

.perspective-index-link:hover,
.perspective-index-link:focus-visible {
  color: var(--green);
  border-color: var(--green-dim);
  outline: none;
}

.perspective-index-status {
  color: var(--muted);
}

/* ---------- Generic CMS card visual ---------- */
.perspective-index-card.has-card-image {
  position: relative;
  min-height: 382px;
  padding-right: 365px;
  overflow: hidden;
}

.perspective-index-card.has-card-image > * {
  position: relative;
  z-index: 1;
}

.perspective-index-card.has-card-image::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 24px;
  right: 22px;
  bottom: 24px;
  width: 320px;
  background: #0e0d0c var(--perspective-card-image) center / contain no-repeat;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- Open Letter visuals ---------- */
.perspective-index-card-primary#an-open-letter-to-the-builders-of-foundation-ai {
  position: relative;
  min-height: 382px;
  padding-right: 365px;
  overflow: hidden;
}

.perspective-index-card-primary#an-open-letter-to-the-builders-of-foundation-ai > * {
  position: relative;
  z-index: 1;
}

.perspective-index-card-primary#an-open-letter-to-the-builders-of-foundation-ai::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 24px;
  right: 22px;
  bottom: 24px;
  width: 320px;
  background: #0e0d0c url("assets/uploads/premium-logic-cover-article.jpg") center / contain no-repeat;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

#an-open-letter-to-the-builders-of-foundation-ai .perspective-article-header::after {
  content: "";
  display: block;
  width: min(100%, 690px);
  aspect-ratio: 3 / 4;
  margin: 36px auto 0;
  background: #0e0d0c url("assets/uploads/premium-logic-cover-article.jpg") top center / contain no-repeat;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

#an-open-letter-to-the-builders-of-foundation-ai > h3:first-of-type::after {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 26px 0 34px;
  background: #0e0d0c url("assets/uploads/premium-logic-library-vs-student.jpg") center / cover no-repeat;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- Human-AI Convergence card visual ---------- */
#human-ai-convergence {
  position: relative;
  min-height: 382px;
  padding-right: 365px;
  overflow: hidden;
}

#human-ai-convergence > * {
  position: relative;
  z-index: 1;
}

#human-ai-convergence::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 24px;
  right: 22px;
  bottom: 24px;
  width: 320px;
  background: #0e0d0c url("assets/uploads/human-ai-convergence-card-cover.jpeg") center / contain no-repeat;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- Individual perspective articles ---------- */
.perspective-article {
  max-width: 780px;
  margin: 0 auto;
}

.perspective-article-header {
  margin-bottom: 54px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.perspective-article-header h2 {
  margin: 10px 0 12px;
  font-size: clamp(31px, 5vw, 46px);
  line-height: 1.08;
}

.perspective-deck {
  margin: 0;
  color: var(--green);
  font: 600 15px/1.45 var(--font-mono);
  letter-spacing: .01em;
}

.perspective-article p {
  margin: 0 0 1.2em;
}

.perspective-article h3 {
  margin: 58px 0 18px;
  font-size: clamp(24px, 3.5vw, 31px);
  line-height: 1.18;
}

.perspective-article h4 {
  margin: 36px 0 14px;
  font-size: 19px;
  line-height: 1.25;
  color: var(--ink);
}

.perspective-article strong {
  color: var(--ink);
}

.perspective-article a {
  color: var(--cyan);
  text-decoration-color: rgba(79,216,216,.35);
  text-underline-offset: 3px;
}

.perspective-article a:hover {
  color: var(--green);
  text-decoration-color: var(--green-dim);
}

.perspective-pullquote {
  margin: 34px 0;
  padding: 22px 24px;
  border-left: 2px solid var(--green);
  background: rgba(118,244,82,.045);
  font-size: 21px;
  line-height: 1.5;
}

.perspective-pullquote p {
  margin: 0;
}

.perspective-callout {
  margin: 34px 0;
  padding: 18px 20px;
  border: 1px solid var(--cyan-dim);
  background: rgba(79,216,216,.035);
  font-size: 15.5px;
}

.perspective-callout p:last-child {
  margin-bottom: 0;
}

.perspective-article ul,
.perspective-article ol {
  margin: 20px 0 30px;
  padding-left: 24px;
}

.perspective-article li {
  margin: 8px 0;
}

.perspective-signature {
  margin-top: 36px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.perspective-further {
  margin-top: 90px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

.perspective-further-intro {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 42px;
}

.perspective-section-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--cyan);
  font: 600 11px/1.2 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.perspective-back {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font: 12px/1.4 var(--font-mono);
}

/* ---------- Generic CMS article presentation ---------- */
.perspective-cms-byline {
  margin: 14px 0 0 !important;
  color: var(--muted);
  font: 12px/1.5 var(--font-mono);
  letter-spacing: .04em;
}

.perspective-cms-hero {
  width: min(100%, 690px);
  margin: 36px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0e0d0c;
  overflow: hidden;
}

.perspective-cms-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.perspective-cms-body {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.perspective-cms-body > p:first-child {
  font-size: 19px;
  line-height: 1.72;
  color: var(--ink);
}

.perspective-cms-body h3 {
  position: relative;
  padding-top: 8px;
}

.perspective-cms-body h3::before {
  content: "//";
  display: block;
  margin-bottom: 9px;
  color: var(--cyan);
  font: 600 10px/1 var(--font-mono);
  letter-spacing: .12em;
}

.perspective-cms-body blockquote {
  color: var(--ink);
}

.perspective-cms-body code {
  padding: .08em .32em;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--cyan);
  font: .9em/1.4 var(--font-mono);
}

.perspective-cms-body hr {
  margin: 54px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.perspective-cms-inline-image {
  margin: 34px 0 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0e0d0c;
  overflow: hidden;
}

.perspective-cms-inline-image img {
  display: block;
  width: 100%;
  height: auto;
}

.perspective-cms-inline-image figcaption {
  padding: 12px 15px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-dim);
  font: 11px/1.5 var(--font-mono);
}

/* ---------- Human-AI Convergence ---------- */
.convergence-article > section {
  scroll-margin-top: 92px;
}

.convergence-article > section > h2 {
  margin: 12px 0 26px;
  font-size: clamp(30px, 4.8vw, 44px);
  line-height: 1.08;
}

.convergence-edition-note {
  margin-top: 0;
}

.convergence-toc {
  margin: 48px 0 74px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.convergence-toc ol {
  margin: 8px 0 0;
  padding-left: 22px;
}

.convergence-toc li {
  margin: 10px 0;
  color: var(--muted);
}

.convergence-toc a {
  color: var(--cyan);
  text-decoration: none;
}

.convergence-toc a:hover,
.convergence-toc a:focus-visible {
  color: var(--green);
  outline: none;
}

.convergence-chapter {
  margin-top: 96px;
  padding-top: 70px;
  border-top: 1px solid var(--line);
}

.convergence-table-wrap {
  margin: 28px 0 38px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.convergence-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: rgba(255,255,255,.012);
  font-size: 14px;
  line-height: 1.5;
}

.convergence-table th,
.convergence-table td {
  padding: 14px 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.convergence-table th:last-child,
.convergence-table td:last-child {
  border-right: 0;
}

.convergence-table tr:last-child td {
  border-bottom: 0;
}

.convergence-table th {
  color: var(--ink);
  background: rgba(79,216,216,.05);
  font-family: var(--font-mono);
  font-size: 12px;
}

.convergence-thesis-list li {
  margin-bottom: 13px;
}

.convergence-references {
  margin: 20px 0 36px;
  padding-left: 24px;
}

.convergence-references li {
  margin: 12px 0;
}

.convergence-back-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 720px) {
  .perspective-section {
    padding-top: 54px;
  }

  .perspective-index {
    gap: 20px;
  }

  .perspective-index-card {
    padding: 24px 21px 25px;
  }

  .perspective-index-card.has-card-image {
    min-height: 0;
    padding: 302px 21px 25px;
  }

  .perspective-index-card.has-card-image::after {
    top: 18px;
    left: 18px;
    right: 18px;
    bottom: auto;
    width: auto;
    height: 258px;
  }
  
  .perspective-index-card-primary#an-open-letter-to-the-builders-of-foundation-ai {
    min-height: 0;
    padding: 302px 21px 25px;
  }

  .perspective-index-card-primary#an-open-letter-to-the-builders-of-foundation-ai::after {
    top: 18px;
    left: 18px;
    right: 18px;
    bottom: auto;
    width: auto;
    height: 258px;
  }
  
  #human-ai-convergence {
    min-height: 0;
    padding: 302px 21px 25px;
  }

  #human-ai-convergence::after {
    top: 18px;
    left: 18px;
    right: 18px;
    bottom: auto;
    width: auto;
    height: 258px;
  }
  
  .perspective-index-meta {
    align-items: flex-start;
  }

  .perspective-index-summary {
    font-size: 16px;
  }

  .perspective-article-header {
    margin-bottom: 42px;
    padding-bottom: 26px;
  }

  #an-open-letter-to-the-builders-of-foundation-ai .perspective-article-header::after {
    margin-top: 28px;
  }

  #an-open-letter-to-the-builders-of-foundation-ai > h3:first-of-type::after {
    margin-top: 22px;
    margin-bottom: 28px;
  }

  .perspective-article h3 {
    margin-top: 46px;
  }

  .perspective-pullquote,
  .perspective-callout {
    padding: 17px 18px;
  }

  .perspective-cms-hero {
    margin-top: 28px;
  }

  .perspective-cms-body {
    font-size: 16px;
    line-height: 1.72;
  }

  .perspective-cms-body > p:first-child {
    font-size: 17.5px;
  }

  .perspective-cms-inline-image {
    margin: 28px 0 34px;
  }

  .perspective-further {
    margin-top: 68px;
    padding-top: 48px;
  }

  .convergence-toc {
    margin: 38px 0 58px;
    padding: 20px 18px;
  }

  .convergence-chapter {
    margin-top: 72px;
    padding-top: 54px;
  }

  .convergence-article > section > h2 {
    margin-bottom: 22px;
  }

  .convergence-table-wrap {
    margin-left: -4px;
    margin-right: -4px;
  }
}

/* Shared article framing and published dialogue. */
.perspective-article > .perspective-cms-hero:first-child { margin-top: 0; margin-bottom: 54px; }
.perspective-callout > h3:first-child { margin-top: 0; }
.dialectic-section { margin-top: 64px; scroll-margin-top: 100px; }
.dialectic-section > h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; }
.dialectic-turn { margin: 32px 0 48px; overflow-wrap: anywhere; }
.dialectic-turn .dialectic-speaker { margin: 0 0 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--cyan); font: 600 14px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }

/* Keep archive navigation beside long article titles on desktop. */
@media (min-width: 721px) {
  .perspective-page-head .page-title-row { flex-wrap: nowrap; }
  .perspective-page-head .page-title-row h1 { flex: 0 1 auto; min-width: 0; }
  .perspective-page-head .page-title-row .home-chip { flex: 0 0 auto; }
}
