/* Shared inks for the profile and its miniature in the studio. */
[data-starter-skin="folio"] {
  --stock: #e6e5dd; --sheet: #faf8ef; --ink: #252c25; --quiet-ink: #586453;
  --rule: #c4c9b9; --wash: #e5e9d9; --seal: #405443; --seal-ink: #f4f4df;
}
@media (prefers-color-scheme: dark) {
  [data-starter-skin="folio"] {
    --stock: #202520; --sheet: #2c322c; --ink: #eef1e6; --quiet-ink: #b8c2b1;
    --rule: #586454; --wash: #384437; --seal: #c8d3b6; --seal-ink: #304130;
  }
}
[data-starter-skin="graphite"] {
  --stock: #191b1c; --sheet: #282b2c; --ink: #f1f0e9; --quiet-ink: #b5bab6;
  --rule: #4b504f; --wash: #363b39; --seal: #cad1c8; --seal-ink: #2a322e;
}
[data-starter-skin="clay"] {
  --stock: #e2cfc0; --sheet: #f8efe1; --ink: #3a271f; --quiet-ink: #755641;
  --rule: #ccaf98; --wash: #efddc9; --seal: #944e3c; --seal-ink: #fff2dc;
}
[data-starter-skin="tide"] {
  --stock: #d6e0e3; --sheet: #f2f6f4; --ink: #223a49; --quiet-ink: #536c79;
  --rule: #b6c9ce; --wash: #e2edef; --seal: #3c6275; --seal-ink: #edf6f1;
}

html:has(> body.has-starter-stock) { background-color: var(--stock); }
body.has-starter-stock { background: inherit; }
.has-starter-stock #bgMedia::before { content: ""; position: absolute; inset: 0; background: var(--stock); }
.has-starter-backdrop .pg-orbs { display: none; }
.has-starter-stock .pg-bg__scrim { background: rgb(0 0 0 / var(--dim, 0)); }
.has-starter-skin .profile-card.is-framed:not(.has-card-paint):not(.is-card-clear) {
  background: color-mix(in srgb, var(--sheet) calc(var(--card-opacity, 1) * 100%), transparent);
  border-color: var(--card-edge, var(--rule));
  box-shadow: 0 12px 32px -23px color-mix(in srgb, var(--ink) 42%, transparent);
}
.has-starter-skin .profile-card.is-framed.frame-fx-none:not(.has-frame-paint)::before { display: none; }
.has-starter-skin .profile-card.is-framed { padding: min(var(--card-padding), 6vw); }
.has-starter-skin :is(.profile-card__body, .profile-card__links) {
  --text-0: var(--ink); --text-1: var(--ink); --text-2: var(--quiet-ink); --border: var(--rule);
}
.has-starter-skin .profile-name:is(.text-fx-none, .text-fx-typewriter) {
  background: none; color: var(--ink); -webkit-text-fill-color: currentColor; text-shadow: none;
}
.has-starter-skin :is(.profile-name, .profile-title__text, .profile-bio).text-fx-typewriter {
  filter: none; text-shadow: none;
}
html[data-motion="full"] .has-starter-skin .pg-stage.is-revealed .tw-written::after {
  background: color-mix(in srgb, var(--fx-1) 40%, currentColor);
}
.has-starter-skin .profile-title:not(.has-custom-title) { color: var(--quiet-ink); }
.has-starter-skin .profile-bio:is(.text-fx-none, .text-fx-typewriter) { color: var(--bio-color, var(--ink)); }
.has-starter-skin .text-fx-none + .profile-title__caret { display: none; }
.has-starter-skin .profile-meta { color: var(--quiet-ink); }
.has-starter-skin .avatar.is-fallback.avatar-fx-none .avatar__disc {
  background: var(--seal); box-shadow: none; border: 1px solid var(--rule);
}
.has-starter-skin .avatar.is-fallback.avatar-fx-none .avatar__initials {
  color: var(--seal-ink); text-shadow: none; font-family: Georgia, serif;
  font-size: calc(var(--avatar-size) * .39); font-weight: 400; letter-spacing: -.055em;
}
.has-starter-skin .avatar.avatar-fx-none.frame-motion-none .avatar__ring { display: none; }
.has-starter-skin .pg-link:not([class*="pg-btn--fx-"]) {
  background: var(--wash); color: var(--link-color, var(--ink)); box-shadow: none;
}
.has-starter-skin .pg-link:not(.pg-link--no-border):not([class*="pg-btn--fx-"]) { border-color: var(--rule); }
.has-starter-skin .pg-link:not([class*="pg-btn--fx-"]):hover { background: color-mix(in srgb, var(--wash) 85%, var(--quiet-ink)); }
.has-starter-skin .pg-link:not([class*="pg-btn--fx-"]) .pg-link__icon {
  color: var(--icon-color, color-mix(in srgb, var(--brand) 28%, var(--ink)));
  background: transparent; box-shadow: none;
}
.has-starter-skin .pg-link__arrow { color: var(--quiet-ink); }
html body.has-starter-stock .pg-credit {
  --text-0: var(--ink); --text-1: var(--ink); --text-2: var(--quiet-ink);
  --dock-bg: var(--sheet); --dock-line: var(--rule); --dock-ink: var(--ink); --dock-filter: none;
}
/* the dock's chips: paper and rule, unless the card itself gave them its look */
html body.has-starter-stock .pg-actions {
  --dock-bg: var(--sheet); --dock-line: var(--rule); --dock-ink: var(--ink); --dock-filter: none;
}
.has-starter-stock .pg-credit__brand { color: var(--dock-ink, var(--ink)); }

