/* An agent's page: everything its file holds, read before it is imported. */
.agent-page {
  padding-top: 28px;
  padding-bottom: 96px;
}
.crumbs {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  color: var(--faint);
}
.crumbs a {
  color: var(--pencil);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
}
.who {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.who h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.who p {
  margin-top: 10px;
  color: var(--pencil);
  font-size: 17px;
  line-height: 26px;
  max-width: 60ch;
}
.tile {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}

.cols {
  margin-top: 40px;
  display: grid;
  gap: 40px;
}
@media (min-width: 1000px) {
  .cols {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 64px;
    align-items: start;
  }
  .side {
    order: 2;
    position: sticky;
    top: 92px;
  }
}
.side > * {
  margin: 0;
}
.side {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--raised);
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.how {
  font-size: 13px;
  line-height: 19px;
  color: var(--faint);
}

.facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 20px;
  font-size: 14px;
  line-height: 20px;
}
.facts dt {
  color: var(--faint);
}
.facts {
  margin: 0;
}
.facts dd {
  margin: 0;
  color: var(--pencil);
  overflow-wrap: break-word;
}

.body {
  max-width: 760px;
  display: grid;
  gap: 56px;
}
.body h2 {
  font-size: 24px;
  line-height: 30px;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 16px;
}
.body .note {
  color: var(--faint);
  font-size: 14px;
  margin-bottom: 16px;
}
.body section > .facts {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.skill-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.skill + .skill {
  border-top: 1px solid var(--line);
}
.skill summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  padding: 14px 18px;
}
.skill summary::-webkit-details-marker {
  display: none;
}
.skill summary::after {
  content: 'Show';
  grid-row: 1;
  grid-column: 2;
  font-size: 13px;
  color: var(--faint);
}
.skill[open] summary::after {
  content: 'Hide';
}
.skill summary:hover {
  background: var(--raised);
}
.skill summary code {
  font-family: var(--mono, 'Geist Mono', monospace);
  font-size: 14px;
  color: var(--ink);
}
.skill summary span {
  grid-column: 1;
  font-size: 13.5px;
  line-height: 20px;
  color: var(--pencil);
}
.skill[open] summary span {
  color: var(--faint);
}
.skill > .prose {
  padding: 4px 18px 22px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--raised) 50%, transparent);
}
.skill summary:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: -2px;
}

.credit {
  font-size: 13px;
  line-height: 21px;
  color: var(--faint);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.credit a {
  color: var(--pencil);
}

/* a skill's own headings sit two levels under the page's: kept readable, never smaller than its text */
.skill .prose h3 {
  font-size: 19px;
  line-height: 26px;
}
.skill .prose h4 {
  font-size: 16.5px;
  line-height: 24px;
}
.skill .prose h5,
.skill .prose h6 {
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.4em;
}
