/* A project's own page (src/project-page.ts), on top of base.css. Every color
   is the maker's theme, so it matches their page under any template. */
.pp-bar {
  max-width: 720px; margin: 0 auto; padding: 20px 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pp-back {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0; height: 40px; padding: 0 14px 0 8px;
  border-radius: 999px; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none;
  background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px solid var(--line);
  transition: border-color .2s, color .2s;
}
.pp-back svg { flex-shrink: 0; color: var(--muted); }
.pp-back:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.pp-back:hover svg { color: var(--accent); }

.pp { max-width: 720px; margin: 0 auto; padding: 32px 16px 112px; display: grid; gap: 20px; }

.pp-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.pp-head .logo { border-radius: 24%; box-shadow: var(--shadow), 0 0 0 1px var(--hair); }
.pp-title { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pp-title h1 { font-size: clamp(26px, 5vw, 34px); line-height: 1.15; font-weight: 750; letter-spacing: -.025em; }
.pp-by { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.pp-by a { color: inherit; font-weight: 600; text-decoration: none; }
.pp-by a:hover { color: var(--accent); }
.pp-lede { font-size: 17px; line-height: 1.55; color: color-mix(in srgb, var(--text) 88%, var(--muted)); }

.pp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pp-visit {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; max-width: 100%;
  border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 650; text-decoration: none;
  box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent);
  transition: transform .25s var(--ease), filter .2s;
}
.pp-visit:hover { transform: translateY(-1px); filter: brightness(1.08); }

.pp-card { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 0; }
.pp-label { font-size: 12.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pp-rev { display: grid; gap: 6px; }
.pp-big { font-family: var(--mono); font-size: clamp(34px, 8vw, 46px); font-weight: 650; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pp-per { font-size: .45em; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.pp-source { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-top: 4px; }
.pp-verified svg { flex-shrink: 0; color: var(--accent); }
.pp-verified > span { display: grid; line-height: 1.35; }
.pp-dim, .pp-note { color: var(--muted); font-size: 13px; }
.pp-self { color: var(--muted); }

.pp-chart { margin: 18px 0 0; display: grid; gap: 8px; }
.pp-chart-top { display: flex; justify-content: space-between; align-items: baseline; }
.pp-max { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pp-chart svg { width: 100%; height: 180px; display: block; border-bottom: 1px solid var(--line); }
.pp-chart rect { fill: var(--accent); }
.pp-chart rect.is-now { fill: color-mix(in srgb, var(--accent) 45%, transparent); }
.pp-axis { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0; font-size: 11.5px; color: var(--muted); text-align: center; }
.pp-axis span { overflow: hidden; white-space: nowrap; }

.pp-shot { margin: 0; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--raised); }
.pp-shot img { display: block; width: 100%; height: auto; }
.pp-details p { margin-top: 10px; white-space: pre-line; color: color-mix(in srgb, var(--text) 88%, var(--muted)); }

.pp-more { display: grid; gap: 10px; margin-top: 8px; }
.pp-more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.pp-more a {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px;
  background: var(--card); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14.5px;
  border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .2s;
}
.pp-more a:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.pp-more .one-line { flex: 1; }
/* More makers building the same thing: face, name and their first project. */
.pp-peer { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.pp-peer-proj { font-size: 13px; font-weight: 500; color: var(--muted); }
.pp-all { justify-self: start; font-size: 14px; font-weight: 600; text-decoration: none; }
.pp-all:hover { text-decoration: underline; }
a.chip { text-decoration: none; }
a.chip:hover { background: var(--soft-2); }

@media (max-width: 480px) {
  .pp { padding-top: 24px; gap: 18px; }
  .pp-head { flex-wrap: wrap; gap: 12px 14px; }
  .pp-head .pill { order: 3; }
  .pp-card { padding: 18px; }
  .pp-axis .pp-odd { visibility: hidden; }
  .pp-chart svg { height: 150px; }
}