@media (max-width: 700px) {
  html:has(> body.has-starter-stock) { scrollbar-gutter: auto; }
  .has-starter-stock .pg-stage { padding-bottom: max(116px, env(safe-area-inset-bottom)); }
}
@container linkcell (min-width: 180px) and (max-width: 336px) {
  .has-starter-skin .pg-link__icon { display: grid; margin-inline-end: 8px; }
  .has-starter-skin .pg-link__label { text-align: start; }
  .has-starter-skin .pg-link__arrow { display: block; margin-inline-start: 6px; }
}

/* A clothbound spine, a monogram bookplate, and ruled rows. */
[data-starter-skin="folio"] .profile-card.is-framed:not(.has-card-paint):not(.is-card-clear) {
  border-inline-start: 5px solid var(--card-edge, var(--seal));
  box-shadow: inset 3px 0 var(--sheet), inset 4px 0 var(--rule), 0 10px 20px -16px var(--quiet-ink);
}
[data-starter-skin="folio"] .tpl-split:not(.tpl-custom) .profile-card__layout {
  --tc-cols: var(--avatar-size) minmax(0, 1fr); --tc-colgap: clamp(18px, 4vw, 32px);
  --tc-portrait-align: center; --tc-lcols: minmax(0, 1fr); --tc-lgap: 0;
}
[data-starter-skin="folio"] .tpl-split:not(.tpl-custom) .avatar {
  width: var(--avatar-size); height: var(--avatar-size); margin: 0;
}
[data-starter-skin="folio"] .avatar.is-fallback.avatar-fx-none .avatar__disc::after {
  content: ""; position: absolute; inset: 6%; border: 1px solid color-mix(in srgb, var(--seal-ink) 48%, transparent);
  border-radius: inherit; pointer-events: none;
}
[data-starter-skin="folio"] .pg-link:not([class*="pg-btn--fx-"]) {
  padding-inline: 3px; border-radius: 0; background: transparent;
}
[data-starter-skin="folio"] .pg-link:not(.pg-link--no-border):not([class*="pg-btn--fx-"]) {
  border-width: 1px 0 0;
}
[data-starter-skin="folio"] .pg-link:last-child:not(.pg-link--no-border):not([class*="pg-btn--fx-"]) { border-bottom-width: 1px; }
@container card (max-width: 470px) {
  [data-starter-skin="folio"] .tpl-split:not(.tpl-custom) .profile-card__portrait { justify-self: start; margin-bottom: 16px; }
  [data-starter-skin="folio"] .tpl-split.is-left :is(.profile-title, .profile-bio, .profile-card__body) { text-align: left; }
  [data-starter-skin="folio"] .tpl-split.is-left :is(.profile-card__id, .profile-meta) { align-items: flex-start; justify-content: flex-start; }
}

/* A machined rim and an inset, perforated band across the top. */
[data-starter-skin="graphite"] .profile-card.is-framed:not(.has-card-paint):not(.is-card-clear) {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 19%, transparent) .65px, transparent .9px);
  background-size: 5px 5px; background-repeat: repeat-x; background-position: center 11px;
}
[data-starter-skin="graphite"] .avatar.is-fallback.avatar-fx-none .avatar__initials {
  font-family: var(--font-sans); font-weight: 650; letter-spacing: -.065em;
  border: 4px double var(--seal); outline: 1px solid var(--seal-ink); outline-offset: -6px; border-radius: inherit;
}
[data-starter-skin="graphite"] .pg-link:not([class*="pg-btn--fx-"]) { border-radius: 10px; }

