/* ==========================================================================
   Kyanic Explore, Long-Form Reading & Dedicated Claude Environment Setup Page
   ========================================================================== */

/* --- Explore Archive Index --- */
.explore-index {
  padding-block: clamp(48px, 7vw, 96px) clamp(84px, 10vw, 136px);
  min-height: calc(100svh - var(--header-height));
}

.explore-head {
  padding-bottom: clamp(36px, 4.5vw, 56px);
  border-bottom: 1px solid var(--hairline);
}

.explore-head h1 {
  font-family: var(--font-sans);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.explore-head p {
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
  color: var(--ink-muted);
}

.explore-entry {
  display: grid;
  grid-template-columns: 132px 176px minmax(0, 1fr);
  gap: clamp(20px, 3.2vw, 44px);
  padding: clamp(24px, 3.2vw, 36px) 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}

.entry-date {
  font-size: 13px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}

.entry-thumb {
  width: 176px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}

.entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.explore-entry:hover .entry-thumb img {
  transform: scale(1.025);
}

.entry-copy h2 {
  font-family: var(--font-sans);
  font-size: clamp(20px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  font-variation-settings: "opsz" 16;
}

.explore-entry:hover .entry-copy h2 {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.entry-copy p {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.64;
  color: var(--ink-muted);
  max-width: 42em;
}

/* --- Editorial Articles (FDE, Kyanic Alpha, Claude Setup) --- */
.article-hero {
  padding-block: clamp(36px, 5vw, 64px) clamp(44px, 6vw, 76px);
}

.article-back {
  display: inline-block;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: clamp(28px, 4vw, 48px);
}

.article-back:hover {
  color: var(--ink);
}

.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.article-meta {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.article-hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.article-deck {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.65vw, 23px);
  line-height: 1.65;
  color: var(--ink-body);
}

.article-byline {
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-muted);
}

.alpha-hero-action {
  margin-top: 26px;
}

.article-cover {
  max-width: 440px;
  justify-self: end;
  width: 100%;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* --- Long-Form Article Reading Body (AnthropicSerif Book Typography) --- */
.article-body {
  width: min(700px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding: clamp(16px, 2.5vw, 32px) 0 clamp(84px, 10vw, 136px);
}

.article-body p,
.article-body li {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.9;
  color: var(--ink-body);
  overflow-wrap: break-word;
}

.article-body p {
  margin-bottom: 22px;
}

.article-body .article-lead {
  font-size: 21.5px;
  line-height: 1.8;
  color: var(--ink);
}

.article-body h2 {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.1vw, 26px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 52px 0 20px;
}

.article-body p a {
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 1px;
}

.article-body p a:hover {
  border-bottom-color: var(--ink);
}

.alpha-quality-list {
  padding-left: 24px;
  margin: 0 0 26px;
}

.alpha-quality-list li {
  margin-bottom: 12px;
}

.alpha-quality-list strong {
  font-family: var(--font-sans);
  color: var(--ink);
}

.article-collaboration {
  margin-top: 60px;
  padding-top: 38px;
  border-top: 1px solid var(--hairline);
}

.article-collaboration h2 {
  margin-top: 0;
}

.article-collaboration .button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 22px;
  margin-top: 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
}

.article-collaboration .button:hover {
  opacity: 0.85;
}

.article-collaboration .button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.article-links {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}

.article-links h2 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  margin: 0 0 12px;
}

.article-links > a {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-sans);
  font-size: 14.5px;
}

.article-links > a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --- Dedicated Claude Setup Page (explore/claude-setup.html) --- */
.claude-hero {
  width: min(980px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding-top: clamp(40px, 5.5vw, 68px);
}

.claude-hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.claude-hero .article-deck {
  max-width: 36em;
}

.claude-stage {
  width: min(980px, calc(100% - var(--gutter) * 2));
  margin: clamp(36px, 4.5vw, 56px) auto 0;
  padding: clamp(24px, 3.5vw, 44px);
  background: var(--surface);
}

.network-diagram {
  --network-access: var(--cinnabar);
  --network-feedback: var(--malachite);
}

.network-map {
  position: relative;
  height: 390px;
  background: var(--paper);
}

.network-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
}

.network-wires-narrow {
  display: none;
}

.network-routes {
  stroke: rgba(20, 20, 19, 0.24);
  stroke-width: 1.35;
}

.network-routes .network-return {
  stroke: rgba(78, 146, 104, 0.55);
  stroke-dasharray: 4 4;
}

.network-traces use {
  opacity: 0;
  stroke: var(--network-access);
  stroke-width: 2.4;
  stroke-linecap: butt;
  stroke-dasharray: 16 100;
  animation: network-trace 0.9s linear var(--route-delay, 0s) both;
}

.network-traces .network-return {
  stroke: var(--network-feedback);
}

.network-second-device { --route-delay: 0.18s; }
.network-workspace-trace { --route-delay: 1.02s; }
.network-check-trace { --route-delay: 1.18s; }
.network-diagnose-trace { --route-delay: 2.0s; }
.network-review-trace { --route-delay: 2.82s; }
.network-feedback-trace { --route-delay: 3.64s; }

.network-node {
  position: absolute;
  top: var(--node-y);
  left: var(--node-x);
  width: 23%;
  display: grid;
  align-content: center;
  min-height: 70px;
  padding: 10px 14px;
  background: var(--surface);
  transform: translateY(-50%);
}

.network-node strong {
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.1vw, 14.5px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.network-node span {
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-muted);
}

.network-mac { --node-x: 3%; --node-y: 17%; }
.network-windows { --node-x: 3%; --node-y: 49%; }
.network-hub { --node-x: 38.5%; --node-y: 33%; background: #EAE4D5; }
.network-workspace { --node-x: 74%; --node-y: 17%; }
.network-check { --node-x: 74%; --node-y: 49%; }
.network-diagnose { --node-x: 74%; --node-y: 82%; }
.network-review { --node-x: 38.5%; --node-y: 82%; }

@keyframes network-trace {
  from { stroke-dashoffset: 16; opacity: 0; }
  10%, 90% { opacity: 1; }
  to { stroke-dashoffset: -100; opacity: 0; }
}

.service-legend {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--ink-muted);
}

.service-legend-keys {
  display: flex;
  gap: 20px;
}

.service-legend-keys span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-legend-keys span::before {
  content: "";
  width: 16px;
  border-top: 1.5px solid var(--cinnabar);
}

.service-legend-keys span + span::before {
  border-top: 1.5px dashed var(--malachite);
}

/* --- Agent Systems Long-Form Monograph --- */
.agent-article {
  padding-bottom: clamp(84px, 10vw, 136px);
}

.agent-hero {
  width: min(980px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding-top: clamp(40px, 5.5vw, 68px);
}

.agent-back {
  display: inline-block;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 36px;
}

.agent-back:hover {
  color: var(--ink);
}

.agent-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.agent-subtitle {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.8vw, 24px);
  color: var(--ink-muted);
}

.agent-publication {
  margin-top: 22px;
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--ink-muted);
}

