@import url("/shared/brand.css?v=20260807a");

:root {
  --ink: #12191a;
  --ink-raised: #192223;
  --ink-soft: #223031;
  --paper: #dde5e2;
  --paper-soft: #9eafaa;
  --muted: #697b77;
  --line: rgba(190, 211, 205, 0.13);
  --line-strong: rgba(190, 211, 205, 0.27);
  --accent: #738c87;
  --accent-soft: rgba(115, 140, 135, 0.12);
  --signal: #809892;
  --signal-soft: rgba(128, 152, 146, 0.12);
  --shadow: 0 14px 0 rgba(0, 0, 0, 0.2);
  --radius-sm: 0;
}

html[data-theme="light"] {
  --ink: #e4ebe8;
  --ink-raised: #eff3f1;
  --ink-soft: #d5dfdb;
  --paper: #1f2d2a;
  --paper-soft: #465d58;
  --muted: #6b7d79;
  --line: rgba(31, 59, 53, 0.12);
  --line-strong: rgba(31, 59, 53, 0.25);
  --accent: #526e68;
  --accent-soft: rgba(82, 110, 104, 0.1);
  --signal: #526e68;
  --signal-soft: rgba(82, 110, 104, 0.1);
  --shadow: 0 14px 0 rgba(38, 68, 61, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color 180ms ease, color 180ms ease;
}

button,
input {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

/* site chrome: shared/brand.css */

.lab-view {
  width: min(1060px, calc(100% - 44px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: clamp(74px, 11vw, 150px) 0 90px;
}

.lab-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: 54px;
  align-items: end;
  margin-bottom: 72px;
}

.lab-intro .eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 -30px;
  color: var(--signal);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.lab-intro h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.lab-intro > p:last-child {
  margin: 0;
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.85;
  word-break: keep-all;
}

.experiment-list {
  border-top: 1px solid var(--line-strong);
}

.experiment-card {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 170px;
  gap: 32px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
}

.experiment-card::after {
  content: "실행  →";
  justify-self: end;
  align-self: center;
  color: var(--signal);
  font-size: 12px;
}

.experiment-card:hover h2,
.experiment-card:focus-visible h2 {
  color: var(--signal);
}

.experiment-code {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.experiment-code strong {
  color: var(--signal);
  font-size: 12px;
  font-weight: 500;
}

.experiment-copy h2 {
  margin: 0 0 13px;
  font-family: var(--sans);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
  transition: color 150ms ease;
}

.experiment-copy p {
  max-width: 650px;
  margin: 0;
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.8;
  word-break: keep-all;
}

.lab-note {
  max-width: 680px;
  margin-top: 52px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.experience-view {
  display: grid;
  width: min(1160px, calc(100% - 44px));
  min-height: calc(100vh - 64px);
  grid-template-columns: 220px minmax(0, 720px);
  gap: clamp(56px, 9vw, 118px);
  justify-content: center;
  margin: 0 auto;
  padding: 66px 0 120px;
}

.experience-rail {
  position: sticky;
  top: 104px;
  align-self: start;
}

.back-link {
  color: var(--signal);
  font-size: 12px;
  text-decoration: none;
}

.back-link::before {
  content: "←  ";
}

.progress-copy {
  display: grid;
  gap: 5px;
  margin-top: 42px;
}

.progress-copy span {
  color: var(--muted);
  font-size: 11px;
}

.progress-copy strong {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.stage-map {
  position: relative;
  display: grid;
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.stage-map::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 4px;
  width: 1px;
  background: var(--line-strong);
}

.stage-map li {
  position: relative;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.stage-map li::before {
  content: "";
  z-index: 1;
  width: 9px;
  height: 9px;
  margin-top: 2px;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.stage-map li.is-active,
.stage-map li.is-complete {
  color: var(--paper);
}

.stage-map li.is-active::before {
  background: var(--signal);
  border-color: var(--signal);
  box-shadow: 0 0 0 5px var(--signal-soft);
}

.stage-map li.is-complete::before {
  background: var(--ink);
  border-color: var(--signal);
}

.opening-panel,
.stage-panel,
.report-panel {
  padding-top: 22px;
}

.experiment-number,
.stage-meta,
.report-header > p {
  margin: 0 0 24px;
  color: var(--signal);
  font-size: 11px;
  letter-spacing: 0.09em;
}

.opening-panel h1,
.stage-header h1,
.report-header h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.role-label {
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.role-label strong {
  margin-left: 8px;
  color: var(--paper);
  font-weight: 500;
}

.opening-copy,
.stage-copy {
  margin: 46px 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.08rem);
  line-height: 2;
}

.opening-copy p,
.stage-copy p,
.prose-block p {
  margin: 0;
  text-align: justify;
  text-justify: inter-character;
}

.opening-copy p + p,
.stage-copy p + p,
.prose-block p + p {
  margin-top: 1.45em;
}

.primary-button,
.secondary-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--signal);
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
}

.primary-button {
  background: var(--signal);
  color: var(--ink);
}

.secondary-button {
  background: transparent;
  color: var(--signal);
}

.primary-button:hover,
.primary-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible {
  filter: brightness(1.1);
}

.stage-meta {
  display: flex;
  gap: 12px;
}

.stage-meta span:last-child {
  color: var(--muted);
}

.previous-effect {
  margin: 42px 0 0;
  padding: 18px 20px;
  background: var(--signal-soft);
  border-left: 2px solid var(--signal);
}

.previous-effect span {
  color: var(--signal);
  font-size: 11px;
}

.previous-effect p {
  margin: 10px 0 0;
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 0.94rem;
  line-height: 1.8;
}

.choice-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-list legend {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 11px;
}

.choice-button {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0 14px;
  width: 100%;
  padding: 20px;
  background: var(--ink-raised);
  border: 1px solid var(--line-strong);
  text-align: left;
  cursor: pointer;
}

.choice-button:hover,
.choice-button:focus-visible {
  background: var(--ink-soft);
  border-color: var(--signal);
}

.choice-number {
  grid-row: 1 / 3;
  color: var(--signal);
  font-size: 12px;
}

.choice-button strong {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.choice-button small {
  margin-top: 7px;
  color: var(--paper-soft);
  font-size: 12px;
  line-height: 1.55;
}

.report-header {
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line-strong);
}

.report-header > p:last-child {
  margin: 28px 0 0;
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0;
}

.report-section {
  padding: 58px 0;
  border-bottom: 1px solid var(--line-strong);
}

.report-section h2 {
  margin: 0 0 28px;
  color: var(--signal);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.chosen-path {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: chosen;
}

.chosen-path li {
  counter-increment: chosen;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
}

.chosen-path li::before {
  content: counter(chosen, decimal-leading-zero);
  color: var(--muted);
  font-size: 11px;
}

.chosen-path strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-weight: 500;
}

.chosen-path p,
.cost-item p,
.counterfactual-item p,
.prose-block p {
  margin: 0;
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 0.94rem;
  line-height: 1.85;
}

.report-costs > div,
.counterfactual-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.cost-item,
.counterfactual-item {
  padding: 20px;
  background: var(--ink-raised);
}

.cost-item strong,
.counterfactual-item strong {
  display: block;
  margin-bottom: 10px;
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
}

.report-note {
  margin-top: 54px;
  padding: 22px;
  background: var(--signal-soft);
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.8;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.report-actions span {
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 860px) {
  .lab-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .lab-intro .eyebrow {
    margin-bottom: 0;
  }

  .experiment-card {
    grid-template-columns: 110px 1fr;
  }

  .experiment-card::after {
    display: none;
  }

  .experience-view {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .experience-rail {
    position: static;
  }

  .progress-copy,
  .stage-map {
    display: none;
  }
}

@media (max-width: 620px) {
  .lab-view,
  .experience-view {
    width: min(100% - 32px, 720px);
  }

  .lab-view {
    padding-top: 62px;
  }

  .experiment-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .experiment-code {
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 16px;
  }

  .experience-view {
    padding-top: 34px;
  }

  .opening-panel h1,
  .stage-header h1,
  .report-header h1 {
    font-size: clamp(2.25rem, 13vw, 3.5rem);
  }

  .opening-copy p,
  .stage-copy p,
  .prose-block p {
    text-align: left;
  }

  .choice-button {
    padding: 18px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

/* 2026 editorial reframe */
.lab-intro h1,
.experiment-copy h2,
.opening-panel h1,
.stage-header h1,
.report-header h1,
.report-section h2,
.related-content h2,
.related-card strong {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.lab-intro h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 1.08;
}

.experiment-card {
  box-shadow: inset 0 -1px 0 var(--line-strong);
}