/* Terracotta binding, paper edge and a letterpress maker's mark. */
[data-starter-skin="clay"] .profile-card.is-framed:not(.has-card-paint):not(.is-card-clear) {
  border-block-start: 5px solid var(--card-edge, var(--seal)); box-shadow: 0 3px var(--stock), 0 4px var(--rule);
}
[data-starter-skin="clay"] .tpl-poster:not(.tpl-custom) .profile-card__portrait::after {
  content: ""; width: 44px; height: 26px; flex: none; align-self: flex-start; opacity: .64;
  background: repeating-radial-gradient(ellipse at 50% 110%, transparent 0 3px, var(--seal) 3.5px 4.5px, transparent 5px 7px);
  border-radius: 50% 50% 0 0;
}
[data-starter-skin="clay"] .tpl-poster .profile-name { line-height: 1.03; max-width: 100%; }
[data-starter-skin="clay"] .pg-link:not([class*="pg-btn--fx-"]) { border-radius: 5px; }

/* A chart ruler sits between the portrait and a pair of parallel rules. */
[data-starter-skin="tide"] .profile-card.is-framed:not(.has-card-paint):not(.is-card-clear) {
  border-block: 3px double var(--card-edge, var(--quiet-ink));
}
[data-starter-skin="tide"] .tpl-editorial:not(.tpl-custom) .profile-card__portrait {
  display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; margin-bottom: 15px;
}
[data-starter-skin="tide"] .tpl-editorial:not(.tpl-custom) .profile-card__portrait::before,
[data-starter-skin="tide"] .tpl-editorial:not(.tpl-custom) .profile-card__portrait::after {
  content: ""; width: 19%; height: 7px; border-top: 1px solid var(--rule);
  background: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 8px);
}
[data-starter-skin="tide"] .tpl-editorial:not(.tpl-custom) .avatar { flex: none; margin: 0; }
[data-starter-skin="tide"] .pg-link:not([class*="pg-btn--fx-"]) { border-radius: 2px; }

/* The picker uses the same paper, ink and arrangement as the full profile. */
.starter-sample {
  --sample-x: 24%; --sample-y: 37%; --sample-radius: 8%; --name-x: 72%; --name-y: 35%; --byline-y: 48%;
  position: relative; display: block; overflow: hidden; border: 1px solid var(--rule);
  box-shadow: none; background: var(--sheet);
}
.starter-sample::before {
  content: ""; position: absolute; width: min(19%, 22px); aspect-ratio: 1;
  left: var(--sample-x); top: var(--sample-y); transform: translate(-50%, -50%);
  border-radius: var(--sample-radius); background: var(--seal);
}
.starter-sample::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(var(--ink) 0 0) var(--name-x) var(--name-y) / 34% 3px,
    linear-gradient(var(--rule) 0 0) var(--name-x) var(--byline-y) / 24% 2px,
    linear-gradient(var(--rule) 0 0) center 76% / 72% 1px,
    linear-gradient(var(--rule) 0 0) center 87% / 72% 1px;
  background-repeat: no-repeat;
}
.starter-sample[data-starter-skin="folio"] { border-left: 3px solid var(--seal); }
.starter-sample[data-starter-skin="graphite"] { --sample-radius: 50%; border-radius: 9px; background: var(--sheet); }
.starter-sample[data-starter-skin="clay"] { border-top: 4px solid var(--seal); --sample-radius: 27%; }
.starter-sample[data-starter-skin="tide"] { --sample-radius: 50%; border-block: 3px double var(--rule); }
.starter-sample:is([data-starter-skin="graphite"], [data-starter-skin="tide"]) {
  --sample-x: 50%; --sample-y: 23%; --name-x: 50%; --name-y: 50%; --byline-y: 61%;
}
.starter-sample[data-starter-skin="clay"] { --sample-x: 20%; --sample-y: 23%; --name-x: 19%; --name-y: 48%; --byline-y: 60%; }
.yc-onboard__starters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yc-onboard__starters .yc-onboard__art { width: 100%; height: 54px; }
.yc-onboard__starters .yc-onboard__world[aria-pressed="true"] { border-color: var(--text-1); }
.yc-onboard__more summary { width: fit-content; cursor: pointer; color: var(--text-1); font-size: .85rem; }
.yc-onboard__more[open] summary { margin-bottom: 10px; }