.agent-cover {
  margin-top: 38px;
}

.agent-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.agent-prose {
  width: min(700px, calc(100% - var(--gutter) * 2));
  margin: clamp(44px, 5.5vw, 68px) auto 0;
}

.agent-prose p,
.agent-prose li {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.9;
  color: var(--ink-body);
}

.agent-prose p {
  margin-bottom: 22px;
}

.agent-prose .agent-lead {
  font-size: 21.5px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 28px;
}

.agent-prose strong {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ink);
}

.agent-contents {
  border-block: 1px solid var(--hairline);
  padding: 26px 0;
  margin: 42px 0 60px;
}

.agent-contents h2 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.agent-contents ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
  list-style: decimal-leading-zero;
  padding-left: 24px;
}

.agent-contents li {
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--ink);
}

.agent-contents a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.agent-prose section + section {
  margin-top: 68px;
}

.agent-section-number {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  color: var(--ink-faint) !important;
  margin-bottom: 8px !important;
}

.agent-prose section h2 {
  font-family: var(--font-sans);
  font-size: clamp(23px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 22px;
}

.agent-prose h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 34px 0 14px;
}

.agent-figure {
  margin: 38px 0;
}

.agent-figure-wide {
  width: calc(100% + 120px);
  margin-left: -60px;
}

.agent-figure img {
  width: 100%;
  height: auto;
  mix-blend-mode: darken;
}

.agent-figure figcaption {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 12px;
  text-align: center;
}

.agent-table-wrap {
  margin: 34px 0;
}

.agent-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.75;
}

.agent-table-wrap caption {
  text-align: left;
  font-size: 13px;
  color: var(--ink-muted);
  padding-bottom: 12px;
}

.agent-table-wrap th,
.agent-table-wrap td {
  vertical-align: top;
  padding: 13px 14px 13px 0;
  border-bottom: 1px solid var(--hairline);
}

.agent-table-wrap thead th {
  font-weight: 600;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.agent-table-wrap th:first-child {
  width: 24%;
}

.agent-steps {
  margin: 0 0 26px;
  padding-left: 24px;
}

.agent-steps li {
  margin-bottom: 10px;
}

.agent-related {
  margin-top: 60px;
  border-top: 1px solid var(--hairline);
}

.agent-related > a {
  display: block;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}

.agent-related span {
  display: block;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 5px;
}

.agent-related strong {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
}

/* --- Footage Credits --- */
.credits-page {
  padding-block: clamp(52px, 6.5vw, 92px) clamp(76px, 9vw, 120px);
  max-width: 860px;
}

.credits-page h1 {
  font-size: clamp(30px, 3.8vw, 42px);
  font-weight: 600;
  margin-bottom: 18px;
}

.credits-page > p {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-body);
  margin-bottom: 30px;
}

.credits-list {
  list-style: none;
  padding: 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--hairline);
}

.credits-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}

.credits-list h2 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 5px;
}

.credits-list p {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-top: 4px;
}

.credits-list a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 960px) {
  .explore-entry {
    grid-template-columns: 148px minmax(0, 1fr);
  }
  .entry-date {
    grid-column: 1 / -1;
  }
  .entry-thumb {
    width: 148px;
  }
  .article-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .article-cover {
    max-width: 440px;
  }
  .agent-figure-wide {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .explore-entry {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .entry-thumb {
    width: 100%;
  }
  .agent-contents ol {
    grid-template-columns: 1fr;
  }
  .article-body p,
  .article-body li,
  .agent-prose p,
  .agent-prose li {
    font-size: 17.5px;
    line-height: 1.85;
  }
  .claude-stage {
    padding: 20px 16px;
  }
  .network-map {
    height: 480px;
  }
  .network-wires-wide {
    display: none;
  }
  .network-wires-narrow {
    display: block;
  }
  .network-node {
    width: 44%;
    min-height: 64px;
    padding: 8px 10px;
  }
  .network-mac { --node-x: 4%; --node-y: 10%; }
  .network-windows { --node-x: 52%; --node-y: 10%; }
  .network-hub { --node-x: 28%; --node-y: 34%; }
  .network-workspace { --node-x: 4%; --node-y: 59%; }
  .network-check { --node-x: 52%; --node-y: 59%; }
  .network-diagnose { --node-x: 52%; --node-y: 86%; }
  .network-review { --node-x: 4%; --node-y: 86%; }
}
