/* Shared lab page chrome. Inherits design tokens from /styles.css. */

.lab-shell,
.artifact {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  padding: 3rem var(--gutter) 5rem;
}
.lab-shell {
  max-width: var(--max);
}
.artifact {
  max-width: 940px;
}

/* (breadcrumb styles moved to /styles.css so they apply on /writing/ too) */

/* lab index */

.lab-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 1.5rem;
}

.lab-lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 44ch;
  line-height: 1.5;
  margin: 0 0 4rem;
}

/* (.lab-list / .lab-card / .lab-num / .lab-name / .lab-meta / .lab-desc
   moved to /styles.css so the home page can use them without importing
   this file.) */

/* artifact page header */

.artifact-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0.5rem 0 1.25rem;
}
.artifact-title .end-dot {
  color: var(--accent-warm);
}

.artifact-lede {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 64ch;
  line-height: 1.55;
  margin: 0 0 3rem;
}
.artifact-lede a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent-warm);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.artifact-lede a:hover {
  color: var(--accent-warm);
}
.artifact-lede em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.85em;
  padding: 0.05em 0.4em;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
  margin: 0 0.1em;
}

.artifact .notes {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  max-width: 60ch;
}
.artifact .notes h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
.artifact .notes p {
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.artifact .notes p:last-child {
  margin-bottom: 0;
}
